ubuntu 下vim修改tab键为4个空格

vim /etc/vim/vimrc

加入三行内容:

set ts=4
set expandtab
set autoindent

你可能感兴趣的:(ubuntu 下vim修改tab键为4个空格)