View original Gist on GitHub
Tags: #vim #autocomplete
filetype plugin on set omnifunc=syntaxcomplete#Complete
<C-x><C-o>
Vim also provides the native command <C-n> for autocompletion based on words existing in all opened files (buffers).
<C-n>