Temporarily disable Vimperator

How to temporarily disable Vimperator? For example, I would like to temporarily disable Vimperator when I use the email application. Is there a team for this?

+42
firefox firefox-addon vimperator
Jan 11 '13 at 4:21
source share
5 answers

I assume you already know about Shift-Esc to temporarily disable vimperator. So I wrote how to disable vimperator based on your current location.

First, the solution:

autocmd LocationChange .* js modes.passAllKeys = false autocmd LocationChange mail\\.google\\.com js modes.passAllKeys = true autocmd LocationChange www\\.google\\.com/calendar js modes.passAllKeys = true autocmd LocationChange www\\.google\\.com/reader js modes.passAllKeys = true autocmd LocationChange mail\\.google\\.com/tasks js modes.passAllKeys = false 

This filter is gMail, gCalendar, gReader, but not gTask.

The solution I gave is a cascading approach, when you define all websites to enable vimperator, then it selectively turns off for each website. Thus, although gTask uses the same parent site as gmail, it is activated by vimperator.

Now the explanation:

These commands go into your .vimperatorrc in your home directory. You can change the location of .vimperatorrc to

 source! *directory* 

in the .vimperatorrc file, but by default it is the .vimperatorrc file in your home directory. (% userprofile% on Windows)

Alternative solution:

 autocmd LocationChange .* js modes.passAllKeys = /mail\.google\.com/.test(buffer.URL) 

* Pay attention to backslashes to avoid periods.

The problem with this approach is that only the last line of the command with autocmd will work. The value of the last autocmd command overwrites the first. Thus, as a result, you get a logical operation on the command:

 autocmd LocationChange .* js modes.passAllKeys = /(mail\.google\.com|google\.com\/reader)/.test(buffer.URL) 

As you can see, this can get complicated when you have many sites that you want to filter.

Documentation: http://vimperator.sourceforge.net/help/vimperator/autocommands.xhtml
Solution source: http://code.google.com/p/vimperator-labs/issues/detail?id=406

+35
Feb 21
source share
— -

Use Shift + Esc to temporarily disable Vimperator. Click it again to make it work.

+54
May 02 '13 at 20:58
source share

you can use ignorekeys command

 ignorekeys add mail.yahoo.com ignorekeys add mail.google.com 

to disable all vimperator virtual keys in those domains.

+10
Jul 20 '15 at 21:15
source share

You can use keyboard-shorcuts for gmail / feedly with feedSomeKeys (plugin for Vimperator).

How?

  • Get this and this file.
  • Copy both files to ~ / .vimperator / plugins (if it does not exist)
  • Add these lines to the ~ / .vimperatorrc file:

    : source ~ / .vimperator / plugin_libly.js: Command! -nargs = + lazy autocmd VimperatorEnter. *: lazy fmaps -u = 'mail.google.com/mail' c / jknpouexsra # []? gi gs gt gd ga gc

  • Give it a try!

+1
Jul 10 '13 at 5:12
source share

Using the autocmd solution, annoyance may occur every time you receive the message "Running LocationChange Auto commands for ...".

In the latest version of vimperator (3.8.3), this message is not displayed by default, only in verbose mode.
But the current version in Firefox Addons is 3.8.2, so we need to install it manually. Simply:

 git clone https://github.com/vimperator/vimperator-labs.git . make xpi 

Then install vimperator from the downloads directory.

0
Oct 24 '14 at 20:40
source share



All Articles