Corrected a bug in bashrc and set vim as default editor.