This commit is contained in:
chxuan 2016-05-12 15:58:41 +08:00
commit 92d84dfa6d

View File

@ -7,7 +7,7 @@ vimplus是vim的超级配置安装程序 [https://github.com/chxuan/vimplus.git]
----------
运行截图
一、运行截图
-------------
该图是我配置过后vim的真实截图
![enter image description here](https://raw.githubusercontent.com/chxuan/vimplus/master/screenshot.png)
@ -16,7 +16,7 @@ vimplus是vim的超级配置安装程序 [https://github.com/chxuan/vimplus.git]
![enter image description here](https://camo.githubusercontent.com/1f3f922431d5363224b20e99467ff28b04e810e2/687474703a2f2f692e696d6775722e636f6d2f304f50346f6f642e676966)
安装配置(Ubuntu、Centos)
二、安装配置(Ubuntu、Centos)
-------------
> - git clone https://github.com/chxuan/vimplus.git
@ -25,7 +25,7 @@ vimplus是vim的超级配置安装程序 [https://github.com/chxuan/vimplus.git]
运行setup.sh脚本程序将会自动安装并配置好vim安装大约需要花费40分钟主要是下载编译[Valloric/YouCompleteMe](https://github.com/Valloric/YouCompleteMe)比较耗时,请耐心等待直到安装完成^_^
主要功能快捷键
三、主要功能快捷键
-------------
> - 查看文件目录(F3)
> - 显示函数、全局变量、宏定义(F4)
@ -38,7 +38,12 @@ vimplus是vim的超级配置安装程序 [https://github.com/chxuan/vimplus.git]
> - 光标位置切换(Ctrl + O/Ctrl + I)
> - 模糊查找当前目录及其子目录下的文件(Ctrl + f)
安装完成后
四、安装完成后
-------------
运行setup.sh脚本程序一键安装完成后HOME目录将会存在[.ycm_extra_conf.py](https://raw.githubusercontent.com/chxuan/vimplus/master/.ycm_extra_conf.py)该文件就是YCM实现C++等语言语法补全功能的配置文件一般我会在HOME目录放一个然后每一个项目拷贝一个[.ycm_extra_conf.py](https://raw.githubusercontent.com/chxuan/vimplus/master/.ycm_extra_conf.py),更改[.ycm_extra_conf.py](https://raw.githubusercontent.com/chxuan/vimplus/master/.ycm_extra_conf.py)文件里面的flags 变量的值即可实现相关include文件的语法补全功能。
五、注意事项
-------------
> - 如果网络条件不好可能安装失败基本上是Valloric/YouCompleteMe安装失败安装失败后需要将~/.vim/bundle文件夹下的YouCompleteMe目录删除然后重新执行setup.sh即可重新安装时程序将自动安装安装失败的插件。
> - 如果网络条件实在不好导致ycm一直下载下来下载完成大约200MB左右我这里有已经下载好了的压缩包[YouCompleteMe.tar.gz](http://share.weiyun.com/fde608d0c4fb6682daf05756e12a3132),解压到~/.vim/bundle/然后进入YouCompleteMe目录执行python ./install.py --clang-completer即可。
> - 在ubuntu16.04LTS下安装可能会失败(Valloric/YouCompleteMe安装失败)因为vim默认支持python3进行插件编译安装失败后手动进入~/.vim/bundle/YouCompleteMe然后运行python3 ./install.py --clang-completer即可。