git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a16576
)
Map q to quit easily when submitting p4 and svn.
author
Iain Patterson
<me@iain.cx>
Tue, 28 Jun 2011 10:40:13 +0000
(11:40 +0100)
committer
Iain Patterson
<me@iain.cx>
Mon, 27 Jan 2014 14:49:54 +0000
(14:49 +0000)
.vim/script/p4
patch
|
blob
|
history
.vim/script/svn
patch
|
blob
|
history
diff --git
a/.vim/script/p4
b/.vim/script/p4
index
56958f8
..
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\]
+ " 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
diff --git
a/.vim/script/svn
b/.vim/script/svn
index
d5244fb
..
152d2c9
100644
(file)
--- a/
.vim/script/svn
+++ b/
.vim/script/svn
@@
-24,6
+24,8
@@
fun! SVNcommit()
set bufhidden=hide
setlocal noswapfile
file [svn diff\]
+ " Map q to quit easily.
+ noremap <silent> <buffer> q <C-W>q
" Switch back to the top window.
wincmd k