add before and after snippets
Jesse Luehrs [Tue, 5 May 2009 04:35:22 +0000 (23:35 -0500)]
vim/moose_snippets.vim

index 67a835d..750206e 100644 (file)
@@ -76,6 +76,16 @@ call Snippet('around', [
             \    "my $self = shift;",
             \    "<{}>",
             \"};"])
+call Snippet('before', [
+            \"before <{name}> => sub {",
+            \    "my $self = shift;",
+            \    "<{}>",
+            \"};"])
+call Snippet('after', [
+            \"after <{name}> => sub {",
+            \    "my $self = shift;",
+            \    "<{}>",
+            \"};"])
 
 "for file in globpath(&rtp, 'snippets/*')
     "call SnippetFile(file)