I'm trying to craft a command to dump vim's highlighting information to STDOUT. I can write successfully to a file like this:

```
vim +'redir >outfile' +'hi' +'redir END' +'q'

```

After this, `outfile` contains exactly what I want. But I'd rather output to STDOUT to pipe to a command which converts that highlighting info to CSS.

This approach tries to redirect the command to a register, write to the current buffer, then send that output to `tee`. 

```
vim -E +'redir @a' +'silent! hi' +'redir END' +'put a' +'w !tee' +'q!' > outfile

```

This is pretty close, but outputs a leading paging message (255 more lines...) and some ANSI escape crap at the end. Setting `nomore` did not squelch the message for me. I'm looking to send the exact output sent to `outfile` in the first command to STDOUT.