[vim/vim] Add a setting that restricts the size of the .swp file (Issue #12706)

14 views
Skip to first unread message

stm32repo

unread,
Jul 25, 2023, 4:01:16 AM7/25/23
to vim/vim, Subscribed

When I open large files, I would prefer not to create .swp files. Is there a way in Vim to limit the creation of .swp files based on their size?


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

Christian Brabandt

unread,
Jul 25, 2023, 4:06:10 AM7/25/23
to vim/vim, Subscribed

you should be able to do this using some autocommands, that check the size of the file and disable swapfile setting.


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

stm32repo

unread,
Jul 25, 2023, 4:16:14 AM7/25/23
to vim/vim, Subscribed

Thank you. I will try to deal with autocommands.


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

Christian Brabandt

unread,
Jul 25, 2023, 4:39:12 AM7/25/23
to vim/vim, Subscribed

Closed #12706 as completed.


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/12706/issue_event/9908765863@github.com>

Reply all
Reply to author
Forward
0 new messages