Monday, June 29, 2015

Re: Catching "swap file exists" and dealing with it in code

On 2015-06-29 10:25, David Fishburn wrote:
> What I want to be able to do is catch this message and deal with it
> in my own code and show a message.

Sounds like you want to do things on the SwapExists event:

:help SwapExists

I'm not positive about the ordering if you are doing a diff with
another file, so whether a buffer gets 'diff' set before the
SwapExists fires, or if SwapExists before you have a buffer to check
for 'diff' being set. But that's where I'd start :-)

-tim


--
--
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: