[vim/vim] Vim background incompatible with Windows Powershell. (Issue #9810)

84 views
Skip to first unread message

hungpham3112

unread,
Feb 21, 2022, 2:49:43 AM2/21/22
to vim/vim, Subscribed

image

Version:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May  2 2021 18:02:30)
MS-Windows 32-bit console version
Included patches: 1-2824
Compiled by mool@tororo
Huge version without GUI.  Features included (+) or not (-):
+acl                +comments           +find_in_path       +listcmds           +popupwin           -sun_workshop       +vertsplit
+arabic             +conceal            +float              +localmap           -postscript         +syntax             +virtualedit
+autocmd            +cryptv             +folding            -lua                +printer            +tag_binary         +visual
+autochdir          +cscope             -footer             +menu               +profile            -tag_old_static     +visualextra
+autoservername     +cursorbind         +gettext/dyn        +mksession          -python             -tag_any_white      +viminfo
-balloon_eval       +cursorshape        -hangul_input       +modify_fname       -python3            -tcl                +vreplace
+balloon_eval_term  +dialog_con         +iconv/dyn          +mouse              +quickfix           +termguicolors      +vtp
-browse             +diff               +insert_expand      -mouseshape         +reltime            +terminal           +wildignore
++builtin_terms     +digraphs           +ipv6               +multi_byte_ime/dyn +rightleft          -termresponse       +wildmenu
+byte_offset        -dnd                +job                +multi_lang         -ruby               +textobjects        +windows
+channel            -ebcdic             +jumplist           -mzscheme           +scrollbind         +textprop           +writebackup
+cindent            +emacs_tags         +keymap             -netbeans_intg      +signs              -tgetent            -xfontset
+clientserver       +eval               +lambda             +num64              +smartindent        +timers             -xim
+clipboard          +ex_extra           +langmap            +packages           +sound              +title              -xpm_w32
+cmdline_compl      +extra_search       +libcall            +path_extra         +spell              -toolbar            -xterm_save
+cmdline_hist       -farsi              +linebreak          -perl               +startuptime        +user_commands      
+cmdline_info       +file_in_path       +lispindent         +persistent_undo    +statusline         +vartabs            
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$HOME\vimfiles\vimrc"
 3rd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
       defaults file: "$VIMRUNTIME\defaults.vim"
Compilation: cl -c /W3 /GF /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32  -DFEAT_CSCOPE -DFEAT_TERMINAL -DFEAT_SOUND  -DFEAT_JOB_CHANNEL -DFEAT_IPV6      -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /source-charset:utf-8 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG /arch:IA32 /Zl /MT /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_HUGE /Fd.\ObjCi386/ /Zi
Linking: link  /nologo /opt:ref /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib  comdlg32.lib ole32.lib netapi32.lib uuid.lib /machine:i386   libcmt.lib  user32.lib          winmm.lib WSock32.lib Ws2_32.lib  /PDB:vim.pdb -debug

I suppose that this issue caused by almost versions of vim, not just this one.


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9810@github.com>

hungpham3112

unread,
Feb 22, 2022, 12:11:32 AM2/22/22
to vim/vim, Subscribed

I think this issue rather belongs to vim/vim. I am a bit confused by your screenshot, why are there so many transparent background layers? Can you please explain? There are already some issues with powershell and windows, so this may be a duplicate.

Also, please clarify:

  • Are you starting vim in a terminal?
  • What happens if you use vim --clean?
  1. I opened it by Windows Powershell. with everforest theme and startify first screen.
  2. vim --clean shows nothing.

step to reproduce:

  1. use everforest theme and startify with vim-plug
  2. colorscheme everforest
  3. open vim with window powershell

Here is the picture show different between cmd.exe, window powershell and window terminal run pwsh.exe:

image


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9810/1047431317@github.com>

Christian Brabandt

unread,
Feb 22, 2022, 2:27:05 AM2/22/22
to vim/vim, Subscribed

Please always use vim --clean or use a minimal reproducible example and always clearly explain what problem you are facing (e.g. what you expect, what you see, what exact error messages appear), so that we do not have to guess here.

I guess the problem is, that for windows powershell the background color does not go until the end of the line? I think this is a duplicate, but don't find it currently (possibly #7162 but this is for windows terminal).

Please check:

  • does it happen with other colorschemes, what about a default one?
  • does it happen without startify?
  • does it happen with or without termguicolors being set?
  • does :set t_ut= or :set t_ut=y make any difference?


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9810/1047498603@github.com>

hungpham3112

unread,
Feb 22, 2022, 6:24:45 AM2/22/22
to vim/vim, Subscribed

  1. It happens with all colorschemes except blue default colorscheme in vim. Colorscheme gruvbox:
    image

  2. Without startify:
    image

  3. termguicolors in my vimrc

  4. :set t_ut= :set t_ut=y make no difference


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9810/1047696637@github.com>

Maxim Kim

unread,
Feb 22, 2022, 8:48:46 AM2/22/22
to vim/vim, Subscribed

I can confirm vim in powershell has that issue with legacy colorschemes.

Remakes, on the other hand, work:
vim-colors-pwsh


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9810/1047814412@github.com>

Maxim Kim

unread,
Feb 22, 2022, 9:07:34 AM2/22/22
to vim/vim, Subscribed

I take it back...

With vim -Nu NONE all built-in colorschemes are fine (apart of some of them unreadable due to matching blue background with blue syntax elements).

If you set t_Co=256 though then there are issues with background of syntax highlighted text:

t_Co=256

image

t_Co=16

image


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9810/1047831341@github.com>

Christian Brabandt

unread,
May 28, 2022, 4:12:33 AM5/28/22
to vim/vim, Subscribed

I am closing this, since the new colorschemes have been merged in


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9810/1140204076@github.com>

Christian Brabandt

unread,
May 28, 2022, 4:12:37 AM5/28/22
to vim/vim, Subscribed

Closed #9810 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/9810/issue_event/6696685558@github.com>

Reply all
Reply to author
Forward
0 new messages