[vim/vim] Clipboard provider doesn't work with `:redir` (Issue #18937)

5 views
Skip to first unread message

BenYip

unread,
Dec 15, 2025, 10:54:06 PM (21 hours ago) Dec 15
to vim/vim, Subscribed
bennyyip created an issue (vim/vim#18937)

Steps to reproduce

vim9script
g:osc52_force_avail = 1
packadd osc52
set clipmethod^=osc52

run :redir @+
return error: E475: Invalid argument: @+

"+y works. But redir doesn't.

Expected behaviour

Output redir to @+

Version of Vim

9.1.1984

Environment

Arch Linux

Logs and stack traces


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

BenYip

unread,
Dec 15, 2025, 10:54:12 PM (21 hours ago) Dec 15
to vim/vim, Subscribed
bennyyip left a comment (vim/vim#18937)

cc @64-bitman


Reply to this email directly, view it on GitHub.

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

Foxe Chen

unread,
12:56 AM (19 hours ago) 12:56 AM
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18937)

Works fine for me, did you run Vim under --clean?


Reply to this email directly, view it on GitHub.

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

BenYip

unread,
1:11 AM (19 hours ago) 1:11 AM
to vim/vim, Subscribed
bennyyip left a comment (vim/vim#18937)

It doesn't work under --clean. Maybe it's because it has no +clipboard.

vim --version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Dec 16 2025 03:21:02)
Included patches: 1-1984
Compiled by Ben Yip
Huge version without GUI.  Features included (+) or not (-):
+acl
+arabic
+autocmd
+autochdir
-autoservername
-balloon_eval
+balloon_eval_term
-browse
++builtin_terms
+byte_offset
+channel
+cindent
+clientserver
-clipboard
+clipboard_provider
+cmdline_compl
+cmdline_hist
+cmdline_info
+comments
+conceal
+cryptv
+cscope
+cursorbind
+cursorshape
+dialog_con
+diff
+digraphs
-dnd
-ebcdic
+emacs_tags
+eval
+ex_extra
+extra_search
-farsi
+file_in_path
+find_in_path
+float
+folding
-footer
+fork()
+gettext
-hangul_input
+iconv
+insert_expand
+ipv6
+job
+jumplist
+keymap
+lambda
+langmap
+libcall
+linebreak
+lispindent
+listcmds
+localmap
-lua
+menu
+mksession
+modify_fname
+mouse
-mouseshape
+mouse_dec
+mouse_gpm
-mouse_jsbterm
+mouse_netterm
+mouse_sgr
-mouse_sysmouse
+mouse_urxvt
+mouse_xterm
+multi_byte
+multi_lang
-mzscheme
+netbeans_intg
+num64
+packages
+path_extra
-perl
+persistent_undo
+popupwin
+postscript
+printer
+profile
-python
+python3/dyn
+quickfix
+reltime
+rightleft
-ruby
+scrollbind
+signs
+smartindent
+socketserver
+sodium
-sound
+spell
+startuptime
+statusline
-sun_workshop
+syntax
+tabpanel
+tag_binary
-tag_old_static
-tag_any_white
-tcl
+termguicolors
+terminal
+terminfo
+termresponse
+textobjects
+textprop
+timers
+title
-toolbar
+user_commands
+vartabs
+vertsplit
+vim9script
+viminfo
+virtualedit
+visual
+visualextra
+vreplace
-wayland
-wayland_clipboard
-wayland_focus_steal
+wildignore
+wildmenu
+windows
+writebackup
-X11
+xattr
-xfontset
-xim
-xpm
-xsmp
-xterm_clipboard
-xterm_save
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
 3rd user vimrc file: "~/.config/vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/benyip/ghq/github.com/bennyyip/aur/vim/src=/usr/src/debug/vim -flto=auto -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 
Linking: clang -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -L/usr/local/lib -o vim -lm -ltinfo -lsodium -lacl -lattr -lgpm 


Reply to this email directly, view it on GitHub.

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

Christian Brabandt

unread,
2:06 PM (6 hours ago) 2:06 PM
to vim/vim, Subscribed

Closed #18937 as completed via beeea8a.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/18937/issue_event/21600088352@github.com>

Reply all
Reply to author
Forward
0 new messages