Ultra-light align

2 Points

Romain Lafourcade Romain Lafourcade

1 year ago

Ultra lightweight aligning.

function! Align()
    '<,'>!column -t|sed 's/  \(\S\)/ \1/g'
    normal gv=
endfunction

xnoremap <silent> <F5> :<C-u>silent call Align()<CR>