kabelkiste/dotfiles/.vim/customizations/vim-emmet-mysnippets.json

31 lines
791 B
JSON

{
"variables": {
"pythonversion": "python3",
"encoding": "utf-8"
},
"python": {
"snippets": {
"py3": "#!/usr/bin/${pythonversion}\n# -*- coding: ${encoding} -*-\n\n\n${cursor}\n\n\ndef main():\n\tpass\n\n\nif __name__ == \"__main__\":\n\tmain()\n",
"fopen" : "def openfile(filepath):\n\twith open(filepath, \"r\", encoding=\"${encoding}\") as currentfile:\n\t\treturn currentfile.readlines()\n\n\n",
"fsave" : "def savefile(filepath, newcontent):\n\twith open(filepath, \"w\", encoding=\"${encoding}\") as currentfile:\n\t\tcurrentfile.writelines(newcontent)\n\n\n",
"basepath" : "",
"parameter": "",
"class": "",
"config": ""
}
},
"java": {
"snippets": {
"class": ""
}
}
}