Set Perforce filetype when submitting.
[profile.git] / .vim / script / p4
index 9319906..34e8af4 100644 (file)
@@ -5,6 +5,8 @@ fun! P4submit()
   " There's no point doing this if the spec is readonly.  That probably means 
   " it's a submitted change.
   if ! &ro
+    setf perforce
+
     " Clear the unnamed register.
     let @" = ""
     try