mguijarr
mguijarr

Reputation: 7910

Vi equivalent to "meta =" in Emacs?

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

Answers (1)

Randy Morris
Randy Morris

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

Related Questions