Is there any way to have a digit group separator for line numbers in vim?

i.e., if I am on line 1234567 it would become 1,234,567, where , is a delimiter.

  • By the way, if you are really editing a file that large, I would suggest taking a look at :h relativenumber
    – klaus
    Mar 24 '19 at 4:55

No, this is all hard-coded; see screen.c, line 3893:

char *fmt = "%*ld ";


sprintf((char *)extra, fmt, number_width(wp), num);

So the only way to get what you want is to modify this code.

Sorry :-(


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.