While editing .scm
files it would be great if Vim would automatically put the ending brace )
as soon as I start (
. How do I do this?
This autocomplete in insert mode, provided set paste is not set. Keep it in the vimrc to avoid typing it every time and when we don't want the mapping, we need to escape it using ctrl + v before typing the mapped char like ( { etc.
You can map the opening brace to your liking:
:imap ( ()<left>
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