Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
キーストロークの最小数でemacsの「foo and bar」に「foo」と「bar」を転置する方法は?
入力:
foo and bar
出力:
bar and foo
別の方法:
数値接頭辞 0 toM-tは、マークの後に終わる単語をポイントの後に終わる単語に置き換えます。
したがって、^がマークで|がポイントの場合:
^
|
f^oo and ba|r
を押すと、次のようになりM-0 M-tます。
|bar and ^foo
したがって、あなたの例では、入力している場合foo and bar|、キーシーケンスはC-space M-3 M-b M-0 M-t(行末にマークを設定し、3単語をfooに戻し、それらの単語を転置します)。
foo and bar|