From 0587d80453bc92acb20b351fd17bc2f9126e01b0 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 2 Apr 2022 11:48:21 +0800 Subject: Update plugin config location in vim --- .vim/after/plugin/fzf.vim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .vim/after/plugin/fzf.vim (limited to '.vim/after/plugin/fzf.vim') diff --git a/.vim/after/plugin/fzf.vim b/.vim/after/plugin/fzf.vim new file mode 100644 index 0000000..cda5a27 --- /dev/null +++ b/.vim/after/plugin/fzf.vim @@ -0,0 +1,22 @@ +let g:fzf_command_prefix = 'Fzf' + +command! -bang -nargs=* FzfRg + \ call fzf#vim#grep( + \ 'rg --hidden --column --line-number --no-heading --color=always --smart-case --glob !.git -- '.shellescape(), 1, + \ fzf#vim#with_preview(), 0) + +noremap ff :FzfFiles +noremap fgf :FzfGFiles +noremap fb :FzfBuffers +noremap fm :FzfHistory +noremap ft :FzfBTags +noremap fT :FzfTags +noremap fa :FzfAg +noremap fr :FzfRg +noremap fc :FzfCommands +noremap fgc :FzfBCommits +noremap fgC :FzfCommits +noremap fl :FzfBLines +noremap fL :FzfLines + +packadd fzf.vim -- cgit v1.2.3