Created
August 17, 2012 04:35
-
-
Save rohinomiya/3375956 to your computer and use it in GitHub Desktop.
Vimからmilkodeのgmilkコマンドを使う(Unite版) ref: http://qiita.com/items/abe5df7c5b21160532b8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NeoBundle 'Shougo/unite.vim' | |
NeoBundle 'sgur/unite-qf' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:NeoBundleInstall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" gmilk コマンドの結果をUnite qf で表示する | |
command! -nargs=1 Gmilk call s:Gmilk("gmilk -a -n 200", <f-args>) | |
function! s:Gmilk(cmd, arg) | |
silent execute "cgetexpr system(\"" . a:cmd . " ". a:arg . "\")" | |
if len(getqflist()) == 0 | |
echohl WarningMsg | |
echomsg "No match found." | |
echohl None | |
else | |
execute "Unite -auto-preview qf" | |
redraw! | |
endif | |
endfunction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:Gmilk [検索語句] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment