aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugin/fzf.vim
blob: 8069148342c35d863acddb6a346b2e49b9b9dbb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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(<q-args>), 1,
  \   fzf#vim#with_preview(), <bang>0)

noremap <leader>ff :FzfFiles<CR>
noremap <leader>fgf :FzfGFiles<CR>
noremap <leader>fb :FzfBuffers<CR>
noremap <leader>fm :FzfHistory<CR>
noremap <leader>ft :FzfBTags<CR>
noremap <leader>fT :FzfTags<CR>
noremap <leader>fa :FzfAg<space>
noremap <leader>fr :FzfRg<space>
noremap <leader>fc :FzfCommands<CR>
noremap <leader>fgc :FzfCommits<CR>
noremap <leader>fgbc :FzfBCommits<CR>
noremap <leader>fl :FzfLines<CR>