Color Schemes in Vim editor
There are different colors schemes available in the Vim editor to personalize the editor and get syntax highlighting based on the preferences, to check the list of available colors in the Vim editor run the following command,
ls -l /usr/share/vim/vim*/colors/
After executing the above command you get the list of available color schemes which you can also see in the below output screenshot like desert, Murphy, evening, etc.
To apply Colorscheme in the Vim editor follow the below simple steps:
- Open the vim editor
- Press Esc if you are in insert mode
- Type the below command to apply the color scheme and press Enter
:colorscheme [colorscheme name]
Example:
:colorscheme evening
Enabling Syntax Highlighting in Vim Editor
In this article, we will cover how to highlight syntax in Vim editor. First, we look at what Linux and VIM editors followed by syntax highlighting in the Vim editor with examples and screenshots we will also look at different color schemes available and how we can change the default settings of Vim editor to enable syntax highlighting by default.
VIM Editor
VIM Editor is a text editor generally used in Unix/Linux systems and is well known for its efficiency and flexibility. VIM editor was initially developed by Bill Joy in 1976 as vi editor and later an improved version of vi editor was released in 1991 which is known as VI IMproved (VIM) editor.