Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Weird Vi-mode behavior



Peter Stephenson wrote:
Matthieu Louvel de Monceaux wrote:
When we return from command mode to insert mode, we can't modify
the text from the beginning to the spot where we got insert ...
Definitely a weird behavior ...

To get it too, just type 'foo folk x' for example.
Then Esc, type 'b' to go to the previous word, then press 'i' to go insert mode.
Now you can't edit the 'foo ' part anymore.

I'm sorry, I don't understand.  You're in insert mode, and you're
inserting at the "folk", right?  (That's what your description implies
with the usual key bindings.)  Then of course you won't be editing "foo
", you'll be inserting new text in front of "folk".

Do you mean you can't use the cursor key to go backward?

Do you mean you hit "b" *twice* to go back to the "foo" and you expect
to be in overwrite mode rather than insert mode so that you type over
the "foo"?

Do you mean you were expecting the effect of "I" (capital important)
which takes you to the start of the line and then puts you in insert
mode?

Maybe I badly explained, sorry maybe the fault of my english.

I mean when I'm inserting at 'folk', I can't backspace in 'foo ' anymore.
I can of course use the arrow keys to move the cursor, but backspace has no effect.
Anywhere else the backspace key works properly.

Cheers,
M. Louvel de Monceaux



Messages sorted by: Reverse Date, Date, Thread, Author