I'm writing code like this:
if (!p){
return 0; <-- cursor is on this line
}
And I want to start appending immediately after the code block, like this:
if (!p){
return 0;
}
<-- cursor is on this line, in Insert mode
Is there a command for this? Usually I use jo
to go down a line and then append a new line, or ]}o
if there's more than one line of code inside the brackets, but both of these solutions feel kind of verbose.
}i
, which is "go to the end of the paragraph" and "enter insert mode". But in general, I would do]}o
as you mention, because in the midst of coding I often don't mind the (one) extra keystroke if I spend 0 seconds thinking about it. – davidlowryduda Mar 7 '15 at 18:08