On Thu, Oct 12, 2023 at 12:40:15PM +0200, Peter Hofmann wrote:
> 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
> 

Hi Peter,

No worries, I'll leave it as is unless many people will complain.

I don't use vim.

-- 
Kind regards,
Hiltjo

Reply via email to