aboutsummaryrefslogtreecommitdiff
path: root/Editor
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2016-11-25 11:22:05 +0000
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2016-11-25 11:22:05 +0000
commitd953bad5bcb37d64132f4ba1c249c0560b2066a1 (patch)
treef737e0bb75600828ba4a92dc5d1bb0c67ab510b7 /Editor
parent5f4e2fcfae989df5808c61f6d7c40a63280e45a1 (diff)
downloaddotfiles-d953bad5bcb37d64132f4ba1c249c0560b2066a1.tar.gz
dotfiles-d953bad5bcb37d64132f4ba1c249c0560b2066a1.tar.bz2
dotfiles-d953bad5bcb37d64132f4ba1c249c0560b2066a1.zip
vim add completion
Diffstat (limited to 'Editor')
-rw-r--r--Editor/vimrc25
1 files changed, 25 insertions, 0 deletions
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 = ['<C-j>', '<C-n>', '<Down>']
+let g:ycm_key_list_previous_completion = ['<C-k>', '<C-p>', '<Up>']
+
+" supertab
+let g:SuperTabDefaultCompletionType = '<C-n>'
+let g:SuperTabCrMapping = 0
+
+" ultisnips
+let g:UltiSnipsSnippetsDir='~/.vim/snippets'
+let g:UltiSnipsEditSplit='vertical'
+let g:UltiSnipsExpandTrigger = '<tab>'
+let g:UltiSnipsJumpForwardTrigger = '<tab>'
+let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'