4 ms·
I am a long time Vim user but I have never ever managed to get c++ tag completion work consistently there. At some point I just stopped trying - went to Qt crea
by yoz-y 11y ago
I am a long time Vim user but I have never ever managed to get c++ tag completion work consistently there. At some point I just stopped trying - went to Qt creator and turned on Vim plugin there. The experience (for C++) is just vastly superior. The IDE integrates with CMake natively, the debugger is graphical and works, the symbol navigation over all project is blazing fast, I have real refactoring etc...
I still use Vim a lot, for JavaScript, for text, for remote sessions... But when a tool with real semantic highlighting and understanding of code is available (with a Vim plugin) then I'll take that.
- inDigiNeous 11y agoCheck out https://valloric.github.io/YouCompleteMe/ https://valloric.github.io/YouCompleteMe/ C/C++ completion for VIM. Of course an IDE like QT Creator does many things better. But it's a tradeoff always.
- anon4 11y agoUnless your project uses CMake, YCM is really hard to set up. You basically have to write a parser for your build system and plug it in. And that doesn't solve the problem of having one file compiled with different flags, which happens frequently. And it won't do completion in headers because those aren't actually compiled. It all really comes down to Vim not having the concept of workspaces and projects - Vim only views files as the filesystem sees them, rather than as your build tools see them. That, to me, is Vim's greatest failing and biggest source of gripes.