How do you use Vim in the era of AI?

19 points | by rstagi an hour ago

23 comments

  • MantisShrimp90 6 minutes ago

    (Neo)vim is setup wonderfully for this era. Im with Justin on the take that neovim can replace tmux soon literally all that is left is being able to restart terminal sessions on restart (which is even set as a goal for summer of code).

    Neovim can already have all the agents running in different terminal buffers or there are plugins popping up every day to have deep integrations with your favorite or we even have some interesting harnesses that are unique to neovim like sidekick.

    As always, the ability to compose small tools and edit any file allow neovim to stay relevant and more powerful than ever in my opinion while not forcing workflow changes like the others

  • redlewel 5 minutes ago

    How are you a heavy vim user if you wonder if vim makes sense with ai? There are so many things to do outside of writing code that vim is used for.

    Also neovim + claude code + open terminal pane in tmux is the goated combo anyway. Especially more lately you need to understand the code you are writing if you want to do anything important in software, and the best way to do that is neovim :)

  • fernandotakai 11 minutes ago

    like normal?

    but i don't use ai to write code for me -- i use it as a companion thing where i ask questions and then, instead of asking for code, i implement everything myself.

    it keeps me sharp and helps me understand the lastest ai stuff.

  • wffurr 26 minutes ago

    Use it to write and edit code when that makes sense for you to do so. Just like you always have. It's an extremely useful skill to have even still.

    I've had much more success with agents reviewing my code and offering inline autocomplete over LSP than I have with letting the agents write the code, which I then try to review. I end up with a much better mental model of the code and higher quality output than either I or the agent could do alone.

  • chikinpotpi 9 minutes ago

    I use vim and claude code (fable) inside of herdr.

    I can jump to one tab look at the code, jump back over and talk to claude for a little.

    I can spread this all across several projects using herdrs workspaces.

    I still write code when it makes sense.

    Sometimes i annotate the code with comments, hop back over and ask the LLM to consume the annotations i just added and make changes.

    Sometimes i ask the LLM to analyze lots of code, and come up with a plan of attack for me, then i go implement it myself.

    For Personal projects I write much more of the code myself still, because i enjoy it. For work, i do whatever gets the best outcome most efficiently.

  • avsn 11 minutes ago

    Usually I keep terminal split open with the agent side by side and make edits by hand where needed or for reviewing the code. Inside the vim itself I have a small plugin that you can feed a block of text with the comment instructing LLM what to do. It then replaces the text with the result of execution. Super useful for small edits here and there that don't require full session. I also have preconfigured neoterm float with the pi agent, that allows me to jump into the session right away.

  • Aperocky 10 minutes ago

    I am sort of a no UI (except browser) user for a very long time now, and vim is still incredibly useful.

    Granted, the language servers are getting dusted, but it's much nicer to write goals in markdown in vim and send it to LLM in a self-written harness CLI; and even look at the results in the same way. All unix. LLM is just the latest toolbox addition.

  • ActionHank 25 minutes ago

    You're not looking at the code?

      mrweasel 2 minutes ago

      I'd even go so far at to say that if you're not writing the code yourself, you probably need to look at it even more that previously.

      Even before AI most of us read way more code than we wrote, that should still hold true.

  • chadash 16 minutes ago

    i use vim quite a bit! I find that in this new era, i'm in the command line a lot and like to stay in the command line. vim (I use neovim) is a good way to do that.

    Furthermore, a lot of my workflow is now done on remote servers (i love exe.dev) where claude code is sandboxed to an extent (it can still cause damage, just not to my main computer's file system). When I'm configuring those, i have a setup script that installs all of my vim files just the way i like them, so vim behaves exactly the same on a remote server as it does locally. I can edit things as needed. I can also access claude code on those servers as well. So working on my remote machine feels a lot like workin locally [1].

    [1] I'm aware that i can setup cursor or vs code to access SSH servers, but it's just not as easy and doesn't feel as natural, IMO. There's something i like about needing to call `ssh remote-server` first.

  • philipportner 10 minutes ago

    Hasn't changed at all since AI agents became a thing. tmux, nvim with a few plugins, mainly fzf and LSP support. If I do use an AI agent, I just run it in another tmux window.

  • throw2ih020 19 minutes ago

    I switched from using Vim as my primary editor to using Zed's Vim Mode. When you have a second process editing your project in the background you need an editor that can display those changes immediately without clunky buffer reloads.

    I've also customized Zed's UI to optimize for reading and reviewing code, and mostly adding notes or small focused edits, rather than writing entire files from scratch.

  • ArcHound 18 minutes ago

    I did a write-up at https://blog.miloslavhomer.cz/vibing-with-french-models-in-n....

    It really can be a fancy auto complete, but more agentic usage moved out of the editors (and I think that's a good thing).

  • mtklein 24 minutes ago

    On about day 2 of using Fable I realized that the .vimrc I'd been maintaining for 15-20 years would probably never change again.

    With Opus I still feel like I'm pair coding and want to get in there and make some changes myself, but working with Fable (even Fable managing Opus agents) had me in a completely different mindset, one where I realized I would just be getting in the way.

      linsomniac a few seconds ago

      A couple years ago I decided to stop maintaining a .vimrc (after ~35 years), and started using LunarVim and later AstroVim with as few customizations as I could live with.

      But then around 2 months ago I decided to switch to NixOS and there wasn't a Nix way I could find to use Astro. So I had Opus build me a vim setup for NixOS that included the batteries I wanted in my setup. I gave it a paragraph description and it built something that has been a joy to use.

  • hjkl_hacker 15 minutes ago

    I still use Vim, but totally different from before. I don’t care about efficient movement/editing bindings. All I use it for now is navigating and viewing files.

  • linsomniac 16 minutes ago

    ^G in Claude and Codex will drop you into $EDITOR to edit your prompt. I use that all the time.

    "vimdiff" is a really great way to review code changes side-by-side.

  • vslira 17 minutes ago

    I use it to write instructions, obviously. I thought everyone was using C-g on Claude Code

  • simianwords 23 minutes ago

    The intersection of people who like vim and ai is basically nil

      perplex 8 minutes ago

      My Neovim + AI workflow is running Neovim (LazyVim) and Claude Code side by side in a terminal split. As the agent makes changes, I review them in Neogit. I don't really make edits by hand much anymore, but the keyboard is still how I navigate the code when doing reviews. I can jump to references, open files, read through the diff very quickly with keyboard shortcuts.

      The Neovim/LazyVim speed for writing code turns out to be just as fast for navigating and reviewing code.

      snaveen 19 minutes ago

      There are few people.

      Apreche 18 minutes ago

      Can confirm. Using vim same as always. Do not use any so-called ”AI” whatsoever.

      apodik 18 minutes ago

      that is untrue