diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-06-22 14:52:46 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-06-22 14:55:53 +0900 |
commit | faf6aa34bd1ad9fc7a3ba81e6a230301f19c044f (patch) | |
tree | 206e870f33efc57b62ca2a104a660d708aced7a9 /template | |
parent | 92b1dcb99d778d4c1c1b0e18d552302816871306 (diff) | |
download | vim-sonictemplate-faf6aa34bd1ad9fc7a3ba81e6a230301f19c044f.tar.gz vim-sonictemplate-faf6aa34bd1ad9fc7a3ba81e6a230301f19c044f.tar.bz2 vim-sonictemplate-faf6aa34bd1ad9fc7a3ba81e6a230301f19c044f.zip |
add completion for "".p and "".puts in ruby
Diffstat (limited to 'template')
-rw-r--r-- | template/ruby/pattern.stpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/template/ruby/pattern.stpl b/template/ruby/pattern.stpl index cc02af5..de2d925 100644 --- a/template/ruby/pattern.stpl +++ b/template/ruby/pattern.stpl @@ -28,4 +28,8 @@ {{_cursor_}} } +^\s*\zs\(\S.*\)\.p$ + p {{$1}}{{_cursor_}} +^\s*\zs\(\S.*\)\.puts$ + puts {{$1}}{{_cursor_}} |