Skip to content

Commit

Permalink
move cursor to eol
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jul 4, 2016
1 parent cacdcb6 commit 4237a9c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions template/html/pattern.stpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
^\s*\zs\(\S.*\)\.div$
<div>
{{$1}}
{{$1}}{{_cursor_}}
</div>

^\s*\zs\(\S.*\)\.p$
<p>{{$1}}</p>

^\s*\zs\(\S.*\)\.h\([1-6]\)$
<h{{$2}}>{{$1}}</h{{$2}}>{{_cursor_}}
^\s*\zs\(\S.*\)\.\(p\|h[1-6]\)$
<{{$2}}>{{$1}}</{{$2}}>{{_cursor_}}

^\s*\zs\(\S.*\)\.a$
<a href="{{_cursor_}}">{{$1}}</a>

0 comments on commit 4237a9c

Please sign in to comment.