search

Home  >  Q&A  >  body text

shell - vim 配置文件缩进问题

不知道,怎地搞的,为什么在.vimrc文件里设置了:

set autoindent
set tabstop=2
set shiftwidth=2

死活按下「Tab」和「Shift」+「<」键,都是8个空格啊,还有就是按「o」进入编辑状态,也总是缩进8个空格....这是怎么回事。。。

阿神阿神2886 days ago440

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-21 10:57:26

    Try adding a sentence

    set cin
    

    The questioner wrote the indentation setting in the conditional judgment statement, but it was not executed

    reply
    0
  • ringa_lee

    ringa_lee2017-04-21 10:57:26

    set softtabstop=2
    set expandtab
    

    reply
    0
  • Cancelreply