Cannot move cursor in Insert mode

Just noticed that I cannot move the cursor left or right (up and down works correctly) in the Insert mode while editing the .sql file, and other files also work fine.

Any clues ?.

Vim: 7.2.330 - Ubuntu 10.04 x86_64

+4
source share
2 answers

Install "vim". It allows you to move text in "insert mode" using the arrow keys.

+3
source

Maybe <Left> and <Right> mapped to something else? Try this while editing the SQL file:

 :imap <Left> 

This should tell you if it is matched against anything. You can cancel it as

 :iunmap <Left> 

If any syntax file displays <Left> and <Right> strangely, you may need to track it and edit it, as well as configure .vimrc to override these mappings (e.g. via autocmd).

+1
source

All Articles