Question: The standard practice is to exit INSERT mode, go to the parenthesis and enter INSERT mode again? Or do you just leave the parenthesis open until you're done?
Answer: It would be common to just type the arguments of the function, and then enter the closing parentheses. But yes, if you have already typed ) , and then decided that you want to return to the character, most likely just press the Escape key, and then press i to insert before the current position. With only two keystrokes, and experienced vi users are quite used to keystroke Escape.
If you really typed ); , you need to press the Escape key, then h and i . If you do, you will get used to it.
Some key combinations become second nature. For example, you can transfer two characters to vi by pressing x to delete the character under the cursor and place the cursor on the next character; then p to insert this character after the cursor position. I typed xp enough time in my life that I donโt even think about it ... my fingers just know where these keys are. I just think, โOh, I need to change these characters,โ and my fingers will rip out xp .
steveha
source share