Wednesday, March 13, 2013

How to list/switch color scheme in vim?

To list installed color scheme in vim.

Press [esc] to go to command mode
then key in the following:

:colorscheme then Space followed by TAB

the screen will show

:colorscheme blue

press enter to switch to this color scheme or press tab again to browse to other color scheme

Another way to list all install color scheme is

:colorscheme then Space followed by CTRL + d

this will display all the install color schemes as follow:

blue       delek      evening    murphy     ron        torte
darkblue   desert     koehler    pablo      shine      zellner
default    elflord    morning    peachpuff  slate

then you have to type:

:colorscheme elflord

to switch to the colorscheme you want.

No comments: