Hi, all.

Sadly, if_python and if_python3 is exclusive on Linux.
Writing plugin supporting both is difficult.

I found jedi-vim (https://github.com/davidhalter/jedi-vim ) supports both of
python 2 and 3.
https://github.com/davidhalter/jedi-vim/blob/master/autoload/jedi.vim#L162


Could vim have such alias command by default to ease writing such plugins?

if has('python')
    command! -nargs=1 pythonx python <args>
    command! -nargs=1 pyfilex pyfile <args>
    let g:has_pythonx=1
elseif has('python3')
    command! -nargs=1 pythonx python3 <args>
    command! -nargs=1 pyfilex py3file <args>
    let g:has_pythonx=1
else
    let g:has_pythonx=0
end

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui