From f7abffb9bb2e839d692e445cc5a47c814ce7f2d8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 12 Jan 2014 22:06:56 +0900 Subject: [PATCH] Load default color scheme when g:colors_name is not defined (#14) --- plugin/goyo.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin/goyo.vim b/plugin/goyo.vim index 06403b7..c8473c9 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -259,9 +259,7 @@ function! s:goyo_off() for [k, v] in items(goyo_revert) execute printf("let &%s = %s", k, string(v)) endfor - if exists('g:colors_name') - execute 'colo '. g:colors_name - endif + execute 'colo '. get(g:, 'colors_name', 'default') if goyo_disabled_gitgutter silent! GitGutterEnable