前言
如果你是一个vimer,不妨试试Vimium。纯键盘使用Chrome浏览器,好用!
安装插件https://github.com/philc/vimium
Keybindings MovementMapping namej
, s
向下滚动scrollDownk
, w
向上滚动scrollUph
向左滚动scrollLeftl
向右滚动scrollRightd
向下滚动半页scrollPageDownunmapped向下滚动整页scrollFullPageDownu
, e
向上滚动半页scrollPageUpunmapped向上滚动整页scrollFullPageUpgg
滚动到页面顶部scrollToTopG
滚动到页面底部scrollToBottom0
滚动到页面左侧scrollToLeft$
滚动到页面右侧scrollToRight#
将滚动焦点重置为主页resetScrollFocusgi
转到第一个输入框goToInputgI
转到最后一个焦点输入框 gi
goToLastInputzz
中心页到当前搜索匹配项(中间)centerMatchHzt
中心页到当前搜索匹配项(顶部)centerMatchTzb
中心页到当前搜索匹配项(底部)centerMatchBLink Hintsf
在当前标签页中打开链接createHintF
在新的标签页打开链接createTabbedHintunmapped在新标签页中打开链接(活动)createActiveTabbedHintW
在新窗口中打开链接createHintWindowA
重复最后一个提示命令openLastHintq
触发悬停事件(鼠标悬停+ mouseenter)createHoverHintQ
触发一个悬停事件(mouseout + mouseleave)createUnhoverHintmf
打开多个链接createMultiHintunmapped使用外部编辑器编辑文本createEditHintunmappedcall a code block with the link as the first argumentcreateScriptHint(
)unmapped在新标签页中打开图像fullImageHintmr
反向图像搜索多个链接multiReverseImagemy
复制多个链接 (open the list of links with P)multiYankUrlgy
将URL从链接复制到剪贴板yankUrlgr
反向图像搜索(谷歌图像)reverseImage;
更改链接提示焦点QuickMarksM
创建快捷标记 addQuickMarkgo
在当前选项卡中打开快速标记 in the current tabopenQuickMarkgn
在新标签页中打开快速标记 in a new tabopenQuickMarkTabbedgw
在新窗口中打开快捷标记 in a new windowopenQuickMarkWindowedMiscellaneousa
别名为“:tabnew google”:tabnew google.
重复最后一条命令repeatCommand:
打开命令栏openCommandBar/
打开搜索栏openSearchBar?
打开搜索栏(反向搜索)openSearchBarReverseunmapped打开链接搜索栏(与按相同/?)openLinkSearchBarI
通过浏览器历史记录搜索:historyg%
scroll 向下滚动
个百分比percentScroll
unmapped将
密钥传递到当前页面passKeysi
进入插入模式(转义退出)insertModer
重新加载当前标签reloadTabgR
重新加载当前选项卡+本地缓存reloadTabUncached;
创建标记 setMark''
转到最后一个滚动位置lastScrollPosition
转到上一个滚动位置previousScrollPosition
转到下一个滚动位置nextScrollPosition'
去标记 goToMarkcm
静音/取消静音标签页muteTabnone重新加载所有标签reloadAllTabscr
重新加载所有标签,但当前reloadAllButCurrentzi
放大页面zoomPageInzo
缩小页面zoomPageOutz0
将页面缩放到原始大小zoomOrigz
切换图像缩放(与在仅图像页面上单击图像相同)toggleImageZoomgd
alias to :chrome://downloads:chrome://downloadsge
alias to :chrome://extensions:chrome://extensionsyy
将当前页面的URL复制到剪贴板yankDocumentUrlyY
将当前框架的URL复制到剪贴板yankRootUrlya
在当前窗口中复制URLyankWindowUrlsyh
从查找模式复制当前匹配的文本(如果有)yankHighlightb
通过书签搜索:bookmarksp
打开剪贴板选择openPasteP
在新标签页中打开剪贴板选择openPasteTabgj
隐藏下载架hideDownloadsShelfgf
在iframe中循环nextFramegF
转到根框架rootFramegq
停止加载当前选项卡cancelWebRequestgQ
停止加载所有标签cancelAllWebRequestsgu
在网址中向上一条路径goUpUrlgU
转到基本URLgoToRootUrlgs
转到当前网址的view-source://页面:viewsource!
创建或切换当前URL的书签createBookmarkunmapped关闭所有浏览器窗口quitChromeg-
递减URL路径中的第一个数字(例如www.example.com/5=> www.example.com/4)decrementURLPathg+
递增URL路径中的第一个数字incrementURLPath标签导航gt
, K
, R
导航到下一个标签nextTabgT
, J
, E
导航到上一个选项卡previousTabg0
, g$
转到第一个/最后一个标签firstTab, lastTab
, gh
在新标签页中打开当前标签页历史记录中的最后一个URLopenLastLinkInTab
, gl
在新标签页中打开当前标签页历史记录中的下一个网址openNextLinkInTabx
关闭当前标签closeTabgxT
关闭当前选项卡左侧的选项卡closeTabLeftgxt
关闭当前标签右侧的标签closeTabRightgx0
关闭当前选项卡左侧的所有选项卡closeTabsToLeftgx$
关闭当前标签右侧的所有标签closeTabsToRightX
打开最后一个关闭的标签页lastClosedTabt
:tabnew:tabnewT
:tabnew :tabnew @%O
:open :open @%%
switch to tab goToTabH
, S
回去goBackL
, D
前进goForwardB
搜索另一个活动标签:buffer
向右移动当前选项卡moveTabRight]]
点击页面上的“下一个”链接(请参见上面的nextmatchpattern)nextMatchPattern[[
点击页面上的“后退”链接(请参见上面的“ matchpattern”)previousMatchPatterngp
固定/取消固定当前标签页pinTab
在上次使用的标签之间切换焦点lastUsedTab查找模式n
下一个搜索结果nextSearchResultN
以前的搜索结果previousSearchResultv
进入视觉/插入符号模式(突出显示当前搜索/选择)toggleVisualModeV
从插入符号模式/当前突出显示的搜索进入视线模式toggleVisualLineModeunmapped清除搜索模式突出显示clearSearchHighlightVisual/Caret Mode
退出视觉模式到插入符号模式/退出插入符号模式到普通模式v
在视觉/插入符号模式之间切换h
, j
, k
, l
移动插入符位置/扩展视觉选择y
复制当前选择n
选择下一个搜索结果N
选择上一个搜索结果p
在当前标签中打开突出显示的文本P
在新标签页中打开突出显示的文本Text boxes
将光标移到行首beginningOfLine
将光标移到行尾endOfLine
删除到行首deleteToBeginning
删除到行尾deleteToEnd
删除一个字deleteWord
删除前一个单词deleteForwardWordunmapped删除一个字符deleteCharunmapped向前删除一个字符deleteForwardChar
将光标移回一个字backwardWord
将光标向前移动一个字forwardWord
将光标向前移动一个字母forwardChar
将光标移回一个字母backwardChar
将光标向前移动一行forwardLine
将光标移回一行backwardLineunmapped选择输入文字 (equivalent to
)selectAllunmapped在终端中使用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 :
:quitclose the current tab:qallclose 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:tabdetachmove 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:duplicateduplicate the current tab:settingsopen the settings page:nohlsearchclear the highlighted text from the last search:executeexecute a sequence of keys (Useful for mappings. For example, “map j :execute 2j”):buffer (autocomplete)change to a different tab:mksessioncreate 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:scriptrun JavaScript on the current page:togglepintoggle the pin state of the current tab:pintabpin the current tab:unpintabunpin 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, entering
ta
in the command bar and pressing the up arrow will search command history for all matches beginning withta