On Sat, Apr 08, 2006 at 04:26:48PM -0700, linda.s wrote:
> On 4/6/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> > On 4/6/06, linda. s <[EMAIL PROTECTED]> wrote:
> > > What is the difference between imap and map. Very hard to understand...
> >
> > imap for insert mode. map for normal mode and 2 other modes
> > (visual and operator-pending). for simpicity, you can say that map
> > is for normal mode (such it was in original vi). For normal-mode
> > mapping only, you use nmap, but map is ok too.
> >
> > Yakov
> >
> Can you give an example?
> Linda

     After

:map <F3> g~iw
:imap <F3> HTH = "Hope That Helps"

I can go into Normal mode and use the F3 function key to change a word
into ALL CAPS, or I can go into Insert mode and use the same key to
enter the text

        HTH = "Hope That Helps"

to explain my signature.

:help vim-modes-intro

HTH                                     --Benji Fisher

Reply via email to