你的 Vim 用到了哪些插件? 有哪些是你觉得必备的?

2014-05-26 19:09:49 +08:00
 guoqiao
我用Vundle管理插件, 以下是我的Bundle列表, 抛砖引玉:

Bundle 'gmarik/vundle'
Bundle 'The-NERD-Commenter'
Bundle 'The-NERD-tree'
Bundle 'taglist.vim'
Bundle 'YankRing.vim'
Bundle 'kien/ctrlp.vim'
Bundle 'molokai'
Bundle 'colorizer'
Bundle 'pyflakes.vim'
Bundle 'python.vim'
Bundle 'plasticboy/vim-markdown'
Bundle 'matchit.zip'
Bundle 'repeat.vim'
Bundle 'surround.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-powerline'
Bundle 'mattn/emmet-vim'
Bundle 'Valloric/YouCompleteMe'

Vim插件众多, 相互之间还容易冲突, 因此我对插件是有洁癖的, 能不用的都尽量不用, 以上这些都是精品.
大家也来晒一晒吧, 希望能从相互之间发现更多有用的插件.
18294 次点击
所在节点    程序员
22 条回复
kqz901002
2014-05-26 19:12:35 +08:00
sublime用户,来感谢一下,vim插件配置太复杂了,楼主能不能把你的配置做个自动化部署?我也写python
guoqiao
2014-05-26 19:18:55 +08:00
@kqz901002 托管在github的:

https://github.com/guoqiao/vimx

clone后可"一键"安装:

git clone https://github.com/guoqiao/vimx.git ~/.vim
cd ~/.vim
./install.sh

不过这当中唯一复杂的插件是最后那个YouCompleteMe, 需要编译, 但也是最强大的.
怕麻烦的可以先注释掉它, 其它的就是真正的一键安装了.
kqz901002
2014-05-26 19:19:51 +08:00
@guoqiao osx 10.9可用否?上次貌似死在这个插件~
guoqiao
2014-05-26 19:21:25 +08:00
@kqz901002 我就是osx 10.9, 毫无问题.
yakiang
2014-05-26 19:27:12 +08:00
Bundle 'Lokaltog/vim-easymotion'
Bundle 'terryma/vim-multiple-cursors'
个人估计用最多的
chemzqm
2014-05-26 19:46:06 +08:00
Plugin 'mileszs/ack.vim'
Plugin 'mattn/gist-vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'kien/ctrlp.vim'
Plugin 'dyng/ctrlsf.vim'
Plugin 'rizzatti/funcoo.vim'
Plugin 'rizzatti/dash.vim'
Plugin 'mattn/webapi-vim'
Plugin 'mattn/emmet-vim'
Plugin 'sjl/gundo.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'moll/vim-node'
Plugin 'scrooloose/syntastic'
Plugin 'tpope/vim-repeat'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
Plugin 'pangloss/vim-javascript'
Plugin 'maksimr/vim-jsbeautify'
Plugin 'elzr/vim-json'
Plugin 'tpope/vim-markdown'
Plugin 'xolox/vim-misc'
Plugin 'xolox/vim-notes'
Plugin 'xolox/vim-session'
Plugin 'tpope/vim-surround'
Plugin 'empanda/vim-varnish'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
Plugin 'xolox/vim-shell'
Plugin 'scrooloose/nerdcommenter'
Plugin 'Shougo/vimproc'
Plugin 'Shougo/unite.vim'
Plugin 'm2mdas/phpcomplete-extended'
Plugin 'godlygeek/tabular'
Plugin 'othree/xml.vim'
Plugin 'vim-scripts/Greplace.vim'
Plugin 'tommcdo/vim-exchange'
Plugin 'evanmiller/nginx-vim-syntax'

好多,强烈推荐 gundo.vim ultisnips Greplace vim-gitgutter ctrlsf.vim ctrlp.vim
YouCompleteMe 找不到可选项会显示错误,对输入造成很大干扰,实在受不了不用了。
guoqiao
2014-05-26 19:53:36 +08:00
@chemzqm 这个插件确实比较麻烦, 但它能实现多种语言基于语法的定义跳转和补全, 还不用像ctags那样生成tags, 都是实时进行的, 用上之后就无法放下了.
mikewoo
2014-05-26 20:26:18 +08:00
有没有什么好用的括号,引号补全插件啊?
zchen
2014-05-26 20:30:26 +08:00
@mikewoo Townk/vim-autoclose 不错
TankyWoo
2014-05-26 20:48:43 +08:00
https://github.com/tankywoo/dotfiles

" original repos on github
Bundle 'kevinw/pyflakes-vim'
Bundle 'Lokaltog/vim-powerline'
Bundle 'fs111/pydoc.vim'
Bundle 'chriskempson/tomorrow-theme'
Bundle 'kien/rainbow_parentheses.vim'

" vim-scripts repos
Bundle 'taglist.vim'
Bundle 'Tagbar'
Bundle 'TaskList.vim'
Bundle 'snipMate'
Bundle 'ZenCoding.vim'
Bundle 'Tabular'
Bundle 'Auto-Pairs'
Bundle 'Pydiction'
Bundle 'The-NERD-tree'
Bundle 'neocomplcache'
Bundle 'Color-Scheme-Explorer'
ChiangDi
2014-05-26 20:52:15 +08:00
@zchen 'Raimondi/delimitMate'我觉得这个应该好一点,因为star数多一些:-)
9
2014-05-26 20:52:22 +08:00
@guoqiao 能实现 php 的定义跳转和补全不。上次用了下貌似不行
wklken
2014-05-26 21:06:18 +08:00
最最最常用的 https://github.com/wklken/k-vim
==============
语法检查
Bundle 'scrooloose/syntastic'

自动补全
Bundle 'Valloric/YouCompleteMe'
Bundle 'Raimondi/delimitMate'
Bundle 'docunext/closetag.vim'

代码片段
Bundle 'SirVer/ultisnips'
Bundle 'honza/vim-snippets'

编辑
Bundle 'scrooloose/nerdcommenter'
Bundle 'tpope/vim-surround'
Bundle 'tpope/vim-repeat'

移动
Bundle 'Lokaltog/vim-easymotion'
Bundle 'vim-scripts/matchit.zip'

选中
Bundle 'terryma/vim-expand-region'
Bundle 'terryma/vim-multiple-cursors'

其他
Bundle 'bling/vim-airline'
Bundle 'kien/rainbow_parentheses.vim'
Bundle 'kien/ctrlp.vim'
Bundle 'majutsushi/tagbar'
ayang23
2014-05-26 21:39:31 +08:00
exch4nge
2014-05-26 21:53:17 +08:00
Bundle 'taglist.vim'
Bundle 'TaskList.vim'
Bundle 'fholgado/minibufexpl.vim'
" Bundle 'scrooloose/nerdtree'
Bundle 'L9'
Bundle 'FuzzyFinder'

" This will enabled when has("lua").
if has("lua")
Bundle 'Shougo/neocomplete'
else
Bundle 'Shougo/neocomplcache'
endif

Bundle 'Shougo/neosnippet'
Bundle 'Shougo/neosnippet-snippets'

Bundle 'Shougo/neomru.vim'
Bundle 'Shougo/unite.vim'

Bundle 'Rykka/riv.vim'
Bundle 'scrooloose/syntastic'
Bundle 'majutsushi/tagbar'
Bundle 'fs111/pydoc.vim'

" Draw
Bundle 'DrawIt'

" colorscheme
Bundle 'altercation/vim-colors-solarized'
Bundle 'nanotech/jellybeans.vim'
Bundle '29decibel/codeschool-vim-theme'
" input.
" Bundle 'vimim/vimim'

Bundle 'Lokaltog/vim-powerline'
Bundle 'ivanov/vim-ipython'

Bundle 'sudo.vim'
Bundle 'plsql.vim'
Bundle 'plasticboy/vim-markdown'

Bundle 'groovy.vim'
Bundle 'tfnico/vim-gradle'

" For Dash.app
Bundle 'rizzatti/funcoo.vim'
Bundle 'rizzatti/dash.vim'

" Racket
Bundle 'wlangstroth/vim-racket'

" Lua
Bundle 'xolox/vim-misc'
Bundle 'xolox/vim-lua-ftplugin'

" multiple select
Bundle 'terryma/vim-multiple-cursors'

Bundle 'airblade/vim-gitgutter'
" git nerd tree.
Bundle 'Xuyuanp/git-nerdtree'

总结下:
必备:minibufexpl.vim, riv.vim, syntastic, sudo.vim, vim-multiple-cursors, vim-gitgutter, git-nerdtree, Shougo的complete很好用。
vim颜色主题:vim-colors-solarized, codeschool-vim-theme, vim-powerline
C/C++必备:taglist/tagbar,cscope
python: vim-ipython
reStructeredText: Rykka的riv.vim
markdown: vim-markdown
gradle: groovy.vim, vim-gradle
Lua: xolox/vim-misc, xolox/vim-lua-ftplugin
lm902
2014-05-27 03:58:57 +08:00
vim还可以装插件(;;;;;°∇°)
mikewoo
2014-05-27 05:37:58 +08:00
@zchen 谢谢,试试看
kshatriya
2014-05-27 06:39:25 +08:00
spf13
tonghuashuai
2014-05-27 09:21:26 +08:00
只用 nerdtree 的飘过
henices
2014-05-27 10:57:39 +08:00
https://github.com/henices/dot_vim/blob/master/vundle.vim

" use vim by default
set nocompatible
filetype off


" vundle {{{

if has('win32')
set rtp+=$VIM/vimfiles/bundle/vundle/
call vundle#rc('$VIM/vimfiles/bundle/')
else
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
endif

Bundle 'gmarik/vundle'
"}}}

" programming {{{
Bundle 'Lokaltog/vim-powerline'
Bundle 'tpope/vim-fugitive'
Bundle 'wesleyche/Trinity'
Bundle 'wesleyche/SrcExpl'
Bundle 'klen/python-mode'
Bundle 'taglist.vim'
Bundle 'majutsushi/tagbar'
if has('unix') && system('uname') !~ "Darwin"
Bundle 'fcitx.vim'
endif
Bundle 'DoxygenToolkit.vim'
Bundle 'utl.vim'
Bundle 'chrisbra/NrrwRgn'
Bundle 'Figlet.vim'
Bundle "scrooloose/syntastic"
Bundle "davidhalter/jedi-vim"
Bundle "jnwhiteh/vim-golang"

if v:version > 703 || (v:version == 703 && has('patch584'))
Bundle "Valloric/YouCompleteMe"
endif

Bundle "maksimr/vim-jsbeautify"
"}}}

" utils {{{
Bundle 'kien/ctrlp.vim'
Bundle 'mileszs/ack.vim'
"}}}

" vimshell {{{
Bundle "Shougo/vimshell.vim"
Bundle "Shougo/vimproc.vim"
Bundle "Shougo/unite.vim"
"}}}

" perl regular expression {{{
Bundle "othree/eregex.vim"
"}}}

"color scheme {{{
Bundle 'peaksea'
Bundle 'desert256.vim'
Bundle 'vim-scripts/tir_black'
Bundle 'vim-scripts/af.vim'
Bundle 'vim-scripts/enzyme.vim'
Bundle 'vim-scripts/tango.vim'
Bundle 'nanotech/jellybeans.vim'
Bundle 'twerth/ir_black'
Bundle 'tomasr/molokai'
Bundle 'Lokaltog/vim-distinguished'
Bundle 'rainux/vim-desert-warm-256'
"}}}

" syntax {{{
Bundle 'vim-scripts/nasl.vim'
Bundle 'csharp.vim'
Bundle "pangloss/vim-javascript"
Bundle 'plasticboy/vim-markdown'
Bundle 'henices/vim-nbin'
Bundle 'leshill/vim-json'
"}}}

" orgmode {{{
Bundle 'jceb/vim-orgmode'
"Bundle 'hsitz/VimOrganizer'
Bundle 'hughbien/org-vim'
Bundle 'tpope/vim-speeddating'
Bundle 'mattn/calendar-vim'
Bundle 'dhruvasagar/vim-table-mode'
" }}}

filetype plugin indent on

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/114348

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX