FuDesign2008 / randomTheme.vim

A plugin for random color schemes and fonts, even on start up!
7 stars 4 forks source link

default loading randomTheme but not RandomThemeFavorite #6

Open retzzz opened 4 years ago

retzzz commented 4 years ago

In past, the default behavior of this plugin is to load one of favorite theme from g:favorite_gui_fonts. But after I update to the latest commit, the default behavior is changed to select theme from all color themes. The problem is at the end of randomtheme.vim, the execute command is changed from executing :RandomThemeFavorite to executing :RandomTheme. Is it modified deliberately?

if s:randomOnStart != 0
    let guiRunning = has('gui_running')
    if s:randomOnStart == 2
        if guiRunning
            execute ':RandomTheme'
        endif
    elseif s:randomOnStart == 3
        if !guiRunning
            execute ':RandomTheme'
        endif
    else
        execute ':RandomTheme'
    endif
endif