Hi Bram and Vimmers,
I modified a document of ":q!".
Because, The following behaviors were hardly understand when I refer to the
documentation of ':q!'.
(1) Start vim, new files a.txt and b.txt is displayed in the each window.
$ vim -N -u NONE -o a.txt b.txt
(2) Modified the both buffer.
ia<Esc><C-W><C-W>ib<Esc>
(3) Buffer a.txt becomes hidden.
:only!
(4) Abandon the buffer b.txt
:q!
(But, it was not executed. Occuers E37 and E162 and buffer changes a.txt)
(5) Abandon the buffer b.txt
:q!
(But, it was not executed. Occuers E37 and E162 and buffer changes b.txt)
...Repeat (4) and (5).
Bram, Is this the intended behavior?
If Yes, Please consider attached documentation patch.
Thank you.
--
Best regards,
Hirohito Higashi (a.k.a h_east)
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff -r 9dff716fb9aa runtime/doc/editing.txt
--- a/runtime/doc/editing.txt Thu Nov 06 10:03:01 2014 +0100
+++ b/runtime/doc/editing.txt Sun Nov 09 06:39:37 2014 +0900
@@ -1080,9 +1080,11 @@
the last file in the argument list has not been
edited. See |:confirm| and 'confirm'. {not in Vi}
-:q[uit]! Quit without writing, also when visible buffers have
- changes. Does not exit when there are changed hidden
- buffers. Use ":qall!" to exit always.
+:q[uit]! Quit without writing, also when current buffers have
+ changes. Does not exit when this is the last window
+ and there are changed hidden buffers. In this case,
+ current buffer change to the changed hidden buffer.
+ Use ":qall!" to exit always.
:cq[uit] Quit always, without writing, and return an error
code. See |:cq|. Used for Manx's QuickFix mode (see