VIM colors

Posted under » Linux on 23 Apr 2024

When you use VIM, the syntax highlighting may be off or not to your liking.

There are in-build colorschemes for VIM. To see the list

:colorscheme Ctrl-D 

Or you can

$ ls /usr/share/vim/vim81/colors | grep .vim

To set colorscheme

:colorscheme evening

You can install additional colorscheme or set your own colorscheme but I won't be covering that.

Let's say you are a morning person and want to set this as your default colorscheme. Then you have to define it by

$vim ~/.vimrc

Add this lines

syntax on
set background=dark
colorscheme morning
set pastetoggle=<F3>

You can always become an evening person by changing this setting.

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data