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.

In most text areas, ctrl-a and ctrl-f used to move my cursor to the beginning/end of the line, but now I get "^A" printed to terminal, and nothing happens in other input areas.

Any ideas what happened?

share|improve this question
    
So, the move is broken in textedit too? CTRL-A beginnig of line, CTRL-E end of line, CTRL-F one char right, CTRL-B one char left. –  jm666 Jun 7 '11 at 17:12
2  
hmm, works in textedit, must be my bash key bindings –  klochner Jun 7 '11 at 18:49
    
I also have it broken (OS-X Lion Preview4) but I don't have any "set -o vi" settings. Ctrl-A does not have any effect! WTF? I cannot use screen to switch or create new screen sessions. –  user7351 Jun 21 '11 at 1:12
add comment

1 Answer

It was my bash key bindings - I had "set -o vi" in .bashrc.

share|improve this answer
1  
So use, ESC-0 for the beginning of the line, "$" to end, and so on... :) but, you probably know "vi" when activated the vi-mode ;) (i'm using it too) :) –  jm666 Jun 7 '11 at 19:33
    
indeed - just overlooked that I would lose the emacs-style bindings :) –  klochner Jun 7 '11 at 21:29
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.