6 ms·
I use Visual Studio 99% for my coding, and Visual Studio Code for 1%. I would prefer to use VIM for editing code or any text because it's a 1000% better than Vi
by kasajian 6y ago
I use Visual Studio 99% for my coding, and Visual Studio Code for 1%.
I would prefer to use VIM for editing code or any text because it's a 1000% better than Visual Studio. The problem is, there's 50 other things you do with Visual Studio that is not editing code, and for those things VIM is not that much better, or better at all.
It's not even good at dealing with more than one file. Yeah, I have nerd-tree and have tried explore. meh.
I'll think about it when ReSharper comes up with an add-in for VIM.
Yes, I know Visual Studio Code has VIM mode. . and Visual Studio used to (or maybe still does), but then you're outside the norm of that environment. Ever Visual Studio Code extension is tested with Visual Studio Code. But they're not all tested with Visual Studio Code in VIM mode. That's why I like to stick with defaults and the base-case.
What's needed is for VIM itself to have features beyond just editing text files. It's never going to compete with Visual Studio or Visual Studio code until VIM itself adds those features that make a viable IDE replacement. Today, it ain't.
- d33 6y agoHere's my suggestion: give neovim nightly a try. With built-in language server support, many new features are easy to add. You can install it like this: wget https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz -O- | tar zxvf - -C /usr/local --strip=1 And the relevant part of dotfile that adds LSP support and enables a few language servers: https://github.com/d33tah/dotfiles/blob/master/dotfiles/vimrc#L118 https://github.com/d33tah/dotfiles/blob/master/dotfiles/vimr... You'll also need to run: nvim +PlugInstall +UpdateRemotePlugins +qa Personally I was surprised many times how easy it was to add decent support for new languages. It really is a godsend.
- AlexSW 6y agoFor dealing with multiple files at once, I would recommend using buffers and ideally a fuzzy finder, such as fzf. I would almost advise removing nerdtree while you get used to using buffers, as it probably shouldn't be used for a lot of tasks that it's tempting to use it for. I also use a buffer explorer plugin and LSP servers too (go to definitions, find references, etc.), but buffers and fzf alone can be very powerful.