From 21b59f336fbfa976f676af467517394f982a5fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miros=C5=82aw=20Prag=C5=82owski?= Date: Tue, 5 May 2015 01:00:11 +0200 Subject: [PATCH] Now I can toogle light & dark schemes --- my_configs.vim | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/my_configs.vim b/my_configs.vim index d251b455..9d07e662 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -1,19 +1,29 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" cursor line +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +function! SetupCursorLine(...) + highlight CursorLine ctermbg=NONE cterm=NONE gui=NONE + highlight LineNr ctermfg=darkgrey + set cursorline + let &colorcolumn="80,".join(range(120,999),",") + highlight ColorColumn ctermbg=235 +endfunction + +call SetupCursorLine() + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " werewolf.vim """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +function! ToggleColorScheme(...) + :call WerewolfToggle() + :call SetupCursorLine() +endfunction let g:werewolf_day_themes = ['github'] let g:werewolf_night_themes = ['desert'] let g:werewolf_change_automatically = 0 " Fast toogle -nmap . :WerewolfToggle - -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" cursor line -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -highlight CursorLine ctermbg=NONE cterm=NONE gui=NONE -highlight LineNr ctermfg=darkgrey -set cursorline +nmap . :call ToggleColorScheme() """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => my custom settings @@ -21,8 +31,6 @@ set cursorline set number " line numbers set nocompatible " choose no compatibility with legacy vi set nowrap " don't wrap lines -let &colorcolumn="80,".join(range(120,999),",") -highlight ColorColumn ctermbg=235 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => trailing whitespaces (show & remove on save)