DEV Community

Cover image for Turn Vim into a comfy and modern editor with these plugins! πŸ›‹
Javier Salcedo
Javier Salcedo

Posted on • Updated on

Turn Vim into a comfy and modern editor with these plugins! πŸ›‹

Photo by Max Duzij on Unsplash

For the last 2 years, I've been in a loving relationship with Vim's modal editing, but my actual setup has changed a lot with time (not even always using Vim itself), as, let's face it, out-of-the-box Vim is pretty lacking for anything else than a quick edit of a couple of files.

Nowadays, I managed to create a comfy config that can even rival with VSCode (my other great love). These are the plugins I'm using atm, but I keep a more up to date version here.

πŸ– Quality of life plugins

First, the things that make my day to day easier, and take Vim from an old clunky command line notepad, into a modern and powerful tool.

  • Vim-Plug: A really simple and easy to use plugin manager.
  • Airline: A lightweight status line.
  • SuperTab: Use Tab for navigate autocomplete suggestions.
  • FzF: Fuzzy finding of files by name, with a really useful preview.
  • The Silver Searcher: Not really a plugin, but a great companion for FzF. Gives you a better way to search for text inside the files.

    • Bonus: Skim: Rust version of FzF πŸ¦€! Way faster, but I find the Silver Searcher integration unreliable. For now I have both installed, Skim for searching files and FzF + Silver Searcher for searching -into files.
  • CoC-Pairs: Not a Vim plugin, but a CoC one. Auto pairs like in VSCode.

  • Signify: Until very recently, I used GitGutter, but in my current role we use SVN, so I switched to Signify. It is essentially the same, but not limited to Git. Basically, it shows markers of line beside the line number, allows to jump between them, preview, undo, etc.

  • Fugitive: Git tools. I don't really use it that much lately, but it deserves a mention.

  • Surround: A classic. Quickly add/replace surrounding text.

  • Multiple Cursors: Sublime Text style multiple cursors.

  • EasyMotion: One of those plugins that become indispensables. Lets you jump easily to any point of the code.

πŸ’¬ Language plugins

The real core of coding tools: Language-specific tools. Code navigation, autocomplete, etc.

  • Conquer of Completion (CoC): Intellisense on Vim! πŸ’– This on itself is just a blank slate. You have to install its own plugins for each language.
  • Polyglot: Better syntax highlighting for a lot of languages.

Like many of us, I live a double dev life: at work and at home.
My personal projects are usually small and written on C++ or Rust, while my job requires a big code base.
For my small C++ projects, I find that the Clangd LSP works great.

🏑 Home

  • CoC's Rust Analyzer: Rust Analyzer is a great Rust LSP. More complete and powerful than the default.
  • CoC's Clangd: One of the best C++ LSP IMHO (if you use Clang)
  • GLSL: Syntax highlight for GLSL

However, I've failed miserably trying to make it work in my office (It's a huge codebase that takes ~15-20' to compile after all). For that reason, I stepped back into... Alt Text

🏒 Office

  • Gutentags: Automates the generation of the tags, for a more IDE-like feel.
  • Universal Ctags: Not a plugin, but the best choice for generating tags.

I must say that Ctags is amazingly reliable for code navigation (which most of what I really need to be productive), but it lacks decent autocompletion.

Adding the following to the Vim config gives some useful extra info:

let g:gutentags_ctags_extra_args = ['--fields=+ainKz']
Enter fullscreen mode Exit fullscreen mode

And this will prompt you with a list of possible results when jumping to a tag that overlaps with others:

nmap <C-]> g<C-]>
Enter fullscreen mode Exit fullscreen mode


Make it shiny!
Finally, stuff that makes it prettier, but that doesn't add much functionality.

Top comments (8)

vip3rousmango profile image
Al Romano

Check out Onivim2, it's taking this idea and making it it's own IDE. It's like VSCode but with modal editing baked in natively. Has a duel licence model so there is an open source version available to use as well.

javiersalcedopuyo profile image
Javier Salcedo

Looks really promising, but I think I'll wait until it's more stable. πŸ‘€

joolius profile image

I paid for it, and losing hope. Looks like it will never deliver on the promises made.

mte90 profile image
Daniele Scasciafratte

I didn't know signify I will try it.
About the rest I am using neovim with lsp so no coc at all :-)

javiersalcedopuyo profile image
Javier Salcedo • Edited

Signify and Skim are the type of things that you first think they are a knockoff/unnecessary fork, but you end up liking even more than the original! ❀️

Also I have the same questions as Cyrille haha πŸ˜…

drazik profile image

Do you a link I can follow to configure LSP in neovim? I tried some time ago but didn't succeed.

Also, why don't you want to use coc?

mte90 profile image
Daniele Scasciafratte • Edited

I followed the readme of my dotfiles are at

But LSP require the o.5 development version right now as it is not yet available in stable releases.

About CoC I don't like to have NodeJS running and also is memory heavy (yes I am using inteliphense that use nodejs too but I am waiting the support for another language server for php).

javiersalcedopuyo profile image
Javier Salcedo

Sure, I have my config on GitHub:

--> here <--