Skip to content

Instantly share code, notes, and snippets.

@lynndylanhurley
Created February 20, 2016 20:38
Show Gist options
  • Save lynndylanhurley/8117e59eec6778c3c3ac to your computer and use it in GitHub Desktop.
Save lynndylanhurley/8117e59eec6778c3c3ac to your computer and use it in GitHub Desktop.
minimal .vimrc for neosnippets issue
call plug#begin('~/.vim/bundle/')
"snippets
Plug 'Shougo/neosnippet.vim'
Plug 'Shougo/neosnippet-snippets'
filetype plugin indent on " required
call plug#end()
let g:neosnippet#enable_completed_snippet = 1
" Plugin key-mappings.
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
" 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>"
" custom snippets
let g:neosnippet#snippets_directory = "~/.neosnippets/snippets"
let g:neosnippet#data_directory = "~/.neosnippets/data"
" Enable snipMate compatibility feature.
let g:neosnippet#enable_snipmate_compatibility = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment