前言
如果你是一个vimer,不妨试试Vimium。纯键盘使用Chrome浏览器,好用!
安装插件
https://github.com/philc/vimium
Keybindings
| Movement | Mapping name | |
|---|---|---|
j, s | 向下滚动 | scrollDown |
k, w | 向上滚动 | scrollUp |
h | 向左滚动 | scrollLeft |
l | 向右滚动 | scrollRight |
d | 向下滚动半页 | scrollPageDown |
| unmapped | 向下滚动整页 | scrollFullPageDown |
u, e | 向上滚动半页 | scrollPageUp |
| unmapped | 向上滚动整页 | scrollFullPageUp |
gg | 滚动到页面顶部 | scrollToTop |
G | 滚动到页面底部 | scrollToBottom |
0 | 滚动到页面左侧 | scrollToLeft |
$ | 滚动到页面右侧 | scrollToRight |
# | 将滚动焦点重置为主页 | resetScrollFocus |
gi | 转到第一个输入框 | goToInput |
gI | 转到最后一个焦点输入框 gi | goToLastInput |
zz | 中心页到当前搜索匹配项(中间) | centerMatchH |
zt | 中心页到当前搜索匹配项(顶部) | centerMatchT |
zb | 中心页到当前搜索匹配项(底部) | centerMatchB |
| Link Hints | ||
f | 在当前标签页中打开链接 | createHint |
F | 在新的标签页打开链接 | createTabbedHint |
| unmapped | 在新标签页中打开链接(活动) | createActiveTabbedHint |
W | 在新窗口中打开链接 | createHintWindow |
A | 重复最后一个提示命令 | openLastHint |
q | 触发悬停事件(鼠标悬停+ mouseenter) | createHoverHint |
Q | 触发一个悬停事件(mouseout + mouseleave) | createUnhoverHint |
mf | 打开多个链接 | createMultiHint |
| unmapped | 使用外部编辑器编辑文本 | createEditHint |
| unmapped | call a code block with the link as the first argument | createScriptHint() |
| unmapped | 在新标签页中打开图像 | fullImageHint |
mr | 反向图像搜索多个链接 | multiReverseImage |
my | 复制多个链接 (open the list of links with P) | multiYankUrl |
gy | 将URL从链接复制到剪贴板 | yankUrl |
gr | 反向图像搜索(谷歌图像) | reverseImage |
; | 更改链接提示焦点 | |
| QuickMarks | ||
M | 创建快捷标记 | addQuickMark |
go | 在当前选项卡中打开快速标记 in the current tab | openQuickMark |
gn | 在新标签页中打开快速标记 in a new tab | openQuickMarkTabbed |
gw | 在新窗口中打开快捷标记 in a new window | openQuickMarkWindowed |
| Miscellaneous | ||
a | 别名为“:tabnew google” | :tabnew google |
. | 重复最后一条命令 | repeatCommand |
: | 打开命令栏 | openCommandBar |
/ | 打开搜索栏 | openSearchBar |
? | 打开搜索栏(反向搜索) | openSearchBarReverse |
| unmapped | 打开链接搜索栏(与按相同/?) | openLinkSearchBar |
I | 通过浏览器历史记录搜索 | :history |
g% | scroll 向下滚动个百分比 | percentScroll |
unmapped | 将密钥传递到当前页面 | passKeys |
i | 进入插入模式(转义退出) | insertMode |
r | 重新加载当前标签 | reloadTab |
gR | 重新加载当前选项卡+本地缓存 | reloadTabUncached |
; | 创建标记 | setMark |
'' | 转到最后一个滚动位置 | lastScrollPosition |
| 转到上一个滚动位置 | previousScrollPosition |
| 转到下一个滚动位置 | nextScrollPosition |
' | 去标记 | goToMark |
cm | 静音/取消静音标签页 | muteTab |
| none | 重新加载所有标签 | reloadAllTabs |
cr | 重新加载所有标签,但当前 | reloadAllButCurrent |
zi | 放大页面 | zoomPageIn |
zo | 缩小页面 | zoomPageOut |
z0 | 将页面缩放到原始大小 | zoomOrig |
z | 切换图像缩放(与在仅图像页面上单击图像相同) | toggleImageZoom |
gd | alias to :chrome://downloads | :chrome://downloads |
ge | alias to :chrome://extensions | :chrome://extensions |
yy | 将当前页面的URL复制到剪贴板 | yankDocumentUrl |
yY | 将当前框架的URL复制到剪贴板 | yankRootUrl |
ya | 在当前窗口中复制URL | yankWindowUrls |
yh | 从查找模式复制当前匹配的文本(如果有) | yankHighlight |
b | 通过书签搜索 | :bookmarks |
p | 打开剪贴板选择 | openPaste |
P | 在新标签页中打开剪贴板选择 | openPasteTab |
gj | 隐藏下载架 | hideDownloadsShelf |
gf | 在iframe中循环 | nextFrame |
gF | 转到根框架 | rootFrame |
gq | 停止加载当前选项卡 | cancelWebRequest |
gQ | 停止加载所有标签 | cancelAllWebRequests |
gu | 在网址中向上一条路径 | goUpUrl |
gU | 转到基本URL | goToRootUrl |
gs | 转到当前网址的view-source://页面 | :viewsource! |
| 创建或切换当前URL的书签 | createBookmark |
| unmapped | 关闭所有浏览器窗口 | quitChrome |
g- | 递减URL路径中的第一个数字(例如www.example.com/5=> www.example.com/4) | decrementURLPath |
g+ | 递增URL路径中的第一个数字 | incrementURLPath |
| 标签导航 | ||
gt, K, R | 导航到下一个标签 | nextTab |
gT, J, E | 导航到上一个选项卡 | previousTab |
g0, g$ | 转到第一个/最后一个标签 | firstTab, lastTab |
, gh | 在新标签页中打开当前标签页历史记录中的最后一个URL | openLastLinkInTab |
, gl | 在新标签页中打开当前标签页历史记录中的下一个网址 | openNextLinkInTab |
x | 关闭当前标签 | closeTab |
gxT | 关闭当前选项卡左侧的选项卡 | closeTabLeft |
gxt | 关闭当前标签右侧的标签 | closeTabRight |
gx0 | 关闭当前选项卡左侧的所有选项卡 | closeTabsToLeft |
gx$ | 关闭当前标签右侧的所有标签 | closeTabsToRight |
X | 打开最后一个关闭的标签页 | lastClosedTab |
t | :tabnew | :tabnew |
T | :tabnew | :tabnew @% |
O | :open | :open @% |
% | switch to tab | goToTab |
H, S | 回去 | goBack |
L, D | 前进 | goForward |
B | 搜索另一个活动标签 | :buffer |
| 向右移动当前选项卡 | moveTabRight |
]] | 点击页面上的“下一个”链接(请参见上面的nextmatchpattern) | nextMatchPattern |
[[ | 点击页面上的“后退”链接(请参见上面的“ matchpattern”) | previousMatchPattern |
gp | 固定/取消固定当前标签页 | pinTab |
| 在上次使用的标签之间切换焦点 | lastUsedTab |
| 查找模式 | ||
n | 下一个搜索结果 | nextSearchResult |
N | 以前的搜索结果 | previousSearchResult |
v | 进入视觉/插入符号模式(突出显示当前搜索/选择) | toggleVisualMode |
V | 从插入符号模式/当前突出显示的搜索进入视线模式 | toggleVisualLineMode |
| unmapped | 清除搜索模式突出显示 | clearSearchHighlight |
| Visual/Caret Mode | ||
| 退出视觉模式到插入符号模式/退出插入符号模式到普通模式 | |
v | 在视觉/插入符号模式之间切换 | |
h, j, k, l | 移动插入符位置/扩展视觉选择 | |
y | 复制当前选择 | |
n | 选择下一个搜索结果 | |
N | 选择上一个搜索结果 | |
p | 在当前标签中打开突出显示的文本 | |
P | 在新标签页中打开突出显示的文本 | |
| Text boxes | ||
| 将光标移到行首 | beginningOfLine |
| 将光标移到行尾 | endOfLine |
| 删除到行首 | deleteToBeginning |
| 删除到行尾 | deleteToEnd |
| 删除一个字 | deleteWord |
| 删除前一个单词 | deleteForwardWord |
| unmapped | 删除一个字符 | deleteChar |
| unmapped | 向前删除一个字符 | deleteForwardChar |
| 将光标移回一个字 | backwardWord |
| 将光标向前移动一个字 | forwardWord |
| 将光标向前移动一个字母 | forwardChar |
| 将光标移回一个字母 | backwardChar |
| 将光标向前移动一行 | forwardLine |
| 将光标移回一行 | backwardLine |
| unmapped | 选择输入文字 (equivalent to ) | selectAll |
| unmapped | 在终端中使用Vim进行编辑 (需要 cvim_server.py 脚本才能使其正常运行,并且需要在该脚本中设置VIM_COMMAND) | editWithVim |
这个表格是真的长啊,终于翻译完成啦!感觉有用的话,点个赞支持一下吧!
Command Mode
| 命令 | 描述 |
|---|---|
| :tabnew (autocomplete) | open a new tab with the typed/completed search |
| :new (autocomplete) | open a new window with the typed/completed search |
| :open (autocomplete) | open the typed/completed URL/google search |
| :history (autocomplete) | search through browser history |
| :bookmarks (autocomplete) | search through bookmarks |
| :bookmarks / (autocomplete) | browse bookmarks by folder/open all bookmarks from folder |
| :set (autocomplete) | temporarily change a cVim setting |
| :chrome:// (autocomplete) | open a chrome:// URL |
| :tabhistory (autocomplete) | browse the different history states of the current tab |
:command | aliases : to : |
| :quit | close the current tab |
| :qall | close the current window |
| :restore (autocomplete) | restore a previously closed tab (newer versions of Chrome only) |
| :tabattach (autocomplete) | move the current tab to another open window |
| :tabdetach | move the current tab to a new window |
| :file (autocomplete) | open a local file |
| :source (autocomplete) | load a cVimrc file into memory (this will overwrite the settings in the options page if the localconfig setting had been set previously |
| :duplicate | duplicate the current tab |
| :settings | open the settings page |
| :nohlsearch | clear the highlighted text from the last search |
| :execute | execute a sequence of keys (Useful for mappings. For example, “map j :execute 2j”) |
| :buffer (autocomplete) | change to a different tab |
| :mksession | create a new session from the current tabs in the active window |
| :delsession (autocomplete) | delete a saved session |
| :session (autocomplete) | open the tabs from a saved session in a new window |
| :script | run JavaScript on the current page |
| :togglepin | toggle the pin state of the current tab |
| :pintab | pin the current tab |
| :unpintab | unpin the current tab |
Tips
- You can use
@%in “open” commands to specify the current URL.
For example,:open @%would essentially refresh the current page. - Prepend a number to the command to repeat that command N times
- Use the up/down arrows in command/find mode to navigate through previously
executed commands/searches – you can also use this to search for previously
executed commands starting with a certain combination of letters (for example,
enteringtain the command bar and pressing the up arrow will search command
history for all matches beginning withta
