AlessandroYorba / Alduin

A Vim Colorscheme
447 stars 26 forks source link

Vampirism setting has been deprecated #18

Closed AlessandroYorba closed 7 years ago

AlessandroYorba commented 7 years ago

Setting time based variables to change aspect of a colorscheme is something that should be a task for the .vimrc and not the responsibility for the colorscheme. Keeping it in the .vimrc also has the added benefit of creating other special conditions or settings that complement each users personal preference. I will add a gist or just update this issue with some legacy code for Vampirism so that you can add it to your .vimrc :smiling_imp:

AlessandroYorba commented 7 years ago

false

lgalke commented 6 years ago

I liked the vampires. Did you put a gist somewhere? Guess I could also extract the code snippet from some earlier commit..

AlessandroYorba commented 6 years ago

@lgalke try adding this to your .vimrc.

    let hour = strftime("%H")

    " 7am - 5pm 
    if 7 <= hour && hour < 17
        let g:alduin_Shout_Dragon_Aspect = 0
        let g:alduin_Shout_Become_Ethereal = 0

    " 5pm - 12am
    elseif 17 <= hour && hour < 24
        let g:alduin_Shout_Dragon_Aspect = 1
        let g:alduin_Shout_Become_Ethereal = 0

    " 12am - 7am
    else
        let g:alduin_Shout_Dragon_Aspect = 0
        let g:alduin_Shout_Become_Ethereal = 1
    endif
lgalke commented 6 years ago

Thanks, that's great.