snare : Snippets Again, with Regular Expressions
| script karma
Downloaded by 199
Comments, bugs, improvements
|This plugin expands code snippets for which the trigger is a regular
expression; submatches can be reused in the expansion. Along with command
substitution, regular expressions allow the user to define flexible snippets.
A few examples:
- In HTML, expand "<mytag" to
(with $$ marking the next position of the cursor), no matter what
- In Ruby, expand "do" to
and "do a b c" to
do |a, b, c|
with a single pattern.
var a = $$,
b = $$,
c = $$;
The plugin follows a minimalist design, trying to be a simple yet powerful
tool, using Vim's native resources (vim script, search patterns), and avoiding
|See the "Quick start" section of the help file.|
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 22.214.171.124