vimrc


设置用空格替换 Tab

 1 " Indentation settings for using 4 spaces instead of tabs.
 2 " Do not change 'tabstop' from its default value of 8 with this setup.
 3 " set expandtab
 4 " set shiftwidth=2
 5 " set softtabstop=2
 6 
 7 " Indentation settings for using hard tabs for indent. Display tabs as
 8 " four characters wide.
 9 set shiftwidth=4
10 set tabstop=2
11 set expandtab
vim