Make Home / End key move the cursor to the beginning / end of line on Mac OS X

Add the following lines in your ~/Library/KeyBindings/DefaultKeyBinding.dict:

{
  "\UF729"  = "moveToBeginningOfLine:";
  "\UF72B"  = "moveToEndOfLine:";
  "$\UF729" = "moveToBeginningOfLineAndModifySelection:";
  "$\UF72B" = "moveToEndOfLineAndModifySelection:";
}

Reference: http://www.evansweb.info/2005/03/24/mac-os-x-and-home-end-keys/

Advertisements
Make Home / End key move the cursor to the beginning / end of line on Mac OS X

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s