[Vimperator] Vimperator and gmail.
Martin Stubenschrott
stubenschrott at gmx.net
Mon Sep 10 14:31:57 PDT 2007
On Mon, Sep 10, 2007 at 11:00:25PM +0200, Oliver wrote:
> >Maybe some kind of easy/well documented way to disable arbitrary keys
> >on arbitrary sites that could go in a persons .vimperatorrc might be a
> >neat thing. Almost like plugins for specific sites ...
>
> I've had this in mind for a few weeks now, and fully agree. Something like
> :set ignoresite "regexp_for_url" "commands,to,ignore,on,site"
> would be ideal. No need to hard-code any specific things for specific sites,
> and only proficient users (who can take care of themselves) are affected by
> the change.
>
> I myself would probably want to ignore all commands for the gmail site,
> since vimperator doesn't notice that it should be in input mode while I type
> in the text-boxes, at least for now. So it would probably be a good idea to
> do something like
> :set inverseignoresite "regexp_for_url" "commands,to,not,ignore,on,site"
> allowing me to use :set inverseignoresite
> "^https+://mail\.google\.com/mail*." "" and thus ignore all keys.
>
> How about it?
Much too complex, i will add a :setlocal support at some time, and
probably :maplocal, so you could :maplocal j <C-v>j to retain the
original meaning of j while browsing gmail.
I am sure this could be done greatly into a ~/.vimperator/plugin/*
plugin, so that you'll just have to drop a file there (if somebody will
write it for gmail, i won't).
Having autocommands would definitly make sense as well.
--
Martin
More information about the Vimperator
mailing list