Magicology

VIM note - delete is an art: All the delete commands

jwr:

x delete character under the cursor (short for “dl”)

X delete character before the cursor (short for “dh”)

D delete from cursor to end of line (short for “d$”)

dw delete from cursor to next start of word

db delete from cursor to previous start of word

diw delete word under the cursor (excluding white space)

daw delete word under the cursor (including white space)

dG delete until the end of the file

dgg delete until the start of the file

From: collatzode

Via jasonwryan
  1. magicology reblogged this from jwr
  2. jwr reblogged this from collatzode and added:
    From: collatzode
  3. collatzode posted this
blog comments powered by Disqus
To Tumblr, Love Metalab