When I ':set number' in vim, each line has a line number followed by a space followed by the content of that line. Is there a way to replace the space with something else? For example a '|' or a couple of extra spaces would be neat, wouldn't it?
Unfortunately, this is not possible. The line number is printed in Vim's screen.c, line 2322:
sprintf((char *)buf, "%*ld ", w, num);
(w is the width and num is the line number). The only way you could change this would be to edit the source code and recompile Vim.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With