Set Perforce filetype when submitting.
authorIain Patterson <me@iain.cx>
Thu, 15 Jan 2009 14:58:11 +0000 (14:58 +0000)
committerIain Patterson <me@iain.cx>
Thu, 15 Jan 2009 14:58:11 +0000 (14:58 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@171 6be0d1a5-5cfe-0310-89b6-964be062b18b

.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