From 6947105afdb2e6eaf242a56201c7c6bb1c7c623b Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Sun, 31 May 2020 12:52:21 +0200 Subject: [PATCH] add keybinding for vim --- private_dot_config/nvim/init.vim.tmpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/private_dot_config/nvim/init.vim.tmpl b/private_dot_config/nvim/init.vim.tmpl index dd8e172..afc74c4 100644 --- a/private_dot_config/nvim/init.vim.tmpl +++ b/private_dot_config/nvim/init.vim.tmpl @@ -118,7 +118,7 @@ autocmd! User GoyoLeave call goyo_leave() command! -bang -nargs=? -complete=dir Files \ call fzf#vim#files(, fzf#vim#with_preview(), 0) -nnoremap ,f :Files +nnoremap :Files nnoremap ,ff :RG function! RipgrepFzf(query, fullscreen) @@ -131,6 +131,14 @@ endfunction command! -nargs=* -bang RG call RipgrepFzf(, 0) +let g:fzf_action = { + \ 'ctrl-s': 'split', + \ 'ctrl-v': 'vsplit', + \ 'ctrl-t': 'edit', + \ 'enter': 'tabedit', + \ } + +nnoremap ,f :FZF {{- if eq .chezmoi.osRelease.prettyName "Debian GNU/Linux 10 (buster)" }} let g:go_version_warning = 0