VIM: reselect visual selection after encodeing change
This change makes vim re-select the portion of text that was changed after an encoding change.
This commit is contained in:
parent
bd090b44c1
commit
56174f1ddc
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ function! mine#encoding#wrapper(fn) abort
|
|||
|
||||
" transform text
|
||||
" adapted from: https://github.com/christianrondeau/vim-base64/blob/master/autoload/base64.vim#L36
|
||||
execute "normal! c\<c-r>=mine#encoding#" . a:fn . "(@\")\<cr>\<esc>"
|
||||
execute "normal! c\<c-r>=mine#encoding#" . a:fn . "(@\")\<cr>\<esc>`[v`]h"
|
||||
|
||||
" reset paste to whatever it was before
|
||||
let &paste = l:paste
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue