Vim Tips Wiki
(Change to TipImported template + severe manual clean)
(Move categories to tip template)
Line 9: Line 9:
 
|version=5.7
 
|version=5.7
 
|rating=36/24
 
|rating=36/24
  +
|category1=
  +
|category2=
 
}}
 
}}
 
Like probably many people, I have the "inverse T" cursor key layout deeply etched in muscle memory, and I much prefer this to having left, down, up, right in a row like hjkl is (although I'm sure others prefer having all the keys on the home row). As a result I use ijkl to move the cursor and h to insert (this also means that touch typists get to keep their fingers on the touchtyping home keys and just move their second finger to i when they move the cursor up). This is what the relevant part of my vimrc file looks like:
 
Like probably many people, I have the "inverse T" cursor key layout deeply etched in muscle memory, and I much prefer this to having left, down, up, right in a row like hjkl is (although I'm sure others prefer having all the keys on the home row). As a result I use ijkl to move the cursor and h to insert (this also means that touch typists get to keep their fingers on the touchtyping home keys and just move their second finger to i when they move the cursor up). This is what the relevant part of my vimrc file looks like:

Revision as of 09:32, 25 April 2008

Tip 1334 Printable Monobook Previous Next

created September 19, 2006 · complexity basic · author Anon · version 5.7


Like probably many people, I have the "inverse T" cursor key layout deeply etched in muscle memory, and I much prefer this to having left, down, up, right in a row like hjkl is (although I'm sure others prefer having all the keys on the home row). As a result I use ijkl to move the cursor and h to insert (this also means that touch typists get to keep their fingers on the touchtyping home keys and just move their second finger to i when they move the cursor up). This is what the relevant part of my vimrc file looks like:

" remap h to insert and use ijkl for inverse T cursor movement
map h <insert>
map i <up>
map j <left>
map k <down>

Comments

You might as well want to use the gmail convention:

j <UP>
k <DOWN>
n <LEFT>
p <RIGHT>

Of course with re-mapping the n and o key functions.