summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2019-04-27 17:56:57 +0200
committeryushyin <yushyin@saga>2019-04-27 17:56:57 +0200
commitd12bc362dd422b51757ef32a6ddd73bc4795ea10 (patch)
treeba07b3ee5d05e7575c45314db5b8e353a76749b8
parent0e76b9aaa39acf66bb999e579640725bdb84ff2f (diff)
downloaddotfiles-d12bc362dd422b51757ef32a6ddd73bc4795ea10.tar.gz
dotfiles-d12bc362dd422b51757ef32a6ddd73bc4795ea10.tar.xz
Vim: Update keymappings for denite.vim
-rw-r--r--vim/vimrc15
1 files changed, 11 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 959d790..4883418 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -50,10 +50,17 @@ catch /E117:/ " dein not installed
endtry
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>
+ nnoremap [Denite] <Nop>
+ nmap <leader>d [Denite]
+
+ nnoremap [Denite]g :<C-u>Denite grep -auto-preview -split=no -no-empty<CR>
+ nnoremap [Denite]f :<C-u>Denite file/rec -mode=insert -split=no<CR>
+ nnoremap [Denite]l :<C-u>Denite buffer file/old -split=no<CR>
+ nnoremap [Denite]r :<C-u>Denite -resume -refresh<CR>
+
+ nnoremap [Denite]gf :DeniteCursorWord file/rec<CR>
+ nnoremap [Denite]gg :DeniteCursorWord grep<Cr>
+ nnoremap [Denite]g/ :DeniteCursorWord line<Cr>
endif
if dein#tap('vimfiler.vim')
call s:hook_source()