[vim/vim] Introduce `TextPut` event (Issue #18701)

16 views
Skip to first unread message

Yochem van Rosmalen

unread,
Nov 8, 2025, 11:27:58 AM11/8/25
to vim/vim, Subscribed
yochem created an issue (vim/vim#18701)

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
It is difficult to perform an action after pasting text. Analogous to how TextChanged exists for every change in the file and TextYankPost for after yanking text.

Describe the solution you'd like
I want to format (gq) just-pasted text or quickly visually select it.

Describe alternatives you've considered
I currently use nnoremap gp '[v'] to visually select text after pasting (similar to gv). To simulate formatting after pasting you can use the TextChanged event, but it fires too often. In Nvim I've used the nvim_paste handler, but that only fires after external pastes (cmd+v or ctrl+shift+v).

Additional context
More context: neovim/neovim#36472


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/18701@github.com>

Foxe Chen

unread,
Nov 9, 2025, 3:49:12 PM11/9/25
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#18701)

I think this issue might interest you


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/18701/3508821689@github.com>

zeertzjq

unread,
Nov 9, 2025, 5:43:01 PM11/9/25
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#18701)

A put can be from the expression register as well


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/18701/3508904540@github.com>

Christian Brabandt

unread,
May 10, 2026, 3:19:06 PM (21 hours ago) May 10
to vim/vim, Subscribed

Closed #18701 as completed via e0781bd.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/18701/issue_event/25357707192@github.com>

Reply all
Reply to author
Forward
0 new messages