Marc Weber <[EMAIL PROTECTED]> wrote:
> This is my attempt to write script which can surround text (either a
> word or the text selected in visual mode) with some characters such as "
> ' ...
>
> [...]
> I want to use this to insert brackets, braces and also things like
> try{
> ...
> catch () {
> }
>
> Simple press <m-7>( to surround your text with (), ...
>
> Or did I miss a script providing this functionality?
Indeed. Have a look at my C&C++ ftplugin suite. It defines the kind on mappings
you are looking for and much more. The lastest version is available at
<http://hermitte.free.fr/vim/ressources/lh-cpp.tar.gz>.
A major release is planned soon. I may have forgotten to package a couple of
files for the classe & doxygen wizards.
It is also available on SF, however I haven't updated it for a coupled of years.
HTH,
--
Luc Hermitte