Skip to content

Instantly share code, notes, and snippets.

@romainl
Last active July 18, 2026 12:40
Show Gist options
  • Select an option

  • Save romainl/6575382f1c4575d4a7398d162aa3e1fd to your computer and use it in GitHub Desktop.

Select an option

Save romainl/6575382f1c4575d4a7398d162aa3e1fd to your computer and use it in GitHub Desktop.
Ultra lightweight aligning
" Use a bunch of standard UNIX commands for quick an dirty
" whitespace-based alignment
function! Align()
'<,'>!column -t|sed 's/ \(\S\)/ \1/g'
normal gv=
endfunction
xnoremap <silent> <key> :<C-u>silent call Align()<CR>
@ccjmne

ccjmne commented Jul 18, 2026

Copy link
Copy Markdown

I use !ipcolumn -to\ , counting on column's built-in --output-separator option to have it only use a single space!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment