Vim RecallEnglish

重新排列移動範圍內涵蓋的文字

gq{motion}

範例

一般模式 0 / 2
one two three four five six seven eight nine ten
游標位於第 1 行,第 1 欄

重新排列移動範圍內涵蓋的文字。

操作前後
操作前
one two three four five six seven eight nine ten
游標位於第 1 行,第 1 欄
操作後
one two three four five
six seven eight nine ten
游標位於第 2 行,第 1 欄

從一般模式開始。對 {motion} 使用 ap。textwidth=24 且 formatoptions=tcq。

詳細說明與 Vim 文件

範例已在 Vim 重播驗證

在一般模式依範例輸入 gq → ap。重新排列移動範圍內涵蓋的文字。