Skip to content

Menu

Archives

  • December 2025
  • August 2025
  • June 2025
  • April 2025
  • July 2023
  • June 2023
  • December 2021
  • October 2021
  • May 2020
  • January 2020
  • October 2019

Calendar

December 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Aug    

Categories

  • AI
  • cloud
  • DB
  • GUI
  • linux
  • Linux Mint
  • logs
  • shell
  • Uncategorized
  • vi

Copyright jaKubu 2025 | Theme by ThemeinProgress | Proudly powered by WordPress

jaKubu
Written by Jakub2025-12-18

Vim in Could, part 2

cloud . linux . shell . vi Article

Vimdiff and repository.

Accessing the repository from a browser gives you an opportunity to nicely compare the newest code to any other branch (feature or master), perhaps release (by tagging). But how about comparing the code before pushing the code to the repository.

First, let’s configure vimdiff as a differences review tool:

$ git config --global diff.tool vimdiff

Later, If you want to not to be bothered anymore:

$ git config --global difftool.prompt false

Now you try: update a file locally and compare with master

$ git difftool HEAD -- dml_DECLARE+SET.awk

Viewing (1/1): 'ins__FAKE_TABLE__rmdb.sql'
Launch 'vimdiff' [Y/n]? 

Hit the [ENTER] and you see remote (HEAD on the left pane: /tmp...) ?
against the local version (on the right):

If should you be confused by white spaces, execute in vimdiff

:set diffopt=iwhite

Archives

  • December 2025
  • August 2025
  • June 2025
  • April 2025
  • July 2023
  • June 2023
  • December 2021
  • October 2021
  • May 2020
  • January 2020
  • October 2019

Calendar

December 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Aug    

Categories

  • AI
  • cloud
  • DB
  • GUI
  • linux
  • Linux Mint
  • logs
  • shell
  • Uncategorized
  • vi

Copyright jaKubu 2025 | Theme by ThemeinProgress | Proudly powered by WordPress