3

Is there a command to display a count of the number of lines you have selected in Visual Mode in VIM?

3
  • Isn't this information displayed bottom-left side of the window when you are in visual-mode ? Oct 19, 2015 at 16:58
  • 7
    If you do :set showcmd Vim will also display the number of lines visually selected. Oct 19, 2015 at 17:06
  • You can also add :set showcmd to your .vimrc. Should be automatically on if nocompatible is set. vimhelp.appspot.com/options.txt.html#%27showcmd%27
    – Will
    Oct 21, 2015 at 15:41

1 Answer 1

9

g then Ctrlg will spit out something like this:

Selected 10 of 4123 Lines; 67 of 11111 Words; 400 of 40000 Bytes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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