From 75f2d2f394c2dc1c8db7df54a774c8ef3af1fa17 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 25 Jun 2018 15:12:57 +1200 Subject: Use in vimrc where reasonable --- vim/vimrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 6944c51e..720d3f3a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -219,12 +219,12 @@ if has('digraphs') endif " Normal mode leader mappings below; use a literal backslash rather than -" so that the non-plugin mappings work on vim-tiny +" on the non-plugin maps so that they work on 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 'cursorcolumn', \C toggles 'cursorline' nnoremap \c :set cursorcolumn! cursorcolumn? nnoremap \C :set cursorline! cursorline? @@ -250,8 +250,8 @@ nnoremap \l :set list! list? " \n toggles line numbers nnoremap \n :set number! number? " \o and \O open 'pasted insert' lines -nmap \o PasteOpenBelow -nmap \O PasteOpenAbove +nmap o PasteOpenBelow +nmap O PasteOpenAbove " \p toggles paste mode nnoremap \p :set paste! paste? " \r reloads .vimrc @@ -265,7 +265,7 @@ nnoremap \u :setlocal spelllang=en_us spelllang? " \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 spelllang? -- cgit v1.2.3