Interesting... I too renamed the matchparen.vim to matchparen.vim.000
and now things seem to be working...
Is there an issue with matchparen.vim??????
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 8/29/06, Jeff Lanzarotta <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I'm working with Java and I've noticed a weird cursor
> > placement/position issue.
> >
> > For example, if I type the following Java code snippet:
> >
> > try
> > {
> > }<- With the cursor ending up here
> >
> > And I press the 'up-arror' key to move the cursor up a line, I
> would
> > think that the cursor would end up to the right of the '{'
> character.
> > This happens when I am coding in 'C'. But in Java the cursor ends
> up:
> >
> > try
> > Here -->{
> > }
> >
> > This is a real pain, because I sometimes forget to move the cursor
> > again and the code get all formatted weird... What is strange is
> that
> > this works just fine when writting 'C' code...
>
> 1. This happens to me for *.c also, and with 'set paste'.
> THis this is not realted to autoindenting.
> 2. I see that this is related to the matchparen.vim.
> If I rename $VIMRUNTIME/plugin/matchparen.vim to
> matchparen.vim.000, this stops.
> 3. This happens with all kinds of braces ((),{},[]). For example:
> i[<cr>]<up>
> and find cursor in wrong place. (before '[' instead of after it)
>
> Yakov
>