aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-04 17:04:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-04 17:04:08 +1200
commit6adbfdf6a636aa0920e663c07582787a2162691c (patch)
tree9759e1229efc0e1d579fd84b2a7196d1034a0546 /vim/vimrc
parentMerge branch 'release/v1.20.0' (diff)
parentRebuild dotfiles(7) manual page (diff)
downloaddotfiles-6adbfdf6a636aa0920e663c07582787a2162691c.tar.gz
dotfiles-6adbfdf6a636aa0920e663c07582787a2162691c.zip
Merge branch 'release/v1.21.0'v1.21.0
* release/v1.21.0: Rebuild dotfiles(7) manual page Bump VERSION Spin off Vim Perl version bump into ftplugin Have Vim Perl major version bump map reset minor Simplify .vimrc leader map settings Correct alphabetical order of filetype.vim Break up some long VimL lines Use :nnoremap for Perl vim maps
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>