mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
add template for python files to always have GNU AFFERO GENERAL PUBLIC LICENSE Version 3
This commit is contained in:
parent
d64b57c999
commit
087a3c698a
2 changed files with 25 additions and 0 deletions
17
.vim/templates/skeleton.py
Normal file
17
.vim/templates/skeleton.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python3.10
|
||||
"""
|
||||
Name:
|
||||
AUTHOR:
|
||||
LICENSE: GNU AFFERO GENERAL PUBLIC LICENSE Version 3
|
||||
"""
|
||||
|
||||
|
||||
def main():
|
||||
"""
|
||||
"""
|
||||
|
||||
return
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
8
.vimrc
8
.vimrc
|
@ -234,6 +234,14 @@ augroup vimrcEx
|
|||
augroup END
|
||||
|
||||
|
||||
" this is a template file for python, to make sure certain data is always
|
||||
" there when populating a new file
|
||||
if has("autocmd")
|
||||
augroup templates
|
||||
autocmd BufNewFile *.py 0r ~/.vim/templates/skeleton.py
|
||||
augroup END
|
||||
endif
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" CUSTOM Commands:
|
||||
" "Locally defined commands for helpfulness"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue