For example if in normal mode 4: is pressed, in the command line there will be :.,.+3. What does this mean and what is it used for?


This is a line range (see :h :range). "The dot" means the current line. So it's the current line and the next three ones.

The operation to perform over this line range, of course, depends on the command you type in the command-line.

So 4: is just a handy "shortcut" to input line range.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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