Spaces as tabs and backspace behavior in Vim

后端 未结 3 1487
暖寄归人
暖寄归人 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 00:57

    You can try using ^T and ^D.

    :help i_CTRL-T
    :help i_CTRL-D
    

    These allow to insert or delete (more like backspace though) a number of spaces equal to shiftwidth.

提交回复
热议问题