From d953bad5bcb37d64132f4ba1c249c0560b2066a1 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Fri, 25 Nov 2016 11:22:05 +0000 Subject: vim add completion --- Editor/vimrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Editor') diff --git a/Editor/vimrc b/Editor/vimrc index fff1f02..13a08ca 100644 --- a/Editor/vimrc +++ b/Editor/vimrc @@ -10,6 +10,10 @@ Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' Plugin 'takac/vim-hardtime' +Plugin 'Valloric/YouCompleteMe' +Plugin 'SirVer/ultisnips' +Plugin 'honza/vim-snippets' + call vundle#end() " required filetype plugin indent on " required @@ -98,3 +102,24 @@ let g:hardtime_maxcount = 2 let g:hardtime_default_on = 1 let g:hardtime_showmsg = 0 let g:hardtime_allow_different_key = 1 + + +" YouCompleteMe +let g:ycm_dont_warn_on_startup = 0 +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_filetype_blacklist = {} +let g:ycm_key_list_select_completion = ['', '', ''] +let g:ycm_key_list_previous_completion = ['', '', ''] + +" supertab +let g:SuperTabDefaultCompletionType = '' +let g:SuperTabCrMapping = 0 + +" ultisnips +let g:UltiSnipsSnippetsDir='~/.vim/snippets' +let g:UltiSnipsEditSplit='vertical' +let g:UltiSnipsExpandTrigger = '' +let g:UltiSnipsJumpForwardTrigger = '' +let g:UltiSnipsJumpBackwardTrigger = '' -- cgit v1.2.3-54-g00ecf