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.
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
>
> <[email protected]> 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 <[email protected]>
>
>
>
>
>
>
>
> --
>
> Markus Mottl http://www.ocaml.info [email protected]
--
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff -r 9bbbe05aaac3 runtime/ftplugin/ocaml.vim
--- a/runtime/ftplugin/ocaml.vim Mon Jul 22 00:33:53 2013 +0900
+++ b/runtime/ftplugin/ocaml.vim Wed Jul 24 22:34:06 2013 +0900
@@ -54,7 +54,7 @@
xnoremap <buffer> <Plug>BUncomOn <ESC>:'<,'><CR>`<O<ESC>0i(*<ESC>`>o<ESC>0i*)<ESC>`<
xnoremap <buffer> <Plug>BUncomOff <ESC>:'<,'><CR>`<dd`>dd`<
- nmap <buffer> <LocalLeader>s <Plug>OCamlSwitch
+ nmap <buffer> <LocalLeader>s <Plug>OCamlSwitchEdit
nmap <buffer> <LocalLeader>S <Plug>OCamlSwitchNewWin
nmap <buffer> <LocalLeader>t <Plug>OCamlPrintType
@@ -75,7 +75,7 @@
" switching between interfaces (.mli) and implementations (.ml)
if !exists("g:did_ocaml_switch")
let g:did_ocaml_switch = 1
- nnoremap <Plug>OCamlSwitch :<C-u>call OCaml_switch(0)<CR>
+ nnoremap <Plug>OCamlSwitchEdit :<C-u>call OCaml_switch(0)<CR>
nnoremap <Plug>OCamlSwitchNewWin :<C-u>call OCaml_switch(1)<CR>
fun OCaml_switch(newwin)
if (match(bufname(""), "\\.mli$") >= 0)