Hendrik Lammers

Count the number of words

Vim has a build-in counter to get the number of words without relying on external tools like wc. The key binding g ctrl-g will show the following output on the bottom of the screen:

Col 30 of 98; Line 8 of 9; Word 19 of 37; Byte 105 of 208

This also works for a visual selection.