Search This Blog

Monday, February 06, 2012

cygwin mintty vim output is not to a terminal

Inside the cygwin terminal if you do

$ uname -r

$ mintty.exe

The mintty terminal pops up. However, if you run vim in the mintty terminal, there are warnings such as

$ vim junk1.txt
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal

To get rid of these warnings, start mintty with "mintty.exe -". The .exe is optional. It is the '-' that is more important.

Why bother with the mintty terminal in the first place? Because it has a lot more functionality than the default cygwin terminal. For eg., the mintty terminal can be resized, maximized, minimized in both the directions; copy pasting text from/to the terminal is a breeze.

1 comment:

Miguel Ortiz said...

I've stopped using mintty, instead moved to bash and solved the problem configuring the shortcut to cygwin properly:

Instead of:

C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -


C:\cygwin\bin\bash.exe --login -i

And that's it.