我正在使用 spf13 的 vim 发行版https://github.com/spf13/spf13-vim。我一直在尝试为.js
文件使用 2 个空格而不是 4 个空格,因此我创建了一个js.vim
in ~/.vim/ftplugin
. 我做错了吗?
js.vim
set shiftwidth=2 " Use indents of 2 spaces
set tabstop=2 " An indentation every two columns
set softtabstop=2 " Use two spaces while editing