开发者

Change my CTAGS theme

I'm using ctags, which I installed in Ubuntu. When I autocomplete something in vim, the autocomplete text i开发者_如何学编程s white on a bright pink background. It's quite painful to look at. Is there a way to change these colors? I haven't found a way to do this, and none of the docs mention anything about theme or colors. Thanks!


I figured it out. You can change the color using:

:highlight Pmenu ctermbg=<color> ctermfg=<color>

Pmenu is PopupMenu, the menu tab-completion brings up. To format the currently selected item in the Pmenu, use PmenuSel.

ctermbg is the background color, and ctermfg is the foreground color. These can be named common color names such as red, green, blue, etc.

I set mine like this in vimrc:

hi Pemnu ctermbg=blue ctermfg=white
hi PmenuSel ctermbg=yellow ctermfg=black


Adding to the previous answer by 'mouche' for setting the colors for terminal vim, the following commands can be used to set the color of the pop-up menu for GVim:

:highlight Pmenu guibg=brown guifg=white :highlight Pmenusel guibg=yellow guifg=black gui=bold

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜