X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=autoload%2Funite%2Fkinds%2Fmkbfiles.vim;fp=autoload%2Funite%2Fkinds%2Fmkbfiles.vim;h=e7c2b4ca198880b3b069321d1c254d0295ee6933;hb=efdf81b93665f15ea17ba7858e921663139e014c;hp=0000000000000000000000000000000000000000;hpb=7ba078c7fb1c9a445c4f9db531f09b222f182dc9;p=vim-mkbuild.git diff --git a/autoload/unite/kinds/mkbfiles.vim b/autoload/unite/kinds/mkbfiles.vim new file mode 100644 index 0000000..e7c2b4c --- /dev/null +++ b/autoload/unite/kinds/mkbfiles.vim @@ -0,0 +1,19 @@ +let s:kind = { + \ 'name': 'mkbfiles', + \ 'default_action': 'execute', + \ 'action_table': {}, + \ 'parents': [], + \ 'description': 'files used in mkbuild project' + \ } + +let s:kind.action_table.execute = { 'is_selectable': 1 } + +function! s:kind.action_table.execute.func(candidates) + if len(a:candidates) == 1 + execute "e" a:candidates[0].word + endif +endfunction + +function! unite#kinds#mkbfiles#define() + return s:kind +endfunction