Copy Command to Editor

Have you ever struggled with a command which does not work out of the box and after some tries you copied it to an editor to work on it or use it as a base for a shell script. There is a easy way to achieve that by using a keyboard shortcut. Just keep the line in prompt you want to put to an editor and the hit + and then . You will then automatically open the editor set at $EDITOR and the prompt line will be automatically copied in there.

find . type -f name java -exec stat {} \; # now press ctrl + x + e