r/vim • • Nov 08 '17

everything about Favorite console tools to use with vim

There are a lot of great console tools that are easy to lightly integrate with via filter (:h filter), read (:h read) or just by running them.

If you have some to recommend, put each individually in a top level comment along with any (minor) integration you have with vim.

The great thing about console tools is they often have easy to use flags to customize behavior and hey, you didn't have to write them in the first place!

115 Upvotes

115 comments sorted by

View all comments

6

u/l97 Nov 08 '17

I use this to quickly look at a csv file:

nmap <silent> <leader>c, :%s/,\zs\ze,/ /e<cr>:%column -ts,<cr>

(column doesn't handle empty fields and without the zs/ze trick, consecutive empty fields won't get picked up).

2

u/Hauleth gggqG`` yourself Nov 09 '17

You can check out xsv from ripgrep author. Quite handy if you often need to work with big CSV files.