[vim/vim] feat: auto-save before :term when 'autowrite' is set (PR #19855)

4 views
Skip to first unread message

rendcrx

unread,
Mar 28, 2026, 11:06:17 PM (7 hours ago) Mar 28
to vim/vim, Subscribed

This feature makes sense to add because the use case of the :term command is very similar to :! or :make, both of which automatically write all modified buffers when the autowrite option is set.

Existing autocmd mechanisms such as autocmd TerminalOpen * wa cannot properly fulfill this need, as they save files only after the terminal has started.

Moreover, this change is very small and minimally invasive.


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

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

Commit Summary

  • 266075a feat: auto-save before :term when 'autowrite' is set

File Changes

(3 files)

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

Reply all
Reply to author
Forward
0 new messages