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
master
Jonathan Hodgson 4 years ago
parent 409d99d713
commit 2830500014
  1. 3
      .gitmodules
  2. 1
      nvim/.config/nvim/init.vim
  3. 1
      nvim/.config/nvim/pack/bundle/opt/fzf.vim
  4. 8
      nvim/.config/nvim/plugin/fzf.vim

3
.gitmodules vendored

@ -22,3 +22,6 @@
[submodule "nvim/.config/nvim/pack/opt/gruvbox"]
path = nvim/.config/nvim/pack/bundle/opt/gruvbox
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

@ -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

@ -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
Loading…
Cancel
Save