Change the background color of the Vimterminal

Asked 3 months ago, Updated 3 months ago, 6 views

I am using Vimterminal (:terminal), but the background color of the terminal is grayish as shown in the picture below.
Is there a way to make this white like the window in the editor below?

In my environment,
colorscheme default

is set to

Vim is booting to CUI


vim terminal


I am using vim after patch is applied, but this problem has not been fixed in this environment.
Rebuild vim using homebrew

brew reinstall vim --with-override-system-vi --with-python3 --with-lua --HEAD

But the background color is still gray.

--HEAD is specified to retrieve the latest patch from vim's github repository.

vim --version

for rebuilt vim
 VIM-Vi IMproved 8.0 (2016 Sep 12, compiled Sep 15 2017 21:17:21)
MacOS X(unix) version
Included patches: 1-1111
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+arabic + find_in_path-mouth_sysmouse-tag_any_white
+autocmd + float + mouse_urxvt-tcl
+ byte_offset-gettext-mzscheme + termresponse
+ channel-hangul_input + netbeans_intg + textobjects
+ clipboard + job + path_extra-toolbar
+cmdline_compl +jumplist +perl +user_commands
+cmdline_hist +keymap + persistent_undo +vertsplit
+ comments + langmap + printer + visual
+conceal +libcall +profile +visualextra
+ cryptov + linebreak-python + viminfo
+cscope +lispindent + python3 + vreplace
+ cursorbind + listcmds + quickfix + wildignore
+ cursorshape + localmap + reltime + wildmenu
+ diff + menu + ruby + writebackup
+ digraphs + mksession + scrollbind-X11
+emacs_tags-mousheshape + startuptime-xpm
+ event + mouse_dec + statusline-xsmp
+ extra_search-mouth_jsbterm + syntax-xterm_save
+ farsi + mouse_netterm + tag_binary      
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Linking: clang   -L. -L/usr/local/lib -F/private/tmp/vim-20170915-24424-1xde4d9/Frameworks -L/usr/local/lib -o vim        -lm  -lncurses -liconv -framework Cocoa  -L/usr/local/lib -llua -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl  -L/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/config-3.6m-darwin -lpython3.6m -framework CoreFoundation-lruby.2.0.0-lobjc    


2022-09-30 13:56

2 Answers

Unfortunately, we have no choice but to switch to dark/light in the background option.

However, I am currently writing a patch, so please wait a little longer.

Additional 1

I sent you the patch, but I still don't know if it will be taken in.

Additional 2


2022-09-30 13:56

Open the preferences, select the profile you are using, and change the ANSI color to white.

Select #FFFFFF from the Web Safe Color to make it white.

2022-09-30 13:56

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.