Created
July 3, 2016 10:02
-
-
Save ryotako/37c13dc35f51d9d8c636143a20e14f46 to your computer and use it in GitHub Desktop.
unite-qfixhowmのmemolist版のような設定
This file contains 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
" initialization | |
if !exists("g:unite_source_alias_aliases") | |
let g:unite_source_alias_aliases = {} | |
endif | |
if !exists("g:unite_source_menu_menus") | |
let g:unite_source_menu_menus = {} | |
endif | |
" memolist setting | |
let g:memolist_unite = 1 | |
let g:memolist_unite_option = '-auto-preview -vertical-preview' | |
" unite source memolist (alias) | |
let g:unite_source_alias_aliases.memolist = { | |
\"source" : "file", "description" : "memolist", | |
\"args" : escape(substitute(g:memolist_path, '\\', '/', 'g'), ' ') | |
\} | |
" unite source memolist/new | |
let s:memo_new = { "name":"memolist/new", "description":"memolist new" } | |
function! s:memo_new.gather_candidates(args,context) | |
return [{ | |
\"word" : "[ new memo ]", "kind" : "command", | |
\"action__command" : "MemoNew" | |
\ }] | |
endfunction | |
call unite#define_source(s:memo_new) | |
unlet s:memo_new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment