Feature: make filenames more aligned for block-visual mode
ppwwyyxx opened this issue · comments
When batch-editing file names I often rely on the "block visual" mode in vim. This is useful when I need to add/remove/edit common prefix to file names.
However, a problem with both vidir and edir is that line numbers can have different width, e.g.:
This causes filenames across lines to not left-aligned.
Here are some ideas that make them more aligned:
- Add an option (or maybe even default) to pad the line numbers (by space or zeros) such that all numbers have the same number of characters, therefore all filenames are left-aligned.
- Add an option to choose whether to left-align or right-align the filenames. (right-align can be useful if I need to add/remove/edit common suffix). Alignment can be implemented by space paddings.
I also use block visual mode in vim all the time and don't see this problem because edir
writes a tab after the number. Have you configured your vim in a non-standard way to filter tabs?
Yeah, now I notice that set ts=4
fix the alignment for me. Thanks for your commit!