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
Install "vim". It lets you to traverse text within "insert mode" using arrow keys.
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).
精彩评论