Fixed the bug with closing vim