Vim Recall繁體中文

Move to character at middle of the text line

gM

Example

Normal 0 / 1
one two three
Cursor on line 1, column 1

Move to character at middle of the text line.

Before & after
Before
one two three
Cursor on line 1, column 1
After
one two three
Cursor on line 1, column 7

Start in Normal mode.

Details & Vim help

Example replayed in Vim

Move to character at middle of the text line. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.