This plugin offers as-you-type keyword completion and tab complete in less than 100 lines of code.
In action : https://asciinema.org/a/5y5ggl0pseprxopox06a2vt5s
vim version >= 7.4
With vim-plug
:
Plug 'maxboisvert/vim-simple-complete'
Or use your prefered way.
After three (3) typed keywords (\k), the completion menu becomes visible. Press Tab to select a match.
Press Tab to trigger completion when the cursor is in front of a completable character. When the completion menu is visible, use Tab/Shift-Tab to rotate selection.
See available options.
Personally, I don't use included files and tag complete for better performances. Add this to your vimrc for these options :
set complete-=t
set complete-=i
Copyright (c) 2016 Maxime Boisvert.
This program is distributed under the VIM LICENSE.