I am using gvim 7.4 on Windows (32 bit) and using the wc word-counting macro :WC
by jcline. When I manually set a range and run the macro, e.g., :'a,.WC<CR>
, I get the expected counted XXX words
output. :WC
produces this using echo "counted " . wc_count . " words" . stop
.
Problem: when I select text in visual mode and then run the macro with, e.g., vap:WC<CR>
(command line '<,'>WC
), the "counted
" output flickers for a moment and then disappears at the same time the visual highlighting disappears from the window. Usually it is too fast for me to read the word count.
Question: Is there any way to leave the echo
output visible when existing visual mode so that I can use visual mode to select the text input to :WC
?
Thanks!