title: How to add new line in bashrc file in ubuntu?
body: <p>I'm trying to update my bashrc file in ubuntu with some environment variables.</p>
  
  <p>I can do this using below command.</p>
  
  <pre><code>echo 'export APP=/opt/tinyos-2.x/apps' &gt;&gt; ~/.bashrc 
  </code></pre>
  
  <p>But I want to do it manually, meaning open the file with vim editor then add it.
  The problem here is when I open the bashrc file the end line is "fi" and when I reach there and press insert and then enter to go to new line it stays at the same line and moves the fi word only or create A or C or B random characters.</p>
  
  <p>May I know please some commands to handle this bashrc file so that I could add a new line and then my variables over there?</p>
  
  <p>I've tried to look online but didn't find what am looking for.</p>