update vim conf
This commit is contained in:
@@ -4,7 +4,9 @@ call vundle#begin()
|
||||
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
|
||||
" hightlight
|
||||
Plugin 'https://github.com/taketwo/vim-ros.git'
|
||||
|
||||
"hightlight
|
||||
|
||||
Plugin 'octol/vim-cpp-enhanced-highlight'
|
||||
let g:cpp_class_scope_highlight = 1
|
||||
@@ -33,7 +35,7 @@ set runtimepath+=~/.vim/bundle/YouCompleteMe
|
||||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif "离开插入模式后自动关闭预览窗口"
|
||||
let g:ycm_collect_identifiers_from_tags_files = 1 " 开启 YCM基于标签引擎
|
||||
let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 注释与字符串中的内容也用于补全
|
||||
let g:syntastic_ignore_files=[".*\.py$"]
|
||||
"let g:syntastic_ignore_files=[".*\.py$"]
|
||||
let g:ycm_seed_identifiers_with_syntax = 1 " 语法关键字补全
|
||||
let g:ycm_complete_in_comments = 1
|
||||
let g:ycm_confirm_extra_conf = 0 " 关闭加载.ycm_extra_conf.py提示
|
||||
@@ -42,12 +44,23 @@ let g:ycm_key_list_previous_completion = ['<c-p>', '<Up>']
|
||||
let g:ycm_complete_in_comments = 1 " 在注释输入中也能补全
|
||||
let g:ycm_complete_in_strings = 1 " 在字符串输入中也能补全
|
||||
let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 注释和字符串中的文字也会被收入补全
|
||||
"let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
|
||||
"let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py'
|
||||
let g:ycm_global_ycm_extra_conf='~/.vim/.ycm_extra_conf.py'
|
||||
let g:ycm_show_diagnostics_ui = 0 " 禁用语法检查
|
||||
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>" " 回车即选中当前项
|
||||
nnoremap <c-j> :YcmCompleter GoToDefinitionElseDeclaration<CR> " 跳转到定义处
|
||||
let g:ycm_min_num_of_chars_for_completion=2
|
||||
|
||||
"python auto complete plugin
|
||||
Bundle 'davidhalter/jedi-vim'
|
||||
Bundle 'ervandew/supertab'
|
||||
let g:SuperTabDefaultCompletionType = "<c-n>"
|
||||
|
||||
" xml html auto close
|
||||
Plugin 'alvan/vim-closetag'
|
||||
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.launch'
|
||||
|
||||
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'vim-airline-themes'
|
||||
let g:airline_theme='bubblegum'
|
||||
|
||||
Reference in New Issue
Block a user