Vim plugin: Close a window suitable for condition.