Skip to content

Instantly share code, notes, and snippets.

@SidOfc
Created September 27, 2018 20:40

Revisions

  1. SidOfc created this gist Sep 27, 2018.
    8 changes: 8 additions & 0 deletions vim-rg-outdated-command.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    " FZF.vim now supports this command out of the box
    " so this code is no longer needed.
    command! -bang -nargs=* Rg
    \ call fzf#vim#grep(
    \ 'rg --column --line-number --hidden --ignore-case --no-heading --color=always '.shellescape(<q-args>), 1,
    \ <bang>0 ? fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'up:60%')
    \ : fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'right:50%:hidden', '?'),
    \ <bang>0)