Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can get the current document word count in vim, with the keyboard combo:

g ctrl-g

Is there a way to get a running word count in the vim ruler?

share|improve this question

1 Answer 1

If you would like the word count in the statusline (similar to ruler, only customizable) for the entire document, you might want to check some of the answers in this question on StackOverflow.

share|improve this answer
Thanks. I can't believe that something as common and simple as showing a word-count is so non-trivial in vim... –  Jamie Bullock Jun 15 at 8:01
@JamieBullock - It is relatively non trivial. Period. Only in most cases we don't see the underlining code. The algorithm is trivial, count the words, eh, but what is a word, really? –  ldigas Jun 15 at 22:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.