Currently, I’m trying to learn VIM and disabled the arrow keys for all modes. When typing out new functions I always used to open and close the parenthesis at the same time in order to not forget them. Since, I cannot go back (no arrow keys) I was wondering how it is done in VIM because once closed, you are outside of the parenthesis.
Is it standard practice to exit INSERT mode, move into the parenthesis and enter INSERT mode again? Or do you simply leave the parenthesis open until you are finished?
I do know about the AutoClose script. The question serves more to understand the VIM way of doing things so I would like to know how other developers are overcoming this problem.
Forgetting a closing parenthesis will cause highlighting problems later on, making it unlikely that you’d overlook them further.
I suggest getting in the habit of typing the arguments in the middle of the parenthesis as you’re typing and close the parens once you’re finished with the arguments. (If you’re trying to learn
vim, anyway, this change doesn’t seem too large to adapt to — the amount of other things you’ll have to adapt to is already pretty staggering.)