aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2016-07-04 18:11:46 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2016-07-04 18:11:46 +0900
commit4237a9c39c5c6debe1e52c4c40186406838bc123 (patch)
tree7a481a8a17709d01aacdaf4f3e11940a8f1c634c
parentcacdcb697430099bb1459ca9556c6871ac690ef4 (diff)
downloadvim-sonictemplate-4237a9c39c5c6debe1e52c4c40186406838bc123.tar.gz
vim-sonictemplate-4237a9c39c5c6debe1e52c4c40186406838bc123.tar.bz2
vim-sonictemplate-4237a9c39c5c6debe1e52c4c40186406838bc123.zip
move cursor to eol
-rw-r--r--template/html/pattern.stpl11
1 files changed, 5 insertions, 6 deletions
diff --git a/template/html/pattern.stpl b/template/html/pattern.stpl
index 61a1c78..8e2cf12 100644
--- a/template/html/pattern.stpl
+++ b/template/html/pattern.stpl
@@ -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>