Vim Recall繁體中文

Show active file name and position

Ctrl-g

Example

Normal 0 / 1
one two
three four
five six
keep
Cursor on line 1, column 1

Show active file name and position.

Vim messages

Empty
Last status message
Last warning
Before & after
Before
one two
three four
five six
keep
Cursor on line 1, column 1

Vim messages

Empty
Last status message
Last warning
After
one two
three four
five six
keep
Cursor on line 1, column 1

Vim 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.