V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
guoqiao
V2EX  ›  程序员

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

  •  3
     
  •   guoqiao · 2014-05-26 19:09:49 +08:00 · 18294 次点击
    这是一个创建于 3868 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我用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插件众多, 相互之间还容易冲突, 因此我对插件是有洁癖的, 能不用的都尽量不用, 以上这些都是精品.
    大家也来晒一晒吧, 希望能从相互之间发现更多有用的插件.
    22 条回复    2014-05-28 01:55:11 +08:00
    kqz901002
        1
    kqz901002  
       2014-05-26 19:12:35 +08:00
    sublime用户,来感谢一下,vim插件配置太复杂了,楼主能不能把你的配置做个自动化部署?我也写python
    guoqiao
        2
    guoqiao  
    OP
       2014-05-26 19:18:55 +08:00   ❤️ 1
    @kqz901002 托管在github的:

    https://github.com/guoqiao/vimx

    clone后可"一键"安装:

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

    不过这当中唯一复杂的插件是最后那个YouCompleteMe, 需要编译, 但也是最强大的.
    怕麻烦的可以先注释掉它, 其它的就是真正的一键安装了.
    kqz901002
        3
    kqz901002  
       2014-05-26 19:19:51 +08:00
    @guoqiao osx 10.9可用否?上次貌似死在这个插件~
    guoqiao
        4
    guoqiao  
    OP
       2014-05-26 19:21:25 +08:00   ❤️ 1
    @kqz901002 我就是osx 10.9, 毫无问题.
    yakiang
        5
    yakiang  
       2014-05-26 19:27:12 +08:00
    Bundle 'Lokaltog/vim-easymotion'
    Bundle 'terryma/vim-multiple-cursors'
    个人估计用最多的
    chemzqm
        6
    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
        7
    guoqiao  
    OP
       2014-05-26 19:53:36 +08:00   ❤️ 1
    @chemzqm 这个插件确实比较麻烦, 但它能实现多种语言基于语法的定义跳转和补全, 还不用像ctags那样生成tags, 都是实时进行的, 用上之后就无法放下了.
    mikewoo
        8
    mikewoo  
       2014-05-26 20:26:18 +08:00 via iPhone
    有没有什么好用的括号,引号补全插件啊?
    zchen
        9
    zchen  
       2014-05-26 20:30:26 +08:00   ❤️ 1
    @mikewoo Townk/vim-autoclose 不错
    TankyWoo
        10
    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
        11
    ChiangDi  
       2014-05-26 20:52:15 +08:00
    @zchen 'Raimondi/delimitMate'我觉得这个应该好一点,因为star数多一些:-)
    9
        12
    9  
       2014-05-26 20:52:22 +08:00
    @guoqiao 能实现 php 的定义跳转和补全不。上次用了下貌似不行
    wklken
        13
    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
        14
    ayang23  
       2014-05-26 21:39:31 +08:00
    exch4nge
        15
    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
        16
    lm902  
       2014-05-27 03:58:57 +08:00 via Android   ❤️ 1
    vim还可以装插件(;;;;;°∇°)
    mikewoo
        17
    mikewoo  
       2014-05-27 05:37:58 +08:00 via iPhone
    @zchen 谢谢,试试看
    kshatriya
        18
    kshatriya  
       2014-05-27 06:39:25 +08:00
    spf13
    tonghuashuai
        19
    tonghuashuai  
       2014-05-27 09:21:26 +08:00
    只用 nerdtree 的飘过
    henices
        20
    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
    magine
        21
    magine  
       2014-05-27 18:51:12 +08:00
    https://github.com/ma6174/vim
    和同学都一直在用这个,还不错。
    XXOO
        22
    XXOO  
       2014-05-28 01:55:11 +08:00
    @magine 貌似本地下载好几个连不上。请问怎么破的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2805 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 03:14 · PVG 11:14 · LAX 19:14 · JFK 22:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.