This is one of those posts that are here so I have something to go back to.
To count the number of lines in a selection in Vim, do
The way to do it without losing the selection is
It’s even easier with
showcmd enabled (
:set showcmd) since it shows the number of lines in the command area.