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.

Get a list of available color schemes

References:

https://phoenixnap.com/kb/vim-color-schemes

https://thelinuxcode.com/vimrc_tutorial

Related Posts