Configure the Default Settings of Vim editor
We have to configure the Vim editor configuration file (.vimrc) to change the default settings of Vim editor, so whenever the editor opens it loads with the default settings, to configure the default settings follow the below steps,
- Please open the file in Vim editor to configure it
vi ~/.vimrc
- Configure the default setting as per your requirements,
- For example, if you want to turn on the text/syntax highlighting by default when you open the vi editor add the command syntax on
- When you are done with the configuration Press Esc to exit the insert mode
- Use:wq command to save the changes and exit the editor
- After saving the changes whenever you open the vim editor it will open with the default settings you set in the configuration file.
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.