The questioner is using it.xubuntu
,apt-get install gvim
, is used in three situationsvim
:
*xfce4-terminal
*gvim
*<ctrl><alt><f[num]>
The following is my attempt, but it only distinguishes these three’ situations’, and the actual operation is not ideal.
I really don’t know much about its color matching.
if &term == "xterm"
set t_Co=256
colorscheme lucius
set background=dark
elseif &term == "builtin_gui"
set guioptions=
colorscheme lucius
set background=dark
hi cursor guibg=#DB35EB
elseif &term == "linux"
endif
A piece of information foundOptimized Vimrc with 256 Colorscheme
It is more accurate to judge whether it is GUI.
if has("gui") ... endif
In addition, the terminal type of xfce-terminal can be adjusted, and the default may be
xterm
、xterm-color
Or ..xterm-256color
You need to look at it yourself, Linux console<f[num]>)的terminal类型是 linux
。