vim /etc/vimrc
#設定tab寬度為4個字符
set softtabstop=4
#設定自動縮進為4個字符
set shiftwidth=4
#用space替代tab輸入
set expandtab
#設置換行自動縮進
set autoindent
#不用space替代tab輸入
#set noexpandtab
vim /etc/vimrc
#設定tab寬度為4個字符
set softtabstop=4
#設定自動縮進為4個字符
set shiftwidth=4
#用space替代tab輸入
set expandtab
#設置換行自動縮進
set autoindent
#不用space替代tab輸入
#set noexpandtab
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。