diff options
Diffstat (limited to 'autoload/unite/kinds/sonictemplate.vim')
-rw-r--r-- | autoload/unite/kinds/sonictemplate.vim | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/autoload/unite/kinds/sonictemplate.vim b/autoload/unite/kinds/sonictemplate.vim new file mode 100644 index 0000000..8879d09 --- /dev/null +++ b/autoload/unite/kinds/sonictemplate.vim @@ -0,0 +1,39 @@ +" File: sonictemplate +" Author: kmnk <kmnknmk+vim@gmail.com> +" Version: 0.1.0 +" License: BSD style license + +let s:save_cpo = &cpo +set cpo&vim + +function! unite#kinds#sonictemplate#define()"{{{ + return s:kind +endfunction"}}} + +let s:kind = { +\ 'name' : 'sonictemplate', +\ 'default_action' : 'insert', +\ 'action_table' : {}, +\ 'alias_table' : {}, +\} + +let s:kind.action_table.insert = { +\ 'description' : 'insert this template', +\ 'is_selectable' : 0, +\ 'is_quit' : 1, +\ 'is_invalidate_cache' : 0, +\ 'is_listed' : 1, +\} +function! s:kind.action_table.insert.func(candidate)"{{{ + call sonictemplate#apply( +\ a:candidate.word, +\ a:candidate.action__mode, +\ ) +endfunction"}}} + +" local functions {{{ +" }}} + +let &cpo = s:save_cpo +unlet s:save_cpo +" __END__ |