重新排列移動範圍內涵蓋的文字,並保持游標位置不變
gw{motion}
範例
一般模式 0 / 2等待指定範圍 1 / 2一般模式 2 / 2one 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游標位於第 1 行,第 1 欄重新排列移動範圍內涵蓋的文字,並保持游標位置不變。
接著按 ap,指定要重新編排的範圍。
重新排列移動範圍內涵蓋的文字,並保持游標位置不變
操作前後
one two three four five six seven eight nine ten游標位於第 1 行,第 1 欄one two three four five
six seven eight nine ten游標位於第 1 行,第 1 欄從一般模式開始。對 {motion} 使用 ap。textwidth=24 且 formatoptions=tcq。