I am forced to use VS2008 for the bulk of my projects at work, but whenever the odd text file needs editing I use Vim.
Now I know that there are plugins and whatnot that can make VIM work like an IDE, so I am wondering if anyone actually uses it as an IDE?
EDIT:
For those of you who think you speak for the masses in saying that Vim should not be used as an IDE, please consider that IDE features are the number one feature request on the official feature request list on vim.org.
Vim is an amazing piece of software, but pretty messy too due to it's age. Vi
was released in 1976 and Vim
was released in 1991. For example, Vim offers quite a few different ways to do text-completion, from simple keyword to its "omni" completion system. On top of that, some plugins choose to work with the inbuilt functionality, while others just replace it wholesale. Hopefully the following suggestions get you started though.
You may want to try this new patch for Vim which allows Vim to be used inside Visual Studio as the editor:
Firstly, install the Vundle plugin manager plugin for Vim! It works very well and makes managing Vim plugins easy. Handles installation, updates and removal.
For example, your .vimrc
now just contains:
" === Plugins! === Plugin 'junegunn/fzf' Plugin 'scrooloose/nerdtree' Plugin 'w0rp/ale' ...
And a PluginUpdate
command will install them or update them.
The following vim scripts give Vim more of an IDE feel. Keep in mind that Vim has a huge number of features built in, so take time to learn those (which is an ongoing journey) before loading up 20 plugins.
Highest impact plugins for me are fzf and ALE. You'll want to install fzf and ripgrep.
Navigation:
Text Completion:
I personally find code-completion too much and just rely on Vim's builtin CTRL-N
text-completion feature, up to you, but remember CTRL-N
! Vim's built-in completion system extends beyond that, with different completion modes such as filename completion with CTRL-X CTRL-F
or "omni-completion", which tries to offer file-type specific context dependent completion through CTRL-X CTRL-O
. Omni-completion requires file-type specific plugins, the vim-go package for Golang supports it.
Formatting:
Just awesome:
Better GUI:
Color schemes:
Rather than go through the setup and configuration yourself, you can use the following projects to get going quickly with a more IDE like Vim. The two projects below include many of the plugins I mention above:
I recommend you don't use them though. You'll learn much more if you take the time to configure vim yourself and install plugins in a staggered process to learn each one well.
VimAwesome can be a good place to browse for Vim plugins and find useful and popular ones.
In addition to those scripts you may want to look at some of the following patches for Vim. I haven't used them so not sure of the quality but most of them look quite promising. You can view all the patches here, the ones that make vim more of an IDE are:
With those scripts and patches installed, you should have something in Vim pretty close in features to Visual Studio or Eclipse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With