Re: [hackers] [st][PATCH] Add terminfo entries for bracketed paste mode
It has been brought to my attention that this patch breaks pasting text
in older versions of Vim, e.g. the ones coming with OpenBSD 7.2 or
Ubuntu 22.04. The ncurses terminfo db mentions that Vim 9.0.1117 or
newer is needed.
IIUC, old Vim doesn't read PS/PE from terminfo but it does read BE/BD,
so it gets totally confused. (When you paste something, st sends PS but
Vim doesn't expect it -- and the first character of PS is '\e', so Vim
switches back from insert mode to normal mode, and then chaos ensues.)
I guess you might want to revert that patch and we can try again in a
couple of years. Sorry.
If you keep the patch, then bracketed paste mode works out-of-the-box
for users of newer Vim versions, but users of older Vim versions must
fix this situation in their .vimrc, for example by specifying the
missing sequences:
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"
Best regards,
Peter
Received on Thu Oct 12 2023 - 12:40:15 CEST
This archive was generated by hypermail 2.3.0
: Thu Oct 12 2023 - 12:48:35 CEST