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
Show file encoding in the statusline.
[profile.git]
/
.vim
/
script
/
p4
diff --git
a/.vim/script/p4
b/.vim/script/p4
index
75dace6
..
4badc84
100644
(file)
--- a/
.vim/script/p4
+++ b/
.vim/script/p4
@@
-50,7
+50,13
@@
fun! P4submit()
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
+ nnoremap <silent> <buffer> q <C-W>q
+
+ " Vim 7.4 really doesn't want us to quit windows from a script.
+ try
+ au QuitPre * qa!
+ catch
+ endtry
" 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