Skip to content

Instantly share code, notes, and snippets.

@lencioni
Created November 17, 2014 17:17
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lencioni/dff45cd3d1f0e5e23fe6 to your computer and use it in GitHub Desktop.
Save lencioni/dff45cd3d1f0e5e23fe6 to your computer and use it in GitHub Desktop.
UltiSnips and YouCompleteMe configuration
" YouCompleteMe and UltiSnips compatibility, with the helper of supertab
" (via http://stackoverflow.com/a/22253548/1626737)
let g:SuperTabDefaultCompletionType = '<C-n>'
let g:SuperTabCrMapping = 0
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
let g:ycm_key_list_select_completion = ['<C-j>', '<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-k>', '<C-p>', '<Up>']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment