mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
fix(edit): add missing command ReverseLines
This commit is contained in:
parent
c86ad1a6bd
commit
ea9e5c237e
@ -700,6 +700,7 @@ function! s:duplicate_lines(visual) abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
command! -nargs=0 -range=% ReverseLines :<line1>,<line2>call <sid>reverse_lines()
|
||||
function! s:reverse_lines() range
|
||||
let rst = getline(a:firstline, a:lastline)
|
||||
call reverse(rst)
|
||||
|
Loading…
Reference in New Issue
Block a user