Skip to content

Instantly share code, notes, and snippets.

@chaorace
Last active February 6, 2018 09:41
Show Gist options
  • Save chaorace/f4d5dce9000edf89713918d4bc380fdb to your computer and use it in GitHub Desktop.
Save chaorace/f4d5dce9000edf89713918d4bc380fdb to your computer and use it in GitHub Desktop.
surfingKeys Config
//Custom surfingkeys mappings by chaorace
//Makes basic navigation more cVim-like
//Some comfort tweaks for aceVim
//Some custom bindings for my common sites
//Regular mappings
map("K", "R");
map("J", "E");
map("u", "e");
map("H", "S");
map("L", "D");
map('jj', "<Esc>");
//Editor mappings
aceVimMap('jj', '<Esc>', 'insert');
//Site-specific mappings
//Reddit w/ RES
//Removes conflicting binds that RES does better
unmap("j", /reddit\.com/i); //RES makes this navigate down
unmap("k", /reddit\.com/i); //RES makes this navigate up
unmap("f", /reddit\.com/i); //RES makes this the filter bar
unmap(".", /reddit\.com/i); //RES makes this the command bar
unmap("c", /reddit\.com/i); //RES makes this open comments
unmap("C", /reddit\.com/i); //RES makes this open comments
unmap("a", /reddit\.com/i); //RES makes this upvote
unmap("z", /reddit\.com/i); //RES makes this downvote
unmap("r", /reddit\.com/i); //RES makes this reply
unmap('X', /reddit\.com/i);
map('X', "x", /reddit\.com/i); //Remaps close to Shift+X since x is for expandos
unmap("x", /reddit\.com/i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment