Under command line, enter a command
You must add sudo, otherwise you are not authorized to edit VIMRC.
2.
Configure for my vim. There are a lot of configurations, so I've just installed something that I find useful.
Enter them to make your vim more beautiful and comfortable.
Set Nu//on the left line number
Set TabStop//tab length to 4
Set nobackup//Overwrite files without backup
Set Cursorline//Highlight when forward
Set ruler//display status line at cursor position in lower right corner
Set autoindent//Auto Indent
After saving, the configuration is complete.
=============================================================================================================== =================================================================================
Vim in the TagList plug-in Installation: (Query the next vim has what plug-ins, plug too much, feel this is more practical.) )
The TagList plugin is a vim plugin that is based on the ctags to display the current code structure in a split window next to the Vim Code window, adding a convenient level of code browsing.
TagList is based on the tags file, need to ctags build tags file.
Installing Ctags,redhat and CentOS can perform yum install Ctags,debian and Ubantu can perform apt-get install Ctags
Download TagList, address is http://sourceforge.net/projects/vim-taglist/files/vim-taglist/
Unzip the Taglist_45.zip. You can see that there are two directories of Doc and plugin, structured as follows
Taglist_45
|| --------doc| \--------Taglist.txt
|\--------plugin \--------Taglist.vim
Execute the following shell command, which is the installation complete
CP doc/taglist.txt /usr/share/vim/vim72/doc/cp plugin/taglist.vim /usr/share/vim/vim72/plugin
How to use:
In the source directory, execute ctags-r to each directory recursively create tags file
Use VIM to open the source file, execute tlist in command mode, you can enable TagList plug-in,<f1> to view the TagList Help information