vi/vim 设置:tab空格缩进 #显示行号 :set nu #用空格代替tab键 :set expandtab #设置tab缩进为3个空格 :set ts=3 #设置缩进为3个空格 :set shiftwidth=3 #1,100行进行缩进 :1,100>