10

In usual text editors, when you move your cursor left at the beginning of a line, the cursor goes up at the end of the above line. Is it possible to get this behavior in Vim?

1 Answer 1

14

:set ww+=<,> should make the left and right movement wrap to previous/next line. :help whichwrap for more information.

2
  • 3
    geirha, it might be better to keep the vim default of b,s so perhaps you could suggest :set ww+=<,> or :set ww=b,s,<,>
    – user8979
    Feb 19, 2011 at 11:26
  • @skyblue good point, I'll update the answer.
    – geirha
    Feb 19, 2011 at 13:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .