Actually fixed vim window auto resizing not working in some cases.