q: does not work
Vim has a very useful command that is missing from evil: q:
q: will open a small buffer with a copy of the ex command history in it, and allow you to edit it as a regular buffer. Then, whenever you hit ENTER on any line, it will be run as if you had typed that line after a : in normal state.
For more details, please see :help q: in vim.