On Thursday, May 30, 2013 3:59:59 AM UTC+2, David Fishburn wrote:
> Windows 7 64.
>
>
> :ver
> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 29 2013 18:37:51)
>
> MS-Windows 32-bit GUI version with OLE support
> Included patches: 1-1053
> +python3/dyn
>
>
>
> Python 3.3.0
>
>
>
> I have never used python before.
>
>
>
> :py print "hello"
>
> E319: Sorry, the command is not available in this version
>
>
>
> :py3 print "hello"
>
>
>
> File "<string>", line 1
> print "hello"
> ^
> SyntaxError: invalid syntax
>
>
>
>
> Not sure if this is expected or not.
If it wasn't compiled with Python 2 support then E319 message is expected.
Regarding SyntaxError: invalid syntax, the print statement has been replaced
with a print() function in Python 3 so you need to use the appropriate syntax:
print("hello world")
> An aside question, if you are compiled with +python3/dyn, why wouldn't :py
> just do what :py3 does? After all, there are not 2 versions available?
You can have both 2.x and 3.x versions installed, both are available.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.