Is there a text-editor which counts words not characters in GNU/Linux ? I tried out various editors but couldn't figure out which one has it but none of the popular ones seem to have it. Looking for advice. No vi or emacs but one that regular people use, like leafpad or Gedit/pluma like that.

closed as too broad by Thomas Dickey, countermode, techraf, Stephen Kitt, GAD3R Nov 9 '16 at 14:42

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    vi like emacs does this too (the count-words command). probably vim does it. – Thomas Dickey Nov 9 '16 at 10:28
  • I did narrow it down, hopefully this is now answerable. – shirish Nov 9 '16 at 20:49
  • Possible duplicate of unix.stackexchange.com/questions/237422/… which seems to have a valid (yet unaccepted) answer. – Timothy Martin Nov 9 '16 at 21:10
  • 1
    Glad to be one of the irregular people in this world, never even having heard of leafpad or pluma. – Anthon Nov 9 '16 at 21:14


There are at least two different minor modes in emacs that display word-count information in the mode line, as well as a built-in command.

Without installing anything extra, you can use Meta-= at any time to see the word count of the current buffer or selection. For older versions, you can use Meta-| wc

Alternatively, you can install and use one of the minor modes that offers this functionality in the mode line: either word-count-mode or wc-mode.




You could call wc in the :!wc -w %

or try

the following : ggVGgCtrl+g

The output will be Selected 26 of 26 Lines; 40 of 40 Words; 1352 of 1352 Bytes

  • 1
    Or just g Ctrl-g (cf. :h g_CTRL-G). – Satō Katsura Nov 9 '16 at 16:11

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