Leonardo M. ramé
Leonardo M. ramé

Reputation: 51

Cannot move cursor in Insert mode

Just noted I can't move cursor to left or right (up and down works correctly) in Insert mode while editing an .sql file, with other files it works ok also.

Any hint?.

Vim: 7.2.330 - Ubuntu 10.04 x86_64

Upvotes: 4

Views: 3412

Answers (2)

Munish
Munish

Reputation: 988

Install "vim". It lets you to traverse text within "insert mode" using arrow keys.

Upvotes: 2

Brian Carper
Brian Carper

Reputation: 72966

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

:imap <Left>

That should tell you if it's mapped to anything. You can unmap it like

:iunmap <Left>

If some syntax file is mapping <Left> and <Right> strangely, you might have to track it down and edit it, or else set up .vimrc to override these mappings (e.g. via an autocmd).

Upvotes: 1

Related Questions