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

3
.gitmodules vendored
View file

@ -22,3 +22,6 @@
[submodule "nvim/.config/nvim/pack/opt/gruvbox"] [submodule "nvim/.config/nvim/pack/opt/gruvbox"]
path = nvim/.config/nvim/pack/bundle/opt/gruvbox path = nvim/.config/nvim/pack/bundle/opt/gruvbox
url = https://github.com/morhetz/gruvbox.git url = https://github.com/morhetz/gruvbox.git
[submodule "nvim/.config/nvim/pack/bundle/opt/fzf.vim"]
path = nvim/.config/nvim/pack/bundle/opt/fzf.vim
url = https://github.com/junegunn/fzf.vim

View file

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