aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 22:52:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 22:52:47 +1200
commitf09ddf0e8390cca6ce0c70472825cc41368fdfa1 (patch)
treea3ed0328e91569f89674221d3b9b45495ac2dec9
parentStack Vim ^ to make it support counts (diff)
downloaddotfiles-f09ddf0e8390cca6ce0c70472825cc41368fdfa1.tar.gz
dotfiles-f09ddf0e8390cca6ce0c70472825cc41368fdfa1.zip
Adjust comments specifying Vim mapping modes
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index b5ccb4f9..bc49834a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -181,19 +181,19 @@ if has('windows')
endif
endif
-" Rebind normal, visual <Space> to scroll down a page
+" Rebind normal/visual <Space> to scroll down a page
nnoremap <Space> <C-F>
if v:version >= 700
xnoremap <Space> <C-F>
endif
-" Rebind normal, visual & to preserve substitution flags
+" Rebind normal/visual & to preserve substitution flags
nnoremap <silent> & :<C-U>&&<CR>
if v:version >= 700
xnoremap <silent> & :&&<CR>
endif
-" Stack ^ to make it support counts by abusing $
+" Stack normal/visual ^ to make it support counts by abusing $
nnoremap ^ $^
if v:version >= 700
xnoremap ^ $^
@@ -202,7 +202,7 @@ endif
" Stack insert Ctrl-C to undo the escaped insert operation
inoremap <C-C> <C-C>u
-" Stack normal, visual Ctrl-L to clear search highlight before redraw
+" Stack normal/visual Ctrl-L to clear search highlight before redraw
nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
if v:version >= 700
xnoremap <silent> <C-L> :<C-U>nohlsearch<CR>gv<C-L>