Make vim_output() method a function