. So I would like to write a short vim script which inserts the "{}"
around the name of the variable. It should work, when the cursor is
somewhere over the name of the variable.

You might be interested in the surround.vim script. There is inconveniently no URL in the script that I can point you to, but the script number appears to be 1697.

--

.

Reply via email to