Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am frankhefeng on github.
  • I am frankhe (https://keybase.io/frankhe) on keybase.
  • I have a public key ASBKLobJREiBuOPNNRG7zr4ol6hnwpsHTsorzs9HMVo9Lgo

To claim this, I am signing this object:

@frankhefeng
frankhefeng / DefaultKeyBinding.dict
Created March 2, 2020 10:12
Fix HOME/END keys in MacOS: ~/Library/KeyBindings/DefaultKeyBinding.dict
{
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home
"^\UF72B" = moveToEndOfDocument:; // ctrl-end
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end
}