vim Command-line ranges Absolute line numbers


Example

The following command executes :command on lines 23 to 56:

:23,56command

NB: Ranges are inclusive by default.