现在的位置: 首页 > 综合 > 正文

vim 之自动缩进(smartindent) tab 空格数设置为4

2013年07月11日 ⁄ 综合 ⁄ 共 108字 ⁄ 字号 评论关闭

1. 打开设置文件:

sudo vim /etc/vim/vimrc

2. 添加以下代码:

set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4

抱歉!评论已关闭.