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

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

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

 安装配置vundle

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

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

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

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

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

安装插件

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

:BundleInstall

等等一会儿就自动安装完成了.

添加插件操作

这个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'
 
原文地址:https://www.cnblogs.com/linux-sir/p/4675731.html