Thank you for your response...
I think I will include:
map <up> gk
map <down> gj
map <home> g0
map <end> g$

and

imap <up> <c-o>gk
imap <down> <c-o>gj
imap <home> <c-o>g0
imap <end> <c-o>g$

and I will be ok with movements...
Leaving j, k, 0, $ for the real lines...

Are "nore" options needed? I dont thin so...

On Sat, 2009-03-28 at 15:22 -0500, Tim Chase wrote:
> > I'm editing simple text files and moving by visible lines instead of
> > real lines would be really helpful. I allready mapped the Up and Down
> > arrow keys to gk and gj. 
> > How can I map the Home\End keys to move to the begining\end of visible
> > lines? 
> > 
> > Any other tips that would make it easier to edit text files (like a
> > book) with vim are wellcome.
> > It would be really amazing if I could configure vim to regard visible
> > lines as real lines but without actually insterting newline characters
> > (wrapmargin, textwidth).
> 
> Then be amazed... :)
> 
> You can use the following pattern:
> 
>    :nnoremap j gj
>    :nnoremap k gk
>    :nnoremap <up> gk
>    :nnoremap <down> gj
>    :nnoremap $ g$
>    :nnoremap ^ g^
>    :nnoremap <home> g0
>    :nnoremap <end> g$
> (do similarly for ":vnoremap" if you want)
> 
>    :inoremap <up> <c-o>gk
>    :inoremap <down> <c-o>gj
>    :inoremap <home> <c-o>g0
>    :inoremap <end> <c-o>g$
> 
> 
> -tim

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

Reply via email to