Share some of the vim's configuration and plugins

Source: Internet
Author: User

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-airlineis 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-startifyis 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.