Last active
July 17, 2018 14:20
-
-
Save qeesung/62bdc05e37760364027c6d15d7899232 to your computer and use it in GitHub Desktop.
my_configs.vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nu | |
syntax on | |
colorscheme onedark | |
let g:ycm_global_ycm_extra_conf = '~/.vim_runtime/my_plugins/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' | |
let g:UltiSnipsExpandTrigger="<c-j>" | |
let g:ycm_collect_identifiers_from_tags_files=1 " 开启 YCM 基于标签引擎 | |
let g:ycm_min_num_of_chars_for_completion=1 " 从第2个键入字符就开始罗列匹配项 | |
let g:ycm_cache_omnifunc=0 " 禁止缓存匹配项,每次都重新生成匹配项 | |
let g:ycm_seed_identifiers_with_syntax=1 " 语法关键字补全 | |
"在注释输入中也能补全 | |
let g:ycm_complete_in_comments = 1 | |
"在字符串输入中也能补全 | |
let g:ycm_complete_in_strings = 1 | |
let g:ycm_semantic_triggers = { | |
\ 'c,cpp,python,java,go,erlang,perl': ['re!\w{2}'], | |
\ 'cs,lua,javascript': ['re!\w{2}'], | |
\ } | |
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] | |
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] | |
let g:SuperTabDefaultCompletionType = '<C-n>' | |
nnoremap <leader>gd :YcmCompleter GoToDeclaration<CR> | |
nmap <F8> :TagbarToggle<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment