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:
06d0d05
)
More incorrect uses of noremap.
author
Iain Patterson
<me@iain.cx>
Mon, 27 Jan 2014 16:59:04 +0000
(16:59 +0000)
committer
Iain Patterson
<me@iain.cx>
Mon, 27 Jan 2014 17:02:49 +0000
(17:02 +0000)
Normal commands should be mapped with nnoremap not noremap.
.vim/script/p4
patch
|
blob
|
history
.vim/script/svn
patch
|
blob
|
history
diff --git
a/.vim/script/p4
b/.vim/script/p4
index
7aa16ba
..
4badc84
100644
(file)
--- a/
.vim/script/p4
+++ b/
.vim/script/p4
@@
-50,7
+50,7
@@
fun! P4submit()
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
" Vim 7.4 really doesn't want us to quit windows from a script.
try
diff --git
a/.vim/script/svn
b/.vim/script/svn
index
7b4da64
..
223d0f0
100644
(file)
--- a/
.vim/script/svn
+++ b/
.vim/script/svn
@@
-25,7
+25,7
@@
fun! SVNcommit()
setlocal noswapfile
file [svn diff\]
" Map q to quit easily.
- noremap <silent> <buffer> q <C-W>q
+ n
n
oremap <silent> <buffer> q <C-W>q
" Vim 7.4 really doesn't want us to quit windows from a script.
try