How to delete, including the current character?

vim

Solution

No. Backward motions always start on the left of the current character for `c`, `y` and `d` which is somehow logical but also unnerving.

The only "clean" solutions I could think of either imply moving to the char after `c` first and then do a forward delete:

Tcde

or using visual mode:

vTcd
v3hd

But, given your sample and assuming you are entering normal mode just for that correction, the whole thing sounds extremely wasteful to me.

What about staying in insert mode and simply doing ←←←←?

Problem

Let's say I've typed "abcdefg", with the cursor at the end. I want to delete back to the c, so that I only have "abc" left. Is there a command like `d` that includes the current character? I know I could do `dTcx`, but the `x` feels like a work-around and I suppose there's a better solution.

Original source

Related problems