可创建一个~/.vimrc文件,在里面做自定义设置 set number " 显示行号 set nonumber " 关闭行号 set tabstop=4 " 设置 tab space, 为4个空格。可缩写为ts set expandtab " 将tab替换为指定数量的空格 s