Skip to content

Compare with saved file

David-Apps edited this page Jun 1, 2023 · 4 revisions

This simple function compares the current buffer with the saved file.

# Compare the current buffer with the saved file.
# usage: <diff
function+diff {
db0
H-
ebvar+
w !diff -s - '_ | more
}