aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.vimrc14
1 files changed, 9 insertions, 5 deletions
diff --git a/.vimrc b/.vimrc
index 13a6b55..b845488 100644
--- a/.vimrc
+++ b/.vimrc
@@ -655,8 +655,8 @@ endfunction
" Mappings {{{1
" Note: |:noremap| defines mappings in |Normal|, |Visual|, |Operator-Pending|
-" and |Select| mode. Because I don't use |Select| mode, |:noremap| is executed
-" as substitute of |:nnoremap|, |:xnoremap| and |:onoremap| for simplicity.
+" and |Select| mode. Because I don't use |Select| mode, I use |:noremap| as
+" substitute of |:nnoremap|, |:xnoremap| and |:onoremap| for simplicity.
" Fix the search direction. {{{2
@@ -712,7 +712,7 @@ nnoremap @N N.
nnoremap @a 9999@@
-" Execute the laste executed macro again.
+" Execute the last executed macro again.
nnoremap ` @@
@@ -1050,13 +1050,17 @@ xnoremap g- g<C-x>
-" Disable unuseful mappings. {{{2
+" Disable unuseful or dangerous mappings. {{{2
-" Avoid entering Select mode.
+" Disable Select mode.
nnoremap gh <Nop>
nnoremap gH <Nop>
nnoremap g<C-h> <Nop>
+" Disable Ex mode.
+nnoremap Q <Nop>
+nnoremap gQ <Nop>
+
nnoremap ZZ <Nop>
nnoremap ZQ <Nop>