summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2018-01-28 17:06:27 +0100
committeryushyin <yushyin@saga>2018-01-28 17:06:27 +0100
commite9a4d87d69a18b3973f46b1ca7493170d641f5fc (patch)
treeab1ea69b9894bea0fab4c922d1dc4aa5b8aa23dc
parent3dc8c358c05f99772b37fa49a19d814e5044cedc (diff)
downloaddotfiles-e9a4d87d69a18b3973f46b1ca7493170d641f5fc.tar.gz
dotfiles-e9a4d87d69a18b3973f46b1ca7493170d641f5fc.tar.xz
Vim: Replace Unite with Denite
-rw-r--r--vim/dein.toml4
-rw-r--r--vim/plugrc/unite.rc.vim8
-rw-r--r--vim/vimrc18
3 files changed, 7 insertions, 23 deletions
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 <buffer> <C-p> <Plug>(unite_toggle_auto_preview)
- imap <buffer> <C-j> <Plug>(unite_select_next_line)
- imap <buffer> <C-k> <Plug>(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 <leader>g :<C-u>Unite grep
- \ -auto-preview
- \ -no-split
- \ -no-empty<CR>
- nnoremap <leader>f :<C-u>Unite file_mru file/async file_rec/async
- \ -start-insert <CR>
- nnoremap <leader>l :<C-u>Unite buffer tab
- \ -no-split <CR>
- nnoremap <leader>r :<C-u>UniteResume
- \ -no-start-insert
- \ -force-redraw<CR>
- call s:hook_source()
+if dein#tap('denite.nvim')
+ nnoremap <leader>g :<C-u>Denite grep -auto-preview -split=no -no-empty<CR>
+ nnoremap <leader>f :<C-u>Denite file_rec -mode=insert<CR>
+ nnoremap <leader>l :<C-u>Denite buffer -split=no<CR>
+ nnoremap <leader>r :<C-u>Denite -resume -refresh<CR>
endif
if dein#tap('vimfiler.vim')
call s:hook_source()