cmder is installed under win7 and I can use vim happily, but the tab indentation seems to be 8 spaces.
How to set it to 4 spaces?
人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!
Try adding these lines inside vimrc
:
" 對(duì)所有 tab 顯示 4 個(gè)空格
set tabstop=4
" 按下 <TAB> 鍵相當(dāng)于輸入 4 個(gè)空格
set expandtab
This line is optional and has nothing to do with the tab you asked about, but my personal suggestion is to add:
" 用 < 或者 > 調(diào)整縮進(jìn)時(shí),縮進(jìn)四個(gè)空格
set shiftwidth=4