VIM Editor |
Mostly every developer tries VI/VIM editor in dev lifespan.
Like other features, if you need to check the line number you need to play with the vimrc file.Now let's explore the vimrc file, you can check the URL for more.
Now open the vimrc file by the following command:
vim ~/.vimrcAfter the file is opened in the vim editor press
iwhich will get you into insert mode.
Now at the end of the page put this if it's not there in the file
set numberNow save the file with the command
:wqNow onwards the vim session will display the line numbers by default.
Keep Coding and Keep Smiling :)