vim-我的利器

vim-我的利器


安装步骤:1.curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
                 2.作者jhnwsk的原话:

If you run :h vundle it says that you can use:let g:vundle_default_git_proto="http" to set the protocol vundle uses to http. So if you open up vim, type this in and after that run:BundleInstallfrom inside vim you should be able to get all the bundles via http and not https.


插件:

 youcompleteme:

            1.YouCompleteMe is another amazing completion engine. It is slightly more involved to set up as it contains a binary component that the user needs to compile before it will work. As a result of this however it is very fast.To enable YouCompleteMe add youcompleteme to your list of groups by overriding it in your .vimrc.before.locallike so: let g:spf13_bundle_groups=['general', 'programming', 'misc', 'scala', 'youcompleteme']This is just an example. Remember to choose the other groups you want here.Once you have done this you will need to get Vundle to grab the latest code from git. You can do this by calling :BundleInstall!. You should see YouCompleteMe in the list.

            2.You will now have the code in your bundles directory and can proceed to compile the core. Change to the directory it has been downloaded to. If you have a vanilla install then cd ~/.spf13-vim-3/.vim/bundle/YouCompleteMe/ should do the trick. You should see a file in this directory called install.sh. There are a few options to consider before running the installer:
Do you want clang support (if you don't know what this is then you likely don't need it)?
Do you want to link against a local libclang or have the installer download the latest for you?
Do you want support for c# via the omnisharp server?

            ./install.sh --clang-completer

           3.在.vimrc中添加 let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py '


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值