From: Iain Patterson Date: Thu, 15 Jan 2009 14:58:11 +0000 (+0000) Subject: Set Perforce filetype when submitting. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=3630d98d44d50a5b6a5fa131aac9a3eb49e94d4d;p=profile.git Set Perforce filetype when submitting. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@171 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.vim/script/p4 b/.vim/script/p4 index 9319906..34e8af4 100644 --- a/.vim/script/p4 +++ b/.vim/script/p4 @@ -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