why signal?

start your vim instance with the --servername option -- when you want
it to quit you can use the
vim --servername <whatever> --remote-send {cmd} to send a quit which
will issue an error if
there are unsaved changes -- or the sky's the limit if you write a
function to be called with a
--remote-send

On Sun, Mar 24, 2019 at 2:03 PM Tormen <[email protected]> wrote:
>
> I am opting to add the possibility to send some signal (does not need to be 
> SIGINT),
> that detects if there are unsaved changes ?
>
> without unsaved-changes: it gracefully shuts down gvim (e.g. behaves like a 
> :q, so it quits vim and removes the swapfile)
> with unsaved-chages: it stops and displays the message: that currently is 
> displayed when a SIGINT is received:
> Type :qa! and press <Enter> to abandon all changes and exit Vim
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
>
> --
> --
> 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.

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

Raspunde prin e-mail lui