Updated with autoindent and autowrite