On Jul 24, 2013 6:12 PM, "Hirotaka Hamada" <hirotaka.h...@gmail.com> wrote:
>
> Hi, Markus.
>
> >There seems to be a strange
> > performance problem with the <Plug> version of OCamlSwitch.
>
> I'm sorry for my incomplete patch.
>
> This is not a performance problem, but a mapping problem.
> <Plug>OCamlSwitch and <Plug>OCamlSwitchNewWin were started with same sequence of character. So Vim was waiting in a while to solve this ambiguous mapping.
>
> This patch fixes this problem to rename <Plug>OCamlWitch to be unique.
AFAIR Ingo or maybe somebody else invented wrapping this in () to prevent such problems: i.e. you just use "<Plug>(OCamlSwitch)" and do not care whether or not one prefixes other as it is just not possible. Any suffix character should work though, as far as it is only present at the end and never in the middle: "<Plug>OCamlSwitch$" is just as good.
>
> 2013年7月23日火曜日 5時49分43秒 UTC+9 Markus Mottl:
> > Hirotaka,
> >
> >
> >
> > I had to undo part of the patch. There seems to be a strange
> >
> > performance problem with the <Plug> version of OCamlSwitch. Switching
> >
> > becomes really slow with it.
> >
> >
> >
> > Please refer to my Bitbucket repository (not a clone of the
> >
> > Vim-repository) for the latest files, which do seem to work as usual.
> >
> > Maybe you can find out what's going on:
> >
> >
> >
> > https://bitbucket.org/mmottl/vim-files
> >
> >
> >
> > Regards,
> >
> > Markus
> >
> >
> >
> > On Sun, Jul 21, 2013 at 12:27 PM, Hirotaka Hamada
> >
> > <hirotaka.h...@gmail.com> wrote:
> >
> > > Hi,
> >
> > >
> >
> > > I have updated ftplugin/ocaml.vim.
> >
> > >
> >
> > > 1) use buffer-local mapping instead of global one
> >
> > > 2) provide <Plug>
> >
> > > 3) remove iabbrev (I think this is user specific setting.)
> >
> > >
> >
> > > Please check this patch.
> >
> > >
> >
> > > Regards.
> >
> > >
> >
> > > ----------
> >
> > > Hirotaka Hamada <hirotaka.h...@gmail.com>
> >
> >
> >
> >
> >
> >
> >
> > --
> >
> > Markus Mottl http://www.ocaml.info markus...@gmail.com
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>