Reprinted from Http://veerkat.me/blog/posts/fen-xiang-yi-xie-vim-de-pei-zhi-he-cha-jian.htmlVundle
The first thing you have to mention is Vundle, which is a VIM plugin manager that uses git to manage your plugins, just .vimrc
add the plug-in name to the configuration file. Download and install the plug-in work can be handed over to Vundle, is very convenient.
Https://github.com/VundleVim/Vundle.vim
Vim-airline
vim-airline
is an enhanced VIM status bar plugin, and vim-powerline
almost, but more lightweight.
However, because many of the symbols in the status bar use a special font, you may need to install a patched font, or a lot of symbols will not display properly, in the Vim-airline FAQ has detailed instructions.
Vim-startify
vim-startify
is a change the start interface plug-in, used after the start of Vim will not see the version of the interface, but some shortcuts, such as recently opened files, their own bookmark set, as well as session, and so on, and can be opened quickly, very practical.
Https://github.com/mhinz/vim-startify
Some of the plugins below will make your vim more like an IDE
winmanager
: A window Management plugin that allows you to split your vim window into multiple windows, each displaying different information.
taglist
: A plugin based on ctags that displays the current code structure overview in a split window next to the Vim Code window.
NERDTree
: A file Tree browse plugin
bufexplorer.zip
: A plug-in that provides buffer browse management
After installing the above plug-ins, .vimrc
add the following lines in the configuration:
"Add Nerdtree and TagList to WinmanagerLet g:nerdtree_title="[Nerdtree]"function!Nerdtree_start () exec'Nerdtree'endfunctionfunction!nerdtree_isvalid ()return 1Endfunctionlet g:winmanagerwindowlayout='nerdtree| TagList'"End"use W-m as the startup Winmanager shortcut key, the following configuration is to solve the nerdtree display problemNmap WM:ifIswinmanagervisible () <BAR> wmtoggle<cr> <BAR>Else<BAR> wmtoggle<cr>:q<cr> endif <CR><CR>"tlist_ctags_cmd Set the command path for the Ctags you installedLet tlist_show_one_file=1Let Tlist_exit_onlywindow=1Let tlist_ctags_cmd='Your/ctags/bin/path'
When you open a file and then press the W plus m key, your vim becomes this:
The upper left corner of the window is the Nerdtree display of a file tree, you can see the file is located in the tree structure of the folder, the lower left corner of the window is taglist, the display of the current open Python file code structure including functions, classes, support jump, keyboard press \-b-e
This three-key can open a zero window for managing buffer. Now VIM is not more and more like an IDE.
Share some of the vim's configuration and plugins