vim === **[快捷鍵]** \* : 往上找變數 \# : 往下找變數 [[ : 找變數所在函數 ]] : 找下一個執行的函數 [{ : 找變數所在block開頭 ]} : 找變數所在block結尾 % : 找成對括號及pre-define \`\` : 回上次游標位置 (Ctl + o / Ctl + r) **[環境設定]** set ts=x : tab space 為x字元數 set expandtab: 用空白字元代替tab set nu : 顯示行號 第x字元地方顯示高亮度 set colorcolumn=x highlight colorcolumn guibg=#202020 顯示tab set listchars=tab:>>\ (\之後須空白一格) set list 開新水平視窗: :new 開新垂直視窗: :vnew 水平切割後開起現有或指定檔案: <code>:sp</code> (split) 垂直切割後開起現有或指定檔案: <code>:vsp</code> (vsplit) 操作預設hot key是Ctrl + w 在分割視窗之間切換/移動焦點: <Hot key> k 或 <Hot key> ↑ <Hot key> j 或 <Hot key> ↓ <Hot key> h 或 <Hot key> ← <Hot key> l 或 <Hot key> → (把英文字母改成大寫則可移動到最上最下最左最右) 把目前的分割視窗加大: <Hot key> + 把目前的分割視窗縮小: <Hot key> – 把目前同一行/列的分割視窗高/寬平均: <Hot key> = 把目前的分割視窗放到最大(寬or高): <Hot key> _ <Hot key> | 把目前的分割視窗用一個新的分頁(tab)開啟: <Hot key> T [TRACE CODE] https://ivan7645.github.io/2016/07/12/vim_to_si/
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up