Vim run bash command

Updated: 01 January 2023

Use !, for example to tidy text into tabulated columns

notes.txt 101 KB root
a-longer-filename.sh 2 KB chris
1.jpg 16.37 MB www-data

Type command

:!column -t

Result

notes.txt             101    KB  root
a-longer-filename.sh  2      KB  chris
1.jpg                 16.37  MB  www-data

Leave a comment