DEV Community

Discussion on: Beginning Vim

Collapse
 
aghost7 profile image
Jonathan Boudreau • Edited

I can recommend some git utilities such as junegunn/gv.vim and tpope/vim-fugitive. Some commands I use from these plugins:

  • :Ggrep somepattern | cw: Searches file contents which are tracked by git.
  • :Gblame: Does a git blame from your editor. You can also go back in time by selecting the commit and pressing ~. O on a commit will open the entire commit in a new tab.
  • :Gbrowse!: (requires tpope/vim-rhubarb plugin on top of fugitive): Generates a Github link with the correct branch and file and puts it into your clipboard. Also works from visual mode.
  • :GV!: Displays the change history of the current file.