Hi all!
Whenever I install Ubuntu (usually, 11.04 and 11.10) and I have to use VI, I always forget that when VI is in INSERT mode, arrow keys have strage behavior. I like to use arrow keys to move my cursor in the text.
I mean:
To change this behavior, I did the following steps:
Thanks!
References:
Whenever I install Ubuntu (usually, 11.04 and 11.10) and I have to use VI, I always forget that when VI is in INSERT mode, arrow keys have strage behavior. I like to use arrow keys to move my cursor in the text.
I mean:
- Press 'i' to go to Insert Mode
- Press any arrow keys
- You'll see: "A", "B", "C" or "D", depending on the arrow keys. Cursor does not move as expected.
To change this behavior, I did the following steps:
- Open any terminal
- Go to your Home directory by typing "cd"
- Type "echo "set nocp" > .vimrc"
- Open VI again and try to use arrow keys.
Thanks!
References:
This tip is cool!
ReplyDelete