On Di, 13 Mär 2018, Kazunobu Kuriyama wrote:

> 2018-03-13 21:56 GMT+09:00 Bram Moolenaar <b...@moolenaar.net>:
> 
> 
>     Currently the :terminal command keeps the window open after the job
>     exists.  The idea is that you have a chance to see the job output, you
>     might want to yank it.  Closing the window automatically might mean you
>     loose that text, there is no way to get it back.
> 
>     However, in practice I find that I mostly want the window to close as
>     soon as the job finishes.  So how about changing the default behavior?
> 
>     Currently:
>             :terminal               requires "exit<CR>:q<CR>" to close
>             :terminal ++close       requires "exit<CR>" to close
> 
>     With different default:
>             :terminal               requires "exit<CR>" to close
>             :terminal ++noclose     requires "exit<CR>:q<CR>" to close
> 
>     Good idea or bad idea?
> 
> 
> In case the job finished in a way different from one's expectation, he might
> feel sad seeing the window closed mercilessly and regret not giving the 
> noclose
> option when he opened the terminal. But if the proposed change comes with a 
> way
> to restore (part of) the contents of the closed window, just like g<, that
> would remind him that :smile is always with Vim.

Perhaps keep the last &lines in a register somewhere available. Also, 
perhaps it makes sense to only autoclose the terminal, if the command 
finished with a zero exit status.

Best,
Christian
-- 
Ich hätte für Frankreich sterben können, aber französische Verse
machen - nimmermehr! 
                -- Heinrich Heine

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui