From a61859d05e64e0c26b938c398dfbe40bf4f1833c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 4 May 2015 18:05:06 +0100 Subject: corrected background toggle --- vimrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index c205630..3072d86 100644 --- a/vimrc +++ b/vimrc @@ -165,11 +165,10 @@ nnoremap th :set hlsearch! nnoremap tr :set relativenumber! nnoremap tn :set number! nnoremap tp :set paste! -nnoremap tb :set bg! nnoremap tg :GitGutterToggle nnoremap tt :NERDTreeToggle nnoremap tu :GundoToggle -nnoremap tb :ToggleBG +nnoremap tb :let &background = ( &background == "dark"? "light" : "dark" ) " Sourcing nnoremap sv :source ~/.vimrc @@ -182,8 +181,8 @@ nnoremap ez :e ~/.zshrc " Misc nnoremap w :w -nnoremap q :q! -nnoremap i mxgg=G'x +nnoremap q :bd! +nnoremap i zzmxgg=G'x nnoremap sw :%s/\s\+$// nnoremap -- cgit v1.2.3