Skip to content

Compare with saved file

David-Apps edited this page Mar 15, 2023 · 6 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 - "$EB_FILE" | more
}