skip to content
Alvin Lucillo

Delete word before cursor

/ 1 min read

Suppose you have a long URL. To quicky delete a word before the cursor, use CTRL+w.

# Place the cursor on `u` then press CTRL+w
curl https://example.com/very/long/url
                                   ^ cursor here
# Result
curl https://example.com/url