Skip to content
Bruno Heridet edited this page Nov 9, 2017 · 2 revisions

https://en.wikipedia.org/wiki/Wc_(Unix)

Display the amount of words in the current selection

Use the following keybinding to have the amount of words in the current buffer displayed in the statusbar:
map global user 'w' %{:echo %sh{wc -w <lt><lt><lt> "${kak_selection}"}<ret>} To use it, select some text, and hit the user key (comma) followed by 'w'`.

Clone this wiki locally