From a6b23888a58c2fb6cbc6ab7510772999f6c82b91 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 4 Jul 2018 10:56:26 +1200 Subject: Simplify .vimrc leader map settings --- vim/vimrc | 13 ++++++------- 1 file 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 :tabnext nmap [ PutBlankLinesAbove nmap ] PutBlankLinesBelow -" Normal mode leader mappings below; use rather than on the -" non-plugin maps so that they work on vim-tiny +" Normal leader maps; use not for vim-tiny " \a toggles 'formatoptions' 'a' flag using a plugin -nnoremap a :ToggleOptionFlagLocal formatoptions a +nnoremap a :ToggleOptionFlagLocal formatoptions a " \b toggles copy-pasteable linebreak settings -nmap b CopyLinebreakToggle +nmap b CopyLinebreakToggle " \c toggles 'cursorline' nnoremap c :set cursorline! cursorline? " \C toggles 'cursorcolumn' @@ -249,9 +248,9 @@ nnoremap M :map " \n toggles line numbers nnoremap n :set number! number? " \o opens a line below in paste mode -nmap o PasteOpenBelow +nmap o PasteOpenBelow " \o opens a line above in paste mode -nmap O PasteOpenAbove +nmap O PasteOpenAbove " \p toggles paste mode nnoremap p :set paste! paste? " \r reloads .vimrc @@ -269,7 +268,7 @@ nnoremap V :let b: t: w: " \w toggles wrapping nnoremap w :set wrap! wrap? " \x strips trailing whitespace via a custom plugin -nmap x StripTrailingWhitespace +nmap x StripTrailingWhitespace " \z sets NZ English spelling (compare \u) nnoremap z :setlocal spelllang=en_nz -- cgit v1.2.3