Skip to content

Commit

Permalink
update vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Jun 23, 2018
1 parent 1df8ca0 commit d260d83
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions .ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
'-isystem',
'/usr/include',
'-isystem',
'/usr/include/x86_64-linux-gnu',
'-isystem',
'/usr/local/include',

#'-isystem',
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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状态 |
Expand Down Expand Up @@ -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

0 comments on commit d260d83

Please sign in to comment.