Under CentOS let vim line numbers

CentOS may have n account, let Vim display line numbers, there are two methods: display line numbers only for the current user and all users displaying line numbers

I. display line numbers only for the current user
Enter the command: Vim ~/.vimrc
And then: set nu
Save: CTRL+z+z (or: wq! )
OK!
II. let all users displaying line numbers
Enter command:/vimrc
Vimrc files last added: set nu
Save: CTRL+z+z (or: wq! )
OK!
So no matter which user is displaying line numbers in Vim!!

Leave a Reply

Your email address will not be published. Required fields are marked *