首页 > 技术文章 > Ubuntu 设置Vim tab为四个空格

tangxin-blog 2016-07-11 20:31 原文

 

使用root权限打开 /etc/vim/vimrc 添加下列配置

set tabstop=4 
set softtabstop=4 
set shiftwidth=4 
set noexpandtab 
set nu 
set autoindent 
set cindent 

然后保存

推荐阅读