mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 13:40:06 +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',
|
\ 'key' : 'J',
|
||||||
\ 'desc' : 'move text down',
|
\ 'desc' : 'move text down',
|
||||||
\ 'func' : '',
|
\ 'func' : '',
|
||||||
\ 'cmd' : 'noautocmd normal! "_ddp',
|
\ 'cmd' : 'noautocmd silent! m .+1',
|
||||||
\ 'exit' : 0,
|
\ 'exit' : 0,
|
||||||
\ },
|
\ },
|
||||||
\ ],
|
\ ],
|
||||||
@ -224,7 +224,7 @@ function! s:text_transient_state() abort
|
|||||||
\ 'key' : 'K',
|
\ 'key' : 'K',
|
||||||
\ 'func' : '',
|
\ 'func' : '',
|
||||||
\ 'desc' : 'move text up',
|
\ 'desc' : 'move text up',
|
||||||
\ 'cmd' : 'noautocmd exe line(".") == 1 ? "" : "normal! \"_ddkP"',
|
\ 'cmd' : 'noautocmd silent! m .-2',
|
||||||
\ 'exit' : 0,
|
\ 'exit' : 0,
|
||||||
\ },
|
\ },
|
||||||
\ ],
|
\ ],
|
||||||
|
Loading…
Reference in New Issue
Block a user