Say I do set statusline+=col:%3v; in Vim 8.
Now if I'm on column 1, my statusline looks like col: 1;.
How do I get the padding on the other side of the number? E.g., how do I get my column 1 statusline to look like col:1 ;?
Say I do set statusline+=col:%3v; in Vim 8.
Now if I'm on column 1, my statusline looks like col: 1;.
How do I get the padding on the other side of the number? E.g., how do I get my column 1 statusline to look like col:1 ;?
Copyright © 2021 Jogjafile Inc.
Use
%-3v. As documented in:help 'statusline:This is also the convention used by
printf, which vim is clearly imitating.