At work, I mainly program in C++ and when it needs to be graphical/multi-threaded/network enabled use Qt. Our environment is windows and I currently program w/ a combination of Visual Studio(debuggin purposes only) and Qt-Creator for actual coding (like their autocomplete better than VS).
At home, I mainly use linux (fedora) and still use Qt-Creator as I haven't found an alternative. I use VIM for pretty much everything else (editor wise) and basically LOVE everything about it.
I want to be able to use VIM for my programming (both at home AND work) but find that I'm not as productive without autocomplete.
Anyone have a good tutorial, forum post, or personal experience on how to get 'good' autocomplete (yes... not exactly very descriptive... 'good'...) for C++ and Qt in VIM? I believe it is very for linux/vim/qt/c++ but is it also possible for windows?
Thanks
Take a look at this: http://vim.wikia.com/wiki/VimTip1608
A pain to configure, but after all you'll get VS-like autocompletion + all the tasty omnicompletion stuff like Ctrl-P
to complete the word, Ctrl-X-Ctrl-L
to complete the line etc.
I don't think I have any magic settings in my vimrc which enables this, but I can just start typing and then (while still being in insert mode) press Ctrl+N
to have vim suggest completions. It seems to check the open buffers for possible completions. It's not perfect, but in 98% of the cases it does what I want and there's no setup work needed.
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