title: editing file through vi editor in shell script show error
body: <p>script in which I open a file in vi editor , after that user will write any thing in it then save or quite by <code>:wq!</code> </p>
  
  <p>When I try this then it give an error message as below<br></p>
  
  <pre><code>e138 can't write viminfo file $home/.viminfo!
  </code></pre>
  
  <p>and ask for, </p>
  
  <pre><code>Press Enter or command to continue
  </code></pre>
  
  <p>Now when I press enter then file save. But why that error message shows.
  If I open same file direct with vi editor or vim editor and do changes then it does not give any error.</p>
  
  <p>also if I install vim editor then it works fine and no error shows</p>
  
  <p>Please tell me what may be the issue.</p>