Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete the previous character in vim?

Tags:

vim

Given this line of text in vim, where the cursor is located at the caret, and the user is in command mode:

sales_tax: row["sales tax"] ,
____________________________^

What is the fastest way to delete the space between the ] and the ,?

like image 705
jerzy Avatar asked Jan 05 '17 18:01

jerzy


People also ask

How do I delete a specific part of Vim?

Using the Shift + V Keys. We can select and delete specific texts using the Shift + V keys and then using the dd command.


1 Answers

You should simply use X (which is shift+x)

like image 111
Axnyff Avatar answered Sep 27 '22 17:09

Axnyff