VIM vimrc and 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 desert

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 or make it permanent by

$vim ~/.vimrc

Add this lines + extra

syntax on
set mouse=
set background=dark
colorscheme evening
set pastetoggle=<F3>

set mouse= will make paste easier instead of having to press shift after upgrading to ubuntu 26.04.

web security linux ubuntu Raspberry   git   javascript python django Laravel drupal php apache mysql  MongoDB AWS data  ML AI