From e9a4d87d69a18b3973f46b1ca7493170d641f5fc Mon Sep 17 00:00:00 2001 From: yushyin Date: Sun, 28 Jan 2018 17:06:27 +0100 Subject: Vim: Replace Unite with Denite --- vim/dein.toml | 4 ++-- vim/plugrc/unite.rc.vim | 8 -------- vim/vimrc | 18 +++++------------- 3 files changed, 7 insertions(+), 23 deletions(-) delete mode 100644 vim/plugrc/unite.rc.vim diff --git a/vim/dein.toml b/vim/dein.toml index 8ec458e..5f07293 100644 --- a/vim/dein.toml +++ b/vim/dein.toml @@ -6,9 +6,9 @@ repo = 'Shougo/vimproc.vim' build = 'make' [[plugins]] -repo = 'Shougo/unite.vim' +repo = 'Shougo/denite.nvim' lazy = 1 -on_cmd = 'Unite' +on_cmd = 'Denite' [[plugins]] repo = 'Shougo/neomru.vim' diff --git a/vim/plugrc/unite.rc.vim b/vim/plugrc/unite.rc.vim deleted file mode 100644 index dbe55b7..0000000 --- a/vim/plugrc/unite.rc.vim +++ /dev/null @@ -1,8 +0,0 @@ -let g:unite_redraw_hold_candidates = 50000 -call unite#filters#matcher_default#use(['matcher_fuzzy']) -autocmd FileType unite call s:unite_my_settings() -function! s:unite_my_settings() - nmap (unite_toggle_auto_preview) - imap (unite_select_next_line) - imap (unite_select_previous_line) -endfunction diff --git a/vim/vimrc b/vim/vimrc index 2a3f9d2..9ab42cd 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -49,19 +49,11 @@ catch /E117:/ " dein not installed quit endtry -if dein#tap('unite.vim') - nnoremap g :Unite grep - \ -auto-preview - \ -no-split - \ -no-empty - nnoremap f :Unite file_mru file/async file_rec/async - \ -start-insert - nnoremap l :Unite buffer tab - \ -no-split - nnoremap r :UniteResume - \ -no-start-insert - \ -force-redraw - call s:hook_source() +if dein#tap('denite.nvim') + nnoremap g :Denite grep -auto-preview -split=no -no-empty + nnoremap f :Denite file_rec -mode=insert + nnoremap l :Denite buffer -split=no + nnoremap r :Denite -resume -refresh endif if dein#tap('vimfiler.vim') call s:hook_source() -- cgit v1.2.3-24-g4f1b