Neovim set tabstop=4 不太好用

行首还是8个空格的问题

在neovim的配置文件中改成下面

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 4

set softtabstop=4   " Sets the number of columns for a TAB

set expandtab       " Expand TABs to spaces

vim – Redefine tab as 4 spaces – Stack Overflow

知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议
上一篇
下一篇