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
Map q to quit easily when submitting p4 and svn.
[profile.git]
/
.vim
/
script
/
p4
diff --git
a/.vim/script/p4
b/.vim/script/p4
index
404d80d
..
75dace6
100644
(file)
--- a/
.vim/script/p4
+++ b/
.vim/script/p4
@@
-49,6
+49,8
@@
fun! P4submit()
set bufhidden=hide
setlocal noswapfile
file [p4 diff\]
set bufhidden=hide
setlocal noswapfile
file [p4 diff\]
+ " Map q to quit easily.
+ noremap <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
@@
-56,6
+58,12
@@
fun! P4submit()
normal G
?^Description:
let @/ = ""
normal G
?^Description:
let @/ = ""
+ normal j
+ normal ^
+
+ " Set formatting.
+ se noexpandtab
+ se ts=8
endif
catch
" We get here if no blurb was deleted. This is the case if we aren't
endif
catch
" We get here if no blurb was deleted. This is the case if we aren't