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.

Finally decided to take the plunge and start learning vim.

I am however having an issue whereby I can't go the end of the line i.e. after the last letter so that I can hit enter on my keyboard and go to the next line.

I tried using the l, w, $. The only way I have been able to do so is to enter INSERT mode and then to use the arrow keys which I would like to avoid. Is there way to achieve this?

enter image description here

share|improve this question

1 Answer 1

up vote 3 down vote accepted

In normal mode, use o (lowercase o) to "o"pen a new line below the current one and O (uppercase O) to open a new line above. You don't need to be at the end of the line for these to work which is part of the beauty of Vim.

In insert mode, the <End> key works like you'd expect.

If you haven't done it already, Vim comes with the vimtutor CLI command. It's a great interactive tutorial that runs in Vim itself that teaches you the basics. It's highly recommended to follow it as soon as possible.

share|improve this answer
    
Also, learn the "a" and "A" commands (:help a) –  Heptite Apr 9 '13 at 8:22
    
@romainl - Been learning for a tutorial from Nettuts so hopefully that'll give me a starting platform. –  PeanutsMonkey Apr 10 '13 at 0:58
    
No, nettuts sucks. Do vimtutor first, as many times as needed to feel comfortable with the basics then watch vimcasts.org from the first to the latest and DON'T INSTALL ANY PLUGIN/CONFIG PACKAGE LIKE JANUS OR SPF13. –  romainl Apr 10 '13 at 5:20

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.