snare : Snippets Again, with Regular Expressions
| script karma
Downloaded by 173
Comments, bugs, improvements
script versions (upload new version)
|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.|
Click on the package to download.
ip used for rating: 220.127.116.11