开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜