What is the intended modal editor method that negates the need to navigate in insert mode? #3790
-
So, I'll be honest the recent removal of navigation bindings in insert mode really tripped me up. And on reading the pull request discussion I guess I get the motivation. But this just leaves me scratching my head because there ARE IMO legitimate reasons to move a character or two while doing an insert before dropping back to normal mode. Or my current major annoyance before re-adding the navigation keybindings. moving out of auto inserted matching quote or brace pairs, or to the end of a line to add a comma when working with data structures. It makes absolutely no sense to me to exit insert mode arrow over a single character and reenter insert mode just because I've reach then end of the am I missing something? is there a better way to handle these cases in model mode I'm ignorant of? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can exit a pair by typing the closing character e.g. |
Beta Was this translation helpful? Give feedback.
-
Re-introducing arrow-key bindings into your config is perfectly valid IMO. As you say, being able to move the cursor a tiny amount without exiting normal-mode and re-entering insert-mode can be useful. Tabout (#1587) would be the ideal way to jump out of closing pairs. I have a PR for that which gets close but needs refinement: #3350 In general though, motions/navigation should be done in normal-mode. Escli is a longer sequence than pressing the right arrow key but you don't need to move your hand to the arrow keys, and you get an undo checkpoint from switching to normal mode. The more you need to move, the less costly the switch to normal mode becomes. And if you remap caps-lock as Esc - which I would highly recommend - then the entire motion can be done without leaving touch-typing position. |
Beta Was this translation helpful? Give feedback.
Re-introducing arrow-key bindings into your config is perfectly valid IMO. As you say, being able to move the cursor a tiny amount without exiting normal-mode and re-entering insert-mode can be useful.
Tabout (#1587) would be the ideal way to jump out of closing pairs. I have a PR for that which gets close but needs refinement: #3350
In general though, motions/navigation should be done in normal-mode. Escli is a longer sequence than pressing the right arrow key but you don't need to move your hand to the arrow keys, and you get an undo checkpoint from switching to normal mode. The more you need to move, the less costly the switch to normal mode becomes. And if you remap caps-lock as Esc -…