hsitz / VimOrganizer

VimOrganizer is partly a clone of Emacs' Org-mode, and partly a front end to Org-mode itself. Do Org in Vim.
http://vimeo.com/31531308
518 stars 67 forks source link

Can't force close buffer #75

Open alexanderkyte opened 9 years ago

alexanderkyte commented 9 years ago

If I've got multiple buffers open, the second that I open an org file I lose the ability to :q! out of all of my buffers. I'm simply told

"No write since last change."

And it switches to the next buffer. :q!-ing this one, moves back to the org buffer. This continues ad infinitum.

In the case that I don't want to save progress, this requires making a new terminal session and sending a sigterm to vim.

hsitz commented 9 years ago

Alexander --

I can't reproduce this behavior. q! works fine for me, in non-org buffer and in org buffer, regardless of whether edits have been made. Can you give me a more detailed set of steps to reproduce?

-- Herb

On Wed, Oct 22, 2014 at 7:09 AM, Alexander Kyte notifications@github.com wrote:

If I've got multiple buffers open, the second that I open an org file I lose the ability to :q! out of all of my buffers. I'm simply told

"No write since last change."

And it switches to the next buffer. :q!-ing this one, moves back to the org buffer. This continues ad infinitum.

In the case that I don't want to save progress, this requires making a new terminal session and sending a sigterm to vim.

— Reply to this email directly or view it on GitHub https://github.com/hsitz/VimOrganizer/issues/75.

hsitz commented 9 years ago

Also, could you check whether the :qall! command works for you in situation where you're getting this error? -- Herb

On Wed, Oct 22, 2014 at 7:52 AM, Herbert Sitz hesitz@gmail.com wrote:

Alexander --

I can't reproduce this behavior. q! works fine for me, in non-org buffer and in org buffer, regardless of whether edits have been made. Can you give me a more detailed set of steps to reproduce?

-- Herb

On Wed, Oct 22, 2014 at 7:09 AM, Alexander Kyte notifications@github.com wrote:

If I've got multiple buffers open, the second that I open an org file I lose the ability to :q! out of all of my buffers. I'm simply told

"No write since last change."

And it switches to the next buffer. :q!-ing this one, moves back to the org buffer. This continues ad infinitum.

In the case that I don't want to save progress, this requires making a new terminal session and sending a sigterm to vim.

— Reply to this email directly or view it on GitHub https://github.com/hsitz/VimOrganizer/issues/75.

alexanderkyte commented 9 years ago

:qall! works perfectly. I'm sure what's the difference between the two. Hooks?

And to reproduce, open up an org buffer and another one, edit both, and then :q!, :q!, :q!, :q! until you're convinced it's stuck in a cycle.

On Wed, Oct 22, 2014 at 11:03 AM, hsitz notifications@github.com wrote:

Also, could you check whether the :qall! command works for you in situation where you're getting this error? -- Herb

On Wed, Oct 22, 2014 at 7:52 AM, Herbert Sitz hesitz@gmail.com wrote:

Alexander --

I can't reproduce this behavior. q! works fine for me, in non-org buffer and in org buffer, regardless of whether edits have been made. Can you give me a more detailed set of steps to reproduce?

-- Herb

On Wed, Oct 22, 2014 at 7:09 AM, Alexander Kyte < notifications@github.com> wrote:

If I've got multiple buffers open, the second that I open an org file I lose the ability to :q! out of all of my buffers. I'm simply told

"No write since last change."

And it switches to the next buffer. :q!-ing this one, moves back to the org buffer. This continues ad infinitum.

In the case that I don't want to save progress, this requires making a new terminal session and sending a sigterm to vim.

— Reply to this email directly or view it on GitHub https://github.com/hsitz/VimOrganizer/issues/75.

— Reply to this email directly or view it on GitHub https://github.com/hsitz/VimOrganizer/issues/75#issuecomment-60099078.

hsitz commented 9 years ago

On Thu, Oct 23, 2014 at 5:51 AM, Alexander Kyte notifications@github.com wrote:

:qall! works perfectly. I'm sure what's the difference between the two. Hooks?

And to reproduce, open up an org buffer and another one, edit both, and then :q!, :q!, :q!, :q! until you're convinced it's stuck in a cycle.

I do see this behavior, but it doesn't seem tied to there being an org file in the mix. it does the same thing for me with two sample .txt files.

I assume it's tied to the behavior of q! that will not quit all if last file in list has unsaved changes. For more info see ':h :q'.