Spaces as tabs and backspace behavior in Vim

后端 未结 3 1461
暖寄归人
暖寄归人 2021-02-01 00:33

In my .vimrc I have:

set shiftwidth=4
set tabstop=4
set expandtab

set to use 4 spaces instead of tab when I hit the Tab button. But when I hit

3条回答
  •  臣服心动
    2021-02-01 01:16

    I have the same problem with you earlier, but I soon find it do not make any sense to just backspace 1 character in real coding. but if you really want backspace 1 character, you can just type one more space, then you can delete only one character each time you hit space bar even if you got where there you typed the 4 spaces tab

提交回复
热议问题