vim-tab键缩进4个空格

vim /etc/vimrc 

#设定tab宽度为4个字符

set softtabstop=4

#设定自动缩进为4个字符

set shiftwidth=4

#用space替代tab输入
set expandtab

#设置换行自动缩进
set autoindent

#不用space替代tab输入

#set noexpandtab

扫描二维码关注公众号,回复: 9539085 查看本文章

猜你喜欢

转载自www.cnblogs.com/zhongle21/p/12399334.html