Windows: allow p4 diff command to actually work

Windows doesn't know about the `env` program.

Apart from that, using an external diff tool is not even needed anymore, since
`p4 diff` itself supports unified diffs nowadays.
This commit is contained in:
Aaron Miller 2018-07-24 15:40:09 -07:00 committed by Marco Hinz
parent 9303070b02
commit 36c7d22a69

View File

@ -452,7 +452,7 @@ let s:default_vcs_cmds = {
\ 'cvs': 'cvs diff -U0 -- %f',
\ 'rcs': 'rcsdiff -U0 %f 2>%n',
\ 'accurev': 'accurev diff %f -- -U0',
\ 'perforce': 'p4 info '. sy#util#shell_redirect('%n') .' && env P4DIFF=%d p4 diff -dU0 %f',
\ 'perforce': 'p4 info '. sy#util#shell_redirect('%n') .' && p4 diff -du0 %f',
\ 'tfs': 'tf diff -version:W -noprompt -format:Unified %f'
\ }