When I learned to program, I would press both the opening and closing brackets/etc then the left arrow key then enter the text. So to put in
[hello] I would type
, and then the left arrow so that it is over the first bracket (
I like that because I know I always have the right number of brackets/etc and otherwise I feel like my hand has to move back and forth to the bracket/etc key
But, in sticking with the Vim mindset, I don't want to continually reach for the arrow keys. Is there anything I could do that didn't involve using the arrow keys or having to continually switch out of insert mode to just press
h and go back in?