Rewrite vimrc

Enable automatic history files and code folding.