Tuesday, March 18, 2008

vim tab setting

vi/vim的Tab預設為8個空格,若要改變Tab的空格數,有兩種方法。

第一種:
進入vi/vim後,在Last Line Mode中輸入
set tapstop=4
Tab空格數就會變成4,然而只套用於目前設定。

第二種:
將set tapstop=4寫進~/.vimrc裡,則每次開啟vi/vim就會套用這個值。

1 comment:

Anonymous said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Smartphone, I hope you enjoy. The address is http://smartphone-brasil.blogspot.com. A hug.