SMILET
要为当前用户永久定义此.vimrc文件,请创建(或编辑)文件:$ vim ~/.vimrc然后,将以下配置粘贴到文件中。vim重新启动后,选项卡设置将适用。set tabstop=4 " The width of a TAB is set to 4. " Still it is a \t. It is just that " Vim will interpret it to be having " a width of 4.set shiftwidth=4 " Indents will have a width of 4set softtabstop=4 " Sets the number of columns for a TABset expandtab " Expand TABs to spaces