Vim Tip: Changing color schemes

vim.png

Simple enough.  Make the directory /home/username/.vim/colors, save any color scheme files you find or write yourself to this directory.

To use a particular color scheme you can issue the command :colorscheme <name of color scheme> or place colorscheme <name of color scheme> in your ~/.vimrc file.

Here’s some color schemes to play with:

Desert, Wombat

If you wish to have different color schemes between vim and gvim, simply put this in your .vimrc file (changing the theme names of course)

if has(“gui_running”)
colorscheme inkpot
else
colorscheme metacosm
endif

Related Posts

Comments are closed.