mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 12:40:05 +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
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
command! -nargs=0 -range=% ReverseLines :<line1>,<line2>call <sid>reverse_lines()
|
||||||
function! s:reverse_lines() range
|
function! s:reverse_lines() range
|
||||||
let rst = getline(a:firstline, a:lastline)
|
let rst = getline(a:firstline, a:lastline)
|
||||||
call reverse(rst)
|
call reverse(rst)
|
||||||
|
Loading…
Reference in New Issue
Block a user