diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 77d96b3..aa727af 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -40,6 +40,10 @@ if !exists('g:AutoPairsShortcutToggle') let g:AutoPairsShortcutToggle = '' end +if !exists('g:AutoPairsShortcutFastWrap') + let g:AutoPairsShortcutFastWrap = '' +end + let g:AutoPairsClosedPairs = {} @@ -177,6 +181,7 @@ function! AutoPairsInit() execute 'inoremap =AutoPairsReturn()' end + execute 'inoremap '.g:AutoPairsShortcutFastWrap.' =AutoPairsFastWrap()' execute 'inoremap '.g:AutoPairsShortcutToggle.' =AutoPairsToggle()' execute 'noremap '.g:AutoPairsShortcutToggle.' :call AutoPairsToggle()' " If the keys map conflict with your own settings, delete or change them @@ -184,7 +189,6 @@ function! AutoPairsInit() execute 'inoremap :call AutoPairsJump()a' execute 'inoremap ' execute 'inoremap ' - execute 'inoremap =AutoPairsFastWrap()' end endfunction