title: vim not working when calling git commit within cygwin
body: <p>I am using git within Cygwin 64 under windows. The default editor vi and git uses the default editor. When I call 'git commit' following messages will be prompted before vim is started:</p>
  
  <pre><code>git commit
  Vim warning: output is not to a terminal
  Vim warning: input is not from a terminal
  </code></pre>
  
  <p>After that, vi will started but can't be controlled, 'ESC',  ':' can't be used and I have to kill the cygwin window.</p>
  
  <p><a href="https://i.stack.imgur.com/8v6RF.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/8v6RF.jpg" alt="enter image description here"></a></p>
  
  <p>How can I use vim for the 'git commit'?</p>