Monday, December 7, 2015

Re: Unintentionally closing Vim with many buffers open

Hi wolfv!

On So, 06 Dez 2015, wolfv wrote:

> I usually work with one primary Vim open with multiple files in the
> buffers list. Sometimes I will also temporarily open a few text files
> from the file manager, each file opened in its own Vim. Then I quickly
> close all the temporary Vims by clicking the x in the top-right
> corner. But sometimes I unintentionally close the primary Vim with the
> many files in the buffers list. Then I have to reopen Vim and reopen
> all the files I was working on. Is there a way to stop me from
> unintentionally closing Vim when the buffer list contains multiple
> files, like a configuration or plugin that prompts "Multiple files in
> buffers list, are you sure you want to close Vim?"

Just always keep a modified buffer around. This can possibly be a hidden
scratch buffer, whose sole purpose is to prevent a quick exit.


Best,
Christian
--
Wenn der moderne Mensch die Tiere, deren er sich als Nahrung bedient,
selbst töten müsste, würde die Anzahl der Pflanzenesser ins
Ungemessene steigen.
-- Christian Morgenstern

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: