Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How can I replicate Windows Home/End keys to use to jump to the end of a line or use Shift to highlight to the end or start of a line

share|improve this question
add comment

4 Answers 4

up vote 9 down vote accepted

I used the following a lot.

⌘CMD+: Home

⌘CMD+: End

⌘CMD+: Beginning of Line

⌘CMD+: End of Line

These I learned the other day from here - very handy for coding and writing, these are emacs bindings which work on Macs.

CTRL+A: beginning of line.

CTRL+E: end of line.

CTRL+U: delete from cursor to beginning of line.

CTRL+K: delete from cursor to end of line.

CTRL+W: erase word to the left.

CTRL+T: transpose characters around cursor.

share|improve this answer
add comment

The shortcuts you're looking for are listed on this very handy article in the Apple KB. Hope it helps.

share|improve this answer
    
Extensive. This is handy. –  Paul Eccles Aug 4 '11 at 20:26
add comment

With MacBook Air (the 2012 model at least) the best solution I found was the free KeyRemap4MacBook utility -- it lets you change the keyboard in many ways, and I settled with "fn + cursor left/right" for Home/End and "fn + up/down" for PgUp/PgDown.

(See also a related question with the same answer.)

share|improve this answer
    
Concise, clearly-written answer, with research on related answers, well done. Upvoted. –  gosmond Feb 22 '13 at 20:58
    
Thanks @gosmond, it it quite fun to learn the Mac after 20 years on PC keyboard :) –  Premek Brada Feb 22 '13 at 21:01
add comment

These can actually be mapped globally for most applications by creating entries in ~/Library/KeyBindings/DefaultKeyBinding.dict

But this guy created a handy little packaged script called Keyfixer that sets up the bindings in the way you describe (with some additional Control and Shift modifiers.) I threw it in my Dropbox and run it on any Mac I have to use. Since the preferences are per-user you don't have to worry about screwing up someone else's keys.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.