From: Jesse Luehrs Date: Tue, 5 May 2009 04:35:22 +0000 (-0500) Subject: add before and after snippets X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ac2672c3469e81b568d2d15397290770ecea350;p=gitmo%2Fmoose-dev-utils.git add before and after snippets --- diff --git a/vim/moose_snippets.vim b/vim/moose_snippets.vim index 67a835d..750206e 100644 --- a/vim/moose_snippets.vim +++ b/vim/moose_snippets.vim @@ -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)