Gary Johnson wrote:
> When I open a directory from the command line, e.g.,
>
> $ vim .
>
> TermResponse autocommand events are ignored. I think this is due to
> one or more of the places in netrw where
>
> setl ei=all
>
> is executed.
>
> This can be demonstrated with the following tests. First with no
> file:
>
> $ vim -N -u NORC --cmd 'au TermResponse * let x=1'
> :echo exists("x")
> 1
>
> Then with a directory argument:
>
> $ vim -N -u NORC --cmd 'au TermResponse * let x=1' .
> :echo exists("x")
> 0
>
> This is a problem when using TermResponse and v:termresponse to set
> highlighting according to the terminal type. The TermResponse
> autocommand is not triggered so highlighting is left at the default
> values.
>
> With "-u NORC", I'm using netrw v156; otherwise, I'm using netrw
> v162h. Both inhibit TermResponse.
>
> I'm running vim 8.0.225 in an xterm on Linux.
Hmm, so when using "eventignore=all" perhaps the TermResponse should not
be ignored? Or should we support the value "all,-TermResponse"?
It's going to be tricky either way.
--
GUARD #1: Where'd you get the coconut?
ARTHUR: We found them.
GUARD #1: Found them? In Mercea? The coconut's tropical!
ARTHUR: What do you mean?
GUARD #1: Well, this is a temperate zone.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.