How to write a VIM color scheme?

后端 未结 5 606
慢半拍i
慢半拍i 2021-01-30 08:49

I have been looking around for VIM color schemes and found some great ones out there (esp. by using http://code.google.com/p/vimcolorschemetest/), but I always want to change a

相关标签:
5条回答
  • 2021-01-30 09:24

    Launch vim, say ":help syntax", it has quick start etc.

    For the complete templates look at your installation:

    colorschemes are in /usr/share/vim/vimcurrent/colors/

    languages syntax in /usr/share/vim/vimcurrent/syntax/

    0 讨论(0)
  • 2021-01-30 09:31

    I didn't watch the "Creating colorschemes for Vim" episode of VIMcasts, but the others are really good.

    0 讨论(0)
  • 2021-01-30 09:33

    colorschemes are actually vim scripts. You use the hi command for coloring, which works like hi TextType guifg=#hexforegroundcolor guibg=#hexbgcolor gui=bold/italic/underlined/undercurled (assumed you use gvim). If you type :hionly, you get a complete list of text types with their current highlighting
    see also http://vimdoc.sourceforge.net/htmldoc/syntax.html#:colorscheme

    0 讨论(0)
  • 2021-01-30 09:34

    Vivify lets you interactively create vim colorschemes with color pickers and previews your scheme using several code samples.

    0 讨论(0)
  • 2021-01-30 09:49

    May be you can find this colorscheme template useful: http://www.vim.org/scripts/script.php?script_id=106

    The original description is

    "The philosophy here is to provide a ready-to-uncomment list of highlight commands for all the important groups. Then you can deviate from the default until you come up with one you like."

    0 讨论(0)
提交回复
热议问题