mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:00:05 +08:00
Merge pull request #1114 from icearith/fix_move_line
reimplement move text down and up
This commit is contained in:
commit
4e34b8f9f7
@ -215,7 +215,7 @@ function! s:text_transient_state() abort
|
||||
\ 'key' : 'J',
|
||||
\ 'desc' : 'move text down',
|
||||
\ 'func' : '',
|
||||
\ 'cmd' : 'noautocmd normal! "_ddp',
|
||||
\ 'cmd' : 'noautocmd silent! m .+1',
|
||||
\ 'exit' : 0,
|
||||
\ },
|
||||
\ ],
|
||||
@ -224,7 +224,7 @@ function! s:text_transient_state() abort
|
||||
\ 'key' : 'K',
|
||||
\ 'func' : '',
|
||||
\ 'desc' : 'move text up',
|
||||
\ 'cmd' : 'noautocmd exe line(".") == 1 ? "" : "normal! \"_ddkP"',
|
||||
\ 'cmd' : 'noautocmd silent! m .-2',
|
||||
\ 'exit' : 0,
|
||||
\ },
|
||||
\ ],
|
||||
|
Loading…
Reference in New Issue
Block a user