vim复制本地到linux服务器上,换行缩进过大,不对的问题
所搜的试了
:setlocal shiftwidth?
:setlocal tabstop?
:setlocal expandtab?
:setlocal softtabstop?
" 设置为 4 个空格缩进
:setlocal shiftwidth=4
" 通常你会希望 tabstop 和 softtabstop 也保持一致
:setlocal tabstop=4
:setlocal softtabstop=4
尝试完不起作用:
实际起作用的配置为: vim ~/.vimrc
set nu
set termencoding=utf-8
set encoding=utf-8
set fileencodings=utf-8,ucs-bom,gbk,cp936,gb2312,gb18030,latin1