Sunday, December 12, 2010

Linux (FC) at the VI command line tips add line numbers

In the VI command mode input ": setnu" or modify the configuration file "vi vi ~/.vimrc", add "setnu" in VI command mode input ": setnu", line number.

But want to make this setting in the configuration file, VI is # vi ~/.vimrc in this file, add setnu. In addition, Linux following a .vimrc file of the sample, and the file number of the configuration information for the detailed description. First look at this sample file # locatevimrc Note: here used the locate command. If you first use the locate command to find the things, the system will inform you should first run updatedb. "" If so, you first take the time to run it. # Updatedb and then find the file # locatevimrc:/usr/share/vim/vim63/vimrc_example.vim then we copy the file was renamed to the existing local .vimrc.

No comments:

Post a Comment