Display some lines
Example
Normal 0 / 3Command-line 1 / 3Hit-enter prompt 2 / 3Normal 3 / 3one two
three four
five six
keepCursor on line 1, column 1one two
three four
five six
keepCursor on line 1, column 1one two
three four
five six
keepCursor on line 3, column 1one two
three four
five six
keepCursor on line 3, column 1Display some lines.
Vim messages
Empty
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
Empty
Command entered · ready to apply
Vim messages
Empty
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
Empty
Command submitted · output shown · press Enter to acknowledge
Vim messages
Empty
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
one two three four five six
Output acknowledged · returned to Normal mode
Vim messages
Empty
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
one two three four five six
Before & after
one two
three four
five six
keepCursor on line 1, column 1Vim messages
Empty
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
Empty
one two
three four
five six
keepCursor on line 3, column 1Vim messages
Empty
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
one two three four five six
Start in Normal mode. Displayed message and variable values are captured from this isolated Vim; output text is never inferred from the catalog description. Prepared terminal: 80 columns by 24 rows, cmdheight=1 and nomore. Submit the command with the first Enter; output waits at hit-enter. Press the second Enter to acknowledge and return to Normal mode.
Details & Vim help
Example replayed in Vim
Display some lines. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.