回文章列表
作者uayc.bbs@ptt.cc (uayc) 看板: linux
標題Re: [問題] vim的縮排
時間批踢踢實業 (2008/03/12 Wed 22:17:23)
※ 引述《gotoo (阿拉斯加雙面魚)》之銘言:
: 用vim寫code時要縮排
: 請問只能手動用ctrl+t or ctrl+d調整嗎
: 能不能像ultraedit的自動縮排呢
: 謝謝

要注意ctrl+t等同於tab字元

寫code時自動縮排, 找indent/cindent/autoindent
:set (auto)indent

normal mode下shift則為 '>>', '<<'

對於檔案的懶人縮排可利用 (normal mode)
gg=G

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 125.231.117.92
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻