2017-10-24 09:39:53 +00:00
|
|
|
set guioptions-=T
|
|
|
|
set guioptions-=m
|
2017-11-16 13:09:18 +00:00
|
|
|
set guioptions-=e
|
2017-10-24 09:39:53 +00:00
|
|
|
|
2017-11-16 15:34:43 +00:00
|
|
|
if !exists("g:colors")
|
|
|
|
let g:colors=['slate', 'desert', 'blue', 'ron', 'elflord', 'murphy', 'torte']
|
|
|
|
end
|
2017-10-18 16:58:06 +00:00
|
|
|
function! Randomcolor()
|
2017-11-07 10:28:31 +00:00
|
|
|
let random = localtime() % len(g:colors)
|
|
|
|
execute "colorscheme ".g:colors[random]
|
2017-10-18 16:58:06 +00:00
|
|
|
endfunction
|
|
|
|
|
2017-11-16 15:34:43 +00:00
|
|
|
function! SetFont()
|
|
|
|
if exists("g:font_size_template") && exists("g:font_size")
|
|
|
|
let &guifont=substitute(g:font_size_template, "%%", g:font_size, "g")
|
|
|
|
end
|
|
|
|
endfun
|
|
|
|
function! SetFontSize(size)
|
|
|
|
let g:font_size=a:size
|
|
|
|
call SetFont()
|
|
|
|
endfun
|
|
|
|
|
2017-11-07 10:28:31 +00:00
|
|
|
" Color list can be extended after including (sourcing) this file with
|
|
|
|
" :let g:colors = extend(['list', 'of', 'color', 'schemes'], g:colors)
|
|
|
|
|
2017-10-18 16:58:06 +00:00
|
|
|
" Color Stuff
|
2017-11-07 10:28:31 +00:00
|
|
|
nnoremap <C-F1> :exe "colorscheme ".g:colors[0 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F2> :exe "colorscheme ".g:colors[1 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F3> :exe "colorscheme ".g:colors[2 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F4> :exe "colorscheme ".g:colors[3 % len(g:colors)]<CR>
|
2017-10-18 16:58:06 +00:00
|
|
|
|
2017-11-07 10:28:31 +00:00
|
|
|
nnoremap <C-F5> :exe "colorscheme ".g:colors[4 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F6> :exe "colorscheme ".g:colors[5 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F7> :exe "colorscheme ".g:colors[6 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F8> :exe "colorscheme ".g:colors[7 % len(g:colors)]<CR>
|
2017-10-18 16:58:06 +00:00
|
|
|
|
2017-11-07 10:28:31 +00:00
|
|
|
nnoremap <C-F9> :exe "colorscheme ".g:colors[8 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F10> :exe "colorscheme ".g:colors[9 % len(g:colors)]<CR>
|
|
|
|
nnoremap <C-F11> :exe "colorscheme ".g:colors[10 % len(g:colors)]<CR>
|
2017-10-18 16:58:06 +00:00
|
|
|
nnoremap <C-F12> :call Randomcolor()<CR>
|