vim Command-line ranges Relative line numbers


Example

In the following command the range starts 6 lines above the current line and ends 3 lines below:

:-6,+3command