exiting vim changes background colour of console

Brian Dessent brian@dessent.net
Thu Oct 20 07:36:00 GMT 2005

Lennart Borgman wrote:

> Thanks very much this! However I still have problem with long commands.
> I start Cygwin with
>      ****** cygwin.cmd:
>     @echo off
>     set chere_invoking=1
>     D:\cygwin\bin\bash --login -i
> When the command wraps into the next line then I can not edit the
> command any more. Is there something I can do about this?

Can you elaborate on what you mean by "can not edit the command any
more"?  The expected behavior is that it should spill (wrap) onto the
next line, but you should still be able to use backspace/arrow keys/etc
to manipulate the command.  I tried the above setting of PS1 and it
worked fine.

If you'd rather that the line scroll and not wrap, you can add the
following to your ~/.inputrc:

set horizontal-scroll-mode On

If you still have problems with editing a command that exceeds the
screen width, then it sounds like bash is not aware of the correct
screen width for some reason.  We'd probably need more information about
your setup in order to figure it out, such as cygcheck -svr output.  Are
you using the current version of bash?  Are you using CMD.EXE or rxvt or
something else?   What's the value of $TERM?  Does it work correctly if
you resize the console after it's been started (by dragging the edges
with the mouse)?  Do you have anything nonstandard in your startup


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

More information about the Cygwin mailing list