Created
August 19, 2019 20:51
-
-
Save suessflorian/96c20c1983913a7b13f9271de6379844 to your computer and use it in GitHub Desktop.
Game changer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" reaching preferences | |
let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -l -g ""' | |
nnoremap <C-p> :Files<CR> | |
nnoremap <Leader>p :Fi <c-r><c-w><CR> | |
vnoremap <leader>p y:Fi <c-r>"<CR> | |
nnoremap <C-f> :Rg<space> | |
nnoremap <leader>f :Rg <c-r><c-w><CR> | |
vnoremap <leader>f y:Rg <c-r>"<CR> | |
command! -bang -nargs=* Fi call fzf#vim#files('.', {'options':'--query '.shellescape(<q-args>)}) | |
command! -bang -nargs=* Rg call fzf#vim#grep('rg --line-number --hidden --no-heading --color=always --smart-case '.shellescape(<q-args>),1, fzf#vim#with_preview({'options': '--delimiter : --nth 3..'}), <bang>0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment