When we use VI or VIM, if we want to display line numbers, we may do this: switch to command mode, then enter set Nu, then press ENTER to display, and we are writing programs, sometimes we would like to press ENTER, the cursor is not always at the beginning of the start, Instead, it aligns with the first non-whitespace of the previous line, that is, the so-called indentation function, which allows you to enter set autoindent in command mode. But every time this input is too troublesome, can you use the VIM command to automatically set the function when editing it?
Briefly describe my configuration steps. The following table is the environmental parameters of vim (in the Book of Bird Brother)
Above are the birds in the private food inside, the following simple record my settings, and later want to add the function to add it on the line
1, use the command: Cd/etc/vim into the configuration directory
2, use the command: Vim VIMRC edit VIMRC file, my Ubuntu need to use command: sudo vim VIMRC
3, in the last line of the VIMRC file, add the options you want to set, is I want to make vim default some features
4, then use WQ to save it, so that the setting is successful.
http://blog.csdn.net/mybelief321/article/details/9011707
VIM environment variable configuration, background color configuration