vim-我的利器
2016-05-25 09:24
162 查看
vim-我的利器
安装步骤:1.curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh2.作者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 '
相关文章推荐
- 关于PraparedSatement的问题
- MySQL数据库连接基本流程
- 一台电脑同时安装不同的python、django版本
- 赋值号和printf
- Android中处理崩溃异常和记录日志
- vue.js+boostrap
- initWithCoder: 与initWithFrame:的区别
- 非常无力
- inux下rz、sz的简单安装
- iOS UIScrollView 你可能不知道的奇技淫巧
- git fetch与git pull的区别--多用git fetch
- Preferences.sublime-settings
- 【网络】HTTP2.0新特性
- Python学习笔记-day0
- 使用jdbc操作mysql数据库
- React-TodoList
- 常见的数字证书格式与格式转换
- 源码解析之–网络层YTKNetwork
- Android手机开发 使用线性布局和相对布局实现Button垂直水平居中
- POJ1050 To the Max (最大子段和,最大子矩阵)