diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-07-01 19:02:41 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-07-01 19:02:41 +0900 |
commit | ec26576455628e716467b657c170c7ba4c3375d1 (patch) | |
tree | 20b72a3b61a5197f27a286b9d7d0d3019b8c80de /plugin | |
parent | 0c661f5f888ea180d7aaeca13a9ef44bf22165d2 (diff) | |
download | vim-sonictemplate-ec26576455628e716467b657c170c7ba4c3375d1.tar.gz vim-sonictemplate-ec26576455628e716467b657c170c7ba4c3375d1.tar.bz2 vim-sonictemplate-ec26576455628e716467b657c170c7ba4c3375d1.zip |
pattern input
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/sonictemplate.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/sonictemplate.vim b/plugin/sonictemplate.vim index 717bde2..aa5873b 100644 --- a/plugin/sonictemplate.vim +++ b/plugin/sonictemplate.vim @@ -43,6 +43,15 @@ else exe "inoremap" g:sonictemplate_intelligent_key "<c-r>=sonictemplate#select_intelligent('i')<cr>" endif +" TODO fix better name +if get(g:, 'sonictemplate_enable_pattern', 0) == 0 + augroup sonictemplate + au! filetype * silent! call sonictemplate#load_pattern() + augroup END + inoremap <plug>(sonictemplate-pattern) <c-r>=sonictemplate#pattern()<cr> + imap <unique> <c-y><c-b> <plug>(sonictemplate-pattern) +endif + let &cpo = s:save_cpo unlet s:save_cpo |