title: how to use vim to open every .txt file under a directory (with Bash)
body: <p>I am trying the following to use a <code>vim</code> to open every <code>txt</code> file under current directory. </p>
  
  <pre><code>find . -name "*.txt" -print | while read aline; do
    read -p "start spellchecking fine: $aline" sth
    vim $aline
  done
  </code></pre>
  
  <p>Running it in <code>bash</code> complains with </p>
  
  <pre><code>Vim: Warning: Input is not from a terminal
  Vim: Error reading input, exiting...
  Vim: Finished.
  </code></pre>
  
  <p>Can anyone explain what could possibly goes wrong? Also, I intend to use <code>read -p</code> for prompt before using vim, without no success.</p>