[Vimperator] Disable vimperator on some domains

Martin Stubenschrott stubenschrott at gmx.net
Tue Nov 13 04:59:12 PST 2007


On Tue, Nov 13, 2007 at 01:15:06PM +0100, calmar wrote:
> But I think, its something for autocommands (commands what
> get triggered on events like when you switch tabs) - and those
> autocommands aren't implemented yet.

It definitly is, _when_ we have it, you will be able to _something_ like:

autocommand TabSelect * function() { if (/gmail|othersite/.test(vimperator.buffer.URL)) vimperator.options.setLocal("disablekeys", true) }

I know it differs from vim's behavior which autocommand is an
ex-command, but since we lack control statements in our
vimperator-script language, we have to fall back to using javascript,
which makes the code of course more verbose.

However, as much as i would really like autocommands, they are non
trival, and will take at least some months, unless a really brave one
stands up :)

--
Martin


More information about the Vimperator mailing list