Vimium is a Chrome extension that provides keyboard-based navigation and control of the web in the spirit of the Vim editor.
Installation instructions:
You can install the stable version of Vimium from the Chrome Extensions Gallery.
Please see CONTRIBUTING.md for instructions on how you can install Vimium from source.
The Options page can be reached via a link on the help dialog (type ?
) or via the button next to Vimium on
the Chrome Extensions page (chrome://extensions
).
Modifier keys are specified as <c-x>
, <m-x>
, and <a-x>
for ctrl+x, meta+x, and alt+x
respectively. For shift+x and ctrl-shift-x, just type X
and <c-X>
. See the next section for how to customize these bindings.
Once you have Vimium installed, you can see this list of key bindings at any time by typing ?
.
Navigating the current page:
? show the help dialog for a list of all available keys
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
d scroll down half a page
u scroll up half a page
f open a link in the current tab
F open a link in a new tab
r reload
gs view source
i enter insert mode -- all commands will be ignored until you hit Esc to exit
yy copy the current url to the clipboard
yf copy a link url to the clipboard
gf cycle forward to the next frame
gF focus the main/top frame
Navigating to new pages:
o Open URL, bookmark, or history entry
O Open URL, bookmark, history entry in a new tab
b Open bookmark
B Open bookmark in a new tab
Using find:
/ enter find mode
-- type your search query and hit enter to search, or Esc to cancel
n cycle forward to the next find match
N cycle backward to the previous find match
For advanced usage, see regular expressions on the wiki.
Navigating your history:
H go back in history
L go forward in history
Manipulating tabs:
J, gT go one tab left
K, gt go one tab right
g0 go to the first tab
g$ go to the last tab
^ visit the previously-visited tab
t create tab
yt duplicate current tab
x close current tab
X restore closed tab (i.e. unwind the 'x' command)
T search through your open tabs
W move current tab to new window
<a-p> pin/unpin current tab
Using marks:
ma, mA set local mark "a" (global mark "A")
`a, `A jump to local mark "a" (global mark "A")
`` jump back to the position before the previous jump
-- that is, before the previous gg, G, n, N, / or `a
Additional advanced browsing commands:
]], [[ Follow the link labeled 'next' or '>' ('previous' or '<')
- helpful for browsing paginated sites
<a-f> open multiple links in a new tab
gi focus the first (or n-th) text input box on the page
gu go up one level in the URL hierarchy
gU go up to root of the URL hierarchy
ge edit the current URL
gE edit the current URL and open in a new tab
zH scroll all the way left
zL scroll all the way right
v enter visual mode; use p/P to paste-and-go, use y to yank
V enter visual line mode
Vimium supports command repetition so, for example, hitting 5t
will open 5 tabs in rapid succession. <Esc>
(or
<c-[>
) will clear any partial commands in the queue and will also exit insert and find modes.
There are some advanced commands which aren't documented here; refer to the help dialog (type ?
) for a full
list.
You may remap or unmap any of the default key bindings in the "Custom key mappings" on the options page.
Enter one of the following key mapping commands per line:
map key command
: Maps a key to a Vimium command. Overrides Chrome's default behavior (if any).unmap key
: Unmaps a key and restores Chrome's default behavior (if any).unmapAll
: Unmaps all bindings. This is useful if you want to completely wipe Vimium's defaults and start
from scratch with your own setup.Examples:
map <c-d> scrollPageDown
maps ctrl+d to scrolling the page down. Chrome's default behavior of bringing up
a bookmark dialog is suppressed.map r reload
maps the r key to reloading the page.unmap <c-d>
removes any mapping for ctrl+d and restores Chrome's default behavior.unmap r
removes any mapping for the r key.Available Vimium commands can be found via the "Show available commands" link near the key mapping box on the options page. The command name appears to the right of the description in parenthesis.
You can add comments to key mappings by starting a line with "
or #
.
The following special keys are available for mapping:
<c-*>
, <a-*>
, <m-*>
for ctrl, alt, and meta (command on Mac) respectively with any key. Replace *
with the key of choice.<left>
, <right>
, <up>
, <down>
for the arrow keys.<f1>
through <f12>
for the function keys.<space>
for the space key.<tab>
, <enter>
, <delete>
, <backspace>
, <insert>
, <home>
and <end>
for the corresponding non-printable keys (version 1.62 onwards).Shifts are automatically detected so, for example, <c-&>
corresponds to ctrl+shift+7 on an English keyboard.
Many of the more advanced or involved features are documented on Vimium's GitHub wiki. Also see the FAQ.
Please see CONTRIBUTING.md for details.
There is an experimental port of Vimium on Firefox here. This is very much experimental: most features work, although some bugs and issues remain.
PRs are welcome.
Not yet released
1.62 (2017-12-09)
<tab>
, <enter>
, <delete>
, <insert>
, <home>
and <end>
.createTab
to create new normal and incognito windows
(examples).clipboardWrite
permission). This is necessary to support copy/paste on
Firefox.map X Marks.activateCreateMode swap
map Y Marks.activateGotoMode swap
createTab
with multiple URLs).createTab
.1.61 (2017-10-27)
<Shift>
for hint characters.map R reload hard
, the reload command now asks Chrome to bypass its cache.<c-[>
to a command (in which case it will not be treated as Escape
).map R reload hard
.1.60 (2017-09-14)
Features:
Bug fixes:
Minor versions:
1.59 (2017-04-07)
J
, K
, o
, b
, etc.). Scrolling and other content-related commands still do not work.1.58 (2017-03-08)
Features:
createTab
command can now open specific URLs (e.g, map X createTab http://www.bbc.com/news
).map \ passNextKey normal
;
this reactivates normal mode temporarily, but without any pass keys.<c-a-X>
.Escape
).\
are now continued on the following line.Process:
Post-release minor fixes:
LinkHints.activateModeWithQueue
(#2445).1.57 (2016-10-01)
toggleMuteTab
- mute or unmute the current tab (default binding
<a-m>
), see also advanced usage.<backspace>
to a Vimium command (e.g. map <backspace> goBack
).<Space>
now
rotates the stacking order. If you use filtered hints, you'll need to
use a modifier (e.g. <c-Space>
)./i
can no longer hang Vimium while the page is loading.<c-a-[>
is no longer handled (incorrectly) as Escape
. This also affects <Alt-Gr-[>
.goX
is mapped, then go
no longer launches the vomnibar. This only affects three-key (or longer) bindings.1.56 (2016-06-11)
V
) from working.1.55 (2016-05-26)
visitPreviousTab
- visit the previous tab (by recency) with ^
, or the tab before that with 2^
.passNextKey
- pass the next key to the page. For example, using map <c-]> passNextKey
, you can close
Facebook's messenger popups with <c-]><Esc>
.3F
opens three new background tabs, 999F
opens many tabs.Enter
to activate a
link; this prevents unintentionally triggering Vimium commands with trailing keystrokes.gg
now accepts a count
prefix.W
now accepts a count prefix; 3W
moves three tabs to a new window.2j
-and-hold now gives a faster scroll than j
-and-hold.map d scrollDown count=4
.map abc enterInsertMode
.c-y
and c-e
now scroll in visual mode.<c-a-[>
is no longer treated as escape.1.54 (2016-01-30)
1.53 (2015-09-25)
g0
and g$
now accept count prefixes; so 2g0
selects the second tab, and so on.moveTabLeft
and moveTabRight
for pinned tabs (#1814 and #1815).1.52 (2015-09-09)
Tab
on an empty Vomnibar to repeat or edit recent queries
(details on the wiki).gg
, G
, n
, N
, /
and local mark movements).Tab
and Enter
to select hints, and hints are ordered by the best
match.1.51 (2015-05-02)
1.50 (2015-04-26)
v
and then vim-like keystrokes to select text on the page. Use y
to yank or
p
and P
to search with your default search engine.. Please provide feedback on Github.gF
) focuses the main frame.gi
) remembers previously-visited inputs.1.49 (2014-12-16)
1.46, 1.47, 1.48 (2014-12-15)
1.45 (2014-07-20)
1.44 (2013-11-06)
1.43 (2013-05-18)
gU
, which goes to the root of the current URL.yt
, which duplicates the current tab.W
, which moves the current tab to a new window.mX
to set a mark and `X
to return to it.1.42 (2012-11-03)
1.41 (2012-10-27)
1.40 (2012-10-27)
1.39 (2012-09-09)
1.38 (2012-09-08)
O
now opens Vomnibar results in a new tab. B
does the same for bookmarks only.gi
now launches a new mode that allows the user to tab through the input elements on the page.1.37 (2012-07-07)
1.36 (2012-07-07)
b
brings up a bookmark-only Vomnibar.1.35 (2012-07-05)
1.34 (2012-07-03)
1.33 (2012-07-02)
o
to try it.1.32 (2012-03-05)
1.31 (2012-02-28)
g0
and g$
commands, for switching tabs.p
/P
commands for URL pasting.1.30 (2011-12-04)
Tab
& shift-tab
to navigate bookmarks dialog.1.29 (2012-07-30)
yf
to copy a link hint url to the clipboard.i
.1.28 (2011-06-29)
b
and B
).1.27 (2011-03-24)
1.26 (2011-02-17)
<c-d>
, <c-f>
and related are no longer bound by default. You can rebind them on the options page.1.22, 1.23, 1.24, 1.25 (2011-02-10)
gs
) now opens in a new tab.]]
and [[
to go forward and backward respectively.1.21 (2010-10-24)
1.20 (2010-10-24)
zH
and zL
) to scroll to the left and right edges of the page.gi
) to focus the first (or n-th) visible text input.<a-f>
) to open up multiple links at a time in new tabs.1.19 (2010-06-29)
1.18 (2010-06-22)
goUp
(mapped to gu
by default) that will go up one level in the URL hierarchy.
For example: from https://vimium.github.io/foo/bar to https://vimium.github.io/foo. At the moment, goUp
does not support command repetition.1.17 (2010-04-18)
u
now restores tabs that were closed by the mouse or with native shortcuts. Tabs are also restored in
their prior position.unmapAll
command in the key mappings interface to remove all default mappings.1.16 (2010-03-09)
?
to see it.1.15 (2010-01-31)
Ctrl+D
and Ctrl+U
now scroll by 1/2 page instead of a fixed amount, to mirror Vim's behavior.1.14 (2010-01-21)
1.13 (2010-01-21)
<c-f>
and <c-b>
are now mapped to scroll a full page up or down respectively.J
& K
have reversed for tab switching: J
goes left and K
goes right.<c-[>
is now equivalent to Esc
, to match the behavior of VIM.<c-e>
and <c-y>
are now mapped to scroll down and up respectively.1.11, 1.12 (2010-01-08)
gt
& gT
to move to the next & previous tab.yy
to yank (copy) the current tab's url to the clipboard.Shift+F
link hints.Esc
now clears the keyQueue. So, for example, hitting g
, Esc
, g
will no longer scroll the page.1.1 (2010-01-03)
Copyright (c) Phil Crosby, Ilya Sukhar. See MIT-LICENSE.txt for details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。