开发者

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

开发者 https://www.devze.com 2023-01-29 11:40 出处:网络
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 someth开发者_如何学Cing else? For example

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 someth开发者_如何学Cing 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消