How to set default vim colorscheme

Joseph Mastey picture Joseph Mastey · Jun 4, 2010 · Viewed 221.6k times · Source

The latest upgrade of Ubuntu made my vim colorscheme unusable. I know how to set it manually (:colo evening, for example), but I want to set the default for all vim sessions. I see reference in other places to .vimrc, but the right location and syntax have eluded me thus far.

Answer

chickeninabiscuit picture chickeninabiscuit · Jun 4, 2010

Put a colorscheme directive in your .vimrc file, for example:

colorscheme morning

See here: http://vim.wikia.com/wiki/Change_the_color_scheme