Skip to content

Instantly share code, notes, and snippets.

@eggbean
Last active August 15, 2023 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eggbean/4b0dee7c0a980954ad9340decaf0d84c to your computer and use it in GitHub Desktop.
Save eggbean/4b0dee7c0a980954ad9340decaf0d84c to your computer and use it in GitHub Desktop.
Vimium partial site exclusions so that the native keybindings can be used. Granular exclusions for GitHub which still allow vimium keys on pages which benefit from them. `:%s/eggbean/YOURUSERNAME/'`. Use with the essential 'web search navigator' Firefox/Chrome extension.
{
"settingsVersion": "1.67.4",
"exclusionRules": [
{
"pattern": "^https?://www.google.com/(?!maps)*",
"passKeys": "/abcdefhijklmnopqrsuvwyz"
},
{
"pattern": "^https?://mail.google.com/*",
"passKeys": "#/?cdegijklprsux"
},
{
"pattern": "^https?://www.youtube.com/(?!watch)*",
"passKeys": "?/;VY"
},
{
"pattern": "^https?://www.youtube.com/watch*",
"passKeys": "?/`+,-.<>[]0123456789acCdEefijklmNoPQRstw"
},
{
"pattern": "^https?://github.com/(?:eggbean(?:\\?.*=.+)?|search.*|(?:topics|collections|sponsors|marketplace)(?:$|/.*)?|.*/.*/(?:discussions|wiki|actions|releases|tags)?)?",
"passKeys": "?./>IUMabcdegilmnopqrtuwxy"
},
{
"pattern": "^https?://github.com/.*/.*/(?:pull|issues|actions|releases|wiki|discussions|commit|blob)/.+",
"passKeys": "?./>IUMabcdegilmnopqrtuwxy"
},
{
"pattern": "^https?://github.com/(?!eggbean(?:\\?.*=.+|$)+|search|topics|collections|sponsors|marketplace|.*/.*/(?:pull|issues|actions|releases|tags|wiki|discussions|commit|blob)).*",
"passKeys": "?./>IUMabcdegijklmnopqrtuwxy"
},
{
"pattern": "^https?://github.com/.*/.*/(?:pulls|issues(?:\\?q=.+)?)",
"passKeys": "?./>IUMabcdegijklmnopqrtuwxy"
},
{
"pattern": "^https?://gist.github.com/*",
"passKeys": "?/cgr"
},
{
"pattern": "^https?://(?:stackoverflow|serverfault|superuser|askubuntu|.*.stackexchange).com/*",
"passKeys": "?abcdeghijklmnoqrstuv"
},
{
"pattern": "^https?://trello.com/*",
"passKeys": "#@[]^<>,.;-?/0123456789bcdefjklmnqrstvwxz"
},
{
"pattern": "^https?://feedly.com/*",
"passKeys": "?/aAbcgijJkKlmnoopprsttvx"
},
{
"pattern": "^https?://twitter.com/*",
"passKeys": "?/.abdeghijklmnoprstux"
},
{
"pattern": "^https?://www.reddit.com/*",
"passKeys": "?/abcdeijklmnopqrsuvwxyz"
},
{
"pattern": "^https?://www.facebook.com/*",
"passKeys": "?/cjklopqs"
},
{
"pattern": "^https?://www.amazon.co.uk/*",
"passKeys": "/"
}
],
"filterLinkHints": false,
"waitForEnterForFilteredHints": true,
"hideHud": false,
"keyMappings": "nmap <c-c> <c-[>\nmap <a-j> scrollDown\nmap <a-k> scrollUp\nmap q visitPreviousTab\nmap <a-g><a-g> scrollToTop\nmap <a-s-g> scrollToBottom\nmap <c-x> removeTab",
"linkHintCharacters": "sadfjklewcmpgh",
"linkHintNumbers": "0123456789",
"newTabUrl": "https://www.google.com",
"nextPatterns": "next,more,newer,>,›,→,»,≫,>>",
"previousPatterns": "prev,previous,back,older,<,‹,←,«,≪,<<",
"regexFindMode": true,
"ignoreKeyboardLayout": false,
"scrollStepSize": 50,
"smoothScroll": true,
"grabBackFocus": false,
"searchEngines": "w: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\ng: https://www.google.com/search?q=%s Google\ngi: https://www.google.com/search?q=%s&btnI I'm feeling lucky...\nyt: https://www.youtube.com/results?search_query=%s Youtube\ngm: https://www.google.com/maps?q=%s Google maps\nb: https://www.bing.com/search?q=%s Bing\nd: https://duckduckgo.com/?q=%s DuckDuckGo\na: https://www.amazon.com/s/?field-keywords=%s Amazon\nqw: 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