To use, set P4EDITOR to vim -s <script>.
The script will dump syntax-highlighted diff underneath the change spec.
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@117
6be0d1a5-5cfe-0310-89b6-
964be062b18b
--- /dev/null
+:if ! &ro
+:try
+ /^# A Perforce Change Spec/,/^$/d
+
+ :set nomod
+
+ :wincmd n
+ :wincmd J
+ :r!p4 diff
+ :1
+ :delete
+
+ :setf diff
+ :set nomod
+
+ :wincmd k
+ /<enter description here>
+ :let @/ = ""
+:catch
+:endtry
+:endif