Permalink
Browse files

Use `inoremap` for calling Sparkup{,Next}().

This will make the mapping work properly with e.g.
`noremap : .`.

See rstacruz#40 (comment)
  • Loading branch information...
1 parent 72deab1 commit 0decf72a4895c1e538aace56a1149dd15b6765a9 @blueyed committed May 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 vim/ftplugin/html/sparkup.vim
@@ -26,8 +26,8 @@ if !exists('g:sparkupNextMapping')
let g:sparkupNextMapping = '<c-n>'
endif
-imap <buffer> <Plug>SparkupExecute <c-g>u<Esc>:call <SID>Sparkup()<cr>
-imap <buffer> <Plug>SparkupNext <c-g>u<Esc>:call <SID>SparkupNext()<cr>
+inoremap <buffer> <Plug>SparkupExecute <c-g>u<Esc>:call <SID>Sparkup()<cr>
+inoremap <buffer> <Plug>SparkupNext <c-g>u<Esc>:call <SID>SparkupNext()<cr>
if ! hasmapto('<Plug>SparkupExecute', 'i')
exec 'imap <buffer> ' . g:sparkupExecuteMapping . ' <Plug>SparkupExecute'

0 comments on commit 0decf72

Please sign in to comment.