Created
February 20, 2016 20:38
-
-
Save lynndylanhurley/8117e59eec6778c3c3ac to your computer and use it in GitHub Desktop.
minimal .vimrc for neosnippets issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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