Friday, March 8, 2013

Random vi shortcuts

Toggling syntax highlighting

:syntax [on/off]

Changing the colorscheme

:colorscheme [colorscheme]

Short form (actually can be anything from colo to colorscheme):
:colo [colorscheme]

Some default colorschemes:torte, morning, evening, desert, pablo etc. To cycle through the available colorchemes press tab after the command
To set a colorscheme by default for a profile edit ~/.vimrc and add the following lines:

syntax on
colorscheme [colorscheme]