[vim/vim] Add OSC52 plugin for clipboard support (PR #18575)

98 views
Skip to first unread message

Foxe Chen

unread,
Oct 14, 2025, 10:23:14 PMOct 14
to vim/vim, Subscribed

WIP


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18575

Commit Summary

File Changes

(1 file)

Patch Links:


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

Maxim Kim

unread,
Oct 14, 2025, 10:28:29 PMOct 14
to vim/vim, Subscribed
habamax left a comment (vim/vim#18575)

Could you consider making it optional?

With location in ~/pack/dist/opt/osc52/plugin/... we should be able to enable it with packadd osc52.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3404280688@github.com>

Foxe Chen

unread,
Oct 14, 2025, 10:45:15 PMOct 14
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

Could you consider making it optional?

With location in ~/pack/dist/opt/osc52/plugin/... we should be able to enable it with packadd osc52.

Yes I planned on doing that, I'll change it later


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3404307670@github.com>

Foxe Chen

unread,
Oct 14, 2025, 11:08:13 PMOct 14
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/9ed55930fdfd0fc470b9b55f99435a833449565e/after/432ebdbb5d27cacb54b8ad9fa344a8af94e74ae0@github.com>

Foxe Chen

unread,
Oct 16, 2025, 9:27:40 PMOct 16
to vim/vim, Push

@64-bitman pushed 3 commits.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/432ebdbb5d27cacb54b8ad9fa344a8af94e74ae0/after/0e90f6d9c44a38fe68511c2ee16f14cdc2eb5492@github.com>

Foxe Chen

unread,
Oct 16, 2025, 9:29:41 PMOct 16
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/0e90f6d9c44a38fe68511c2ee16f14cdc2eb5492/after/da6afc846cd4f62d61210e794398ea944ac5dd27@github.com>

Foxe Chen

unread,
Oct 16, 2025, 9:31:11 PMOct 16
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/da6afc846cd4f62d61210e794398ea944ac5dd27/after/1978aceda8ebaed972c0abbc79cc1e527797864b@github.com>

Foxe Chen

unread,
Oct 16, 2025, 9:38:30 PMOct 16
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/1978aceda8ebaed972c0abbc79cc1e527797864b/after/f397272f7d96f93ae24ebb0e8ddb84debe0ba8dd@github.com>

Foxe Chen

unread,
Oct 16, 2025, 10:28:06 PMOct 16
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/f397272f7d96f93ae24ebb0e8ddb84debe0ba8dd/after/2b42e574c875f4ac675fbc889037e2cfbae7a405@github.com>

Foxe Chen

unread,
Oct 16, 2025, 10:29:38 PMOct 16
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/2b42e574c875f4ac675fbc889037e2cfbae7a405/after/43862cf46d2f60b05976c0c4d84c5456003a9b08@github.com>

Foxe Chen

unread,
Oct 16, 2025, 10:30:21 PMOct 16
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/43862cf46d2f60b05976c0c4d84c5456003a9b08/after/4b98bdbbf73786cdf60f0bf9609c7c63b1a75de1@github.com>

Foxe Chen

unread,
Oct 16, 2025, 10:32:31 PMOct 16
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

Could anyone test in MacOS? I have added documentation on how to use


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3413542974@github.com>

Foxe Chen

unread,
Oct 17, 2025, 7:50:56 AMOct 17
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/4b98bdbbf73786cdf60f0bf9609c7c63b1a75de1/after/af1c7cedd89f25a97420c3cacf8461738c4c4985@github.com>

Foxe Chen

unread,
Oct 17, 2025, 5:56:46 PMOct 17
to vim/vim, Push

@64-bitman pushed 6 commits.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/af1c7cedd89f25a97420c3cacf8461738c4c4985/after/63bb682e0eb30ac32f43760e9f3e26bc48374293@github.com>

Foxe Chen

unread,
Oct 18, 2025, 12:58:36 AMOct 18
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 3b2c050 make available function be autoloaded

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/63bb682e0eb30ac32f43760e9f3e26bc48374293/after/3b2c0500ba470e62ca124c29cf2000952eec882e@github.com>

Foxe Chen

unread,
Oct 18, 2025, 1:00:59 AMOct 18
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

I think this is ready. I didn't add tests because this plugin is very simple anyways + I can't figure out a way to actually test the plugin


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3417810265@github.com>

Christian Brabandt

unread,
Oct 18, 2025, 10:44:05 AMOct 18
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18575)

did someone try it out? Ping @peterwu who requested this functionality in #14995


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3418477171@github.com>

Peter Wu

unread,
Oct 18, 2025, 12:14:12 PMOct 18
to vim/vim, Subscribed
peterwu left a comment (vim/vim#18575)

I tested on my MacBook and it didn't seem to work.

  1. compiled from https://github.com/64-bitman/vim/tree/osc52_plugin
  2. make
  3. make install
  4. ~/.vimrc
packadd osc52
set clipmethod^=osc52

This will print ^[[?1;2c when launching vim.
5. ~/.vimrc

packadd osc52
g:osc52_force_avail = true
set clipmethod^=osc52

This doesn't print anything when launching vim.

  1. If I do "+yy, the content is not copied to the + register.
  2. If I do "*yy, thee content is copied to the * register but not available in the system clipboard.
  3. The same happens to "*p as it does not paste what's in the system clipboard to the vim session.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3418621208@github.com>

Foxe Chen

unread,
Oct 18, 2025, 2:34:52 PMOct 18
to vim/vim, Push

@64-bitman pushed 2 commits.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/3b2c0500ba470e62ca124c29cf2000952eec882e/after/7bfda387af232b65cd7a1b773fab393b128faad5@github.com>

Foxe Chen

unread,
Oct 18, 2025, 2:35:02 PMOct 18
to vim/vim, Push

@64-bitman pushed 0 commits.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/7bfda387af232b65cd7a1b773fab393b128faad5/after/3b2c0500ba470e62ca124c29cf2000952eec882e@github.com>

Foxe Chen

unread,
Oct 18, 2025, 2:43:53 PMOct 18
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/3b2c0500ba470e62ca124c29cf2000952eec882e/after/ec52fc8e8379372b16f066ceeecf2ff57229cf94@github.com>

Foxe Chen

unread,
Oct 18, 2025, 2:47:30 PMOct 18
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/ec52fc8e8379372b16f066ceeecf2ff57229cf94/after/0315858bedd890a5b3d5fd48910e8cb703640fd8@github.com>

Foxe Chen

unread,
Oct 18, 2025, 2:48:15 PMOct 18
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/0315858bedd890a5b3d5fd48910e8cb703640fd8/after/0f0c30f74d3c917a3602ff2367ac9e325c9b05c2@github.com>

Foxe Chen

unread,
Oct 18, 2025, 2:54:24 PMOct 18
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

In all cases, ommiting g:osc52_force_avail = true results in some escape chars printed on the terminal before vim shows up.

That is likely from Vim trying to detect if the terminal supports OSC 52, I've made it now that is prints a message while waiting for a response (which may never come)

Ghostty prints ^[[?62;22;52c while kitty prints ^[[?62;52c. And when this happens, the OSC52 function does not work.

Can you elaborate on this? The plugin should match the '52' in those responses and enable the osc52 functionality. Or is it just printing characters to the screen? If so can you try the latest commit?

The following is for my test on Terminal app but the same steps were performed for Ghostty and kitty.

  1. compiled from https://github.com/64-bitman/vim/tree/osc52_plugin
  2. make
  3. make install
  4. ~/.vimrc
packadd osc52
set clipmethod^=osc52

This will print ^[[?1;2c when launching vim. 5. ~/.vimrc

packadd osc52
g:osc52_force_avail = true
set clipmethod^=osc52

This doesn't print anything when launching vim.

  1. If I do "+yy, the content is not copied to the + register.
  2. If I do "*yy, thee content is copied to the * register but not available in the system clipboard.
  3. The same happens to "*p as it does not paste what's in the system clipboard to the vim session.

It seems that that the MacOS default terminal does not support OSC52, could you show the value of v:clipmethod? It looks like iTerm supports OSC 52 so could you try that? Thanks.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3418739668@github.com>

Peter Wu

unread,
Oct 18, 2025, 4:20:18 PMOct 18
to vim/vim, Subscribed
peterwu left a comment (vim/vim#18575)

I did a git pull off the osc52_plugin, recompiled and discovered a few things.

If g:osc52_force_avail = true is not set in vimrc, now it prints something like this:

Waiting for OSC 52 response...^[[?64;1;2;4;6;17;18;21;22c

By that, I mean:

  1. put the following in vimrc
packadd osc52
set clipmethod^=osc52
  1. run vim
  2. vim will print these characters right after like this:
$ vim
Waiting for OSC 52 response...^[[?64;1;2;4;6;17;18;21;22c
  1. at this time, the vim session seems to wait for ever until I hit ENTER
  2. after I hit ENTER, the main vim session shows up but at the bottom it displays a similar message:
~                type  :help version9<Enter>   for version infoWaiting for OSC 52 response...^[[?64;1;2;4;6;17;18;21;22c

that's right: the Waiting message follows directly after the initial startup message
6. at this stage, I can't fire vim commands, such as i, d, y, p, etc. These keys will be printed right after the Waiting message
7. This stops when I hit ENTER again
8. Now, I use the vim session as usual

So, imo, the updated commits made things even worse. Before the chars were displayed at step3 but after I hit ENTER, it let me use vim without step 6.

I also tested iTerm2, v3.6.4. If I followed the instructions to disable clipboard access, I can copy content to clipboard but cannot paste content from clipboard. I'm not familar with iTerm2 so maybe I didn't figure out a setting somewhere to enable paste.

Another thing that I noticed:

On my MacBook Air running 26.0.1, I was able to compile from source without any issues;
On my MacBook Pro running 26.0.1, I couldn't compile the https://github.com/64-bitman/vim.git (neither master nor osc52_plugin) but I could compile https://github.com/vim/vim.git with no issues.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3418791098@github.com>

Yamagi

unread,
Oct 18, 2025, 4:21:52 PMOct 18
to vim/vim, Subscribed
Yamagi left a comment (vim/vim#18575)

I gave it a try with Alacritty under Linux and both copy and paste are working fine. Just a small nitpicks: I'm also seeing Waiting for OSC 52 response...^[[?6c. The message added in the last commits makes clear what's going on, but what about adding a hint that the response may never come and pressing Return forces Vim to continue? Also, why do I need press Return four times until Vim starts? :messages is empty.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3418791831@github.com>

alex-huff

unread,
Oct 19, 2025, 1:14:36 PMOct 19
to vim/vim, Subscribed
alex-huff left a comment (vim/vim#18575)

I experience the same issues. However, if I manually run

:packadd osc52
:set clipmethod^=osc52

after vim has already loaded it works as expected. It seems the primary device attributes event isn't get triggered specifically in the context that .vimrc is loaded, causing Available() to hang.

One more thing. When pasting a clipboard that has no newlines, it seems a newline is inserted at the end.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3419817171@github.com>

Foxe Chen

unread,
Oct 29, 2025, 12:31:36 PMOct 29
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

Currently waiting for these two PRs to be merged. #18660 #18642


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3462490775@github.com>

Foxe Chen

unread,
Dec 11, 2025, 5:31:17 PM (5 days ago) Dec 11
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/604b2f6b91df8930d29a1d6a78567aa1b148c98f/after/77ed68ca73ca1a7472780b5c3d7f0d382d1f8944@github.com>

Foxe Chen

unread,
Dec 11, 2025, 6:05:02 PM (5 days ago) Dec 11
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 1f820c5 update docs and send msg when waiting

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/77ed68ca73ca1a7472780b5c3d7f0d382d1f8944/after/1f820c516a8ae2dc5a2cbb99001842724c53b32c@github.com>

Foxe Chen

unread,
Dec 11, 2025, 6:06:45 PM (5 days ago) Dec 11
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 417d0a6 update docs and send msg when waiting

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/1f820c516a8ae2dc5a2cbb99001842724c53b32c/after/417d0a69e809c3f3bb3fcdf2059fc4991c34a99c@github.com>

Foxe Chen

unread,
Dec 11, 2025, 6:18:08 PM (5 days ago) Dec 11
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/417d0a69e809c3f3bb3fcdf2059fc4991c34a99c/after/d1f30c710e5eff4dcd305764552fe8ad01dede04@github.com>

Christian Brabandt

unread,
Dec 12, 2025, 3:07:31 AM (5 days ago) Dec 12
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In src/term.c:

> @@ -5683,7 +5683,7 @@ handle_csi(
 					(char_u *)"da1", NULL, FALSE, curbuf);
 
 	key_name[0] = (int)KS_EXTRA;
-	key_name[1] = (int)KE_IGNORE;
+	key_name[1] = (int)KE_CSI;

this change looks suspicious. Why is this needed?


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/pull/18575/review/3570767134@github.com>

Christian Brabandt

unread,
Dec 12, 2025, 3:07:52 AM (5 days ago) Dec 12
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18575)

thanks. Are you able to create a simple test for this plugin?


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

Foxe Chen

unread,
Dec 12, 2025, 9:42:27 AM (4 days ago) Dec 12
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

thanks. Are you able to create a simple test for this plugin?

I plan to


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3646745110@github.com>

Foxe Chen

unread,
Dec 12, 2025, 9:44:21 AM (4 days ago) Dec 12
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In src/term.c:

> @@ -5683,7 +5683,7 @@ handle_csi(
 					(char_u *)"da1", NULL, FALSE, curbuf);
 
 	key_name[0] = (int)KS_EXTRA;
-	key_name[1] = (int)KE_IGNORE;
+	key_name[1] = (int)KE_CSI;

So that the we can wait for a da1 terminal sequence response using getchar.


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/pull/18575/review/3572100671@github.com>

Foxe Chen

unread,
Dec 12, 2025, 5:46:48 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 12 commits.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/d1f30c710e5eff4dcd305764552fe8ad01dede04/after/b7eb04f97d51e8a5790c6b024911ac7a099ccf27@github.com>

Foxe Chen

unread,
Dec 12, 2025, 5:49:25 PM (4 days ago) Dec 12
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In src/term.c:

> @@ -5683,7 +5683,7 @@ handle_csi(
 					(char_u *)"da1", NULL, FALSE, curbuf);
 
 	key_name[0] = (int)KS_EXTRA;
-	key_name[1] = (int)KE_IGNORE;
+	key_name[1] = (int)KE_CSI;

Actually I've decided to go another way, so this change isn't necessary anymore


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/pull/18575/review/3573841471@github.com>

Foxe Chen

unread,
Dec 12, 2025, 6:11:42 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/b7eb04f97d51e8a5790c6b024911ac7a099ccf27/after/d690b214f5cce62f66161af0bee90950ec75d8d1@github.com>

Foxe Chen

unread,
Dec 12, 2025, 6:15:08 PM (4 days ago) Dec 12
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

@peterwu @alex-huff @Yamagi Can you guys test out the plugin again? Note that on Windows terminal in Powershell (and other conpty shells), It seems that Vim cannot detect OSC 52 support, so you must force enable it. Thanks.


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

Foxe Chen

unread,
Dec 12, 2025, 7:18:19 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 7c7ca31 add tests and fix some bugs

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/d690b214f5cce62f66161af0bee90950ec75d8d1/after/7c7ca316b4d7d5f4002f4640ce364b95d09f24ba@github.com>

Foxe Chen

unread,
Dec 12, 2025, 7:19:36 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 9b0313e add tests and fix some bugs

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/7c7ca316b4d7d5f4002f4640ce364b95d09f24ba/after/9b0313e88aa1d9cb832e9f15893f47f37368fc2b@github.com>

Foxe Chen

unread,
Dec 12, 2025, 7:35:01 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/9b0313e88aa1d9cb832e9f15893f47f37368fc2b/after/d05d939c3b0da5f0ca63730c1d242a16b1ad334e@github.com>

Foxe Chen

unread,
Dec 12, 2025, 7:35:14 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/d05d939c3b0da5f0ca63730c1d242a16b1ad334e/after/211c389c45daf367812c28aac541f30663aaf2f1@github.com>

Foxe Chen

unread,
Dec 12, 2025, 7:36:25 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/211c389c45daf367812c28aac541f30663aaf2f1/after/583cc883b2fa5fe14ae73d501e621bb4a4d12110@github.com>

Foxe Chen

unread,
Dec 12, 2025, 7:41:12 PM (4 days ago) Dec 12
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/583cc883b2fa5fe14ae73d501e621bb4a4d12110/after/de3dfe39e603a3a07ef3f4ddbb7393d6ed232200@github.com>

Yamagi

unread,
Dec 13, 2025, 5:19:53 AM (3 days ago) Dec 13
to vim/vim, Subscribed
Yamagi left a comment (vim/vim#18575)

I gave it a try under Alacritty and tmux running in Alacritty. Both require g:osc52_force_avail = true, otherwise OSC52 support isn't detected. I guess this is caused by by both Alacritty and tmux not including OSC52 in their DA1 response. The doku is clear on it, so this shouldn't be a problem.

tmux just works, both for copying and for pasting.

Alacritty is a little bit strage. The moment I press " the message '' appears in the status line. I need to press CTRL-C two times to ge rid of it. OSC52 isn't working afterwards, with is kind of excepted given that the DA1 query was never answered. However the old oscyank plugin - https://github.com/ojroques/vim-oscyank - which doesn't rely on DA1 just works fine.

I would suggest that setting g:osc52_force_avail = true prevent the plugin from ever sending a DA1 query.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3649185951@github.com>

Foxe Chen

unread,
Dec 13, 2025, 7:26:48 PM (3 days ago) Dec 13
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

Alacritty is a little bit strage. The moment I press " the message 'Waiting for OSC52 response... Press CTRL-C to quit' appears in the status line. I need to press CTRL-C two times to ge rid of it. OSC52 isn't working afterwards, with is kind of excepted given that the DA1 query was never answered. However the old oscyank plugin - https://github.com/ojroques/vim-oscyank - which doesn't rely on DA1 just works fine.

Can you show a video of that happening? I cannot reproduce that in Alacritty. Thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3649973920@github.com>

Foxe Chen

unread,
Dec 13, 2025, 7:27:05 PM (3 days ago) Dec 13
to vim/vim, Push

@64-bitman pushed 17 commits.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/de3dfe39e603a3a07ef3f4ddbb7393d6ed232200/after/1bad756e2a303d69d76b4fccb8d7e00752d35fc9@github.com>

Foxe Chen

unread,
Dec 13, 2025, 7:55:28 PM (3 days ago) Dec 13
to vim/vim, Push

@64-bitman pushed 2 commits.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/1bad756e2a303d69d76b4fccb8d7e00752d35fc9/after/d0421f5d016f60ca27ff11150d7e4146ed8e42ee@github.com>

Foxe Chen

unread,
Dec 13, 2025, 8:44:02 PM (3 days ago) Dec 13
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/d0421f5d016f60ca27ff11150d7e4146ed8e42ee/after/4cd959a5b5d46e8cbcbdbf728cf102bab2ef9902@github.com>

Foxe Chen

unread,
Dec 13, 2025, 8:51:47 PM (3 days ago) Dec 13
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/4cd959a5b5d46e8cbcbdbf728cf102bab2ef9902/after/0d7efed5bc137360eb5c0290ea81732643e17a44@github.com>

Foxe Chen

unread,
Dec 13, 2025, 8:55:50 PM (3 days ago) Dec 13
to vim/vim, Push

@64-bitman pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/before/0d7efed5bc137360eb5c0290ea81732643e17a44/after/3ac53ceae3a57d8e973924d290b0a0744ab94127@github.com>

Yamagi

unread,
Dec 14, 2025, 2:48:02 AM (3 days ago) Dec 14
to vim/vim, Subscribed
Yamagi left a comment (vim/vim#18575)

Can you show a video of that happening using the latest commit in this PR? I cannot reproduce that in Alacritty. Thanks

After some fiddling around I realized that it's caused by peekaboo: https://github.com/junegunn/vim-peekaboo Removing the plugin make thinks work.

Bildschirmaufnahme_20251214_084525.webm


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3650440204@github.com>

Foxe Chen

unread,
Dec 15, 2025, 11:46:43 AM (yesterday) Dec 15
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

I think this is ready


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3656633769@github.com>

Christian Brabandt

unread,
Dec 15, 2025, 3:54:21 PM (yesterday) Dec 15
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18575)

Thanks, note the test fails on the FreeBSD CI runner, so I have disabled it for BSD for now. I suppose the terminal in the CI does not support OSC52?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3657564636@github.com>

Christian Brabandt

unread,
Dec 15, 2025, 3:54:45 PM (yesterday) Dec 15
to vim/vim, Subscribed

Closed #18575 via 02b8ec7.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/issue_event/21576500908@github.com>

Foxe Chen

unread,
Dec 15, 2025, 4:15:46 PM (yesterday) Dec 15
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18575)

Thanks, note the test fails on the FreeBSD CI runner, so I have disabled it for BSD for now. I suppose the terminal in the CI does not support OSC52?

It shouldn't be failing. The macos test seems to be failing as well. I will create a PR to fix this soon.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18575/c3657635744@github.com>

Reply all
Reply to author
Forward
0 new messages