" Fzf ------------------------------ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " The amazing junegunn fzf in vim. " Fzf.vim ------------------------------ Plug 'junegunn/fzf.vim' " From https://github.com/antoinemadec/coc-fzf Plug 'antoinemadec/coc-fzf' "COMMANDS *fzf-vim-commands* "============================================================================== "*:Files* *:GFiles* *:Buffers* *:Colors* *:Ag* *:Rg* *:Lines* *:BLines* *:Tags* *:BTags* *:Marks* "*:Windows* *:Locate* *:History* *:Snippets* *:Commits* *:BCommits* *:Commands* *:Maps* "*:Helptags* *:Filetypes* "------------------+----------------------------------------------------------------------- "Command | List ~ "------------------+----------------------------------------------------------------------- "`:Files [PATH]` | Files (runs `$FZF_DEFAULT_COMMAND` if defined) "`:GFiles [OPTS]` | Git files ( `git ls-files` ) "`:GFiles?` | Git files ( `git status` ) "`:Buffers` | Open buffers "`:Colors` | Color schemes "`:Ag [PATTERN]` | {ag}{6} search result ( `ALT-A` to select all, `ALT-D` to deselect all) "`:Rg [PATTERN]` | {rg}{7} search result ( `ALT-A` to select all, `ALT-D` to deselect all) "`:Lines [QUERY]` | Lines in loaded buffers "`:BLines [QUERY]` | Lines in the current buffer "`:Tags [QUERY]` | Tags in the project ( `ctags -R` ) "`:BTags [QUERY]` | Tags in the current buffer "`:Marks` | Marks "`:Windows` | Windows "`:Locate PATTERN` | `locate` command output "`:History` | `v:oldfiles` and open buffers "`:History:` | Command history "`:History/` | Search history "`:Snippets` | Snippets ({UltiSnips}{8}) "`:Commits` | Git commits (requires {fugitive.vim}{9}) "`:BCommits` | Git commits for the current buffer "`:Commands` | Commands "`:Maps` | Normal mode mappings "`:Helptags` | Help tags [1] "`:Filetypes` | File types "------------------+----------------------------------------------------------------------- nnoremap :Commandsfzf# nnoremap :History "nnoremap :History: "nnoremap :History/ "nnoremap :Files "nnoremap :Colors "nnoremap :Windows "nnoremap :Commands "nnoremap :Helptags "nnoremap :Maps "nnoremap :Buffers "nnoremap :Filetypes "nnoremap :Lines "For jmcomets/vim-pony nnoremap d :Commands'DjangoGoto " Workspace Search command! -bang Work call fzf#vim#files('~/Workspace', 0) " Grep current git project command! -bang -nargs=* Work2 \ call fzf#vim#files( \ 'git grep --line-number -- '.shellescape(), 0, \ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), 0) command! -bang -nargs=* GGrep \ call fzf#vim#grep( \ 'git grep --line-number -- '.shellescape(), 0, \ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), 0) command! -bang -nargs=* Rg \ call fzf#vim#grep( \ 'rg --column --line-number --no-heading --color=always --smart-case -- '.shellescape(), 1, \ fzf#vim#with_preview(), 0)