From 3bcad3a8e8c7340291d54bf804b8604866f7cb6f Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Wed, 23 Apr 2025 21:07:15 +0800 Subject: [PATCH] fix .vimrc: fix first install no colorscheme bug --- dot_vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot_vimrc b/dot_vimrc index 0ee97a6..77bfde5 100644 --- a/dot_vimrc +++ b/dot_vimrc @@ -184,7 +184,10 @@ if (empty($TMUX)) endif syntax on -colorscheme onedark +" 加入這段在 .vimrc 中,避免色彩主題未安裝導致錯誤 +if (empty(glob("~/.vim/plugged/onedark.vim")) == 0) + colorscheme onedark +endif let g:airline_theme='onedark' let g:airline_powerline_fonts = 1