Vim Recall繁體中文

Equivalent to gk

g<Up>

Example

Normal 0 / 1
one two three
four five six
seven eight nine
Cursor on line 2, column 5

Equivalent to gk.

Before & after
Before
one two three
four five six
seven eight nine
Cursor on line 2, column 5
After
one two three
four five six
seven eight nine
Cursor on line 1, column 5

Start in Normal mode. These short lines occupy one screen line each.

Details & Vim help

Example replayed in Vim

Equivalent to gk. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.