You are not logged in.

#1 2006-12-08 10:51:20

tad
Member
Registered: 2006-12-08
Posts: 19

Vim + Firefox!

I've been looking for an extension like this forever, and finally found it!

It's called Vimperator, and it basically makes Firefox work like Vim. Be warned, it's at version 0.1 and some things are slow, like the history function. Most keys are where you should expect them to be, like 'o' for open and 'r' for reload. ',' goes back and '.' goes forward.

XPI
screenshot

I'm going to find the author and give him a big fat hug.[/url]

Offline

#2 2006-12-08 13:00:45

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Vim + Firefox!

Wow, thanks. That's exactly what I was waiting for! :shock:

Offline

#3 2006-12-08 15:54:56

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Vim + Firefox!

omg! /me installs

Offline

#4 2006-12-08 16:17:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Vim + Firefox!

Looks very promising.  Here's some mappings for anyone interested.

var g_mappings = [/*{{{*/
    ["a",          "openVimperatorBar('execute alert(');"],
    ["d",          "executeCommand(g_count, 'bdelete', false, '');"],
    ["D",          "executeCommand(g_count, 'bdelete', true, '');"],
    ["f",          "executeCommand(0, 'fullscreen', false, '');"],
    ["F",          "focusNextFrame();"],
    ["gP",         "openURLsInNewTab(readFromClipboard(), false);"],
    ["gt",         "goTab(g_count > 0 ? g_count : 0);"],
    ["gT",         "goTab(g_count > 0 ? g_count :-1);"],
    ["o",          "openVimperatorBar('open ');"],
    ["O",          "openVimperatorBar('open ' + getCurrentLocation());"],
    ["p",          "openURLs(readFromClipboard());"],
    ["P",          "openURLsInNewTab(readFromClipboard(), true);"],
    ["r",          "executeCommand(g_count, 'reload', false, '');"],
    ["t",          "openVimperatorBar('tabopen ');"],                
    ["T",          "openVimperatorBar('tabopen ' + getCurrentLocation());"],
    ["u",          "executeCommand(g_count, 'undo', false, '');"],
    ["y",          "yankCurrentLocation();"],
    ["zi",         "zoomIn(1);"],
    ["zI",         "zoomIn(4);"],
    ["zo",         "zoomIn(-1);"],
    ["zO",         "zoomIn(-4);"],
    ["zz",         "zoomTo(g_count);"],
    ["ZQ",         "executeCommand(0, 'quit', false, '');"],
    ["ZZ",         "executeCommand(0, 'wq', false, '');"],

    /* scrolling commands */
    ["0",          "scrollBufferAbsolute(0, -1)"],
    ["^",          "scrollBufferAbsolute(0, -1);"],
    ["$",          "scrollBufferAbsolute(win.scrollMaxX, -1);"],
    ["gg",         "scrollBufferAbsolute(-1, g_count > 0 ? g_count : 0);"],
    ["G",          "scrollBufferAbsolute(-1, g_count > 0 ? g_count : 100);"],
    ["h",          "scrollBufferRelative(-1, 0);"],
    ["j",          "scrollBufferRelative(0, 1);"],
    ["k",          "scrollBufferRelative(0, -1);"],
    ["l",          "scrollBufferRelative(1, 0);"],
    ["<Home>",     "scrollBufferAbsolute(-1, 0);"],
    ["<End>",      "scrollBufferAbsolute(-1, 100);"],
    ["C-b",      "goDoCommand('cmd_scrollPageUp');"],
    ["<PageUp>",   "goDoCommand('cmd_scrollPageUp');"],
    ["C-f",      "goDoCommand('cmd_scrollPageDown');"],
    ["<PageDown>", "goDoCommand('cmd_scrollPageDown');"],
    ["<Left>",     "scrollBufferRelative(-1, 0);"],
    ["<Down>",     "scrollBufferRelative(0, 1);"],
    ["<Up>",       "scrollBufferRelative(0, -1);"],
    ["<Right>",    "scrollBufferRelative(1, 0);"],

    /* history manipulation and jumplist */
    ["C-i",      "executeCommand(g_count, 'forward', false, '');"],
    ["C-o",      "executeCommand(g_count, 'back', false, '');"],
    ["H",          "executeCommand(g_count, 'forward', false, '');"],
    ["L",          "executeCommand(g_count, 'back', false, '');"],

    /* tab managment */
    ["C-n",      "executeCommand(0, 'tabnext', false, '');"], // same as gt, but no count supported
    ["C-p",      "executeCommand(0, 'tabprevious', false, '');"],
    ["<F1>",       "executeCommand(0, 'help', false, '');"],
    [":",          "openVimperatorBar(null);"],
/*    [" ",          "echo('foo'); vimhah.enterMagicKey(event);"],*/
/*    ["i",          "echo('foi'); vimhah.showHints();"],*/
/*    ["b",          "vimhah.enterBufferKey(event);"],*/
    ["<Esc>",      "BrowserStop(); focusContent(true, true);"],
    ["<F5>",       "alert(document.commandDispatcher.focusedElement);"],

    /* bookmark managment */
    ["'b",         "openURLs('www.bwin.com')"],
    ["'o",         "openURLs('www.osnews.com')"],
    ["'s",         "openURLs('www.derstandard.at')"],
    ["'w",         "openURLs('wetter.orf.at')"],
    ["'t",         "openURLs('www.tvinfo.de')"],
    [""b",         "openURLsInNewTab('www.bwin.com')"],
    [""o",         "openURLsInNewTab('www.osnews.com')"],
    [""s",         "openURLsInNewTab('www.derstandard.at')"],
    [""w",         "openURLsInNewTab('wetter.orf.at')"],
    [""t",         "openURLsInNewTab('www.tvinfo.de')"]

];/*}}}*/

Offline

#5 2006-12-09 09:43:55

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: Vim + Firefox!

Simply great, thanks (/me thinks that with this my mouse will be happy to being used a lot less in future :-) )


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#6 2007-01-08 23:10:45

lateralus_
Member
From: Belgium
Registered: 2007-01-07
Posts: 17

Re: Vim + Firefox!

Very very nice.
Thanks for pointing out  big_smile


There are a lot of lies going around.... and half of them are true.
        -- Winston Churchill

Offline

#7 2007-01-13 05:47:35

briancurtin
Member
From: Chicago, IL
Registered: 2006-02-11
Posts: 132
Website

Re: Vim + Firefox!

this is very cool, i like it so far
where did you find this? i got nothing -- in english or having to do with this -- about vimperator when i looked in google, so im wondering where we can find more information.

Offline

#8 2007-01-13 10:05:00

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Vim + Firefox!

where do i add those mappings phrakture posted?


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#9 2007-01-13 14:40:23

veek
Member
Registered: 2006-03-10
Posts: 167

Re: Vim + Firefox!

dolby, those are the default mappings you don't need to add them.

Offline

#10 2007-01-17 15:52:48

appolito
Member
From: Kutna Hora, Czech Republic
Registered: 2005-08-17
Posts: 30

Re: Vim + Firefox!

tad wrote:

I've been looking for an extension like this forever, and finally found it!

It's called Vimperator, and it basically makes Firefox work like Vim. Be warned, it's at version 0.1 and some things are slow, like the history function. Most keys are where you should expect them to be, like 'o' for open and 'r' for reload. ',' goes back and '.' goes forward.

XPI
screenshot

I'm going to find the author and give him a big fat hug.[/url]

Really nice thing.
BTW how did you removed menu bar on your screenshot?

Offline

#11 2007-01-19 07:18:03

F
Member
Registered: 2006-10-09
Posts: 322

Re: Vim + Firefox!

Sorry, but what do I do with an .xpi file?

I tried searching the wiki but couldn't figure out.

Offline

#12 2007-01-19 07:50:26

briancurtin
Member
From: Chicago, IL
Registered: 2006-02-11
Posts: 132
Website

Re: Vim + Firefox!

F wrote:

Sorry, but what do I do with an .xpi file?

I tried searching the wiki but couldn't figure out.

click and drag it into your firefox window, then firefox will give you a popup to install it

Offline

#13 2007-01-19 15:28:10

Zoranthus
Member
From: muc
Registered: 2006-11-22
Posts: 166

Re: Vim + Firefox!

Nice idea but I don't know.. the answer button right at the bottom of this thread was an obstacle to navigate to an press already with keyboard only.. and either I use the mouse or I keep both hands on the keyboard, no? Maybe I'm just too blind to see the advantage of massive keyboardization while browsing internet pages but 8 out of 10 with with images for buttons, or even worse stuff like flash.
Navigating through the internet via keyboard would be fantastic, but too many page designers seem to perfer the oh so much more simple point-and-click it seems. :-/

Offline

#14 2007-01-19 16:25:15

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Vim + Firefox!

Now, if this were merged with "Split Browser" it'd be sweet.

Offline

#15 2007-01-19 16:28:55

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Vim + Firefox!

Zoranthus wrote:

Navigating through the internet via keyboard would be fantastic, but too many page designers seem to perfer the oh so much more simple point-and-click it seems. :-/

Nicely put.  People have been trying to pimp "web standards" for some time, but always leave off accessibility standards (which would help here)

Offline

#16 2007-01-20 03:22:15

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Vim + Firefox!

Accessibility is so important!

And I don't like this plugin so much because it draws over my status bar, which I need for the weather.

Ps: I don't go outside.

Offline

#17 2007-01-21 13:24:27

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Vim + Firefox!

Ps: I don't go outside.

Then why do you need to know the weather? smile


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#18 2007-01-21 23:47:02

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: Vim + Firefox!

Can someone tell me why my Bookmark Toolbar is gone with installing vimperator and how I can get it back? Activating it with right-click on the menubar and clicking on "Bookmarks Toolbar" simply does nothing. :

And where I can configure vimperator? I saw phrakture posted some kind of configuration file but I don't know where to put this file and as far as I can see this question has not been answered yet. Or did I read over it?
edit: Found the answer to this question. ^^

Is there some kind of documentation? I cannot even find a homepage of vimperator. <:

edit2: Accessing links via keyboard this simple definitly _rocks_!


Hail to the thief!

Offline

#19 2007-01-22 07:51:38

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Vim + Firefox!

harlekin wrote:

Is there some kind of documentation? I cannot even find a homepage of vimperator. <:

It appears to  not even be beta.... looks like it was discovered by chance

Offline

#20 2007-01-22 19:15:53

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Vim + Firefox!

I've spoken with the developer in #vim, and he says that he didn't want to release it officially as he is not finished with it yet.

And I need to know the weather outside so I can set the thermostat inside and save some moneys.

Offline

#21 2007-03-02 19:42:06

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Vim + Firefox!

PS looks like the version was updated on the 15th.  Still waiting for an official release. 8)

Offline

#22 2007-03-02 20:45:04

tronica
Member
Registered: 2006-11-02
Posts: 121

Re: Vim + Firefox!

when i install it and restart firefox, nothing changes? any ideas

Offline

#23 2007-04-02 22:40:21

maxauthority
Member
Registered: 2007-04-02
Posts: 10

Re: Vim + Firefox!

Hi,

I am the official vimperator author, and finally have managed to setup a help file (do :help inside of vimperator), and to make a 0.2 release.

Get it from:

http://vimperator.mozdev.org/

0.2 is a version which is kind feature complete to use it from day to day. There are of course still many ideas in the TODO file, but I don't know when I can implement them if I don't get patches.

--
Martin

P.S.: Nice too see you guys liking vimperator :)

Last edited by maxauthority (2007-04-11 02:38:03)

Offline

#24 2007-04-03 02:12:04

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Vim + Firefox!

\o/

Offline

#25 2007-04-05 08:23:52

benplaut
Member
Registered: 2006-06-13
Posts: 383

Re: Vim + Firefox!

.

Last edited by benplaut (2021-06-25 12:28:16)

Offline

Board footer

Powered by FluxBB