Is it possible to get the output of a system command to the command line?
Specifically, while in the command line, I would like to get the output of date +%Y-%m-%d
after pressing, say, <c-d>. This is the best I could do:
cnoremap <c-d> system("%%Y-%%m-%%d")
Clearly, this is not the way.