diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 03:40:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-16 03:40:07 +1200 |
commit | b56594da8653a70240042c6f18c2ec5567caafa4 (patch) | |
tree | 63c9b64f1b462001b3abf9c5ed9899fc4be19fe3 /vim/vimrc | |
parent | Adjust mapping formatting (diff) | |
download | dotfiles-b56594da8653a70240042c6f18c2ec5567caafa4.tar.gz dotfiles-b56594da8653a70240042c6f18c2ec5567caafa4.zip |
Reorder some mappings
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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> |