Vim Recall繁體中文

Clear the last digit from {count}

{count}<Del>

Example

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

Clear the last digit from {count}.

Before & after
Before
one two three four five
Cursor on line 1, column 1
After
one two three four five
Cursor on line 1, column 9

Start in Normal mode. Build count 23, press Del to remove its last digit, then w; the resulting count is 2.

Details & Vim help

Example replayed in Vim

Clear the last digit from {count}. Use in Normal mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.