How to delete the previous character in vim?

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

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

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

+4
source share
3 answers

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

+14
source

Simple hx(move left + del char value) in command mode is also an option.

+3
source

. , , . ~/.vimrc:

nnoremap <silent> <backspace> X

vim X ( ) , Backspace . , ; ~/.vimrc.

, Space Backspace ( l h ) . , . .

, , : , ( x, , h + x Shift + x).

-2

Source: https://habr.com/ru/post/1665913/


All Articles