Quick newbie question. Let's say I have the following code in Vim:
void main()
{
int i = i + 1;
return i;
}
I have the cursor on the empty line between the two lines of code. When I press i (or a) to enter text I want to cursor to indent to the right position (i.e. below the i in "int i..."). Any ideas how it can be done?