diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-05-04 18:05:06 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-05-04 18:05:06 +0100 |
commit | a61859d05e64e0c26b938c398dfbe40bf4f1833c (patch) | |
tree | 4f55e835b943870ed302621f41cc57e9ef18257f | |
parent | 9b8c4db81cc090e516efaa37c3a61fb38eacc0b3 (diff) |
corrected background toggle
-rw-r--r-- | vimrc | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -165,11 +165,10 @@ nnoremap <Leader>th :set hlsearch!<cr> nnoremap <Leader>tr :set relativenumber!<cr> nnoremap <Leader>tn :set number!<cr> nnoremap <Leader>tp :set paste!<cr> -nnoremap <Leader>tb :set bg!<cr> nnoremap <Leader>tg :GitGutterToggle<cr> nnoremap <Leader>tt :NERDTreeToggle<cr> nnoremap <Leader>tu :GundoToggle<cr> -nnoremap <Leader>tb :ToggleBG<cr> +nnoremap <Leader>tb :let &background = ( &background == "dark"? "light" : "dark" )<CR> " Sourcing nnoremap <Leader>sv :source ~/.vimrc<cr> @@ -182,8 +181,8 @@ nnoremap <Leader>ez :e ~/.zshrc <Return> " Misc nnoremap <Leader>w :w<cr> -nnoremap <Leader>q :q!<cr> -nnoremap <Leader>i mxgg=G'x +nnoremap <Leader>q :bd!<cr> +nnoremap <Leader>i zzmxgg=G'x nnoremap <Leader>sw :%s/\s\+$//<cr> nnoremap <tab> <C-^> |