Vim Recall繁體中文

Move to a byte position in the buffer

go

Example

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

Move to a byte position in the buffer.

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

Start in Normal mode. No count is supplied, so go moves to byte one of the buffer.

Details & Vim help

Example replayed in Vim

Move to a byte position in the buffer. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. A count selects a 1-based byte position and defaults to 1, the start of the buffer. End-of-line characters are counted according to fileformat. This is an exclusive motion and requires +byte_offset.