Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

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