Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created January 16, 2014 11:36
Show Gist options
  • Save fgarcia/8453474 to your computer and use it in GitHub Desktop.
Save fgarcia/8453474 to your computer and use it in GitHub Desktop.
let g:neocomplete#enable_at_startup = 1
""" LEGACY when using neocoplcache (no Lua)
"let g:neocomplcache_enable_at_startup = 1
"let g:neocomplcache_snippets_dir='~/.vim/bundle/vim-snippets/snippets'
" Plugin key-mappings.
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
" SuperTab like snippets behavior.
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: pumvisible() ? "\<C-n>" : "\<TAB>"
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
" For snippet_complete marker.
if has('conceal')
set conceallevel=2 concealcursor=i
endif
" Enable snipMate compatibility feature.
" let g:neosnippet#enable_snipmate_compatibility = 1
" Tell Neosnippet about the other snippets
let g:neosnippet#snippets_directory= "$VIMCONFIG/snippets"
" Auto select first choice of popup
let g:neocomplete#enable_auto_select=1
let g:neosnippet#scope_aliases={}
let g:neosnippet#scope_aliases['ruby']='ruby'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment