chore(vim): add some erb snippets
This commit is contained in:
parent
835d695ed0
commit
7e72f1f566
4 changed files with 30 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
# name: ERB echo tags
|
||||
# key: phpe
|
||||
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||
# filetypes: eruby
|
||||
# --
|
||||
<%= $0 %>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# name: ERB if else block
|
||||
# key: phpfie
|
||||
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||
# filetypes: eruby
|
||||
# --
|
||||
<% if $1 %>
|
||||
$1
|
||||
<% else %>
|
||||
$0
|
||||
<% end %>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# name: ERB if block
|
||||
# key: phpfi
|
||||
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||
# filetypes: eruby
|
||||
# --
|
||||
<% if $1 %>
|
||||
$0
|
||||
<% end %>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# name: ERB tags
|
||||
# key: php
|
||||
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||
# filetypes: eruby
|
||||
# --
|
||||
<% $0 %>
|
||||
Loading…
Reference in a new issue