vim插件管理器Vundle.vim

vim插件管理器Vundle.vim

官方网站:

环境:
OS X 10.11.5
vim-7.3

一.安装Vundle

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

cat >>~/.vimrc <<HERE

set nocompatible              "去除VI一致性,必须

filetype off                  "必须

set rtp+=~/.vim/bundle/Vundle.vim

call vundle#begin()

Plugin 'Vundle.vim'


Plugin 'nerdtree.vim'

let NERDTreeWinPos='left'

let NERDTreeWinSize=30

map :NERDTreeToggle


Plugin 'vim-airline.vim'

set laststatus=2


Plugin 'minibufexpl.vim'

let g:miniBufExplMapWindowNavVim = 1

let g:miniBufExplMapWindowNavArrows = 1

let g:miniBufExplMapCTabSwitchBufs = 1

let g:miniBufExplModSelTarget = 1

let g:miniBufExplMoreThanOne=0

map :MBEbp

map :MBEbn


Plugin 'tagbar.vim'

let g:tagbar_ctags_bin='ctags'  "ctags程序的路径

let g:tagbar_width=30           "窗口宽度的设置

map :Tagbar            "设置F3为快捷键


Plugin 'python-mode'

filetype plugin indent on

let g:pymode_options_max_line_length = 160

map :PymodeRun

map :PymodeLintAuto


Plugin 'syntastic'

let python_highlight_all=1


 

call vundle#end()

HERE

vim插件管理器Vundle.vim



二.安装常用插件

在~/.vimrc的call vundle#begin()和call vundle#end()之间加上载入参数即可

1.状态栏增强美化vim-airline

git clone https://github.com/bling/vim-airline  ~/.vim/bundle/vim-airline.vim


2.资源管理NERDTree

git clone https://github.com/scrooloose/nerdtree ~/.vim/bundle/nerdtree.vim


3.多文件编辑标签

git clone https://github.com/fholgado/minibufexpl.vim ~/.vim/bundle/minibufexpl.vim


4.函数块折叠Tagbar

git clone https://github.com/majutsushi/tagbar ~/.vim/bundle/tagbar.vim


5.语法检查与高亮

PluginInstall scrooloose/syntastic


6.配色方案

PluginInstall altercation/vim-colors-solarized

https://github.com/altercation/vim-colors-solarized

https://github.com/jnurmine/Zenburn


实用至上,有兴趣的同学可以看看https://www.v2ex.com/t/47554

https://github.com/pangloss/vim-javascript

https://github.com/kien/ctrlp.vim

git://github.com/rodjek/vim-puppet.git



python插件

pymode

PluginInstall klen/python-mode

vim插件管理器Vundle.vim

原文地址:https://www.cnblogs.com/lixuebin/p/10814036.html