Pasting code auto switch to paste mode(need bracketed paste mode support).
Use "function!", which means to overwrite the existing command, to avoid
"command already exists" warning.