新手问题 关于 vim 的 tab 空格问题

zls0926 · January 12, 2015 · Last by zls0926 replied at January 12, 2015 · 1400 hits

我在本地的 vim 配置文件里定义了 tabstop=2,本地显示没问题,一次退 2 格,但是提交到 github 上,显示的是一次退 4 格,请问这是什么问题。。。该怎么设置?

" 1 tab to 2 space for ruby
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab

see more: https://github.com/windy/ruby-vimrc

@lyfi2003 非常感谢!set expandtab 是这个没有设置

2 Floor has deleted
You need to Sign in before reply, if you don't have an account, please Sign up first.