この記事の次の vim マクロでは、著者が説明しています。一部は理解できますが、すべてではありません。
:qccwcommand<Esc>:w<Ctl-W>jj<Enter>q
このマクロ (レコードの開始/停止を含む) は、現在の 'path_to_command' ワードを 'command' に変更し、ファイルをディスクに書き込み、ウィンドウ分割を grep 検索結果に変更し、1 行下に移動します。結果で、その結果の場所に移動します。
Q1. ここで何をccw
していますか?それは(言葉を変えて)何か関係がありますcw
が、よくわかりません。
Q2. :w 書く必要がありますよね?.
Q3. ここで何を<Ctrl-W>jj
していますか?以下はその内容:h CTRL-W_J
ですが、正しいヘルプを調べているのか、このコンテキストでのヘルプの意味を調べているのかわかりません。
*CTRL-W_J*
CTRL-W J Move the current window to be at the very bottom, using the
full width of the screen. This works like closing the current
window and then creating another one with ":botright split",
except that the current window contents is used for the new
window.