Skip to content

Instantly share code, notes, and snippets.

@jeesim2
Created January 12, 2023 05:27
Show Gist options
  • Save jeesim2/e16addb4cf1bb94db6ba7afdfa00e09c to your computer and use it in GitHub Desktop.
Save jeesim2/e16addb4cf1bb94db6ba7afdfa00e09c to your computer and use it in GitHub Desktop.
```
mkdir -p ~/Library/KeyBindings
vi ~/Library/KeyBindings/DefaultkeyBinding.dict
```
```
{
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"@\UF729" = "moveToBeginningOfDocument:"; /* Cmd + Home */
"@\UF72B" = "moveToEndOfDocument:"; /* Cmd + End */
"\UF72C" = "pageUp:"; /* PageUp */
"\UF72D" = "pageDown:"; /* PageDown */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */
"₩" = ("insertText:", "`");
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment