3 ms·
Set a bigger tab size in the editor, e.g. `:set ts=32` in vim.
by ciupicri 2y ago
Set a bigger tab size in the editor, e.g. `:set ts=32` in vim.
- mort96 2y agoAaaand now I can fit like 3 fields next to each other before they wrap and the field with arbitrary length text still misaligns the field after it
- bee_rider 2y agoThere is at least a chance that the text fields will fit in a tab. If not, a tool like “column” on Linux can be used. There is no chance that a text field will fit inside the width of a comma.
- ciupicri 2y agoI was about to mention that column [1] is part of util-linux, so perhaps it's Linux specific, but then I noticed this in the FreeBSD man page [2]: > The column command appeared in 4.3BSD-Reno. [1]: https://man7.org/linux/man-pages/man1/column.1.html https://man7.org/linux/man-pages/man1/column.1.html [2]: https://man.freebsd.org/cgi/man.cgi?query=column&sektion=1 https://man.freebsd.org/cgi/man.cgi?query=column&sektion=1
- cgb_ 2y agovartabstop can help with per-column width. I found https://sharats.me/posts/automating-the-vim-workplace-3/#using-vartabstop-to-line-up https://sharats.me/posts/automating-the-vim-workplace-3/#usi... which greatly improved my TSV editing experience in vim. Couple that with autocmd TextChangedI and you get realtime recalculation and alignment.