Live data from Hacker News

Vimperator: a Vim-like Firefox

vimperator.org

41–50 of 100 posts

Re: Vimperator: a Vim-like Firefox

#41
post #35
post #2

I have used vimperator for about 6 years, this is only reason that I still use firefox. It's really amazing.

Out of curiosity, why would you switch if it weren't for vimperator?

Not GP but same situation. Firefox isn't always great. Start-up time is really slow, hogs a lot of memory, unnecessarily slow and sluggish and most sites are primarily engineered for WebKit/Blink -based browser engines these days.

Re: Vimperator: a Vim-like Firefox

#42
post #37

Earlier quoted context omitted.

Signed builds are available here: https://github.com/willsALMANJ/pentadactyl-signed/releases It works for me on Firefox 50.1.0 But the move away from XUL is indeed worrisome for plugins like these... I kinda hope someone will just build it into the servo project and make that into a usable minimal browser.

Why aren't these on addons.mozzila.org or on the official Pentadactyl site? I'm a little wary of installing addons from some random github repo.

Beats me. The scripts that automate all the signing are in the repo though. Maybe you can replicate it yourself. I haven't tried that though.

Re: Vimperator: a Vim-like Firefox

#43

The idea sounds intriguing, but I fail to see how `:back` is easier or faster than `cmd+LeftArrow` or how `:open url.com` is faster than `cmd+l url.com` or `cmd+t url.com` What is the killer feature here?

I don't use ":back" (because using "H" from normal mode is better) but having a command line in your browser is awesome! Firefox has much better address bar than Chromium (which seems to be designed to maximize the number of Google searches from the browser), which does smart auto complete with fuzzy finding and search engine completions for lots of sites and vimperator makes really good use of this.

Example use case (which I use daily): press "o w" which is short for ":open wikipedia" and then type in your Wikipedia search, and you get smart autocompletion from Wikipedia. Much faster and better than doing a Google search and clicking the first link (while looking at a few ads).

Re: Vimperator: a Vim-like Firefox

#44
I love Vimperator - unfortunately, it's incompatible with e10s (multiprocess Firefox) and it is also completely dependent on the deprecated XUL. Replacing that would essentially be a ground-up rewrite[0].

It looks like Vimperator is likely not going to be updated to work with newer versions of Firefox, which is a real shame, because it works far better than any alternative I've found for either Firefox or Chrome. I even made my own with the new Firefox API to see if I could replicate the experience, but it's tough[1]. The WebExtension interface doesn't give the same level of control that XUL did, and without which it's hard to give the same feel of Vimperator.

[0] https://github.com/vimperator/vimperator-labs/issues/211

[1] https://github.com/ChimeraCoder/electrovim

Re: Vimperator: a Vim-like Firefox

#46

The idea sounds intriguing, but I fail to see how `:back` is easier or faster than `cmd+LeftArrow` or how `:open url.com` is faster than `cmd+l url.com` or `cmd+t url.com` What is the killer feature here?

The 2 killer features for me are:

    1. Vi(m)-like keybindings
    2. Portable configuration (dotfile)
Like Vi(m), there are standard keybindings mapped to common commands, plus the ability to create your own. My fingers never have to leave the keyboard to navigate the Web, unless I have to interact with certain plugins.

Vimperator reads its configuration from a ~/.vimperatorrc file when it launches. I keep this in version control like the rest of my dotfiles, so I can deploy it to any machine for a reproducible environment. It supports setting Firefox preferences (about:config settings), bookmarks, search engines, etc. I have mine set to remove all the browser chrome, so Firefox has looked almost exactly the same to me since 2009.

For example, I have a bookmark defined for Hacker News in ~/.vimperatorrc:

    bmark -keyword=h -title="Hacker News" https://news.ycombinator.com/
Now I can open Hacker News by typing 'oh' ('th' if I want it to open in a new tab), then 'f' to follow a link where is the number highlighted over the link (which decreases if you start typing some letters found in the link text).

I can create searches, as well:

    bmark -keyword=g -title="Github" https://github.com/search?q=%s
Now I can type 'ogvimperatorrc' to find interesting configurations on GitHub.

The tab completion is great, so don't feel you have to limit keywords to a single letter.

I'll be really sad if/when Vimperator becomes incompatible with Firefox. At least there are other extensions or browsers that provide some of the same functionality.

Re: Vimperator: a Vim-like Firefox

#47
post #8

Earlier quoted context omitted.

Usually you map single characters to commands like that in your .vimperatorrc

Is that a joke or can you actually do that?

Not a joke. Here's something I posted in a recent thread to disable/enable CSS in web pages with the s / shift-S key (perhaps because CSS makes a particular website worse).

    nmap s :emenu View.Page Style.No Style
    nmap  :emenu View.Page Style.Basic Page Style
You could assign the 'b' character to the :back command, or use the default shift-H. If you want to go back 4 pages, you can simply type "4 o", just like in vim.

Re: Vimperator: a Vim-like Firefox

#48

I remember using the original keyboard productivity extension for Firefox, "hit-a-hint"[1] back in Firefox 1 & 2. Since discovering vimperator after, it has been an essential extension on par with an ad blocker. However, I found it consistently broke on new releases of Firefox and could take months to fix. Pentadactyl wasn't any better in this regard. For example, the current extension page says it only works up to F…

Yes! I love being able to click on links from the keyboard! Sadly, a lot of new interfaces make it hard for programs to recognize clickable links.

I went through a phase where I became obsessed with doing everything from the keyboard rather than mouse[1] and that led me to pentadactyl (and then to vim[2]), an add-on I fell in love with.

When the FF upgrades made it stop working I read the docs for how to compile pentadactyl, and I fixed version compatibility. That became an ongoing thing. (One time I also had to fix a bug in the build script.)

Sadly, about six months ago, Firefox banned unsigned addons, so I couldn't use pentadactyl even if I allowed them in the config, leading me to write this Hitler parody (and move to vimperator/vimfx):

https://youtube.com/watch?v=taGARf8K5J8

[1] even registered tyrannyofthemouse.com

[2] I would have have heard about vim sooner but for not having much contact with programmers

Re: Vimperator: a Vim-like Firefox

#49

I remember using the original keyboard productivity extension for Firefox, "hit-a-hint"[1] back in Firefox 1 & 2. Since discovering vimperator after, it has been an essential extension on par with an ad blocker. However, I found it consistently broke on new releases of Firefox and could take months to fix. Pentadactyl wasn't any better in this regard. For example, the current extension page says it only works up to F…

I use Vimperator since 2009, and it's been pretty good lately. No breaks with updates. Furthermore, it rarely crashes with multiprocessing enabled, despite being incompatible.

Re: Vimperator: a Vim-like Firefox

#50
post #41
post #35

Earlier quoted context omitted.

Out of curiosity, why would you switch if it weren't for vimperator?

Not GP but same situation. Firefox isn't always great. Start-up time is really slow, hogs a lot of memory, unnecessarily slow and sluggish and most sites are primarily engineered for WebKit/Blink -based browser engines these days.

Lot's of memory? Firefox nowadays uses less then Chrome (Chrome one process per tab is a killer for free RAM).

As for websites engineered for WebKit/Blink I haven't seen that yet, but I was afraid it might happen eventually - new IE6 (or was it IE5?) will happen again :(.

Post reply on HN