リピート KeySnail で vi での . や Emacs の C-x z のように「直近のコマンドを繰り返すコマンド」を実現しようと思うと、次のように若干泥臭いことをする必要がある。 key.setGlobalKey(['C-x', 'z'], function (aEvent, aArg) { var savedLastFunc = key.lastFunc; if (!savedLastFunc) return; hook.hookList["PostCommand"] = [ function (hookarg) { key.lastFunc = savedLastFunc; delete hook.hookList["PostCommand"]; }]; key.lastFunc(aEvent, aArg); }, "ひとつ前のコマンドを繰り返す"); 解説 とりあえず直近に