Permalink
Browse files

Fixes a bug that jumping to the next placeholder clears the current o…

…ne if it is unchanged.
  • Loading branch information...
1 parent 33d5107 commit 65e27e7b7863509d331565e916c0b4db29b1b974 @jgosmann jgosmann committed Jun 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 after/plugin/snipMate.vim
@@ -24,7 +24,7 @@ exec 'snor <silent> <s-' . s:snips_trigger_key_normalized . '> <esc>i<right><c-r
exec 'ino <silent> <c-r>' . g:snips_trigger_key. ' <c-r>=ShowAvailableSnips()<cr>'
" maybe there is a better way without polluting registers ?
-exec 'vnoremap ' . g:snips_trigger_key. ' s<c-o>:let<space>g:snipmate_content_visual=getreg('1')<cr>'
+exec 'xnoremap ' . g:snips_trigger_key. ' s<c-o>:let<space>g:snipmate_content_visual=getreg('1')<cr>'
" The default mappings for these are annoying & sometimes break snipMate.
" You can change them back if you want, I've put them here for convenience.

0 comments on commit 65e27e7

Please sign in to comment.