I've not had problems with bracketed-paste myself, zsh in rxvt-unicode with vile has worked fine for me: I get bracketed paste at the command-line (pastes show up in reverse video, and newlines are not interpreted until you actually hit enter), and vile doesn't get sent the escape characters. vile in xterm also seems fine.
I *can* intentionally break vile, by executing: :!printf "\e[?2004h" after which the escape characters turn up when pasting in vile. One kludge you could consider if you're having the issue is to just have vile eat the sequences. I couldn't work out how to map! to an empty string, but adding these to .vilerc seems to work OK for my limited testing: map! ^[[200~ ^[a map! ^[[201~ ^[a Those ^[ sequences are obviously a literal escape char. --bod On Sun, 9 Feb 2025 at 06:39, Paul Fox <[email protected]> wrote: > Resurrecting an old thread, because I've once again been bitten by > the bracketed paste idiocy. > > thomas wrote: > > On Mon, Oct 28, 2024 at 04:57:43PM +0100, Steffen Nurpmeso wrote: > > > Chris Green wrote: > > > |> I have a peculiar problem when pasting text into vile. > ... > > > > > > Does vile support bracketed paste mode? Doing a > > > > That could be a problem, e.g., if one's running some shell (or script) > > which turns it on and doesn't bother to turn it off when running > commands. > > Several times recently some shell or application on one of the many > hosts I ssh to has enabled bracketed paste, and it's usually just > before I start composing an email message into which I want to paste > text, and I'm prevent from making any progress at all because the > brackets make vile go bonkers and trash my To line until I figure out > how to get a copy of the paste from some other source (usually using > "cat > file" as an intermediary. > > And figuring out who enabled bracketed paste? Impossible. > > All I want is for it to go away, forever. The alternative is that every > program I run on every machine I use implements it perfectly. And we know > how likely that is. > > So: can vile please either ignore the paste brackets, or implement them? > > Am I being unreasonable? Tom -- clearly you must have an understanding > of how it should all work. Above, you said: "which turns it on and > doesn't bother to turn it off when running commands." Are you implying > that shells turn bracketed paste on and off continuously, before and after > every prompt? > > paul > =---------------------- > paul fox, [email protected] (arlington, ma, where it's 34.4 > degrees) > > >
