Chinese Installation Manual
Installation method:
Download the Chinese Help package on the following website:
$wget http://nchc.dl.sourceforge.net/sourceforge/vimcdoc/vimcdoc-1.5.0.tar.gz
after decompression, there is a Doc folder, the contents of which are copied to ~/.vim/doc, or the VIM installation directory in the Doc directory, the Help information in Vim is already in Chinese.
Note:
If you cannot display Chinese, add the following sentence to the ~/.VIMRC:
Set HELPLANG=CN
Look:
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/82/10/wKiom1dJlKjRfw4dAAEW5h0GJdc497.png-wh_500x0-wm_3 -wmp_4-s_2451707450.png "title=" Qq20160528205304.png "alt=" Wkiom1djlkjrfw4daaew5h0gjdc497.png-wh_50 "/>
Syntax highlighting
Syntax on
3. Line break
Set Nu
4. Set the number of spaces in the indent to 2
Set shiftwidth=2
5. InstallationTagListPlug - ins
http://www.vim.org/scripts/script.php?script_id=273
download unzip complete, will extract out /.vim/doc, Extract the contents copied to ~/.vim/plugin
6.
Let Tlist_show_one_file=1let tlist_exit_onlywindow=1let tlist_use_right_window=1
6.Installer Browser and window manager--Plug - ins: Winmanager
http://www.vim.org/scripts/script.php?script_id=95
download winmanager.zip2.x version above.
decompression winmanager.zip , the extracted doc/. Vim/doc, will extract the
/.vim/plugin
7. ~/.VIMRC
Let g:winmanagerwindowlayout= ' fileexplorer| TagList ' Nmap wm:wmtoggle<cr>
8. then restart vim, open ~/xxx.c or ~/xxx.cpp, in the normal state to lose "WM", you will
See the effect
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/0F/wKioL1dJmQeCPuCbAAC-lz2AqF8319.png-wh_500x0-wm_3 -wmp_4-s_1368295092.png "title=" Qq20160528210756.png "alt=" Wkiol1djmqecpucbaac-lz2aqf8319.png-wh_50 "/>
9. Auto-Complete
:inoremap ( () <ESC>i 11 :inoremap ) <c-r>=closepair (') ') <CR> 12 :inoremap { {<cr>}<esc>o 13 :inoremap } <c-r>= Closepair ('} ') <CR> 14 :inoremap [ []<ESC>i 15 :inoremap ] <c-r>=closepair ('] ') <CR> 16 :inoremap " " "<esc>i 17 :inoremap ' ' <esc>i 18 function! closepair (char) 19 If getline ('. ') [Col ('. ') - 1] == a:char 20 return " \<right> " 21 else 22 return a:char 23 endif 24 endfunction 25 filetype plugin indent on 26 "Open File type detection, added this to use the smart complement 27 seT completeopt=longest,menu
Configuration of Vim