update vimrc, follow the original implementation closely