Skip to content

Commit 1146227

Browse files
committed
Merge pull request spf13#300 from jamestomasino/neosnippet
add option to disable neosnippet mapping blocking digraphs
2 parents fc79e6e + 7ab4566 commit 1146227

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.vimrc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,17 @@
470470
let g:neocomplcache_keyword_patterns._ = '\h\w*'
471471

472472
" Plugin key-mappings.
473-
imap <C-k> <Plug>(neosnippet_expand_or_jump)
474-
smap <C-k> <Plug>(neosnippet_expand_or_jump)
473+
474+
" These two lines conflict with the default digraph mapping of <C-K>
475+
" If you prefer that functionality, add
476+
" let g:spf13_no_neosnippet_expand = 1
477+
" in your .vimrc.bundles.local file
478+
479+
if !exists('g:spf13_no_neosnippet_expand')
480+
imap <C-k> <Plug>(neosnippet_expand_or_jump)
481+
smap <C-k> <Plug>(neosnippet_expand_or_jump)
482+
endif
483+
475484
inoremap <expr><C-g> neocomplcache#undo_completion()
476485
inoremap <expr><C-l> neocomplcache#complete_common_string()
477486
inoremap <expr><CR> neocomplcache#complete_common_string()

0 commit comments

Comments
 (0)