There's some good answers in this Stack Overflow thread
I think the best option is using q:
instead of just :
to enter command mode. This opens a window where you can type your command, and also contains your command history. If you've already started typing your command using just :
and want to enter this mode you can press Ctrl+F.