This path makes :python fallback to :pytohn3 when -python and +python3.

-- 
-- 
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.


diff -r ccbde540a714 src/eval.c
--- a/src/eval.c	Wed Apr 03 21:14:29 2013 +0200
+++ b/src/eval.c	Fri Apr 05 14:54:39 2013 +0900
@@ -8031,6 +8031,9 @@
 #endif
 #ifdef FEAT_PYTHON
     {"pyeval",		1, 1, f_pyeval},
+    {"py2eval",		1, 1, f_pyeval},
+#elif FEAT_PYTHON3
+    {"pyeval",		1, 1, f_py3eval},
 #endif
     {"range",		1, 3, f_range},
     {"readfile",	1, 3, f_readfile},
diff -r ccbde540a714 src/ex_docmd.c
--- a/src/ex_docmd.c	Wed Apr 03 21:14:29 2013 +0200
+++ b/src/ex_docmd.c	Fri Apr 05 14:54:39 2013 +0900
@@ -267,8 +267,8 @@
 # define ex_perldo		ex_ni
 #endif
 #ifndef FEAT_PYTHON
-# define ex_python		ex_script_ni
-# define ex_pyfile		ex_ni
+# define ex_python		ex_py3
+# define ex_pyfile		ex_py3file
 #endif
 #ifndef FEAT_PYTHON3
 # define ex_py3			ex_script_ni

Raspunde prin e-mail lui