Show active file name and position
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 active file name and position.
Vim messages
Empty
- Last status message
- Last warning
Show active file name and position
Vim messages
"[Scratch]" line 1 of 4 --25%-- col 1
- Last status message
"[Scratch]" line 1 of 4 --25%-- col 1- 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
"[Scratch]" line 1 of 4 --25%-- col 1
- Last status message
"[Scratch]" line 1 of 4 --25%-- col 1- Last warning
Start in Normal mode. The ruler option is off (noruler), so CTRL-G includes the current line and column in its status message.
Details & Vim help
Example replayed in Vim
Show active file name and 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.