Current implementation provide way to set options to the :terminal
buffer using BufWinEnter.
au BufWinEnter * if &buftype == 'terminal' | setlocal bufhidden=hide | endif
But this is bits bothersome. How about add TerminalOpen event which raise only when open :terminal
?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
I think TermOpen
name is better.
Because, TermChanged
and TermResponse
events are already exists.
Neovim also uses TermOpen
for this event, so consistency would be nice.
—
Still prefer TermOpen,as it is already exist in neovim.
“Term” is a recognized shortcut for “terminal”, no matter whether you spell it short or long if something like TermFocusLost (i.e. FocusLost controlled by terminal escape sequences; only the example) is implemented to fire on events caused by outside terminal that will cause confusion. If it is not, no confusion in TermOpen. Confusion could only be avoided by adding adjective, not by avoiding shortening.
And do not forget that :terminal
can be shortened to :term
, and you did exactly that in documentation as well (:h terminal-use
, :h term++close
), in &termkey
and &termsize
option names, in all associated function names, in plugin name (termdebug). If you want to stay consistent on that, do rename everything I mentioned.
yeah, the first time I know the key word term
is in vim8, before this, the terminal is :terminal
and :te
in neovim, then vim8 add a new command :term
instead of using :te
.
@wsdjeg Both Vim and Neovim added command :terminal
. But Neovim removed :tearoff
as well, so minimal shortcut in Neovim is :te
and minimal shortcut in Vim is :ter
.
oh, I got it, sorry for my previous comment
closing for #2487
Closed #2422.