Wikia

Vim Tips Wiki

Changes: Script:2754

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 1: Line 1:
 
{{ScriptComments|delimitMate: auto-balancing and expansions for parens, quotes, etc}}
 
{{ScriptComments|delimitMate: auto-balancing and expansions for parens, quotes, etc}}
   
The delimitMate plugin tries to provide some not so dumb help in the work with delimiters (brackets, quotes, etc.), with some optional auto-balancing and expansions. It's highly customizable and supports FileType autocmd events. Check the script's page for more info.
+
The delimitMate plugin tries to provide some not so dumb help in the work with delimiters (brackets, quotes, etc.), with some optional auto-balancing and expansions. It's highly customizable and supports FileType autocmd events. Check the script's page for more info.
   
 
Leave your comments, suggestions or report any issues below, or at [http://github.com/Raimondi/delimitMate/ GitHub].
 
Leave your comments, suggestions or report any issues below, or at [http://github.com/Raimondi/delimitMate/ GitHub].
Line 13: Line 13:
   
 
: I think I fixed the bug, if you want to test it, download the source files from the following link:
 
: I think I fixed the bug, if you want to test it, download the source files from the following link:
 
 
: http://github.com/Raimondi/delimitMate/archives/master
 
: http://github.com/Raimondi/delimitMate/archives/master
 
 
: Thanks!
 
: Thanks!
 
: Israel
 
: Israel
   
 
::Works fine now.
 
::Works fine now.
 
 
::Thanks a lot!
 
::Thanks a lot!
   
 
----
 
----
 
 
Hi. I've got an error while trying your script. To reproduce error start gvim with new file, enter in insert mode, type quote e.g. ' (actually this happens with any quotes, parenthesis, brackets, etc.). After closing quote gets inserted try using Shift+Backspace to remove only one quote. I've got this error messages
 
Hi. I've got an error while trying your script. To reproduce error start gvim with new file, enter in insert mode, type quote e.g. ' (actually this happens with any quotes, parenthesis, brackets, etc.). After closing quote gets inserted try using Shift+Backspace to remove only one quote. I've got this error messages
+
<pre>
<code>
+
=delimitMate#QuoteDelim("\'")
=delimitMate#QuoteDelim("\'")<br\>
+
Error detected while processing function delimitMate#IsForbidden..delimitMate#GetCurrentSyntaxRegionIf:
Error detected while processing function delimitMate#IsForbidden..delimitMate#GetCurrentSyntaxRegionIf:<br/>
+
line 4:
line 4:<br/>
+
E523: Not allowed here
E523: Not allowed here<br/>
+
Press ENTER or type command to continue
Press ENTER or type command to continue<br/>
+
Error detected while processing function delimitMate#IsForbidden..delimitMate#GetCurrentSyntaxRegionIf:
Error detected while processing function delimitMate#IsForbidden..delimitMate#GetCurrentSyntaxRegionIf:<br/>
+
line 6:
line 6:<br/>
+
E523: Not allowed here
E523: Not allowed here<br/>
+
</pre>
</code>
 
   
 
I'm using
 
I'm using
+
<pre>
<code>
+
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 7 2010 02:02:04)
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 7 2010 02:02:04)<br/>
+
MS-Windows 32-bit GUI version
MS-Windows 32-bit GUI version<br/>
+
Included patches: 1-411
Included patches: 1-411<br/>
+
Modified by Vim extended
Modified by Vim extended<br/>
+
</pre>
</code>
 
   
 
: I fixed the problem and uploaded the changes to [http://github.com/Raimondi/delimitMate/ GitHub].
 
: I fixed the problem and uploaded the changes to [http://github.com/Raimondi/delimitMate/ GitHub].
Line 51: Line 47:
   
 
----
 
----
 
 
Hi. I've fetched latest version from GitHub and i can't see options delimitMate_expand_cr & delimitMate_expand_space available.
 
Hi. I've fetched latest version from GitHub and i can't see options delimitMate_expand_cr & delimitMate_expand_space available.
 
--[[Special:Contributions/95.167.79.134|95.167.79.134]] 07:53, June 23, 2010 (UTC)
 
--[[Special:Contributions/95.167.79.134|95.167.79.134]] 07:53, June 23, 2010 (UTC)
Line 60: Line 55:
   
 
----
 
----
 
 
It is unclear from the docs whether multi-character delimiters can be used in delimitMate_matchpairs, .e.g. PHP's '<?:?>'.
 
It is unclear from the docs whether multi-character delimiters can be used in delimitMate_matchpairs, .e.g. PHP's '<?:?>'.
   

Latest revision as of 09:47, July 14, 2012

Around Wikia's network

Random Wiki