vimium mapping for Dvorak layouts

I recently stum­bled upon the rather neat vimium exten­sion for Chrom(e|ium), which does much the same as the vim­pe­ra­tor exten­sion for Fire­fox. The pro­blem, though, as with vim­pe­ra­tor and vim its­elf, is that the default key­board map­pings are a bit of a pain in the arse for Dvorak users, as hjkl isn’t on the home row any­more, much less next to each other.

The­re­fore, it needs some remap­ping to get in a half­way fami­liar and Dvorak-compatible lay­out, which would look like this:

unmapAll

map r reload
map e removeTab
map u restoreTab
map h scrollDown
map t scrollUp
map d scrollLeft
map n scrollRight
map <c-h> scrollPageDown
map <c-t> scrollPageUp
map <c-u> scrollFullPageDown
map D goBack
map N goForward
map T nextTab
map H previousTab
map <c-y> createTab
map gg scrollToTop
map G scrollToBottom
map gf toggleViewSource
map zi zoomIn
map zo zoomOut
map yy copyCurrentUrl
map i enterInsertMode
map f activateLinkHintsMode
map F activateLinkHintsModeToOpenInNewTab
map / enterFindMode
map . performFind
map , performBackwardsFind

Just paste it in the remap field of the extension’s “advan­ced opti­ons” menu.

About towo
towo has been writing stuff on the Internet on and off for years. He also thinks that author blurbs are silly.

Comments

3 Responses to “vimium mapping for Dvorak layouts”
  1. Phil Crosby says:

    Awe­some, thanks for pos­ting this Tobias.

  2. Hunter says:

    Don’t for­get that pos­ting here hides things in angle bra­ckets < like these >

    Rele­vant lines:
    map <c-h> scroll­Pa­ge­Down
    map <c-t> scroll­Pa­geUp
    map <c-u> scroll­Full­Pa­ge­Down
    map <c-y> createTab

  3. towo says:

    Finally got around to updating it. Kudos, Hunter!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!