Home and End commands in Lion

After installing Lion, + doesn't go to the line start and + doesn't go to the line end.

Anyone know how to reconfigure this?


Solution 1:

Coming from Windows I've had a tough time adjusting to the way home and end behaves. Luckily the guys at MacroMates had a blog post about this.

http://blog.macromates.com/2005/key-bindings-for-switchers/

Create a file at ~/Library/KeyBindings/DefaultKeyBinding.dict with the following contents:

{
    /* home */
    "\UF729"  = "moveToBeginningOfLine:";
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:";

    /* end */
    "\UF72B"  = "moveToEndOfLine:";
    "$\UF72B" = "moveToEndOfLineAndModifySelection:";
}

I restarted and my keys were behaving as expected!

Solution 2:

You could try restoring defaults by using the 'Restore Defaults' button in System Preferences shown below:

enter image description here