Retain cursor position after <Plug>(EasyAlign) in visual mode

This commit is contained in:
Junegunn Choi
2014-11-30 02:01:52 +09:00
parent b8abc366a6
commit aa1ba68ea0
2 changed files with 15 additions and 1 deletions

View File

@@ -778,6 +778,9 @@ function! s:interactive(range, modes, n, d, opts, rules, vis, bvis)
if has_key(a:rules, ch)
let d = ch
if !s:live
if a:vis
execute "normal! gv\<esc>"
endif
break
endif
else