On 08/04/09 08:27, Ouyang Jiannan wrote:
> Thanks to you all~
> That's my first time to ask question here, and all of you are very nice
>
> I'm sorry about representing my question unclear. Actually, I do have
> narrow keys, but I'm
> wandering how to do that quickly without move my hands.
>
>  From the answering above, I think I get several solutions
> 1) change to normal mode, move with hjkl
> 2) stay in insert mode, use narrow keys and home/end, pg up/ pg dn...
> 3) ctrl+o in insert mode, and then input a normal mode command
> 4) remapping
>
> Am I correct? I think solution 3 is handful... I'll learn that first
>
> Thank you again

Yes, you are. Solution 3 is mostly useful when you only need to do one 
Normal-mode command (or just a few); it applies to any (single) 
Normal-mode command including : / and ?. Of course repeating Ctrl-O h or 
Ctrl-O k several times can become a chore, but then Solution 1 comes 
into play.

Solution 2 is IMHO the most useful for simple movements or combinations 
of them (left/right by characters or to end of page, up/down a line, a 
screenful etc.). Its drawback is that you have to move your right hand 
to use it.

Solution 1 is the best if you have many Normal-mode commands to do, or 
complex ones.

Solution 4 is useful if you're going to often use a given combination of 
commands in the future. Due care should be given to which keys (or key 
sequences) to use as the {lhs} of your mapping. In Insert mode, I 
recommend F keys; in Normal mode, any key on your keyboard which 
generates a character above 0x7F can also be used.

Personally I use all four, but not in the same circumstances (and not 
all of them for plain left/down/up/right movements).


Best regards,
Tony.
-- 
The District of Columbia has a law forbidding you to exert pressure on
a balloon and thereby cause a whistling sound on the streets.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to