On 2011-05-10, ZyX wrote:
> Reply to message «Re: Standard way to undo plugin mappings?»,
> sent 19:49:10 10 May 2011, Tuesday
> by Gary Johnson:
>
> > if strlen(maparg("}", "i"))
> if !empty(...)
>
> > if strlen(maparg("}", "i"))
> > iunmap }
> > endif
> silent! iunmap }
>
> > if strlen(maparg("}", "i"))
> > iunmap }
> > endif
> > if strlen(maparg(")", "i"))
> > iunmap )
> > endif
> > if strlen(maparg("]", "i"))
> > iunmap ]
> > endif
> > if strlen(maparg(":", "i"))
> > iunmap :
> > endif
> for s:m in filter(['}', ')', ']', ':'], '!empty(maparg(v:val, "i"))')
> execute 'iunmap' s:m
> endfor
> unlet s:m
> " or
> for s:m in ['}', ')', ']', ':']
> silent! execute 'iunmap' s:m
> endfor
> unlet s:m
Nice! Thanks!
> > I don't know if there is a "standard" way to do this, but I
> > disabled some of the Vim LaTeX Suite mappings I didn't like by
> > putting the following in ~/.vim/after/tex.vim:
> I have done this by putting
> function! IMAP(...)
> endfunction
> into ~/.vim/ftplugin/tex/my.vim. I find all those mappings created by
> latexsuite
> using IMAP() very annoying, especially greek letters IMAPs.
I still like some of them so far, but that's a good idea, too.
Regards,
Gary
--
You received this message from the "vim_use" 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