| 1) vim-fugitive: > Called with no arguments, `:Git` opens a summary window with dirty files and unpushed and unpulled commits. Press `g?` to bring up a list of maps for numerous operations including diffing, staging, committing, rebasing, and stashing. (This is the successor to the old `:Gstatus`.) [1] To open file in split: <C-w>f 2) fugitive works with it too. See this thread [2] 3) I use fzf [3] too. My pattern is a bit shorter: '\r' (mnemonic from '' for search the word under cursor). With the mapping and command: ``` nnoremap <silent> <Leader>r* :Rgw <C-R><C-W><CR> "" <C-R><C-W> - to paste word under cursor in command prompt command! -bang -nargs=* Rgw \ call fzf#vim#grep( \ 'rg -w --column --line-number --no-heading --color=always --smart-case '.shellescape(<q-args>), 1, \ <bang>0 ? fzf#vim#with_preview('up:60%') \ : fzf#vim#with_preview('right:50%:hidden', '?'), \ <bang>0) ``` [1]: https://github.com/tpope/vim-fugitive/blob/master/README.mar... [2]: https://vi.stackexchange.com/a/20671 [3]: https://vimawesome.com/plugin/fzf-vim |