public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 2.2.0: possible bug with Vim 7.4.764 and syntax highlight
@ 2015-08-04  8:01 Xealot
  2015-08-04 17:58 ` Gary Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Xealot @ 2015-08-04  8:01 UTC (permalink / raw)
  To: cygwin

Hello!
There seems to be a possible bug with cygwin 2.2.0 in xterm terminal
mode (default) and using vim 7.4.764 with syntax highlighting enabled.

To verify and reproduce:
echo "syntax on" >> ~/.vimrc
vim -E

The prompt at the bottom should now show an escape sequence:
Entering Ex mode.  Type "visual" to go to Normal mode.
:]11;rgb:0000/0000/0000\

This causes issues when using vim as normal in this configuration
because the inserted escape sequence seems to replace the first
character in a given document with a 'g' when opened.

The problem goes away when changing terminal type to vt100 or vt220 or
if you downgrade vim to revision 752 available on some mirrors through
the setup.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.2.0: possible bug with Vim 7.4.764 and syntax highlight
  2015-08-04  8:01 2.2.0: possible bug with Vim 7.4.764 and syntax highlight Xealot
@ 2015-08-04 17:58 ` Gary Johnson
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Johnson @ 2015-08-04 17:58 UTC (permalink / raw)
  To: cygwin

On 2015-08-04, Xealot wrote:
> Hello!
> There seems to be a possible bug with cygwin 2.2.0 in xterm terminal
> mode (default) and using vim 7.4.764 with syntax highlighting enabled.
> 
> To verify and reproduce:
> echo "syntax on" >> ~/.vimrc
> vim -E
> 
> The prompt at the bottom should now show an escape sequence:
> Entering Ex mode.  Type "visual" to go to Normal mode.
> :]11;rgb:0000/0000/0000\
> 
> This causes issues when using vim as normal in this configuration
> because the inserted escape sequence seems to replace the first
> character in a given document with a 'g' when opened.
> 
> The problem goes away when changing terminal type to vt100 or vt220 or
> if you downgrade vim to revision 752 available on some mirrors through
> the setup.

There is at least one bug in that version having to do with the
automatic querying of the terminal's background color introduced
with patch 7.4.757.  There have been two subsequent patches that
have fixed all known issues with that feature, 7.4.766 and 7.4.770.

Updating to version 7.4.770 or later should fix the problem.

Regards,
Gary


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-04 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04  8:01 2.2.0: possible bug with Vim 7.4.764 and syntax highlight Xealot
2015-08-04 17:58 ` Gary Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).