[vim/vim] "pp" shown at the beginning of the buffer when opening a new file (Issue #19852)

12 views
Skip to first unread message

Dorian Marié

unread,
Mar 28, 2026, 10:34:40 AM (20 hours ago) Mar 28
to vim/vim, Subscribed
dorianmariecom created an issue (vim/vim#19852)

Steps to reproduce

  1. have vim 9.2 installed (via brew)
  2. run vim -u DEFAULTS --noplugin /tmp/test
  3. see pp at the beginning of the buffer

Expected behaviour

empty file instead of "pp"

Version of Vim

9.2.250

Environment

operating system: macos tahoe 26.3.1
terminal: terminal.app Version 2.15 (466)
~> echo $TERM
xterm-256color
i use fish version 4.6.0

Screenshot.2026-03-28.at.15.32.01.png (view on web)

downgrading to 9.1 solved it

Logs and stack traces

chdir(/tmp)
fchdir() to previous dir
chdir(/Users/dorianmariefr)
fchdir() to previous dir
sourcing "/Users/dorianmariefr/.vimrc"
chdir(/Users/dorianmariefr/.vim/autoload)
fchdir() to previous dir
line 24: sourcing "/Users/dorianmariefr/.vim/autoload/plug.vim"
finished sourcing /Users/dorianmariefr/.vim/autoload/plug.vim
continuing in /Users/dorianmariefr/.vimrc
chdir(/opt/homebrew/share/vim/vim92)
fchdir() to previous dir
line 83: sourcing "/opt/homebrew/share/vim/vim92/filetype.vim"
not found in 'runtimepath': "ftdetect/*.vim"
finished sourcing /opt/homebrew/share/vim/vim92/filetype.vim
continuing in plug#end
chdir(/opt/homebrew/share/vim/vim92)
fchdir() to previous dir
line 83: sourcing "/opt/homebrew/share/vim/vim92/ftplugin.vim"
finished sourcing /opt/homebrew/share/vim/vim92/ftplugin.vim
continuing in plug#end
chdir(/opt/homebrew/share/vim/vim92)
fchdir() to previous dir
line 83: sourcing "/opt/homebrew/share/vim/vim92/indent.vim"
finished sourcing /opt/homebrew/share/vim/vim92/indent.vim
continuing in plug#end
chdir(/opt/homebrew/share/vim/vim92/syntax)
fchdir() to previous dir
line 86: sourcing "/opt/homebrew/share/vim/vim92/syntax/syntax.vim"
chdir(/opt/homebrew/share/vim/vim92/syntax)
fchdir() to previous dir
line 20: sourcing "/opt/homebrew/share/vim/vim92/syntax/synload.vim"
chdir(/opt/homebrew/share/vim/vim92/syntax)
fchdir() to previous dir
line 22: sourcing "/opt/homebrew/share/vim/vim92/syntax/syncolor.vim"
chdir(/opt/homebrew/share/vim/vim92/colors/lists)
fchdir() to previous dir
line 57: sourcing "/opt/homebrew/share/vim/vim92/colors/lists/default.vim"
finished sourcing /opt/homebrew/share/vim/vim92/colors/lists/default.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/syncolor.vim
finished sourcing /opt/homebrew/share/vim/vim92/syntax/syncolor.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/synload.vim
finished sourcing /opt/homebrew/share/vim/vim92/syntax/synload.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/syntax.vim
Executing FileType Autocommands for "*"
autocommand 0verbose exe "set syntax=" . expand("<amatch>")

finished sourcing /opt/homebrew/share/vim/vim92/syntax/syntax.vim
continuing in plug#end
chdir(/opt/homebrew/share/vim/vim92/syntax)
fchdir() to previous dir
line 27: sourcing "/opt/homebrew/share/vim/vim92/syntax/syntax.vim"
chdir(/opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax)
fchdir() to previous dir
line 16: sourcing "/opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/nosyntax.vim"
Executing BufEnter Autocommands for "*"
autocommand syn clear

autocommand if exists("b:current_syntax") | unlet b:current_syntax | endif

finished sourcing /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/nosyntax.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/syntax.vim
chdir(/opt/homebrew/share/vim/vim92/syntax)
fchdir() to previous dir
line 20: sourcing "/opt/homebrew/share/vim/vim92/syntax/synload.vim"
chdir(/opt/homebrew/share/vim/vim92/syntax)
fchdir() to previous dir
line 22: sourcing "/opt/homebrew/share/vim/vim92/syntax/syncolor.vim"
finished sourcing /opt/homebrew/share/vim/vim92/syntax/syncolor.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/synload.vim
finished sourcing /opt/homebrew/share/vim/vim92/syntax/synload.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/syntax/syntax.vim
Executing FileType Autocommands for "*"
autocommand 0verbose exe "set syntax=" . expand("<amatch>")

finished sourcing /opt/homebrew/share/vim/vim92/syntax/syntax.vim
continuing in /Users/dorianmariefr/.vimrc
finished sourcing /Users/dorianmariefr/.vimrc
not found in 'packpath': "pack/*/start/*"
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/getscriptPlugin.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/getscriptPlugin.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/gzip.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/gzip.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/logiPat.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/logiPat.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/manpager.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/manpager.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/matchparen.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/matchparen.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/netrwPlugin.vim"
not found in 'packpath': "pack/*/start/netrw"
chdir(/opt/homebrew/share/vim/vim92)
fchdir() to previous dir
chdir(/Users/dorianmariefr/.vim)
fchdir() to previous dir
chdir(/opt/homebrew/share/vim/vimfiles)
fchdir() to previous dir
chdir(/opt/homebrew/share/vim/vim92)
fchdir() to previous dir
chdir(/opt/homebrew/share/vim/vim92/pack/dist/opt)
fchdir() to previous dir
chdir(/opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/pack/dist/opt/netrw/plugin)
fchdir() to previous dir
line 7: sourcing "/opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/pack/dist/opt/netrw/plugin/netrwPlugin.vim"
finished sourcing /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/pack/dist/opt/netrw/plugin/netrwPlugin.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/plugin/netrwPlugin.vim
finished sourcing /opt/homebrew/share/vim/vim92/plugin/netrwPlugin.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/openPlugin.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/openPlugin.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/rrhelper.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/rrhelper.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/spellfile.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/spellfile.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/tarPlugin.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/tarPlugin.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/tohtml.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/tohtml.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/tutor.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/tutor.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/vimballPlugin.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/vimballPlugin.vim
chdir(/opt/homebrew/share/vim/vim92/plugin)
fchdir() to previous dir
sourcing "/opt/homebrew/share/vim/vim92/plugin/zipPlugin.vim"
finished sourcing /opt/homebrew/share/vim/vim92/plugin/zipPlugin.vim
not found in 'packpath': "pack/*/start/*"
not found in 'runtimepath': "plugin/**/*.vim"
Reading viminfo file "/Users/dorianmariefr/.viminfo" info oldfiles
"/tmp/test" [New]
Reading viminfo file "/Users/dorianmariefr/.viminfo" marks
Executing BufNewFile Autocommands for "*"
autocommand call dist#ft#DetectFromName()

chdir(/opt/homebrew/share/vim/vim92/autoload/dist)
fchdir() to previous dir
line 0: sourcing "/opt/homebrew/share/vim/vim92/autoload/dist/ft.vim"
finished sourcing /opt/homebrew/share/vim/vim92/autoload/dist/ft.vim
continuing in BufNewFile Autocommands for "*"
Executing BufNewFile Autocommands for "*"
autocommand call dist#ft#DetectFromExt()

autocommand if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat | runtime! scripts.vim | endif

chdir(/opt/homebrew/share/vim/vim92)
fchdir() to previous dir
line 0: sourcing "/opt/homebrew/share/vim/vim92/scripts.vim"
chdir(/opt/homebrew/share/vim/vim92/autoload/dist)
fchdir() to previous dir
line 27: sourcing "/opt/homebrew/share/vim/vim92/autoload/dist/script.vim"
finished sourcing /opt/homebrew/share/vim/vim92/autoload/dist/script.vim
continuing in /opt/homebrew/Cellar/vim/9.2.0200/share/vim/vim92/scripts.vim
finished sourcing /opt/homebrew/share/vim/vim92/scripts.vim
continuing in BufNewFile Autocommands for "*"
Executing BufNewFile Autocommands for "*"
autocommand if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat    && (expand("<amatch>") =~# '\.conf$'^I|| getline(1) =~ '^#' || getline(2) =~ '^#'^I|| getline(3) =~ '^#' || getline(4) =~ '^#'^I|| getline(5) =~ '^#') |   setf FALLBACK conf | endif

Executing BufWinEnter Autocommands for "*"
autocommand autocmd SafeState * ++once call s:Highlight_Matching_Pair()

Executing BufEnter Autocommands for "*"
autocommand sil call s:LocalBrowse(expand("<amatch>"))

Executing VimEnter Autocommands for "*"
autocommand sil call s:VimEnter(expand("<amatch>"))

Executing CursorMoved Autocommands for "*"
autocommand call s:Highlight_Matching_Pair()

Executing SafeState Autocommands for "*"
autocommand call s:Highlight_Matching_Pair()


Writing viminfo file "/Users/dorianmariefr/.viminfo"


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19852@github.com>

xiote

unread,
Mar 28, 2026, 4:17:00 PM (14 hours ago) Mar 28
to vim/vim, Subscribed
xiote left a comment (vim/vim#19852)

me to

  • Vim: 9.2.250 (Homebrew, /opt/homebrew/bin/vim)
  • OS: macOS Tahoe (Darwin 25.4.0), Apple Silicon (arm64), version 26.4(25E246)
  • Terminal: Apple Terminal.app (TERM=xterm-256color), version 2.15(470)
  • Shell: zsh

Reproduced with:

  • vim --clean
  • vim -u DEFAULTS --noplugin
  • TERM=screen-256color vim --clean
  • TERM=nsterm-256color vim --clean

Only TERM=dumb avoids the issue.

-w capture shows two KE_OSC (0x80 0xfd 0x6d) events injected at startup.


Reply to this email directly, view it on GitHub, or unsubscribe.

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

julio-b

unread,
Mar 28, 2026, 8:02:04 PM (10 hours ago) Mar 28
to vim/vim, Subscribed
julio-b left a comment (vim/vim#19852)

I can reproduce on FreeBSD 15.0 console

Screenshot_freebsd15.0.png (view on web)


Reply to this email directly, view it on GitHub, or unsubscribe.

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

Foxe Chen

unread,
Mar 28, 2026, 8:05:59 PM (10 hours ago) Mar 28
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19852)

Did this start happening recently? If so, can you possibly try using git bisect to find the bad commit? Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.

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

julio-b

unread,
Mar 28, 2026, 8:11:39 PM (10 hours ago) Mar 28
to vim/vim, Subscribed
julio-b left a comment (vim/vim#19852)

bisected to v9.2.0200 (1da42ee)
Reverting this commit fixes the issue for me.


Reply to this email directly, view it on GitHub, or unsubscribe.

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

Foxe Chen

unread,
Mar 28, 2026, 9:40:39 PM (9 hours ago) Mar 28
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19852)

bisected to v9.2.0200 (1da42ee) Reverting this commit fixes the issue for me.

does this patch fix your issue?

diff --git a/src/main.c b/src/main.c
index b5f542a49..a0d1aa6a0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -873,6 +873,11 @@ vim_main2(void)

     // Must come before the may_req_ calls.
     starting = 0;
+
+    // Same reason for termresponse, don't want the terminal sending out the
+    // DECRPM response after Vim has exited. Might also put characters on the
+    // screen, so do it before redrawing.
+    send_decrqm_modes();

 # if defined(FEAT_TERMRESPONSE)
     // Must be done before redrawing, puts a few characters on the screen.
@@ -893,9 +898,6 @@ vim_main2(void)

     may_req_bg_color();
 # endif
-    // Same reason for termresponse, don't want the terminal sending out the
-    // DECRPM response after Vim has exited.
-    send_decrqm_modes();

     // start in insert mode
     if (p_im)


Reply to this email directly, view it on GitHub, or unsubscribe.

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

Reply all
Reply to author
Forward
0 new messages