From 64627516a535d10c3abc71f5fc422048e1b71573 Mon Sep 17 00:00:00 2001 From: Adriano Di Luzio Date: Fri, 14 Oct 2016 22:33:14 +0200 Subject: [PATCH] Add shebang to Python 3 --- UltiSnips/python.snippets | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index fa3ff8b98..6c2e1762b 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -11,6 +11,13 @@ snippet #! "Shebang header for python scripts" b $0 endsnippet +#!3 header +snippet #!3 "Shebang header for python3 scripts" b +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +$0 +endsnippet + snippet ifmain "ifmain" b if __name__ == `!p snip.rv = get_quoting_style(snip)`__main__`!p snip.rv = get_quoting_style(snip)`: ${1:${VISUAL:main()}}