On 25/06/09 14:48, Tim Chase wrote:
>
>>> I would highly recommend not remapping.  Get used to not
>>> moving your right hand, but just poking h with you index
>>> finger without moving the other fingers from kl;.  In a
>>> short while, you'll even forget which key moves where
>>> because you will be so conditioned to the strokes without
>>> even thinking.  Remapping will set you up for other issues
>>> that will be annoying forever IMO.
>>
>> Good idea.  Why didn't I think of that?
>
> I've been vimming for about 10 years now (my, I feel old), and
> hardly ever use the h/l keys for moving left/right.  I tend to
> use more gross/precise movements like t/T/f/F/w/b/e  Very rarely
> do I want to go back/forward by a single letter, but rather I
> want to go "back to the letter 'x' in this line" or "3 words
> back".  So I use
>
>     Fx
>
> or
>
>     3b
>
> Additionally, if I'm moving around in the line, it's often to
> change something, so text-objects become valuable
>
>     cis      # change the "inner sentence"
>     ci"      # change the stuff inside double-quotes
>     daw      # delete the word the cursor is on
>
> etc.  With mastery of these more surgical motions, gumming at the
> line with h/l feels a bit like back-street surgery with rusty
> saw-blades.  It's a bit like watching my coworkers hold down the
> arrow-keys to get to the beginning/end of a line and wanting to
> scream "just press the button labeled Home/End!!!" :)
>
> Hope this opens up new doors to editing efficiencies for you...
>
> -tim

As for many other tasks, Vim offers several solutions for this one 
(moving the cursor about) and the solution to use is whichever one suits 
you best _at this particular time_.

In addition to what Tim mentioned (and which I use when that's what I 
need), I'd mention that:
- in Normal mode, I have remapped jk to move differently than <Down> 
<Up> so I use the ones to move by "file line" and the others to move by 
"screen line". I may use the arrow keys to move about but yl to yank a 
single character (e.g. "+yl to yank it to the clipboard for pasting into 
an email) even though l and <Right> do the same thing.
- to go to "that particular place", to which I can point, but which is 
an indeterminate number of lines / columns / words away from the present 
cursor position, I just click the mouse on it (provided, of course, that 
I have a working mouse and a Vim version which knows about it -- 
recently my mouse stopped working so I had to resort to other ways of 
moving in Vim & Mozilla, and to stop playing my favourite games because 
_they_, the stupids, don't know about keyboard-only).

In agreement with the first paragraph quoted above, I'd say: remapping 
hjkl to jkl; (or, on my keyboard, to jklm) is possible, but it's the 
surest way to shoot yourself in the foot in the long run. For similar 
reasons, if your vimrc invokes mswin.vim (a script of long and bad 
reputation), I highly recommend that you remove that line or comment it 
away -- in my years on the Vim lists, I've seen the mappings in that 
script causing no end of trouble to the people using them.


Best regards,
Tony.
-- 
"Outside of a dog, a book is a man's best friend: and inside a dog,
it's too dark to read."
                -- Groucho Marx

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

Reply via email to