# Vim 進階操作 ## 分頁 關閉其他分頁:`:tabo` 下一個分頁:`:tab` 上一個分頁:`:tabo` ## 取代 Visual Mode 選中的文字 1. `:s` 取代。預設會取代整行 1. `\%V` 匹配在 Visual Mode 的範圍內 把選中範圍的 abc 替換成 efg: ``` :s/\%Vabc/efg/g ``` ## 自動調整縮排 1. 選取範圍:`=` 2. 整個文件:`gg=G` ## 刪除 HTML 的 attribute 1. 在中間的 attribute:`dW` 2. 最後一個 attivute:`dt>` 或 `dt/`,相當於「刪除直到 `>`」 ## 刪除 function 呼叫 ``` dabdd ```
×
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