Thanks for all your advices.

I don't want to swap j and k. It was just an example. I want to know
how to swap "normal" keys like j and k. I don't know what for yet. I
just want to know how to do it.
Probably I won't find an example that you find reasonable. Maybe I
find to "expensive" to type $ (S-4) or in my keyboard ][ (AltGr-` and
AltGr-+). I know is going to be hard to find a key that I don't want
to use enough to swap it with any "expensive" key combination that
produces a command that I feel I want to be easier to type.

Will it work?
:noremap j k
:noremap k j

More interesting, will it work?

:noremap ' {
:noremap ç }

note that I have ' ` and ' (three different keys).

thanks

On 7 mar, 20:03, Tony Mechelynck <[email protected]> wrote:
> On 02/03/10 20:29, Gary Johnson wrote:
>
>
>
>
>
> > 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

Reply via email to