Thank you.
--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/HCNPrkw9Wg8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Check out :help views-sessions
There are some session manager plugins around on vim.org that do exactly what you want. I personally prefer the "most recently used files" though -- like (shameless plug) tmru_vim.
HTH
Why are you using :q if you want Vim to stay open? Maybe :bd instead would suit your purposes better?
I didn't explain very well. This should clarify:
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?"
Some session managers give such a warning message.
But I don't want a session manager, I just the warning message.
I use ":source .fileList" to open groups of files that are frequently opened.
But that doesn't help when I close Vim with a one-off group of buffers.