My vimrc: http://ge0rges.com/vimrc My environment is: Ubuntu 18.04 in WSL on Windows 10.

The issue

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 06 2019 17:31:41)
Included patches: 1-1453
Modified by [email protected]
Compiled by [email protected]
Huge version without GUI.  Features included (+) or not (-):
+acl               +farsi             +mouse_sgr         -tag_any_white
+arabic            +file_in_path      -mouse_sysmouse    -tcl
+autocmd           +find_in_path      +mouse_urxvt       +termguicolors
-autoservername    +float             +mouse_xterm       +terminal
-balloon_eval      +folding           +multi_byte        +terminfo
+balloon_eval_term -footer            +multi_lang        +termresponse
-browse            +fork()            -mzscheme          +textobjects
++builtin_terms    +gettext           +netbeans_intg     +timers
+byte_offset       -hangul_input      +num64             +title
+channel           +iconv             +packages          -toolbar
+cindent           +insert_expand     +path_extra        +user_commands
-clientserver      +job               -perl              +vertsplit
-clipboard         +jumplist          +persistent_undo   +virtualedit
+cmdline_compl     +keymap            +postscript        +visual
+cmdline_hist      +lambda            +printer           +visualextra
+cmdline_info      +langmap           +profile           +viminfo
+comments          +libcall           -python            +vreplace
+conceal           +linebreak         +python3           +wildignore
+cryptv            +lispindent        +quickfix          +wildmenu
+cscope            +listcmds          +reltime           +windows
+cursorbind        +localmap          +rightleft         +writebackup
+cursorshape       -lua               -ruby              -X11
+dialog_con        +menu              +scrollbind        -xfontset
+diff              +mksession         +signs             -xim
+digraphs          +modify_fname      +smartindent       -xpm
-dnd               +mouse             +startuptime       -xsmp
-ebcdic            -mouseshape        +statusline        -xterm_clipboard
+emacs_tags        +mouse_dec         -sun_workshop      -xterm_save
+eval              +mouse_gpm         +syntax
+ex_extra          -mouse_jsbterm     +tag_binary
+extra_search      +mouse_netterm     +tag_old_static
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/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2
-fdebug-prefix-map=/build/vim-8l5tlu/vim-8.0.1453=. -fstack-protector-strong
-Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
-o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl
-L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m -lpthread -ldl
-lutil -lm

My problem is that when I open a file (here a .c file), everything after the last character of a line is highlighted in yellow. This has a weird behavior though because it doesn't happen on the first page (ie landing after opening a file) and it goes away if the scroll bar is on the line. In addition, if I scroll up or down with the mouse wheel, the yellow highlight comes back.

Edit: After investigation it seems to be the theme I am using that's causing the issue. Though this doesn't happen on other Ubuntu terminals, might be WSL's fault. After installing a different theme I notice that the same issue arises only with different colors.

  • 1
    Hello @Ge0rges, welcome to Vi and Vim! Would you mind editing your question to (1) include the screenshot, vimrc, and test file in the question—shorten them, if necessary—and (2) break up the version output—it's all on one line at the moment?
    – D. Ben Knoble
    Oct 7, 2019 at 19:50
  • 1
    In the meantime, I've seen a few questions like this before, but I can't find the exact ones I'm looking for
    – D. Ben Knoble
    Oct 7, 2019 at 19:55
  • 1
    @DBenKnoble Yeah this comes up from time to time... Some of it in SO or Superuser.SE, I think none of them has a good answer to the problem... I guess it's most probably related to the terminal, but it's hard to get all the details needed to reproduce the issue.
    – filbranden
    Oct 7, 2019 at 23:17
  • 1
    @D.BenKnoble done. I have an issue with the terminal where it removes newlines, so not possible to fix sample file. Replaced the rest with images.
    – donkey
    Oct 8, 2019 at 2:05
  • 1
    @Ge0rges I got the version info for you ;)
    – D. Ben Knoble
    Oct 8, 2019 at 2:12

1 Answer 1


Add autocmd VimEnter * set t_ut= to your vimrc file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.