Online comparison of a good article: HTTP://COOLSHELL.CN/ARTICLES/1679.HTMLHTTP://COOLSHELL.CN/ARTICLES/11312.HTML1, VIM installation Nerdtree plug-in: First download, Official website: http://www.vim.org/scripts/script.php?script_id=1658 after decompression, the Plugin/nerd_tree.vim and doc/nerd_tree.txt are copied to ~/respectively. Vim/plugin and ~/.vim/doc directories. 2, use 1, in the Linux command line interface, input vim 2, input:nerdtree, enter.3, enter the current directory of the tree-shaped interface, through the keypad up and down, you can move the selected directory or file 4, the directory is preceded by +, press ENTER will expand the directory, the file is preceded by-number, press Enter in the right window to show the contents of the file, and the focus of the cursor to the right. 5, CTR+W+H cursor focus left tree directory, CTRL+W+L cursor focus to the right file display window. Press ctrl+w multiple times, the cursor automatically in the left-right window switch 6, cursor focus to the left of the tree window, press? Pop Nerdtree's help, press again? Turn off Help Display 7, enter: Q Enter, close the cursor in the window attached: Vim settings. VIMRC Settings:
Set number
"Set tab width and use spaces instead of tab
Set shiftwidth=4
Set tabstop=4
Set Expandtab
Set softtabstop=4
Map <F2>: Retab <CR>: wq! <CR>
"Set encoding and file encoding
Set Enc=utf-8
Set Fenc=utf-8
The search results Highlight
Set Hlsearch
The syntax highlighting
Syntax on
"Sets the current directory of the file browser
Set Bsdir=buffer
Set Autoindent
Set Cindent
Set Nopaste
Set Wrap
If $TERM! = "Linux"
Set Mouse=a
endif
"Map the F8 to the Nerdtree plugin
Map <F8>:nerdtree<cr>
Vim's Tree menu Nerdtree settings