Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of smooth vi

smooth vi by Karl Felix Schewe

Simple and smooth vi mode for viewing web pages

0 (0 reviews)0 (0 reviews)
1 User1 User
You’ll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
This extension for Firefox provides a minimal vi mode for viewing web pages that requires no configuration to minimize conflicting keybindings. vi mode is activated by pressing (Esc), similar to the way you can switch to normal mode in vi to navigate a file. In vi mode, you can scroll using the traditional vi keybindings. The movement is smooth and accelerates as you hold down a key. This is similar to the default behaviour of the arrow keys in Firefox.

The uniqueness of this approach is that any other unbound key, mouse click or touch input will deactivate vi mode, so you're unlikely to run into the problem of having to create individual configurations for many web pages (in fact, you can't). It does provide a nice way of reading web pages with a comfortable keyboard layout, without having to use the arrow keys, touchpad or mouse very often.

Additional features:
* vi mode status indicator for toolbar
* Scrolling speed and acceleration settings

Keybindings


(Esc) Activate vi mode
(h) Move left
(j) Move down
(k) Move up
(l) Move right
(g) Move to the top of the page
(G) Move to the bottom of the page
(i) Deactivate vi mode

Any other key, with the exception of (Shift),
deactivates vi mode again.


The interesting detail here is that under the hood, events for keys other than those specified above from (h) to (i) are not captured. This means, for example, that you can type (t) on GitHub in vi mode to get to the search bar and at the same time disable vi mode to search for a file.

Note that add-ons are disabled on sites for managing Firefox settings and add-ons.

Limitations

It will conflict with dedicated vi or Vim (vi improved) emulations for editing text on web pages, because with those implementations (Esc) is probably used to enter command mode to move the cursor with hjkl inside a text field. On the contrary, this add-on uses (Esc) to enter a mode for moving the viewport of the web page.

On pages that bind an action to (Esc), the functionality of the page is usually not restricted, because vi mode will only be briefly active and can be immediately disabled by following (i).

GitHub repository

GPL-3.0 license
Rated 0 by 0 reviewers
Sign in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and dataLearn more

Required permissions:

  • Access your data for all websites
More information
Add-on Links
  • Homepage
  • Support site
Version
1.5
Size
40.2 KB
Last updated
9 months ago (Nov 2, 2024)
Related Categories
  • Other
License
GNU Lesser General Public License v3.0 only
Version History
  • See all versions
Add to collection
Report this add-on
Release notes for 1.5
Faster add-on initialization on new pages
More extensions by Karl Felix Schewe
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla’s homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.