Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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?

share|improve this question

1 Answer 1

up vote 10 down vote accepted

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

share|improve this answer
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 '11 at 11:26
@skyblue good point, I'll update the answer. – geirha Feb 19 '11 at 13:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.