diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-07-04 18:11:46 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-07-04 18:11:46 +0900 |
commit | 4237a9c39c5c6debe1e52c4c40186406838bc123 (patch) | |
tree | 7a481a8a17709d01aacdaf4f3e11940a8f1c634c | |
parent | cacdcb697430099bb1459ca9556c6871ac690ef4 (diff) | |
download | vim-sonictemplate-4237a9c39c5c6debe1e52c4c40186406838bc123.tar.gz vim-sonictemplate-4237a9c39c5c6debe1e52c4c40186406838bc123.tar.bz2 vim-sonictemplate-4237a9c39c5c6debe1e52c4c40186406838bc123.zip |
move cursor to eol
-rw-r--r-- | template/html/pattern.stpl | 11 |
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> |