Timeline for Can I see changes before I save my file in Vim?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 19 at 23:27 | comment | added | Malcolm | Works with PowerShell on Windows, too! | |
Mar 30, 2015 at 7:00 | comment | added | deft_code |
Even simpler: :w !vimdiff % /dev/stdin . I don't know if a similar trick exists for windows.
|
|
Mar 12, 2014 at 18:33 | comment | added | Tobias Heinicke |
A more sane approach to use vimdiff would be creating a shell script containing the following vim - -c ":vnew $1 |windo diffthis" , making it executable, saving it in the PATH as for example vimdiffWithStdin and then comparing with the following command in vim: :w !vimdiffWithStdin %
|
|
Mar 12, 2014 at 18:27 | history | answered | Tobias Heinicke | CC BY-SA 3.0 |