From a1d5e08464f2679b4e156f6ddc406191dd2d90b4 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Thu, 18 Nov 2010 15:19:06 -0800 Subject: [PATCH] unite-neco --- _vimrc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/_vimrc b/_vimrc index 06ad8b0..20b4d4a 100644 --- a/_vimrc +++ b/_vimrc @@ -1087,6 +1087,32 @@ endfunction " copy the current file name {{{ command! -nargs=0 CopyTheCurrentFileName let @+ = expand('%') AlterCommandWrapper copythecurrentfilename CopyTheCurrentFileName +" }}} +" unite-neco {{{ +let s:unite_source = {'name': 'neco'} + +function! s:unite_source.gather_candidates(args, context) + let necos = [ + \ "~(-'_'-) goes right", + \ "~(-'_'-) goes right and left", + \ "~(-'_'-) goes right quickly", + \ "~(-'_'-) goes right then smile", + \ "~(-'_'-) -8(*'_'*) go right and left", + \ "(=' .' ) ~w", + \ ] + return map(necos, '{ + \ "word": v:val, + \ "source": "neco", + \ "kind": "command", + \ "action__command": "Neco " . v:key, + \ }') +endfunction + +"function! unite#sources#locate#define() +" return executable('locate') ? s:unite_source : [] +"endfunction +call unite#define_source(s:unite_source) + " }}} let g:shadow_debug = 1 " FIXME