1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| let g:fzf_preview_window = ['right,40%,<50(down,50%)', 'ctrl-/'] let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.8 } }
com! -bar -bang Ag call fzf#vim#ag(<q-args>, fzf#vim#with_preview({'options': '--delimiter=: --nth=4..'}), <bang>0) com! CHistory call CHistory()
func! CHistory() call filter(v:oldfiles, "v:val =~ '^' . $PWD . '.*$'") call fzf#vim#history(fzf#vim#with_preview(), 0) endf
nnoremap <c-a> :Ag<cr> nnoremap <c-p> :Files<cr> nnoremap <c-l> :BLines<cr> nnoremap <c-g> :GFiles?<cr> nnoremap <c-h> :CHistory<cr>
|