1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00

reimplement move text down and up, use native move command with force silent mode

This commit is contained in:
Arith Xu 2017-12-12 22:48:01 +08:00
parent 23324197ca
commit 269dd0940d

View File

@ -211,7 +211,7 @@ function! s:text_transient_state() abort
\ 'key' : 'J',
\ 'desc' : 'move text down',
\ 'func' : '',
\ 'cmd' : 'noautocmd normal! "_ddp',
\ 'cmd' : 'silent! m .+1',
\ 'exit' : 0,
\ },
\ ],
@ -220,7 +220,7 @@ function! s:text_transient_state() abort
\ 'key' : 'K',
\ 'func' : '',
\ 'desc' : 'move text up',
\ 'cmd' : 'noautocmd exe line(".") == 1 ? "" : "normal! \"_ddkP"',
\ 'cmd' : 'silent! m .-2',
\ 'exit' : 0,
\ },
\ ],