Skip to content

Instantly share code, notes, and snippets.

@agnoster
Created October 22, 2010 09:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agnoster/640210 to your computer and use it in GitHub Desktop.
Save agnoster/640210 to your computer and use it in GitHub Desktop.
.vimrc excerpt for remapping keys on a Dvorak keyboard
" Dvorak remap
" 1 - Movement keys htns -> hjkl
" (gj and gk move by visual lines, if the line is wrapped for instance)
noremap h h
noremap t gj
noremap n gk
noremap s l
" 2 - replace functions we remapped away
" S goes to bottom of Screen
noremap S L
" j/J Jerk and replace a character/line
noremap j s
noremap J S
" k/K Keep searching through regex matches
noremap k n
noremap K N
" l/L Looks forward/backward to a
noremap l t
noremap L T
" T puts lines Together
noremap T J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment