Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example, if I have a long line wrapped several times, it is painful to move cursor inside this line, I have to hit w repeatedly, or use f to find what I want, even slower if there are many same letters in that line.

Can I configure Vim to make j to go down to next line on screen instead of the "real" next line? Or there are better approaches?

In addition, I know the wrap option can make a line on scree is a real line, but I want to display the whole line on screen, save my time of scrolling.

I'm using Gvim 7.4.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Using 'gj' and 'gk' instead of just 'j' and 'k' allows moving down and up by screen lines instead of file lines. Here are a few nifty mappings for that:

share|improve this answer

Your Answer

 
discard

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.