2016-04-06 1:15 GMT+03:00 Dominique Pellé <[email protected]>: > Andrew Pennebaker <[email protected]> wrote: > >> Please help Vim detect strange terminal environments (e.g. Emacs/Vim >> shells), and prohibit launching in these. Otherwise, it completely messes up >> the shell. > > What is a "vim shell"? There is no such thing in Vim.
I guess he means https://github.com/Shougo/vimshell.vim. There is also conque_term, but (even though it is abandoned) this one stated that it supports running Vim inside, and AFAIR this even works. It is also possible that system() was meant, but it does not “mess up the shell” when run in system() (though this does not make Vim that is run there very useful). > > Neovim or emacs have terminal windows, see: > https://neovim.io/doc/user/nvim_terminal_emulator.html > But if such terminals doesn't behave like a regular terminal (?), > then I don't think that it should be up to Vim to cope with their > deficiencies. > > I just tried to launch Vim inside a Neovim terminal, and it seems > to work fine for me at first sight. Neovim terminal uses just the same library pangoterm uses. So it should contain much less bugs then conque with its self-written terminal emulator implementation: prone to collecting bugs from terminal emulator implementation itself (escape sequences are tricky due to being legacy based on many generations of terminals and terminal emulators) in addition to bugs that exist because Vim buffers are not prepared for this kind of task. > > Dominique > > -- > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. In any case there is no way to reliably detect “strange terminal environments” generally. One can provide ad-hoc solutions for vimshell, etc, but even this may be tricky. Just don’t run Vim there editor is not the right place to fix bugs in terminal emulators. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
