1
0
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:
wsdjeg 2022-03-19 23:53:05 +08:00
parent c86ad1a6bd
commit ea9e5c237e

View File

@ -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)