vimium命令

文章目录

Keyboard Bindings

Modifier keys are specified as <c-x>, <m-x>, and <a-x> for ctrl+x, meta+x, and alt+x
respectively. 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
<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
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.