vim: add SuperRetab command

master
an 2019-09-05 16:46:05 -04:00
parent 5ed04a948b
commit 3051db3c72
1 changed files with 3 additions and 0 deletions

View File

@ -464,6 +464,9 @@ com -nargs=+ -complete=file -bar Gr silent! grep! "<Args>" | cwindow
" Write (sudo)
com W execute 'w !sudo tee > /dev/null %' | edit!
" Retab
com -nargs=1 -range SuperRetab <line1>,<line2>s/\v%(^ *)@<= {<args>}/\t/g
" Autocommands ---------------------------------------------------------------|
augroup AGW