1
0
Fork 0
mirror of synced 2024-06-03 07:51:09 -04:00

add Plugin: YouCompleteMe

This commit is contained in:
liuhong 2016-06-11 09:20:05 +08:00
parent 949bd2b31e
commit 4eb7286ba3
2 changed files with 11 additions and 1 deletions

View file

@ -1,5 +1,9 @@
set number
"格式化python代码
au FileType python set formatprg=~/pyformat.py
noremap <F11> gggqG
"-- Taglist setting --
let Tlist_Ctags_Cmd='ctags' "因为我们放在环境变量里,所以可以直接执行
let Tlist_Use_Right_Window=1 "让窗口显示在右边0的话就是显示在左边
@ -14,3 +18,9 @@ let Tlist_Inc_Winwidth=0
let g:winManagerWindowLayout='FileExplorer|TagList' " 设置我们要管理的插件
let g:persistentBehaviour=0 " 如果所有编辑文件都关闭了退出vim
nmap wm :WMToggle<cr>
"-- YCM --
let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
nnoremap <leader>jd :YcmCompleter GoToDefinitionElseDeclaration<CR>
let g:ycm_server_keep_logfiles = 1
let g:ycm_server_log_level = 'debug'

View file

@ -8,7 +8,6 @@ Bundle 'mru.vim'
Bundle 'taglist.vim'
Bundle 'winmanager'
""" original repos on github
Bundle 'scrooloose/nerdtree'
Bundle 'mileszs/ack.vim'
@ -29,3 +28,4 @@ Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'garbas/vim-snipmate'
Bundle 'honza/vim-snippets'
Bundle 'Valloric/YouCompleteMe'