Ask HN: Best things in your bash_profile/aliases?
Can I add something from .vimrc?<p>If you put the commands:<p><pre><code>  set undofile
  set undodir=~/.vim/undodir
</code></pre>
You get infinite undo in your files.<p>Now when you go into a file, delete or add some text and close your terminal down, the next time you enter vim you can (re|un)do previous operations.<p>Has saved my ass more times than I care to mention over my career!