Permalink
Browse files

Fix cursor position for ERB <C-X>-

Closes #17.
  • Loading branch information...
tpope committed Jul 10, 2012
1 parent a736570 commit 2f639ea61ab037e7862228d54a1c292f59c2385f
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/ragtag.vim
View
@@ -131,7 +131,7 @@ function! s:Init()
endif
" <% %>
if &ft =~ '\<eruby\>'
- inoremap <buffer> <C-X>- <%<Space><Space>%><Esc>3hi
+ inoremap <buffer> <C-X>- <%<Space><Space>%><Esc>2hi
inoremap <buffer> <C-X>_ <C-V><NL><Esc>I<%<Space><Esc>A<Space>%><Esc>F<NL>s
elseif &ft == "cf"
inoremap <buffer> <C-X>- <cf><Left>

0 comments on commit 2f639ea

Please sign in to comment.