Set autowrite for vim