Sidebar Ads

Monday, March 16, 2020

Vim editor(color scheme)

Hello everyone, Today I will explain to you how to set numbers and your desire color scheme background permanently on Vim editor for Linux.

First of all, you have to open your terminal and you have to type the command " locate vimrc  " 



Now, you have to turn your host into root host, In some Linux systems you have to type sudo , but in my case the system supports su.


  Then, after shifting in root host you have to do the following tasks shown below.

 1) First, find the file location of vimrc (In my case it is /etc/vimrc)
 and then type the highlighted command "vim /etc/vimrc" as shown in below image.



So, It will open below the screen, and then you have to type
-> set numbers
-> colorscheme desert

I have selected desert background because I prefer that colorscheme, so you have to type above commands into vim screen of  /etc/vimrc, and that should be in sequence of  "set".
It shown in below the image,

     And then you have to save and exit through  (:wq)     
    It's done....
 
    Now , you can enjoy your desire colorscheme and set numbers permanently in vim editor.

                                        Thank you for visiting



0 comments:

Post a Comment