-
-
Save anildigital/b391b4ab95f2855382aa6a25a20a30c1 to your computer and use it in GitHub Desktop.
Create this file ~/Library/KeyBindings/DefaultKeyBinding.dict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"\UF729" = moveToBeginningOfParagraph:; // home | |
"\UF72B" = moveToEndOfParagraph:; // end | |
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end | |
// Emacs keybindings | |
"^ " = "setMark:"; | |
"~d" = "deleteWordForward:"; | |
"~w" = "copy:"; /* M-w */ | |
"^w" = "deleteWordBackward:"; | |
"^_" = "undo:"; | |
"^?" = "redo:"; /* C-? */ | |
"~f" = "moveWordForward:"; | |
"~b" = "moveWordBackward:"; | |
"~@" = "selectWord:"; | |
"~v" = "pageUp:"; | |
"^g" = "_cancelKey:"; /* C-g */ | |
"^y" = "paste:"; /* C-y */ | |
"^t" = "transpose:"; /* C-t */ | |
"~t" = "transposeWords:"; /* M-t */ | |
"~<" = "moveToBeginningOfDocument:"; /* M-< */ | |
"~>" = "moveToEndOfDocument:"; /* M-> */ | |
"^V" = "pageDownAndModifySelection:"; | |
"~B" = "moveWordBackwardAndModifySelection:"; | |
"~F" = "moveWordForwardAndModifySelection:"; | |
"~/" = "complete:"; /* M-/ */ | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also in iTerm 2, do below steps
Go to Preferences -> Profiles -> Keys
Set Left option key act as:
+Esc