def run(self, command_line=''):

        assert command_line, 'expected non-empty command_line'

        parsed = parse_command_line(command_line)

        global_range = None
        if parsed.line_range.is_empty:
            global_range = R(0, self._view.size())
        else:
            global_range = parsed.line_range.resolve(self._view)


        pattern = parsed.command.pattern
        if pattern:
            ExGlobal.most_recent_pat = pattern
        else:
            pattern = ExGlobal.most_recent_pat

        # Should default to 'print'
        subcmd = parsed.command.subcommand

        try:
            matches = find_all_in_range(self._view, pattern,
                    global_range.begin(), global_range.end())
        except Exception as e:
            msg = "Vintageous (global): %s ... in pattern '%s'" % (str(e), pattern)
            sublime.status_message(msg)
            print(msg)
            return

        if not matches or not parsed.command.subcommand.cooperates_with_global:
            return

        matches = [self._view.full_line(r.begin()) for r in matches]
        matches = [[r.a, r.b] for r in matches]
        self.window.run_command(subcmd.target_command, {
            'command_line': str(subcmd),
            # Ex commands cooperating with :global must accept this additional
            # parameter.
            'global_lines': matches,
            })
dataset/ETHPy150Open guillermooo/Vintageous/ex_commands.py/ExGlobal.run/original