aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-04 10:56:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-04 10:56:26 +1200
commita6b23888a58c2fb6cbc6ab7510772999f6c82b91 (patch)
treee4646926de0e25c64a786c2bda1bbdd779810527 /vim/vimrc
parent26d69e9a62174777683c7cf29cfcd2f7d331bbc4 (diff)
downloaddotfiles-a6b23888a58c2fb6cbc6ab7510772999f6c82b91.tar.gz
dotfiles-a6b23888a58c2fb6cbc6ab7510772999f6c82b91.zip
Simplify .vimrc leader map settings
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc13
1 files changed, 6 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index b1fbbbd4..ed855b41 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -213,13 +213,12 @@ nnoremap ]t :<C-U>tabnext<CR>
nmap [<Space> <Plug>PutBlankLinesAbove
nmap ]<Space> <Plug>PutBlankLinesBelow
-" Normal mode leader mappings below; use <Bslash> rather than <Leader> on the
-" non-plugin maps so that they work on vim-tiny
+" Normal leader maps; use <Bslash> not <Leader> for vim-tiny
" \a toggles 'formatoptions' 'a' flag using a plugin
-nnoremap <Leader>a :<C-U>ToggleOptionFlagLocal formatoptions a<CR>
+nnoremap <Bslash>a :<C-U>ToggleOptionFlagLocal formatoptions a<CR>
" \b toggles copy-pasteable linebreak settings
-nmap <Leader>b <Plug>CopyLinebreakToggle
+nmap <Bslash>b <Plug>CopyLinebreakToggle
" \c toggles 'cursorline'
nnoremap <Bslash>c :<C-U>set cursorline! cursorline?<CR>
" \C toggles 'cursorcolumn'
@@ -249,9 +248,9 @@ nnoremap <Bslash>M :<C-U>map <buffer><CR>
" \n toggles line numbers
nnoremap <Bslash>n :<C-U>set number! number?<CR>
" \o opens a line below in paste mode
-nmap <Leader>o <Plug>PasteOpenBelow
+nmap <Bslash>o <Plug>PasteOpenBelow
" \o opens a line above in paste mode
-nmap <Leader>O <Plug>PasteOpenAbove
+nmap <Bslash>O <Plug>PasteOpenAbove
" \p toggles paste mode
nnoremap <Bslash>p :<C-U>set paste! paste?<CR>
" \r reloads .vimrc
@@ -269,7 +268,7 @@ nnoremap <Bslash>V :<C-U>let b: t: w:<CR>
" \w toggles wrapping
nnoremap <Bslash>w :<C-U>set wrap! wrap?<CR>
" \x strips trailing whitespace via a custom plugin
-nmap <Leader>x <Plug>StripTrailingWhitespace
+nmap <Bslash>x <Plug>StripTrailingWhitespace
" \z sets NZ English spelling (compare \u)
nnoremap <Bslash>z :<C-U>setlocal spelllang=en_nz<CR>