Henrik Leijon
Henrik Leijon

Reputation: 1787

How to get delete-button behavior in vim?

When using vim in insert mode (or not using vim at all), pressing the delete-button deletes a character TO THE RIGHT of the cursor. How can I get this behavior in vim when in normal mode? Pressing x is not the right answer as it deletes the selected character, not the character to the right.

Upvotes: 1

Views: 275

Answers (1)

Matt
Matt

Reputation: 15081

In the Insert mode it's just for you the cursor looks "kinda between characters". But in fact, your computer sees it being right on the character you are deleting.

In the Normal mode you normally have the bar-cursor, so it looks the way it works.

Now, of course, you can remap your "x" to delete the char to the right, but it will only add a confusion. So, please, don't. Train your mind to see the things in the proper light instead.

Upvotes: 1

Related Questions