Written by Jakub2025-12-18
Vim in Could, part 2
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
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||