diff options
-rw-r--r-- | _config/110-ctrlp.vim | 6 | ||||
-rw-r--r-- | _config/400-memolist.vim | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/_config/110-ctrlp.vim b/_config/110-ctrlp.vim index a20bc0a..b0955cf 100644 --- a/_config/110-ctrlp.vim +++ b/_config/110-ctrlp.vim @@ -8,3 +8,9 @@ let g:ctrlp_user_command = { \ 2: ['.hg', 'hg --cwd %s locate -I .'], \ }, \ } + +if !empty(globpath(&rtp, 'autoload/memolist.vim')) + nmap <Leader>mf :exe "CtrlP" g:memolist_path<cr><f5> + nmap <Leader>mc :MemoNew<cr> + nmap <Leader>mg :MemoGrep<cr> +endif diff --git a/_config/400-memolist.vim b/_config/400-memolist.vim index ca51c96..8bf15fb 100644 --- a/_config/400-memolist.vim +++ b/_config/400-memolist.vim @@ -11,5 +11,4 @@ nnoremap <Leader>mg :MemoGrep<CR> let g:memolist_memo_suffix = "md" let g:memolist_memo_date = "%Y-%m-%d %H:%M" let g:memolist_qfixgrep = 0 -let g:memolist_fzf = 1 let g:memolist_template_dir_path = $HOME . '/.config/memo/template' |