VIM: Adds fzf plugin

FZF is a fuzzy searcher that can be found here:
https://github.com/junegunn/fzf

I use it for a lot of things inside and outside vim
This commit is contained in:
Jonathan Hodgson 2020-09-26 17:11:39 +01:00
parent 409d99d713
commit 2830500014
4 changed files with 13 additions and 0 deletions

View file

@ -3,6 +3,7 @@ let maplocalleader = "\\"
if has('packages')
packadd! gruvbox
packadd! fzf.vim
endif
" Enables filetype detection as well as filetype specific indent rules and

@ -0,0 +1 @@
Subproject commit 3348aef05d02828cd8b071ab29476af2029ea3d3

View file

@ -0,0 +1,8 @@
" Prefixes all of the fzf commands
let g:fzf_command_prefix = 'Fzf'
" Mappings for common Fzf commands
nnoremap <leader>f = :FzfFiles<cr>
nnoremap <leader>b = :FzfBuffers<cr>
nnoremap <leader>h = :FzfHelptags<cr>
" The space is important at the end of this mapping
nnoremap <leader>/ = :FzfRg