Reputation: 7910
I would like to count characters in a selected block of text, in emacs I can use 'Meta =', which displays the following:
Region has 7 lines, 417 characters.
How can I do the same in Vi(m) ?
Upvotes: 0
Views: 33
Reputation: 40927
In visual mode, gCtrl+g will display word, character, line, and byte counts for the visually selected region.
See :help v_g_Ctrl-g
.
Upvotes: 1