vim omnicomplete
Using omincomplete with my current vimrc I have the problem that the popup menu blocks the definitions in the split window behind it.
There is much discussion of getting tags for different languages, .e.g. C++ for previous versions, or for changing colors, but not a lot for this issue.
Vim has the ability to color syntax highlight nearly 500 languages. Part of this highlighting includes knowing what keywords are part of a language. Many filetypes already have custom completion scripts written for them, the syntaxcomplete plugin provides basic completion for all other filetypes. It does this by populating the omni completion list with the text Vim already knows how to color highlight. It can be used for any filetype and provides a minimal language-sensitive completion. To enable syntax code completion you can run: setlocal omnifunc=syntaxcomplete#Complete You can automate this by placing the following in your .vimrc (after any
":filetype" command): if has("autocmd") && exists("+omnifunc") autocmd Filetype * \ if &omnifunc == "" | \ setlocal omnifunc=syntaxcomplete#Complete | \ endif endif
The above will set completion to this script only if a specific plugin does not already exist for that filetype. Each filetype can have a wide range of syntax items. The plugin allows you to customize which syntax groups to include or exclude from the list.













