4 ms·
I can thoroughly recommend vim for C++ development that doesn't stretch over too many files and directories. Especially with custom include paths and a constant
by lionkor 6y ago
I can thoroughly recommend vim for C++ development that doesn't stretch over too many files and directories. Especially with custom include paths and a constantly changing bigger project, vim becomes almost unusable for me.
I can very much recommend QtCreator. I don't use Qt, but as an IDE it's very well made. The fact that it can also do Qt isn't even apparent when you use it on normal CMake projects and the like.
Extremely solid syntax highlighting is also important to me, which, in vim, is horribly difficult if not impossible. If I want something nested like `std::this_thread::get_id` to be highlighted properly, want macros to be a different color, want local scope variables to be a different style than class-scope or globals, vim is out of the question.
So yes, I can recomment vim for C++ development as long as you're not using a ton of libraries and are okay with most of your code being the exact same color.
- spacechild1 6y agoI can also recommend QtCreator for C++ development! I regularly use it for my cross-platform open source projects (none of them are Qt based) and it works equally well on Windows, macOS and Linux.
- HeckFeck 6y agoAndreas Kling has used it to develop an entire operating system (Kernel to DE), so it can't be that bad.
- tcbawo 6y agoI agree, but I'll add that vim is much easier on a project where things are well organized and laid out. Some IDEs make it easier to find classes by name or navigate by click. This can lead to disorganization when many people are involved. I've found that in such an environment, there is a fixed overhead which makes vim much harder to use productively.
- hyperpl 6y agoI use a similar setup to the author's and coupled with ctags, I don't have any problem with massive projects and lots of 3rd party libraries.
- zwieback 6y agoI run QtCreator native on Raspberry Pi and it's actually usable but having Vim around for small platforms is still a good thing and basic Vi skills are pretty much mandatory since it's the "always there" editor. On the PC I don't see much reason not to use an IDE anymore. VSCode and Eclipse are both great free options and full Visual Studio is pretty great if someone else pays for it.
- fit2rule 6y ago>stretch over too many files With cscope as the front-end to vim, this problem rarely becomes unmanageable... especially if you get bindings set up and/or use NERDTree or better yet vim-vinegar .. https://github.com/tpope/vim-vinegar https://github.com/tpope/vim-vinegar