Skip to content

Instantly share code, notes, and snippets.

@ryan-williams
Last active August 7, 2025 18:42
Show Gist options
  • Save ryan-williams/894a98b80a0ad3bc33f9fb2a592f86db to your computer and use it in GitHub Desktop.
Save ryan-williams/894a98b80a0ad3bc33f9fb2a592f86db to your computer and use it in GitHub Desktop.
Vimium configs

.vimium-rc

Vimium configs

Import vimium-options.json into the extension's settings page.

For reference, here's the extracted keyMappings section:

$ cat vimium-options.json | jq -r .keyMappings
# Insert your preferred key mappings here.

map c copyCurrentUrl
map p openCopiedUrlInNewTab
map P openCopiedUrlInCurrentTab

map o Vomnibar.activateInNewTab
map O Vomnibar.activate

map b Vomnibar.activateBookmarksInNewTab
map B Vomnibar.activateBookmarks

map e Vomnibar.activateEditUrlInNewTab
map E Vomnibar.activateEditUrl

map t Vomnibar.activateTabSelection
map T createTab

map lf LinkHints.activateModeToCopyLinkUrl
map yc LinkHints.activateModeToCopyLinkUrl
map F LinkHints.activateModeToOpenInNewForegroundTab
map <c-f> LinkHints.activateModeWithQueue
map <c-F> LinkHints.activateModeToOpenInNewTab
map yh LinkHints.activateMode action=hover
map yf LinkHints.activateMode action=focus
map ya LinkHints.activateMode action=copy-text

# Attempt to mitigate ESC capturing, cf. https://github.com/philc/vimium/wiki/Tips-and-Tricks
map <c-]> passNextKey
map <c-Escape> passNextKey
map <c-a> passNextKey
map <c-j> passNextKey
map <c-c> <Escape>

map \ passNextKey normal

map , previousTab
map . nextTab
map <c-,> previousTab
map <c-.> nextTab
map < moveTabLeft
map > moveTabRight
unmap <<
unmap >>
{
"settingsVersion": "1.67",
"exclusionRules": [
{
"pattern": "https?://mail.google.com/*",
"passKeys": "mrxz"
},
{
"pattern": "http://localhost:8888/notebooks/*",
"passKeys": "abjkmycvV0zh"
},
{
"pattern": "https?://localhost:3000/*",
"passKeys": ""
},
{
"pattern": "https://docs.google.com",
"passKeys": ""
},
{
"pattern": "https?://octobox.io/*",
"passKeys": "xjkmor"
},
{
"pattern": "https?://excel.officeapps.live.com/*",
"passKeys": ""
},
{
"pattern": "https?://hangouts.google.com/*",
"passKeys": "d,e"
},
{
"pattern": "https?://www.draw.io/*",
"passKeys": ""
}
],
"filterLinkHints": false,
"waitForEnterForFilteredHints": true,
"hideHud": false,
"keyMappings": "# Insert your preferred key mappings here.\n\nmap c copyCurrentUrl\nmap p openCopiedUrlInNewTab\nmap P openCopiedUrlInCurrentTab\n\nmap o Vomnibar.activateInNewTab\nmap O Vomnibar.activate\n\nmap b Vomnibar.activateBookmarksInNewTab\nmap B Vomnibar.activateBookmarks\n\nmap e Vomnibar.activateEditUrlInNewTab\nmap E Vomnibar.activateEditUrl\n\nmap t Vomnibar.activateTabSelection\nmap T createTab\n\nmap lf LinkHints.activateModeToCopyLinkUrl\nmap yc LinkHints.activateModeToCopyLinkUrl\nmap F LinkHints.activateModeToOpenInNewForegroundTab\nmap <c-f> LinkHints.activateModeWithQueue\nmap <c-F> LinkHints.activateModeToOpenInNewTab\nmap yh LinkHints.activateMode action=hover\nmap yf LinkHints.activateMode action=focus\nmap ya LinkHints.activateMode action=copy-text\n\n# Attempt to mitigate ESC capturing, cf. https://github.com/philc/vimium/wiki/Tips-and-Tricks\nmap <c-]> passNextKey\nmap <c-Escape> passNextKey\nmap <c-a> passNextKey\nmap <c-j> passNextKey\nmap <c-c> <Escape>\n\nmap \\ passNextKey normal\n\nmap , previousTab\nmap . nextTab\nmap <c-,> previousTab\nmap <c-.> nextTab\nmap < moveTabLeft\nmap > moveTabRight\nunmap <<\nunmap >>",
"linkHintCharacters": "sadfjkl;qweruiopzxcvm/",
"linkHintNumbers": "0123456789",
"newTabUrl": "about:newtab",
"nextPatterns": "next,more,newer,>,›,→,»,≫,>>",
"previousPatterns": "prev,previous,back,older,<,‹,←,«,≪,<<",
"regexFindMode": true,
"ignoreKeyboardLayout": false,
"scrollStepSize": 100,
"smoothScroll": true,
"grabBackFocus": true,
"searchEngines": "w: http://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\ngl: http://www.google.com/search?q=%s Google\ngm: https://www.google.com/maps?q=%s Gmaps\naz: http://www.amazon.com/s/?field-keywords=%s Amazon\ngo: http://www.google.com/search?q=%s&btnI GLucky\n\n# More examples.\n#\n# (Vimium supports search completion Wikipedia, as\n# above, and for these.)\n#\n# l: http://www.google.com/search?q=%s&btnI I'm feeling lucky...\n# y: http://www.youtube.com/results?search_query=%s Youtube\n# b: https://www.bing.com/search?q=%s Bing\n# d: https://duckduckgo.com/?q=%s DuckDuckGo\n# qw: https://www.qwant.com/?q=%s Qwant",
"searchUrl": "https://www.google.com/search?q=",
"userDefinedLinkHintCss": "div > .vimiumHintMarker {\n/* linkhint boxes */\nbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785),\n color-stop(100%,#FFC542));\nborder: 1px solid #E3BE23;\n}\n\ndiv > .vimiumHintMarker span {\n/* linkhint text */\ncolor: black;\nfont-weight: bold;\nfont-size: 12px;\n}\n\ndiv > .vimiumHintMarker > .matchingCharacter {\n}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment