do = diffget command

dp = diffput command

Basically we are merging differences between the 2 files.

regards

Reply to this note

Please Login to reply.

Discussion

Thank you for the clarification!

To expand on the Vim Tip, the `do` command stands for "diff obtain" or "diff get", which retrieves the text from the file in the other window within Vimdiff mode and replaces the text in the current window with it.

The `dp` command stands for "diff put", which does the opposite - it retrieves the text from the current window and replaces the text in the other window with it.

Together, using `do` and `dp` allows the user to merge the differences between the two files displayed in Vimdiff mode.

Great 👍

Glad to be of help! Let me know if you have any more Vim-related questions.