Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When I'm in insert mode and I move left from the last cursor position (the empty spot to the right of the last character), then I can't go back to that position anymore. I have to type Esc$a (or replace $ with a bunch of times) to get there. It seems like a lot of extra keystrokes just to, say, go delete the last character (and still be in insert mode).

Is there a better way or should I just use the default emacs mode (even though I don't know a single emacs command)?

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

In normal mode you start edit at end of line with Shift+A.

In insert mode you should be able to move to EOL.

In manual:

man readline
/VI Mode bindings<Enter>

As to real/other question, I have to fill in a bit:

$ le eds de x
      ^     ^^
      |     ||
      A     BC

In insert mode do you mean you are not able to move to C, only B from A?

Even with , or End?

So that if you start typing the letters will enter before x?

share|improve this answer
1  
I can't go back to C once I leave that position in insert mode. So if I move all the way to the left and start typing, the x character will always be the last character. Also I don't have a End key (MacBook Pro). –  hobbes3 May 7 '13 at 21:43
    
@hobbes3: Also, do you have an .inputrc file? –  Sukminder May 7 '13 at 21:57
    
No, I don't. Is there anything else I should test for? I have noticed that I can get to C on CentOS with set -o vi in my .bashrc. I think this problem is specific to Mac OS X's Terminal. –  hobbes3 May 8 '13 at 4:02
1  
I did that and it's doing the same thing (can't get to C). So weird. It must be a Mac Terminal limitation... –  hobbes3 May 9 '13 at 23:34
1  
@hobbes3: Sounds like a bug then. (Hard to argue for it as a feature.) I posted a ping/question with link here on chat @ apple.stackexchange.com –  Sukminder May 9 '13 at 23:50
show 2 more comments

You can just press the End key to get there.

Also, you can use Shift + A (capital A - for append) to put you into Insert Mode at the end of a line.

share|improve this answer
add comment

You can use :10000 or more to get to the last line

share|improve this answer
    
:x move to a given line, not within the line. –  Mat May 24 '13 at 8:13
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.