Show information about current cursor position
g Ctrl-g
Example
Normal 0 / 1Normal 1 / 1one two
three four
five six
keepCursor on line 1, column 1one two
three four
five six
keepCursor on line 1, column 1Show information about current cursor position.
Vim messages
Empty
- Last status message
- Last warning
Show information about current cursor position
Vim messages
Col 1 of 7; Line 1 of 4; Word 1 of 7; Byte 1 of 33
- Last status message
Col 1 of 7; Line 1 of 4; Word 1 of 7; Byte 1 of 33- Last warning
Before & after
one two
three four
five six
keepCursor on line 1, column 1Vim messages
Empty
- Last status message
- Last warning
one two
three four
five six
keepCursor on line 1, column 1Vim messages
Col 1 of 7; Line 1 of 4; Word 1 of 7; Byte 1 of 33
- Last status message
Col 1 of 7; Line 1 of 4; Word 1 of 7; Byte 1 of 33- Last warning
Start in Normal mode.
Details & Vim help
Example replayed in Vim
Show information about current cursor position. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.