def get_window_view(vid): """Look for the given vid in all the opened windows """ for window in sublime.windows(): view = get_view(window, vid) if view is not None: return view