vim设置多行缩进为4个空格长度而不是8个空格长度, 例如 :123,125 >

.vimrc

变量名           缩写        含义 
(no)smartindent si          基于autoindent的一些改进 
tabstop=X       ts          编辑时一个TAB字符占多少个空格的位置。 
shiftwidth=X    sw          使用每层缩进的空格数。 
(no)expandtab   (no)et      是否将输入的TAB自动展开成空格。开启后要输入TAB,需要Ctrl-V<TAB> 
softtabstop=X   sts         方便在开启了et后使用退格(backspace)键,每次退格将删除X个空格 

 

posted on 2021-04-08 18:06  liujx2019  阅读(271)  评论(0编辑  收藏  举报

导航