/***** BEGIN LICENSE BLOCK ***** {{{
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
(c) 2006-2007: Martin Stubenschrott First there was a Navigator, then there was an Explorer. Vimperator is a free browser add-on for Firefox, which makes it look and behave like the Vim text editor. Warning: To provide the most authentic Vim experience, the Firefox menubar and toolbar were hidden. Since Vimperator\'s GUI is embedded into a toolbar, it may look too 3D-like with the default theme. Vimperator was written by Martin Stubenschrott. If you appreciate my work on Vimperator, you can eitherVimperator
' +
'
'+
'Later it was time for a Konqueror. Now it\'s time for an Imperator, the VIMperator :)Introduction
' +
'
' +
'It has similar key bindings, and you could call it a modal webbrowser, as key bindings differ according to which mode you are in.
'+
'If you really need them, type: :set guioptions=mT to get it back.
' +
'If you don\'t like Vimperator at all, you can uninstall it by typing :addons and remove/disable it.
' +
'If you like it, but can\'t remember the shortcuts, press F1 or :help to get this help window back.
'+
'For best experience, I therefore recommend the Whitehart theme.
'+
'send me greetings, patches or make a donation: ' +
'
" +beg+ cmd_name +end+ '';
}
ret += '" +beg+ usage +end+ 'The denotion of modifier keys is like in Vim, so C- means the Control key, M- the Meta key, A- the Alt key and S- the Shift key.
'+ 'What is the meaning of life, the universe and everything?
' +
'Douglas Adams, the only person who knew what this question really was about is
' +
'now dead, unfortunately. So now you might wonder what the meaning of death
' +
'is...
' + // should change that to: white-space: pre-wrap; once CSS3 hits firefox
header +
introduction +
mappings +
commands +
settings +
''
doc.open();
doc.write(fulldoc);
doc.close();
function cumulativeOffset(element)
{
var valueT = 0, valueL = 0;
if (!element)
return [0, 0];
do
{
valueT += element.offsetTop || 0;
valueL += element.offsetLeft || 0;
element = element.offsetParent;
}
while (element);
return [valueL, valueT];
}
if (section)
{
var element = doc.getElementById(section);
if (!element)
{
echoerr("E149: Sorry, no help for " + section);
return;
}
var pos = cumulativeOffset(element);
// horizontal offset is annyoing, set it to 0 (use pos[0] if you want horizontal offset)
window.content.scrollTo(0, pos[1]);
}
}
// vim: set fdm=marker sw=4 ts=4 et: