我想使用 Mf 和 Mb 以及所有其他方便的快捷键来实现单词前进/后退功能。这可能吗?
答案1
当然,将其放入您的~/Library/KeyBindings/DefaultKeyBinding.dict
(如果不存在则创建它),并输入以下内容:
{
"~f" = "moveWordForward:"; /* M-f Move forward word */
"~b" = "moveWordBackward:"; /* M-b Move backward word */
"~<" = "moveToBeginningOfDocument:"; /* M-< Move to beginning of document */
"~>" = "moveToEndOfDocument:"; /* M-> Move to end of document */
}