On 4/8/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote:
>
> linda.s Sent April 08, 2006 7:13 PM
>
> > [Question concerned use of arrow keys to
> > move vertically when lines are wrapped]
>
> See help gj and help gk
>
> In another post, you asked about examples of map and imap;
> and in yet another post, I gave an example of an imap.
> Here are examples of nmap:
>
> noremap <down> gj
> noremap <up> gk
>
> Since I use the alphabet keys (rather than arrow keys) to move, I
> have the following maps in my _vimrc:
>
> nnoremap j gj
> nnoremap gj j
> nnoremap k gk
> nnoremap gk k
>
> --Suresh
>
>
Thanks. But what is the difference between "map" and "nnoremap"? I
tested it and they are the same. If so, why use "nnoremap"?
Also, I wonder how I can use the help file? I mean though I know "j"
means go down one space , i can not image "gj" can solve my question.
Thanks again,
Linda