Vi Editing Mode Firefox

Vi Editing Mode

Automatically and non-intrusively add a vi editing mode to all textareas/inputs. Behaviour remains unchanged (like insert mode), hitting Escape enables command mode.

Features & Capabilities

Automatically and non-intrusively add a vi editing mode to all textarea/input elements on pages, so you can use vim keys/shortcuts to edit and navigate text. Inputs/textareas keep working as they normally do (like insert mode, handled by the browser), hitting "escape" enables command mode on the focused element, indicated with a box-shadow.

Features:

  • Simple, automatic, non-intrusive vi editing.
  • Command, visual and visual-line modes.
  • Plenty of commands/keys (but please contribute more!)
  • Multi-level undo and redo.
  • Repeat.
  • The tab key inserts literal tabs after having been in command mode, until the element loses focus.
  • Only basic addon permissions needed. (clipboard read/write permission requested on first use).

Non-goals:

  • vi-like keys for other browser behaviour, like navigating on a page or the internet.
  • Full-blown vi/vim editor (not all commands are needed, it doesn't have to look like a standalone vi/vim, it would be too much for an input element).
  • Marks, tags, macros, registers, custom key mappings and other advanced features.

Limitations

Since vi.js uses basic textarea/input elements, it inherits some limitations/behaviour:

Textareas don't expose whether text (e.g. the selection) is visible in the viewport. This limits how vi.js can implement some commands/motions.

Insert mode is handled by the browser (with the exeception of Tab, which can insert a literal tab), including undo/redo while typing. JS doesn't have access to textarea undo/redo history. vi.js tracks history for changes it makes (based on commands), and tracks changes during insert by comparing contents between going into insert mode. The edits a user makes in insert mode are turned into a single history change to undo/redo.

In vi/vim, the cursor is typically "on" a character. With a textarea, it is shown between characters. The position at the end of the line, after the last character, before the newline, is not normally a separate position in vi. vi.js lets you navigate to these positions, which changes how some motion keys work.

Access to the clipboard is only explicitly with the "y" and "p" keys. Commands that remove/replace text don't change the clipboard.

Not all input types are supported, browsers only allow editing selections on some files: text, search, url, tel, password. Others don't work: email, time, etc.

Popular messaging web applications have custom UI elements for sending messages, for their rich text. They often don't use standard textarea/input elements, so this plugin won't help with those apps.

Some applications use "Escape" as a shortcut to cancel. Use "ctrl-{" as alternative. Unfortunately, the obvious alternative "ctrl-[" is interpreted by firefox as "back" and can't be intercepted.

See https://github.com/mjl-/vijs for details and development of this addon.

User Growth & Download Statistics

Manifest V3 Add-on
By:
Mechiel Lukkien
Daily users:
34
Rating:
5.00
(2)
Version:
0.0.11 Last updated: 2024-11-21
Version code:
5847835
Creation date:
2024-08-03
Risk:
Moderate risk impact Low risk likelihood
Content scripts matches:
  • <all_urls>
Size:
37.10KB
URLs:
Website
Full description:
See detailed description
Source:
Firefox Add-ons Store
Data ingested on:
2026-06-19
Compare stats and ranking:

Contact the developer

Chrome-Stats does not own this Firefox add-on. Please use these information below to contact the Firefox add-on developer.
Developed by:
Mechiel Lukkien
Firefox Add-ons Store
https://addons.mozilla.org/firefox/addon/vi-editing-mode/
Website:
https://github.com/mjl-/vijs/issues

User Reviews

based
by aw*****, 2025-02-09
View all user reviews ›

Is Vi Editing Mode Safe?

Risk impact
Risk impact measures the level of extra permissions an extension has access to. A low risk impact extension cannot do much harms, whereas a high risk impact extension can do a lot of damage like stealing your password, bypassing your security settings, and accessing your personal data. High risk impact extensions are not necessarily malicious. However, if they do turn malicious, they can be very harmful.

Vi Editing Mode requires a few sensitive permissions. Exercise caution before installing.

Risk impact analysis details
  • Critical Allows access to all websites, posing a significant security risk as it can monitor and modify data from any visited site.
  • High ******* ******* **** *** ****** ***** *** ***** ** ******* **** ********* ********* ** * *********** *****
Risk likelihood
Risk likelihood measures the probability that a Firefox add-on may turn malicious. This is determined by the publisher and the Firefox add-on reputation on Firefox Add-ons Store, the amount of time the Firefox add-on has been around, and other signals about the Firefox add-on. Our algorithms are not perfect, and are subject to change as we discover new ways to detect malicious extensions. We recommend that you always exercise caution when installing a Firefox add-on.

Vi Editing Mode has earned a fairly good reputation and likely can be trusted.

Risk likelihood analysis details
  • High This extension has low user count. Unpopular extensions may not be stable or safe.
  • Low **** ********* *** ******* **** **** * ****** **** ***** ******** *** **** ****** ** ** ****** *** *****
  • Low **** ********* *** ***** **** **** * ****** **** ***** ********** *** **** ****** ** ** ****** *** *****
  • Good **** ********* *** **** **** *******
Extension Guard
Extension Guard

Discover every extension in use, analyze risks, and enforce blocking policies with Extension Guard

Secure Your Browser
Upgrade to see full risk analysis details

Best Vi Editing Mode Alternatives

Here are some Firefox add-ons that are similar to Vi Editing Mode: