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
Updated characterize plugin.
[profile.git]
/
.vim
/
script
/
p4
diff --git
a/.vim/script/p4
b/.vim/script/p4
index
75dace6
..
3595ed4
100644
(file)
--- a/
.vim/script/p4
+++ b/
.vim/script/p4
@@
-18,7
+18,7
@@
fun! P4submit()
delete
" Allow closing an unmodified spec.
delete
" Allow closing an unmodified spec.
- set nomod
+ set nomod
ified
try
/everything below this line is just the diff/
try
/everything below this line is just the diff/
@@
-44,13
+44,15
@@
fun! P4submit()
" Delete the blank line left above the diff.
1
delete
" Delete the blank line left above the diff.
1
delete
+ set ro
+ set nomodified
+ set nomodifiable
set nobuflisted
set nobuflisted
- set buftype=nowrite
- set bufhidden=hide
+ set buftype=help
setlocal noswapfile
file [p4 diff\]
" Map q to quit easily.
setlocal noswapfile
file [p4 diff\]
" Map q to quit easily.
- noremap <silent> <buffer> q <C-W>q
+ n
n
oremap <silent> <buffer> q <C-W>q
" Switch back to the top window and put the cursor by the description.
wincmd k
" Switch back to the top window and put the cursor by the description.
wincmd k