使制表符键== 4个空格,并像Emacs一样在大括号块之后自动缩进代码? 另外,如何保存这些设置,这样我就不必再次输入它们了。 使用以下命令(在您的.vimrc中): filetype plugin indent on " show existing tab with 4 spaces width set tabstop=4 " when indenting with '>', use 4 spaces width set shiftwidth=4 " On pressing tab, insert 4 spaces set expandtab