update vim conf
This commit is contained in:
parent
fe45f69fb7
commit
8a70332043
30
vim/vimrc
30
vim/vimrc
@ -5,6 +5,9 @@ filetype off " required
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
|
||||
Plugin 'https://github.com/plytophogy/vim-virtualenv.git'
|
||||
let g:virtualenv_directory = '/home/light/workspace/tens/'
|
||||
|
||||
Plugin 'godlygeek/tabular'
|
||||
Plugin 'plasticboy/vim-markdown'
|
||||
Plugin 'suan/vim-instant-markdown'
|
||||
@ -25,7 +28,7 @@ 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/cpp/ycm/.ycm_extra_conf.py'
|
||||
let g:ycm_show_diagnostics_ui = 0 " 禁用语法检查
|
||||
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>" " 回车即选中当前项
|
||||
nnoremap <c-j> :YcmCompleter GoToDefinitionElseDeclaration<CR> " 跳转到定义处
|
||||
@ -61,13 +64,22 @@ map <leader>7 :b 7<CR>
|
||||
map <leader>8 :b 8<CR>
|
||||
map <leader>9 :b 9<CR>
|
||||
|
||||
"Plugin 'taglist.vim'
|
||||
" ctags 配置
|
||||
map <F5> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f .tags .<CR><CR> :TlistUpdate<CR>
|
||||
imap <F5> <ESC>:!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f .tags .<CR><CR> :TlistUpdate<CR>
|
||||
set tags=tags
|
||||
set tags+=./.tags
|
||||
set tags+=~/.vim/systags
|
||||
"set tags =
|
||||
|
||||
Plugin 'taglist.vim'
|
||||
"ctags 配置:F3快捷键显示程序中的各种tags,包括变量和函数等。
|
||||
"map <F3> :TlistToggle<CR>
|
||||
"let Tlist_Use_Right_Window=1
|
||||
"let Tlist_Show_One_File=1
|
||||
"let Tlist_Exit_OnlyWindow=1
|
||||
"let Tlist_WinWidt=25
|
||||
map <F3> :TlistToggle<CR>
|
||||
let Tlist_Ctags_Cmd="/usr/bin/ctags"
|
||||
let Tlist_Use_Right_Window=1
|
||||
let Tlist_Show_One_File=1
|
||||
let Tlist_Exit_OnlyWindow=1
|
||||
let Tlist_WinWidt=25
|
||||
|
||||
Plugin 'The-NERD-tree'
|
||||
"NERDTree 配置:F2快捷键显示当前目录树
|
||||
@ -75,8 +87,6 @@ map <F2> :NERDTreeToggle<CR>
|
||||
let NERDTreeWinSize=25
|
||||
|
||||
|
||||
|
||||
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
|
||||
@ -215,3 +225,5 @@ endfunction
|
||||
filetype plugin indent on
|
||||
"打开文件类型检测, 加了这句才可以用智能补全
|
||||
set completeopt=longest,menu
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user