Tip #1390: Give back movement to the Dvorak layout.
tip karma |
Rating 20/7, Viewed by 730
|
created: |
|
November 17, 2006 0:49 |
|
complexity: |
|
basic |
author: |
|
Jesse |
|
as of Vim: |
|
5.7 |
When one switches to the Dvorak keyboard and uses vim it becomes difficult to use the standard (h,j,k,l) movement keys. This is a great way to have the same movement locations and retain all of the functionality. There are also a few added benifits, that can be used. Add this to your .vimrc
The fixes for what is broken
* Delete 'd' -> Junk 'j'
* Next 'n' -> ???? 'l'
* Previous 'N' -> ? 'L'
There were also some changes for familiarity, 's'/'S' can be used to access command mode (the old location of the :, which still works).
Added Benefits
* End of line '$' -also- '-'
* Beginning of line '^' -also- '_'
* Move up 8 'T'
* Move down 8 'H'
* Next window <C-w><C-w> -also- 'N'
* Swap windows <C-w><C-r> -also- 'D'
" Dvorak it!
no d h
no h j
no t k
no n l
no s :
no S :
no j d
no l n
no L N
" Added benefits
no - $
no _ ^
no N <C-w><C-w>
"no T <C-w><C-r>
no H 8<down>
no T 8<up>
no D <C-w><C-r>
<<Trailing white space aware Delete Key (Insert Mode) |
Disable match paren restriction (visible lines -> whole file) >>
Additional Notes
|