Much appreciated, thanks.

--- Bram Moolenaar <[EMAIL PROTECTED]> wrote:

> 
> Jeff Lanzarotta wrote:
> 
> [reordering the message to avoid time distortion...]
> 
> > --- 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
> > 
> > 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??????
> 
> It's actually caused by a problem in winsaveview(), which is used by
> the
> matchparen plugin.  I'll make a fix for that.
> 
> -- 
> ARTHUR: This new learning amazes me, Sir Bedevere.  Explain again how
> sheep's
>         bladders may be employed to prevent earthquakes.
>                  "Monty Python and the Holy Grail" PYTHON (MONTY)
> PICTURES LTD
> 
>  /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net
>   \\\
> ///        sponsor Vim, vote for features --
> http://www.Vim.org/sponsor/ \\\
> \\\        download, build and distribute -- http://www.A-A-P.org    
>    ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org 
>   ///
> 

Reply via email to