顯示具有 indent 標籤的文章。 顯示所有文章
顯示具有 indent 標籤的文章。 顯示所有文章

2014年1月15日 星期三

重新設定 indent ..

有時候改人家的 code,為了讓 tab, space, mixing 的 ident 風格 (還有人用 2 space 的 ident..)
可以整齊,就要調整 vi 的 ident 格式..

" a combination of spaces and tabs are " used to simulate tab stops at a width " other than the (hard)tabstop set softtabstop=4

ref: http://stackoverflow.com/questions/1878974/vim-how-to-redefine-tab-as-4-spaces

2011年6月21日 星期二

重新排版 - indent

重新排版功能

1. 先把要重新縮排的區域 Mark 起來
2. 啟動重新縮排

ref : 這一篇 重排所有內容

0 到行首

gg 到檔案開頭

V 進入 visual mode

G 到檔案最後 (就會 mark 到檔案最後)

= 重新縮排 mark 的區域