News for hackers. Stuff that matters.
Re:Vim - Putting arrows to use by samdk on Tuesday August 21, 2012 @04:04PM (#4414499)
I use my up/down keys to move between visible lines (rather than real lines, which is what they and j/k do by default). This can be helpful occasionally when you have lines wrapped for something that's text rather than code.

    " up/down move between visual lines
    " instead of actual lines when wrapped
    imap <silent> <Down> <C-o>gj
    imap <silent> <Up> <C-o>gk
    nmap <silent> <Down> gj
    nmap <silent> <Up> gk
(You could also map j/k to just do this if it's something you use often, but I prefer not to.)

There are no comments on this comment yet.