Friday, August 29, 2008

Count Words

If you would like to count the number of words in the current Vim buffer, you can simply issue the following command: g CTRL-G (no space between g and CTRL-G).

1 comment:

Whispers in your ear said...

Great!

Note that you can make a visual selection first, so {Visual}g Ctrl-G gives similar statistics for the current selection.