Added "set autowrite" to vimrc.