4 ms·
Well, TBH, that sounds naïve. I use vim for way more than 10 years, have 500 lines of vimrc with multiple plugins installed, know pretty much every shortcut by
by krick 8y ago
Well, TBH, that sounds naïve. I use vim for way more than 10 years, have 500 lines of vimrc with multiple plugins installed, know pretty much every shortcut by heart, never use arrows and can somewhat write VimL. It is really hard for me to code w/o vim-layout, so I was struggling for a long time, but finally moved onto using JetBrains products (with vim-mode plugin, which is meh, but better than nothing still). I don't really like it, but I have to finally admit, that vim with plugins is not "almost an IDE". Mileage would vary for different languages, but the point is that IDEA/PhpStorm/PyCharm can suggest me so much more than Vim, because it knows the AST, and writing plugins to operate it is currently easier than with vim. I mean, in theory you could install whatever backend you want onto vim, that does AST-parsing and autocompletion, there already exist pretty neat YouCompleteMe, jedi-vim (for python) and even heavy artillery such as eclim, but unfortunately it's all far from "solid support", and VimL is not the most friendly environment to write plugins for.
I really wish there was an IDE that would be IDE-first (building an AST for each file, and using it for most of the functionality + making it easily usable in the scriptable plugins), but had the UI and usability of vim, but there doesn't seem to be any.
- ma2rten 8y agoI am currently writing C++ code. The vim plugins I am using are YouCompleteMe, Syntastic, UltiSnips and TermDebug. In combinations these plugins give me most functionality that an IDE has. Like I said, Clion (which is a JetBrains product) has some great functionality which goes beyond that. The one I found the most useful is the refactoring functionality. I actually opened Clion just to refactor some code on Friday. But it also has drawbacks. I am working a very large codebase and Clion is very slow.
- sagartewari01 8y agoWhat's the loc size of codebase? I've been using clion on blender (several million loc) and it runs pretty neat.
- ma2rten 8y agoI work at Google, so it's in the billions.
- sagartewari01 8y agomind blown good luck with that. edit: Let's take 2 billion. Assuming 60 characters per line, that'll take around 120GB just to keep the text in memory! Would the ast representation of whole codebase be smaller or larger in size?
- nickjj 8y agoYou may want to keep an eye on https://microsoft.github.io/language-server-protocol https://microsoft.github.io/language-server-protocol and https://github.com/w0rp/ale https://github.com/w0rp/ale. Any editor that supports it will have very very high quality auto complete and other IDE-like benefits like jumping to definitions. It's still in its early stages but it's shaping up to be a game changer if you want those features.