Permalink
Browse files

move cursor silently.

  • Loading branch information...
1 parent 118983c commit 052bb7cb5e138e91480efbb3a81c12b143d505ce @mattn committed Jun 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/sonictemplate.vim
View
4 autoload/sonictemplate.vim
@@ -172,11 +172,11 @@ function! sonictemplate#apply(name, mode, ...) abort
if a:mode == 'n'
silent! call search('\zs{{_cursor_}}', 'w')
silent! foldopen
- silent! exe "normal ".repeat("x", 12)
+ silent! normal! 12"_x
else
silent! call search('{{_cursor_}}\zs', 'w')
silent! foldopen
- call feedkeys(repeat("\<bs>", 12))
+ silent! call feedkeys(repeat("\<bs>", 12))
endif
endif
endfunction

0 comments on commit 052bb7c

Please sign in to comment.