Skip to content

Loading…

Always use noremap to avoid recursion problems #61

Merged
merged 1 commit into from

4 participants

@kitmonisit

Following @sjl's advice on Strict Mapping.

Without noremap, in Insert Mode, <c-e> causes the following to be typed:

:call <SNR>63_Sparkup(
)
@codeinthehole

+1

Was about to submit exactly the same patch

@rramsden

Please merge @rstacruz +1

@faceleg faceleg merged commit 53dd569 into rstacruz:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 1, 2012
  1. @kitmonisit
Showing with 4 additions and 4 deletions.
  1. +4 −4 vim/ftplugin/html/sparkup.vim
View
8 vim/ftplugin/html/sparkup.vim
@@ -26,10 +26,10 @@ if !exists('g:sparkupNextMapping')
let g:sparkupNextMapping = '<c-n>'
endif
-exec 'nmap <buffer> ' . g:sparkupExecuteMapping . ' :call <SID>Sparkup()<cr>'
-exec 'imap <buffer> ' . g:sparkupExecuteMapping . ' <c-g>u<Esc>:call <SID>Sparkup()<cr>'
-exec 'nmap <buffer> ' . g:sparkupNextMapping . ' :call <SID>SparkupNext()<cr>'
-exec 'imap <buffer> ' . g:sparkupNextMapping . ' <c-g>u<Esc>:call <SID>SparkupNext()<cr>'
+exec 'nnoremap <buffer> ' . g:sparkupExecuteMapping . ' :call <SID>Sparkup()<cr>'
+exec 'inoremap <buffer> ' . g:sparkupExecuteMapping . ' <c-g>u<Esc>:call <SID>Sparkup()<cr>'
+exec 'nnoremap <buffer> ' . g:sparkupNextMapping . ' :call <SID>SparkupNext()<cr>'
+exec 'inoremap <buffer> ' . g:sparkupNextMapping . ' <c-g>u<Esc>:call <SID>SparkupNext()<cr>'
if exists('*s:Sparkup')
finish
Something went wrong with that request. Please try again.