> On 2010-03-02, Jorge Timón wrote:
>
>> I don't think I'm going to use i, c, R, a and A: I'll probably just
>> use i and A (maybe I'm wrong).
>
> Once you get beyond just inserting text at a particular point (i, a
> and A), and starting learning about Vim's text objects (see ":help
> 04.8"), you'll find c extremely useful.
>
> I don't use a or R very often, but in some situations they are
> exactly the right tool and it's good to know them and have them
> available.
>
> Regards,
> Gary
>
The advantage of a is that (if nothing else moves the cursor, and except
when inserting at start-of-line) alternating <Esc> with a keeps the
cursor in the same place: Esc moves the cursor one step left as it goes
to Normal mode while a moves it one step right as it goes to Insert mode.
c is indeed very useful with text objects: ciw "change inner word", ciW
"change inner WORD" ("inner" because we keep the surrounding blanks), or
even cc (change current line).
R goes straight to Replace mode; with the "side" keys you would need to
hit <Insert> twice to do the same (once to go from Normal to Insert and
then again to toggle between Insert and Replace).
As for Jorge's wish to swap j and k it is possible but IMHO confusing.
If you don't remember which is which, one mnemotechnical trick is that j
has a tail below it while k has a tail above.
Best regards,
Tony.
--
Doctors take two aspirin and do it in the morning.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment