This article mainly shares the simple configuration of vim in Linux
★ Location of configuration Files
In the directory/etc, there is a file named VIMRC, which is the public vim configuration file in the system and is open to all users. In each user's home directory, you can create a private configuration file, named: ". VIMRC".
1. switch from root to user.
2. Set syntax highlighting
Syntax on (open with Vim. VIMRC for writing)
3. Display line Numbers
Set Nu (Open with Vim. VIMRC for writing)
4. Set the number of spaces entered is 4
Set shiftwidth=4 (with Vim open. VIMRC for writing)
5. Installing the TagList Plugin
https://sourceforge.net/projects/vim-taglist/files/vim-taglist/
Download the Taglist_xx.zip, put the extracted doc file to ~/.vim/doc, and put the extracted plugin file to ~/.vim/plugin
Then add the ~/.VIMRC in the
Let tlist_show_one_file=1
Let Tlist_exit_onlywindow=1
Let Tlist_use_right_window=1
6. Install the File Browser and window Manager plugin: Winmanager
Http://www.vim.org/scripts/script.php?script_id=95
Unzip the Winmannager.zip, (as with the installation taglist) put the extracted doc file to ~/.vim/doc, the extracted plugin files to ~/.vim/plugin
Then add the ~/.VIMRC in the
Let g:winmamagerwindowlayout= ' fileexplorer| TagList '
Nmap wm:wmtoggle<cr>
7. Installation complete and use of taglist and Winmannager
TagList: Enter Tlist in the bottom row mode
Winmanager: Enter WM in normal mode
Simple configuration of Vim in Linux