Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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 '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? – Rook Jun 15 '15 at 22:11

Your Answer

 
discard

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.