Introduction
In Linux, VIM as a text editor program. Users can set up VIM to use default display settings by creating a ~/.vimrc file in the user’s home directory. Anytime VIM starts, it will auto load these pre-set defaults. Set the file permissions for .vimrc to rw-rw—-.
Sample .vimrc file
In my opinion, the two most useful commands are set line numbers and set color scheme. Here is how you set them up in the .vimrc file.
"This is a comment in VIM
"9/24/24, me, file created
set nu
colorscheme slate
Get a list of available color schemes
:colorscheme[space][ctrl+d]
References: