Fandom

Vim Tips Wiki

Omni completion popup menu

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 1486 Printable Monobook Previous Next

created January 23, 2007 · complexity basic · author RedBeard0531 · version 7


The omni complete feature in Vim is great. Here are some suggestions for working with the popup completion menu.

Setting the colorEdit

Try the following command to improve the color of the popup menu (add to your vimrc if you always want this choice):

:highlight Pmenu guibg=brown gui=bold

In console Vim, you might want a command like this:

:highlight Pmenu ctermbg=238 gui=bold

To see how different color schemes look, try (see view all colors):

:runtime syntax/colortest.vim

Better still would be to use a color scheme that is designed with the completion menu in mind. For example, marklar.vim Dark colorscheme based on green chalkboard.

Using SuperTabEdit

The SuperTab plugin can be used to avoid needing to press Ctrl-X then Ctrl-O to invoke the popup completion menu. With SuperTab installed, the following setting means you can just press Tab instead.

let g:SuperTabDefaultCompletionType = "<C-X><C-O>"

You may also try the context value, which lets SuperTab decide which completion mode to use and should play well with OmniCompletion:

let g:SuperTabDefaultCompletionType = "context"

ReferencesEdit

CommentsEdit

Also on Fandom

Random Wiki