Hello,
On 4/7/06, Mark Palmer <[EMAIL PROTECTED]> wrote:
> The problem is in gvim the windows version using the gui. When use my
> cygwin compilled version of vim in a terminal or the the gui on linux
> I don't have the same problem.
>
> Any more clues ?
>
What is the output of the following commands?
:set keymodel?
Most probably you are sourcing mswin.vim. This file has the following
line, which changes the default 'keymodel' option setting:
:behave mswin
Try the following command:
:behave xterm
After executing the above command, you should be able to use the
arrow keys to extend the visual selection.
With the default setting for the 'keymodel' option, you can use the
arrow keys to extend the visual selection.
- Yegappan
>
> On 4/6/06, Thor Andreassen <[EMAIL PROTECTED]> wrote:
> > On Thu, Apr 06, 2006 at 04:55:08PM +0100, Mark Palmer wrote:
> > > How can I setup vim to use the arrows keys in visual mode, when I am
> > > visual mode only the hjkl keys work?
> >
> > This is probably a terminal issue.
> >
> > One quick solution/workaround is to bind the escape sequence that vim
> > receives to the corrosponding key:
> >
> > 1. Find out what vim is receiving. In insert mode type <C-v>-<arrow>,
> > this yields for example '^[[C' (without the quotes), which means
> > <Esc>[C.
> > 2. If <Esc>[C was emitted when the right-arrow was pressed, put the
> > following in your vimrc:
> > map <Esc>[C <Right>
> > which covers normal, visual and operator pending modes. The other
> > arrow-keys are called <Left>, <Up> and <Down>.
> >
> > And so on for any other keys that are misbehaving.
> >
> > You should probably make this dependant on your TERM variable if
> > applicable, this could be done as follows:
> >
> > if $TERM == "name-of-term-when-the-arrow-keys-do-not-work"
> > mappings ...
> > endif
> >
> > There are some more hints contained in this thread:
> > http://groups.yahoo.com/group/vim/messages/66269
> >
> > --
> > with kind regards
> > Thor Andreassen
> >
>