vim/ultisnips-bullshit/python.snippets @ 73ac57eeaeea
default tip
Merge
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 29 Aug 2025 14:55:22 -0400 |
parents |
2e41ef790dc8 |
children |
(none) |
snippet #! "#!" b
#!/usr/bin/env python3
endsnippet
snippet ifmain "if main" b
if __name__ == '__main__':
${1:pass}
endsnippet
snippet p "print()" b
print($1)
endsnippet
snippet i "if" b
if ${1:cond}:
${2:pass}
endsnippet
snippet ei "elif" b
elif ${1:cond}:
${2:pass}
endsnippet
snippet e "else" b
else:
${1:pass}
endsnippet