A useful feature of bash and zsh is the "edit command". The standard shortcut is "ctrl-x ctrl-e".
It opens the current command line in $EDITOR, which often defaults to vim.
replies(3):
It opens the current command line in $EDITOR, which often defaults to vim.