From d260d832f47b6ccde5490acaee2c10a40a3380cd Mon Sep 17 00:00:00 2001 From: chxuan <787280310@qq.com> Date: Sat, 23 Jun 2018 20:54:39 +0800 Subject: [PATCH] update vimrc --- .vimrc | 9 --------- .ycm_extra_conf.py | 2 ++ README.md | 2 -- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.vimrc b/.vimrc index f1ef5720..8a9bc665 100644 --- a/.vimrc +++ b/.vimrc @@ -87,21 +87,12 @@ set termencoding=utf-8 set encoding=utf8 set fileencodings=utf8,ucs-bom,gbk,cp936,gb2312,gb18030 -" 打开C/C++文件时,启用ycm补全插件,否则启用vcm -let suffix = expand("%:e") -if suffix == "h" || suffix == "hpp" || suffix == "cpp" || suffix == "cc" || suffix == "c" - let g:loaded_VimCompletesMe = 0 -else - let g:loaded_youcompleteme = 0 -endif - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " 插件列表 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" call plug#begin('~/.vim/plugged') Plug 'Valloric/YouCompleteMe' -Plug 'ajh17/VimCompletesMe' Plug 'chxuan/cpp-mode' Plug 'chxuan/change-colorscheme' Plug 'chxuan/prepare-code' diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index eaaf7f99..83679298 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -77,6 +77,8 @@ '-isystem', '/usr/include', '-isystem', +'/usr/include/x86_64-linux-gnu', +'-isystem', '/usr/local/include', #'-isystem', diff --git a/README.md b/README.md index 92c058c6..829f00e3 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,6 @@ An automatic configuration program for vim | [vimplus-startify][66] | vimplus开始页面(修改自[mhinz/vim-startify][25]) | | [vim-plug][4] | 比[Vundle][54]下载更快的插件管理软件 | | [YouCompleteMe][5] | 史上最强大的基于语义的自动补全插件,支持C/C++、C#、Python、PHP等语言 | -| [VimCompletesMe][74] | 基于Tab的轻量级的补全插件 | | [NerdTree][6] | 代码资源管理器 | | [vim-nerdtree-syntax-highlight][52] | NerdTree文件类型高亮 | | [nerdtree-git-plugin][53] | NerdTree显示git状态 | @@ -302,4 +301,3 @@ Q & A [71]: https://raw.githubusercontent.com/chxuan/cpp-mode/master/screenshots/cpp-mode.gif [72]: https://github.com/chxuan/vim-replace [73]: https://github.com/yianwillis/vimcdoc - [74]: https://github.com/ajh17/vimcompletesme