Last Updated: June 24, 2016·
Counting words in Vim
In order to count words, you have, at least two options. Using
!wc % shell tool or pressing <kbd>g</kbd> <kbd>Ctrl g</kbd>. The first one, in this example uses the current file (buffer) as a standard input. You can, of course, fine tune the scope: whole file or selected text.
Written by Wojtek Ryrych
Basic Vim commands - For getting started
Format JSON in vim
Have a fresh tip? Share with Coderwall community!
Post a tip
Best #Vim Authors
Sponsored by #native_company# — Learn More