I'm looking for a plugin that makes you get out of parenthesis/brackets/quotes/etc when you're inside them. I find it kind of hard having to ESC to command mode and typing A to get out of the parenthesis to go to the end of the line in Insert mode, is there a plugin that meets my needs?
lh-brackets simply binds ( to surround the selection with the brackets. Unlike surround it doesn't follow the vim usual keybinding philosophy as does. Instead less keys are required.
Esc + i to exit insert mode and enter it again, effectively going to the beginning of line.
A plugin would be overkill. Add this mapping to your ~/.vimrc
:
inoremap <C-e> <C-o>A
<C-o>
is used to issue a normal mode command without leaving insert mode.A
, well… you know what it does.If you install the delimitMate plugin you can achieve this with the <S-e>
or <C-g>g
mapping.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With