Curtis Free |
Husband · Dad · Geek |
BlogAdding the total line count to Vim's status line @ 22 Apr 2012By default, Vim displays some information about the current buffer/state on its command line (the last line in the window): As of late, I like asking Vim to display a second line of information at all times ( As you can see in both screenshots, I have enabled Vim's "ruler" ( With The
If you expect to edit very large buffers, you might also wish to give Vim some additional space to the right for many-digit line counts. Here, we give the line/column count group 20 characters instead of the default 14:
This gives a status line like the following: Of course, you can add | |
[ CC BY-SA 4.0 ] |