Skip to content

Instantly share code, notes, and snippets.

@Gavinok
Last active December 19, 2018 19:43
Show Gist options
  • Save Gavinok/a39fec93ec2134d2f258b4418f5932de to your computer and use it in GitHub Desktop.
Save Gavinok/a39fec93ec2134d2f258b4418f5932de to your computer and use it in GitHub Desktop.
this is my config for Surfingkeys chrome extension
// vim: filetype=c
map("K", "R");
map(" k", "R");
map("J", "E");
map(" j", "E");
map("H", "S");
map(" h", "S");
map(" l", "D");
map("L", "D");
map(">_F", "F");
map("F", "C");
//map("j", "d");
//map("k", "u");
map("ot", "on");
map(">_W", "W");
map("W", "w");
map("w", ">_W");
map(">_F", ">_F");
Hints.style('border: solid 3px #552a48; color:#efe1eb; background: initial; background-color: #552a48;');
Hints.style("border: solid 8px #C38A22;padding: 1px;background: #e39913", "text");
Visual.style('marks', 'background-color: #89a1e2;');
Visual.style('cursor', 'background-color: #9065b7;');
map("i", "<Alt-i>");
map("o", "go");
map("m", "f");
unmap("ZQ");
//unmap("ZZ");
map("<Alt-j>", "zo");
map("<Alt-k>", "zi");
map("U", "su");
map("pdf", ";s");
map("e", "i");
settings.omnibarMaxResults = 20;
addSearchAliasX('A', 'amazon', 'https://www.amazon.ca/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=');
addSearchAliasX('e', 'ebay', 'https://www.ebay.ca/sch/i.html?_from=R40&_trksid=');
mapkey('se', '#11Edit Settings', function() {
tabOpenLink("/pages/options.html");
});
addSearchAliasX('a', 'ArchWiki', 'https://wiki.archlinux.org/index.php?search=');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment