rickhowe/diffchar.vim

Support obtain/put

Closed this issue · 4 comments

While vim's diff is vastly improved with hightlighting at unit level - the vimdiff obtain (do) and put (dp) still operate on a line diff basis - but replacing based on the currently highlighted unit would greatly improve functionality

Example replace

Thank you for your idea and let me try to implement it in my plugin. Maybe 'Do' and 'Dp' commands over a difference unit can be added.

Great, thanks for the consideration!

I updated to 7.0 and added unit-based do/dp, \g and \p. You can change the keymap for them, and combine them with ]b or [b if necessary. Please try.

Having tested this it works perfectly for my use case 👍

Many thanks rickhowe - awesome!