~gpanders/dotfiles

ref: 5629911cfe9a2fc4e566bab14373aec451244000 dotfiles/vim/.vim/after/plugin/fzf.vim -rw-r--r-- 831 bytes
5629911cGreg Anders Fix bash syntax error in 'note' command 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
" fzf configuration
" Author: Greg Anders <greg@gpanders.com>

" Check for local installation if not already loaded
if !get(g:, 'loaded_fzf') && isdirectory($HOME . '/.fzf')
  silent! source ~/.fzf/plugin/fzf.vim
endif

" If fzf is still not found, give up
if !get(g:, 'loaded_fzf')
  finish
endif

" Ctrl-P to start FZF
nnoremap <silent> <C-P> :FZF<CR>

" Create Helptags command and map it to Ctrl-H
command! -bang Helptags call fzf#helptags(<bang>0)
nnoremap <silent> <C-H> :<C-U>Helptags<CR>

command! -bang -nargs=? Tags call fzf#tags(<bang>0, '<args>', '')
nnoremap <Space>] :<C-U>Tags<CR>

command! -bang -nargs=? Ptags call fzf#tags(<bang>0, '<args>', 'p')
nnoremap <Space>} :<C-U>Ptags<CR>

" Hide statusline in FZF buffers
autocmd! FileType fzf set laststatus=0 noruler | autocmd BufLeave <buffer> set laststatus=2 ruler