By default, we use h, j, k and l keys for navigation on vi/vim text editor.
You can use arrow key to navigate around.
But sometimes, when you press arrow keys in the insert mode, it will insert newlines and prints A, B, C, D capital letters.
To fix this issue, set the following,
:set nocompatible
or add this entry to user's home directory
$ echo "set nocompatible" >> ~/.vimrc
$ echo "set nocompatible" >> ~/.exrc
You can use arrow key to navigate around.
But sometimes, when you press arrow keys in the insert mode, it will insert newlines and prints A, B, C, D capital letters.
To fix this issue, set the following,
:set nocompatible
or add this entry to user's home directory
$ echo "set nocompatible" >> ~/.vimrc
$ echo "set nocompatible" >> ~/.exrc
No comments:
Post a Comment