More Advanced macro

I would like to create a macor (may be wrong term) To do the following on some keypress while editing a python file

if the file <current file location>/<current file name>.config.json does not exist:

    Create a new file <current file location>/<current file name>.config.json

open the file in the editor

Is there any way to do this without creating a plugin?

Thanks very much

0

请先登录再写评论。