您的位置:首页 > 其它

vim-我的利器

2016-05-25 09:24 162 查看

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 '
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: