|
|
|
@ -140,22 +140,22 @@ endif
|
|
|
|
|
" neosnippet
|
|
|
|
|
" Plugin key-mappings.
|
|
|
|
|
" Note: It must be "imap" and "smap". It uses <Plug> mappings.
|
|
|
|
|
imap <C-k> <Plug>(neosnippet_expand_or_jump)
|
|
|
|
|
smap <C-k> <Plug>(neosnippet_expand_or_jump)
|
|
|
|
|
xmap <C-k> <Plug>(neosnippet_expand_target)
|
|
|
|
|
" 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.
|
|
|
|
|
" Note: It must be "imap" and "smap". It uses <Plug> mappings.
|
|
|
|
|
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>"
|
|
|
|
|
" 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 conceal markers.
|
|
|
|
|
if has('conceal')
|
|
|
|
|
set conceallevel=2 concealcursor=niv
|
|
|
|
|
endif
|
|
|
|
|
" if has('conceal')
|
|
|
|
|
" set conceallevel=2 concealcursor=niv
|
|
|
|
|
" endif
|
|
|
|
|
" Enable snipMate compatibility feature.
|
|
|
|
|
let g:neosnippet#enable_snipmate_compatibility = 1
|
|
|
|
|
let g:neosnippet#snippets_directory='~/.vim/custom-snippets'
|
|
|
|
|
" let g:neosnippet#enable_snipmate_compatibility = 1
|
|
|
|
|
" let g:neosnippet#snippets_directory='~/.vim/custom-snippets'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" rainbow
|
|
|
|
|