A Firefox vim key-binding add-on targeting e10s and WebExtension enabled Firefox
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
icons
jetpack
linux_utils
.jshintrc
.travis.yml
README.md
focusin.js
focusin.min.js
manifest.json
package.sh
vim-background.js
vim.js

README.md

QuantumVim

QuantumVim is a vim key-binding add-on for Firefox. It is targeting future Firefox releases with e10s and WebExtension.

screenshot

Normal Install

Debug Installation

  • Open about:debugging, click "Load temporary add-on"
  • Select the manifest.json

Supported commands

  • j, k: scroll down/up by one line
  • h, l: scroll left/right
  • J/gt, K/gT: switch to previous/next tab
  • r, R: reload page (R bypass the local web cache)
  • gg, G: go to the top/bottom of the page
  • H, L: back/forward in history
  • <C-f>, <C-b>: scroll down/up by one page
  • <C-d>, <C-u>: scroll down/up by half a page
  • y: Copy current location
  • Y: Copy selected text
  • d, D: close the current tab and focus the left/right one.
  • f: follow links, press to abort.
  • When focusing on an <input> element. It will automatically enters the INSERT MODE.
  • I: enter INSERT MODE manually
  • u: undo most recently closed tab
  • t: Open a new tab
  • <C-z>: Close all system tabs that doesn't allow QuantumVim to operate (e.g. Preferences, new tab page, about:blank)

TODO:

  • :open: open an URL or search
  • :tabopen: open an URL or search in a new tab
  • F: follow links in a new tab
  • Insert Mode: pass all keys to <input> when focused
  • Passthrough Mode: pass all keys to the page

Contribute

Please feel free to submit PR or issues. You are suggested to run jshint *.js before you submit a pull request. To install jshint you can npm install -g jshint.