diff options
author | makefu <github@syntax-fehler.de> | 2019-09-25 14:07:28 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-09-25 14:07:38 +0200 |
commit | 9fb322853726c5dd4a027aa1ce681278434fc256 (patch) | |
tree | fe7efb5ff19ca1f312bbb65985bffbd5884333d8 /makefu/2configs/editor/vimrc | |
parent | 6160408ef6e9a335e07690151cbcd560ac8d9984 (diff) |
ma editor/vim: use youcompleteme,ultisnips
Diffstat (limited to 'makefu/2configs/editor/vimrc')
-rw-r--r-- | makefu/2configs/editor/vimrc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/makefu/2configs/editor/vimrc b/makefu/2configs/editor/vimrc index 8cdab55db..309e81a05 100644 --- a/makefu/2configs/editor/vimrc +++ b/makefu/2configs/editor/vimrc @@ -96,3 +96,17 @@ augroup Binary au BufWritePost *.bin if &bin | %!xxd au BufWritePost *.bin set nomod | endif augroup END + + +" youcompleteme +let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file +let g:ycm_use_ultisnips_completer = 1 " Default 1, just ensure +let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword +let g:ycm_complete_in_comments = 1 " Completion in comments +let g:ycm_complete_in_strings = 1 " Completion in string + +" utilsnips +let g:UltiSnipsExpandTrigger = "<c-j>" +let g:UltiSnipsJumpForwardTrigger = "<c-j>" +let g:UltiSnipsJumpBackwardTrigger = "<c-p>" +let g:UltiSnipsListSnippets = "<c-k>" "List possible snippets based on current file |