From 1996ef15613f2d4773017128bba1a719a1b63a19 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sat, 20 Feb 2021 21:27:26 +0100 Subject: Move to lua based vimrc --- .vim/autoload/daymode.vim | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .vim/autoload/daymode.vim (limited to '.vim/autoload/daymode.vim') diff --git a/.vim/autoload/daymode.vim b/.vim/autoload/daymode.vim deleted file mode 100644 index b2c8cdb..0000000 --- a/.vim/autoload/daymode.vim +++ /dev/null @@ -1,27 +0,0 @@ -function! s:lightline_update(colors) - if exists('g:loaded_lightline') - try - let g:lightline.colorscheme = a:colors - call lightline#init() - call lightline#colorscheme() - call lightline#update() - catch - endtry - endif -endfunction - -function! daymode#switch(bang) - if a:bang - set background=dark - execute 'colorscheme' get(g:, 'daymode_colorscheme_night', 'default') - call s:lightline_update(get(g:, 'daymode_lightline_colorscheme_night', 'PaperColor')) - else - set background=light - execute 'colorscheme' get(g:, 'daymode_colorscheme_day', 'default') - call s:lightline_update(get(g:, 'daymode_lightline_colorscheme_day', 'PaperColor')) - endif - - " if exists("syntax_on") - " syntax reset - " endif -endfunction -- cgit 1.4.1