※ 引述《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