Remap "Home" and "End" to beginning and end of line

오픈소스·2022년 12월 3일
0

https://apple.stackexchange.com/a/16137

$ vi ~/Library/KeyBindings/DefaultKeyBinding.dict
{
    "\UF729"  = moveToBeginningOfLine:; // home
    "\UF72B"  = moveToEndOfLine:; // end
    "$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
    "$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
}

0개의 댓글