I have below function to compare perforce versions.
The function runs fine, only I must quit the version compare software to keep typing words or switch to anther window. Basically gvim stops responding after compare software starts.
Tried adding '\&' to the command end, but it's not helping.
function! P4_Diff (...) if ! exists('a:1') let P4_Diff_Log = system('p4 diff '.expand("%").' \&') echo P4_Diff_Log else if a:1 =~# '\d\+$' let P4_Diff_Log = system('p4 diff '.expand("%").'\#'.a:1.' \&') echo P4_Diff_Log else echo "Usage: P4_Diff (VersionNumber) endif endif endfunction