Install the vim plug-in-use the vundle management plug-in (focus on section 3. Skip the first two sections)

Source: Internet
Author: User

Time: 2014.08.06

Location: dormitory

Bytes -------------------------------------------------------------------------------------

We decided to set up the vim environment tonight, mainly through various plug-ins, and then we can live a happy life.

I. Install the plug-in management plug-in pathogen

1. Pathogen is a plug-in management plug-in that facilitates the management of the plug-in Vim. With it, everything becomes easy. Download pathogen, Program Files \ Vim \ vim74 \ autoload.


2. Enable Pathogen

Add the following code to the configuration _ vmrc file:

call pathogen#infect()  
Save and open Vim. Run the colon command to generate the help document and confirm that the installation is successful.

:call pathogen#helptags()

Bytes -------------------------------------------------------------------------------------

Ii. Install the auto-completion plug-in supertab

2.1: http://www.vim.org/scripts/script.php? Script_id = 1, 1643

2.2 download and decompress the package, use Vim to open the supertab. VAB file, and run the colon command

:so%
2.3 Add the following code to the _ vimrc file. You can use the tab key to execute the automatic complementing function during document editing.

Let G: supertabretaincompletiontype = 2 "0-do not record the last Completion Method" 1-remember the last Completion Method, "2-remember the last Completion mode until you Press ESC to exit the insert mode. Let G: supertabdefacomplecompletiontype = "<C-X> <C-O>" "set the default completion mode after pressing <tab>, the default is <C-P>," now changed to <C-X> <C-O>. about the completion method of <C-P>, "There are other completion methods, you can look at some of the following help:": Help ins-completion ": Help compl-Omni
Bytes -------------------------------------------------------------------------------------

3. Install plug-in management

3.1 When looking for and installing the plug-in, we found that this vundle plug-in is better than pathogen, So we switched to this. To install this plug-in, you need git. For example, run the following command:

git clone https://github.com/gmarik/vundle.git “D:\Program Files\Vim\vimfiles\vundle"


3.2 then modify the configuration file

Set nocompatiblefiletype off "first disable the file type set RTP + = ~ /. Vim/bundle/vundle "add the vundle path to the plug-in VIM path call vundle # RC ()" execute vundle initialization bundle 'gmarik/vundle' "to add vundle to the bundle, if there is a problem with this sentence, just remove it. Please kindly advise the reason filetype indent plugin on "open the file type after installation
3.3 save configuration ~ After vimrc ~ You can automatically install various other plug-ins by adding code similar to the following in vimrc, so you don't have to go down one by one to save trouble.

" My Bundles here:" vim-scripts repos" SyntaxBundle 'asciidoc.vim'Bundle 'confluencewiki.vim'Bundle 'html5.vim'Bundle 'JavaScript-syntax'Bundle 'mako.vim'Bundle 'moin.vim'Bundle 'python.vim--Vasiliev'Bundle 'xml.vim'" ColorBundle 'desert256.vim'Bundle 'Impact'Bundle 'matrix.vim'Bundle 'vibrantink'Bundle 'vividchalk.vim'" FtpluginBundle 'python_fold'" IndentBundle 'indent/html.vim'Bundle 'IndentAnything'Bundle 'Javascript-Indentation'Bundle 'mako.vim--Torborg'Bundle 'gg/python.vim'" PluginBundle 'The-NERD-tree'Bundle 'AutoClose--Alves'Bundle 'auto_mkdir'Bundle 'cecutil'Bundle 'fcitx.vim'Bundle 'FencView.vim'Bundle 'FuzzyFinder'Bundle 'jsbeautify'Bundle 'L9'Bundle 'Mark'Bundle 'matrix.vim'Bundle 'mru.vim'Bundle 'The-NERD-Commenter'Bundle 'project.vim'Bundle 'restart.vim'Bundle 'taglist.vim'Bundle 'templates.vim'Bundle 'vimim.vim'Bundle 'ZenCoding.vim'Bundle 'css_color.vim'Bundle 'hallettj/jslint.vim'
Note that the vim plug-in name may have duplicate names. In this case, you need to add the author's last name after the plug-in, such as bundle 'javascript-indentation ', if the plug-in name is empty or has a slash, You need to replace the space and slash-

3.4 open vim and execute the bundleinstall colon command to complete the installation. If an error is prompted, the name may be incorrect. Go to GitHub and vim.org to search for it.

3.5 execute the colon command bundlesearch command at the same time to find the plug-in, which is very convenient. The other commands are listed as follows:

"Brief help -- The vundle command is used later.": bundlelist-list configured bundles ": bundleinstall (!) -Install (update) Bundles ": bundlesearch (!) Foo-search (or refresh cache first) For foo ": bundleclean (!) -Confirm (or auto-approve) removal of unused bundles"

Bytes -------------------------------------------------------------------------------------

Iv. Installation of CTAG

This plug-in is specially installed. In addition to the bundle, The ctags.exefile in the file is stored in the same directory as gvim.exe. My files are in the/Vim/vim74 directory. If the file is not copied, the following error occurs:

Taglist: exuberant ctags (http://ctags.sf.net) not found in path. plugin is

The last configured Vim page

Enjoy the magic ~









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.