In vim when I want to indent a section of code, I typically enter Visual mode and then use < or > to change the indentation. After doing that, vim puts me on the first line of the code that I indented.

Often the next thing I want to do is add code to the end. How do I quickly jump to the end so I can hit o and start adding more code?

I know I can type gv[esc] or gvo[esc] (depending on whether I had started my block from the beginning or the end) but I'm hoping for something more vim-like (i.e. not so many keystrokes).

link|improve this question
feedback

1 Answer

Ooh, I found the answer to my question. I can do either one of these:

'>
`>

The first one jumps to the last line of the previous visual selection.

The second one jumps to the last character of the previous visual selection.

After either one of these I can hit o to start adding more lines.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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