1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 08:40:06 +08:00

Merge pull request #1114 from icearith/fix_move_line

reimplement move text down and up
This commit is contained in:
Wang Shidong 2017-12-13 18:53:10 +08:00 committed by GitHub
commit 4e34b8f9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
\ },
\ ],