Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to change the delimiter after linenumber in vim?

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?

like image 229
harithski Avatar asked Dec 09 '10 14:12

harithski


1 Answers

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.

like image 186
DrAl Avatar answered Nov 15 '22 10:11

DrAl