Skip to content

Commit

Permalink
Remapped default snippet expansion and movement options for ultisnips.
Browse files Browse the repository at this point in the history
  • Loading branch information
teasp00n authored and spf13 committed Jan 7, 2014
1 parent b36d049 commit e715394
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -574,17 +574,15 @@
" YouCompleteMe {
if count(g:spf13_bundle_groups, 'youcompleteme')
let g:acp_enableAtStartup = 0
let g:ycm_collect_identifiers_from_tags_files = 1
let g:UltiSnipsExpandTrigger = '<C-k> <Plug>'
let g:UltiSnipsJumpForwardTrigger = '<C-k> <Plug>'
"let g:UltiSnipsJumpBackwardTrigger = '<C-l> <Plug>' " not sure
"what to set this to to be consistent.

" <CR>: close popup
" <s-CR>: close popup and save indent.
inoremap <expr><s-CR> pumvisible() "\<CR>" : "\<CR>"
inoremap <expr><CR> pumvisible() : "\<CR>"
" enable completion from tags
let g:ycm_collect_identifiers_from_tags_files = 1

" remap Ultisnips for compatibility for YCM
let g:UltiSnipsExpandTrigger = '<C-j>'
let g:UltiSnipsJumpForwardTrigger = '<C-j>'
let g:UltiSnipsJumpBackwardTrigger = '<C-k>'

" Enable omni completion.
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
Expand Down

0 comments on commit e715394

Please sign in to comment.