Following this tip:
http://vim.wikia.com/wiki/Automatically_append_closing_characters#Improved_Bracket-Matching
I've pasted the code three times, replacing ( with [ and {, ) with ]
and } respectively for the latter two. This gave me automatic matching
for (, [, and {. Any ideas as to how I could extract the second
mapping into a function, taking one argument for the matched
character? I imagine a simple switch statement would provide the
matching character (arguments would be ', ", (, {, etc., the benefit
being that I could also pass in something like /* just by adding a
case to the switch.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---