Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git and Vim - maximize the joy and fun

Git and Vim - maximize the joy and fun

Follow me through my travel exploring the way to get Vim and Git running in a friendly coexistence.

Matthias Günther

January 23, 2015
Tweet

More Decks by Matthias Günther

Other Decks in Technology

Transcript

  1. gitv is a fugitive extension is a gitk/gitg clone =>

    for me it’s a tig clone see diffs commits, branching, and merging
  2. gitv commands :Gitv … opens only gitv :Gitv! … opens

    only commits which affects the current file yc … yanks the SHA of the commit co … checkout
  3. fugitive commands I :Gstatus … git status C-n … go

    to the next file C-p … go to the previous file - … git add/git reset depending where you are in the windows (mark multiple files in visual mode) …
  4. fugitive commands II :Gwrite … stage the current file to

    index :Gcommit … git commit (press wq for send) :Gblame … git blame :Gremove … git rm
  5. fugitive commands III :Gpush … performs a git push :Gmove

    … rename the current file and add change to index :Gdiff … split the window
  6. Handling branches with vim-merginal :Merginal … opens the extra window

    C … checkout branch under the cursor A … add a branch from the current checked out branch under the cursor