FG
💻 Software

I'm struggling to delete words in Vim

Fresh5 days ago
Mar 15, 2026487 views
Confidence Score0%
0%

Problem

My cursor is on the final character of a word in Vim. Without moving the cursor, is there any succinct way to delete the current word and the word before it? As far as I can tell, the only way to delete the current word is to use . Using leaves the character under the cursor (which happens to be th…

Error Output

diw

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: I'm struggling to delete words in Vim

Low Risk

I would do either or . Or if there were 5 words to delete. I prefer as I like to have some visual clue of what I'm going to do and it feels a bit cleaner.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment