VIM使用(一) VIM插件管理利器-vundle

有关VIM的文件网上一大堆,这里只是记录一下我新配置环境的步骤.以备查看参考.css

sudo apt-get install git
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

 

 安装配置vundlehtml

第一步,建立VIM的目录和配置文件:html5

在~目录下,添加.vimrc文件和.vim/bundle/vundle目录.python

第二步,在.vimrc中添加Vundle的配置内容:git

 

"use vundle to manage plugin
filetype off
set nocompatible
set rtp+=~/.vim/bundle/vundle
call vundle#rc()

 

注:最好是将这部份内容放到此配置文件的最前面  github

 

安装插件sql

打开VIM,在命令模式下执行 vim

:BundleInstall

等等一下子就自动安装完成了.spa

 

添加插件操做插件

 

这个Vundle能够自动去相应的官方去查找相应的制做,自动下载,例如,要使用tagbar,则在.vimrc添加

Bundle "majutsushi/tagbar"   

而后一样在命令模式下执行下面命令便可自动安装了:

:BundleInstall

 

常见插件参考:

" Syntax
Bundle 'asciidoc.vim'
Bundle 'confluencewiki.vim'
Bundle 'html5.vim'
Bundle 'JavaScript-syntax'
"Bundle 'mako.vim'
Bundle 'moin.vim'
Bundle 'python.vim--Vasiliev'
Bundle 'xml.vim'
 
" Color
 
Bundle 'desert256.vim'
Bundle 'Impact'

Bundle 'vibrantink'
Bundle 'vividchalk.vim'
 
" Ftplugin
Bundle 'python_fold'
 
" Indent
"Bundle 'indent/html.vim'
Bundle 'IndentAnything'
Bundle 'Javascript-Indentation'
Bundle 'mako.vim--Torborg'
Bundle 'gg/python.vim'
 
" Plugin
Bundle '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'
相关文章
相关标签/搜索