V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
guoker
V2EX  ›  程序员

vim 插件

  •  
  •   guoker · 2014-01-03 18:34:01 +08:00 · 4510 次点击
    这是一个创建于 3789 天前的主题,其中的信息可能已经有所发展或是发生改变。
    新手学c语言,大家都用过什么插件 用来补全代码,高亮语法?
    10 条回复    2014-09-10 23:00:39 +08:00
    chuan
        1
    chuan  
       2014-01-03 19:56:06 +08:00
    高亮语法不用插件,C的关键字补全貌似也不用插件,C++可以用OmniCppComplete
    c.vim提供了一些类似IDE功能,不过感觉不好用。
    还有一个YouCompleteMe补全插件,当时安装没成功,没用过不作评价
    arbipher
        2
    arbipher  
       2014-01-03 20:01:39 +08:00
    square开源的vim插件合集
    https://github.com/square/maximum-awesome
    chuan
        3
    chuan  
       2014-01-03 20:06:26 +08:00   ❤️ 1
    语法检查scrooloose/syntastic
    Ricepig
        4
    Ricepig  
       2014-01-03 21:46:46 +08:00
    代码补全没一个好用的。。。

    智能提示几个都勉强凑合,都还得cscope或者ctags

    一个winmanager一个minibuffer,设置好缩进和高亮,就可以开始用了。
    detailyang
        5
    detailyang  
       2014-01-03 22:40:28 +08:00
    YouCompleteMe相当牛逼
    wuyexiong
        6
    wuyexiong  
       2014-01-03 23:49:18 +08:00
    wuyexiong
        7
    wuyexiong  
       2014-01-03 23:50:04 +08:00
    https://github.com/humiaozuzu/dot-vimrc

    不好意思啊 上面那条,以为评论也可以直接md
    zhouzm
        8
    zhouzm  
       2014-01-04 09:03:29 +08:00
    " 状态栏
    " https://github.com/bling/vim-airline
    Bundle 'bling/vim-airline'

    " 支持 emmet 语法
    " https://github.com/mattn/emmet-vim/
    Bundle 'mattn/emmet-vim'

    " 智能补全
    " https://github.com/Shougo/neocomplcache.vim
    Bundle 'Shougo/neocomplcache.vim'

    " 代码块快速完成
    " https://github.com/Shougo/neosnippet.vim
    Bundle 'Shougo/neosnippet.vim'

    " 快速注释
    " https://github.com/tomtom/tcomment_vim
    Bundle 'tomtom/tcomment_vim'

    " 目录树
    " https://github.com/kien/ctrlp.vim
    Bundle 'kien/ctrlp.vim'

    " 显示缩进对齐线
    " https://github.com/Yggdroot/indentLine
    Bundle 'Yggdroot/indentLine'

    " tags 管理
    " https://github.com/majutsushi/tagbar
    Bundle 'majutsushi/tagbar'

    " 配色方案
    " https://github.com/altercation/vim-colors-solarized
    Bundle 'altercation/vim-colors-solarized'

    具体如何配置,请自行参考原始站点文档。
    wklken
        9
    wklken  
       2014-01-04 09:44:59 +08:00
    推荐YouCompleteMe +1,其他自动补全大部分是“猜”的,YCM不是

    https://github.com/wklken/k-vim
    pydog
        10
    pydog  
       2014-09-10 23:00:39 +08:00
    @detailyang
    @wklken
    YouCompleteMe 安装了,用来开发linux c 和 linux kernel 很麻烦。有没有作C开发的,能不能分享下配置文件。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1061 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 23:13 · PVG 07:13 · LAX 16:13 · JFK 19:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.