The default behavior of OS X's "home" and "end" keys drives me nuts. In every other operating system that I've used, these keys move your cursor to the beginning (home) or end (end) of your current line. Thankfully, Dreamweaver on the mac behaves this way, but everything else behaves oddly (usually moving you to the beginning or end of the entire document, and sometimes moving just the focus, while leaving the cursor in place).

Today, I decided to try to change this default behavior, and thanks to this blog post by Jon Evans, it was easy. Thanks for the tip Jon!

Update: If the files don't already exist, you need to create them. Here's the easy way to do it in Terminal (easier, because Finder doesn't let you see hidden files easily).

Open Terminal (Applications -> Utilities -> Terminal) and type the following commands:

cd ~/Library/

then

ls

Now, if you don't see the KeyBindings folder, type

mkdir KeyBindings

Go into the KeyBindings Directory

cd KeyBindings

Make or Edit DefaultKeyBinding.dict

nano DefaultKeyBinding.dict

This opens the nano text editor. Paste these lines from the tutorial in into the file.

Now, you don't need to restart OS X, just any applications that you want to use the new KeyBindings in. Remember, this still doesn't work right in Firefox. Also remember that you're changing system setting (in this case, just for the user you're logged in as) and you should always be careful when making system changes :)

Welcome to Starry Hope!

Starry Hope is a site about technology with a focus on open source software and Linux based operating systems. I try to post helpful information for others as I solve problems in the process of my work and play with computers. Be sure to subscribe to my RSS Feed or follow me on Google+ or Twitter.-- Jim Mendenhall