git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set Perforce filetype when submitting.
[profile.git]
/
.vim
/
script
/
p4
diff --git
a/.vim/script/p4
b/.vim/script/p4
index
9319906
..
34e8af4
100644
(file)
--- 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