Vim Recall繁體中文

Move to the end of the line

$

Example

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

Move to the end of the line.

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

Start in Normal mode. A single unwrapped line; two spaces precede and follow the words.

Details & Vim help

Example replayed in Vim

Move to the end of the 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. A count also moves count minus one lines downward, as far as possible. A count of 2 or larger on the last line is an error and leaves the cursor in place. This is an inclusive motion.