1, Vundle plug-in: Https://github.com/gmarik/Vundle.vim
For managing VIM plug-ins, installing this plugin requires that Git is installed on the system, refer to the link: Git for Windows installation and basic settings
Create a new folder bundle under the Vim/vimfiles path, and then clone the Vundel project on GitHub under this folder:
After the completion of the bundle folder will see the content under the Vundle.vim folder, to start configuring the Vundle;
Add the following code to the. vimrc file:
1 filetype off2 3 "path of the Vundle4 Setrtp+= $VIM/vimfiles/bundle/Vundle.vim5 "installation path of the plugin6Call Vundle#begin ('$VIM/vimfiles/bundle/')7 8Plugin'Gmarik/vundle.vim'9Plugin'L9'Ten One Call vundle#end () AFileType plugin indent on
Vundle
Execute the command in Vim's normal mode after saving : Bundleinstall can download the plugin and see the done word in vim after downloading.
Next, you can easily manage the plugin with Vundle;
Note:
If you do not specify a path parameter in call Vundle#begin (), the default save path is C:\users\***\.vim
Reference:
Settings Reference: Https://github.com/gmarik/Vundle.vim
Sww_simpcity "using Vundle to manage vim plugins" article: http://blog.csdn.net/sww_simpcity/article/details/18504071
Problems with Bundlesearch under Windows: http://www.cnblogs.com/pigzhu/p/3320755.html
Catalog problem: http://www.cnblogs.com/ppboy_dxh/p/3226938.html
2, Vim-airline plug-in: Https://github.com/bling/vim-airline
Plugin powerline arrow in Windows display garbled problem, did not find a good solution, with this plug-in replacement;
(The Vundle plugin is installed by default in the following steps)
Add the following code to the call Vundle function:
?
Plugin ‘bling/vim-airline‘ |
Then use the input command Bundleinstall install the Vim-airline plug-in;
After installation restart Vim to see the effect, using the default configuration, you need to change the reference on GitHub on the introduction;
3, Ctags plug-in: http://ctags.sourceforge.net/
Easy code reading, other plugins such as taglist need this plugin support
Download the Windows-enabled Ctags to the website:
After decompression, find CTags.exe copied to the C:\Windows\System32 directory, so that in any directory can call CTags;
Then run the command ctags-r in the source code directory to generate the tags file, such as (My Code is on D-disk):
You can then see the tags file in the D drive, and then add the settings about Ctags in _VIMRC:
1 Map <F12>:!ctags-r--c++-kinds=+p--fields=+ias--extra=+q .<cr>2 IMAP <F12> < Esc>:!ctags-r--c++-kinds=+p--fields=+ias--extra=+q .<cr>3set tags=D:\tags 4 Set Autochdir
Ctags
Ctags installation success, it is worth mentioning that if the source code directory changes, if the new file needs to run the Ctags-r command again, so in _VIMRC file map F12 shortcut keys used to regenerate the tags file;
Reference:
http://blog.163.com/[email protected]/blog/static/71988399201243064711872/
4, TagList plug-in: Https://github.com/vim-scripts/taglist.vim
displays an overview of the current code structure, increases the convenience of code browsing, can be installed directly with Vundle, and is added in VIMRC
' Taglist.vim '
After you execute the install command, add the code that sets taglist in VIMRC:
1 let Tlist_winwidth= 2 let tlist_show_one_file= 1 3 let tlist_exit_onlywindow= 1 4 let Tlist_use_right_window = 1 5 let tlist_file_fold_auto_close= 1 auto-collapse 6 " 7 nmap <silent> <F6>: TLIST<CR
TagList
Complete the plugin taglist settings, press F6 to see the effect;
5,MINIBUFEXPL plug-in: http://www.vim.org/scripts/script.php?script_id=159
Implementation of multi-file editing plug-in, with the bundle download seems to be incompatible, so go to the official web download Minibufexpl.vim copy to the C:\Program files\vim\vim74\plugin directory, add settings in the _VIMRC:
1 " by pressing CTRL+H/J/K/L, you can switch to the left and right window of the current window 1 " Press CTRL + ARROW to switch to the left and right window of the current window 1 " enable the following two features: Ctrl+tab move to the next window 1 " do not open the selected buffer in a window that is not editable (such as the TagList window)
Minibufepl
6, Winmanager plug-in: Https://github.com/vim-scripts/winmanager
Implement the management of the Vim window, add it directly with the bundle, and then add the settings in the _VIMRC:
1 let g:winmanagerwindowlayout='fileexplorer| TagList'2 Let g:winmanagerwidth =3 nmap wm:wmtoggle<cr>4 " defining shortcut Keys 5 nmap <silent> <F7>:wmtoggle<cr> 6"" automatically open when Vim is turned on
Winmanager
Shortcut key F7 can open/close the corresponding window;
7, The-nerd-tree plug-in: Https://github.com/vim-scripts/The-NERD-tree
You can browse the file system and open the file, and also use the bundle to install directly, Plugin ' The-nerd-tree ', add the settings:
1Nmap <silent> <F2>:nerdtreemirror<cr>2Nmap <silent> <F2>:nerdtreetoggle<cr>3 4 "Window Size5Let nerdtreewinsize= - 6 "Window Position7Let nerdtreewinpos=' Left'8 "whether line numbers are displayed by default9Let nerdtreeshowlinenumbers=1Ten "whether to show hidden files by default OneLet nerdtreeshowhidden=0
The-nerd-tree
Reference:
Http://www.cnblogs.com/fujinliang/archive/2012/03/19/2405782.html
http://rokin.iteye.com/blog/475274
http://blog.csdn.net/tangbin330/article/details/8654770
Http://www.oschina.net/p/vundle