> 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