aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-16 03:40:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-16 03:40:07 +1200
commitb56594da8653a70240042c6f18c2ec5567caafa4 (patch)
tree63c9b64f1b462001b3abf9c5ed9899fc4be19fe3
parentf7f752541b9e7a29884f164a92f147666b405eb5 (diff)
downloaddotfiles-b56594da8653a70240042c6f18c2ec5567caafa4.tar.gz
Reorder some mappings
-rw-r--r--vim/vimrc20
1 files changed, 10 insertions, 10 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 84c6155e..2175f114 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1221,18 +1221,18 @@ let maplocalleader = ','
" 'cursorline' is always off when in any visual mode, including block mode,
" where it actually might have been really handy.
-"" Leader,TAB toggles automatic indentation based on the previous line
-nnoremap <Leader><Tab>
- \ :<C-U>setlocal autoindent! autoindent?<CR>
-"" Leader,c toggles highlighted cursor row; doesn't work in visual mode
-nnoremap <Leader>c
- \ :<C-U>setlocal cursorline! cursorline?<CR>
"" Leader,h toggles highlighting search results
nnoremap <Leader>h
\ :<C-U>set hlsearch! hlsearch?<CR>
"" Leader,i toggles showing matches as I enter my pattern
nnoremap <Leader>i
\ :<C-U>set incsearch! incsearch?<CR>
+"" Leader,TAB toggles automatic indentation based on the previous line
+nnoremap <Leader><Tab>
+ \ :<C-U>setlocal autoindent! autoindent?<CR>
+"" Leader,c toggles highlighted cursor row; doesn't work in visual mode
+nnoremap <Leader>c
+ \ :<C-U>setlocal cursorline! cursorline?<CR>
"" Leader,s toggles spell checking
nnoremap <Leader>s
\ :<C-U>setlocal spell! spell?<CR>
@@ -1241,6 +1241,10 @@ nnoremap <Leader>s
" group, except they also include analogous maps for visual mode, defined as
" recursive maps into normal mode that conclude with re-selecting the text.
+"" Leader,N toggles position display in bottom right
+nnoremap <Leader>N
+ \ :<C-U>set ruler! ruler?<CR>
+xmap <Leader>N <Esc><Leader>Ngv
"" Leader,C toggles highlighted cursor column; works in visual mode
nnoremap <Leader>C
\ :<C-U>setlocal cursorcolumn! cursorcolumn?<CR>
@@ -1253,10 +1257,6 @@ xmap <Leader>l <Esc><Leader>lgv
nnoremap <Leader>n
\ :<C-U>setlocal number! number?<CR>
xmap <Leader>n <Esc><Leader>ngv
-"" Leader,N toggles position display in bottom right
-nnoremap <Leader>N
- \ :<C-U>set ruler! ruler?<CR>
-xmap <Leader>N <Esc><Leader>Ngv
"" Leader,w toggles soft wrapping
nnoremap <Leader>w
\ :<C-U>setlocal wrap! wrap?<CR>