Bug 813203 - vim.py is missing, should be suplied with one of the vim packages
Summary: vim.py is missing, should be suplied with one of the vim packages
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-17 08:39 UTC by Angus Salkeld
Modified: 2014-01-13 01:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-28 11:21:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Angus Salkeld 2012-04-17 08:39:44 UTC
Description of problem:

Many vim plugins use vim.py and don't function without this.
vim is complied with python support but seems like this
file was ommitted.

Version-Release number of selected component (if applicable):
 vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 13 2012 12:19:21)
Included patches: 1-415, 417-444

Note: it has +python 

How reproducible:
100%

Steps to Reproduce:
1.python
2.import vim
3.
  
Actual results:
>>> import vim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named vim


Expected results:
no exception.

Additional info:
I am trying to use:

ultisnips: http://www.vim.org/scripts/script.php?script_id=2715

also: https://dev.launchpad.net/UltimateVimPythonSetup

example:
" `gf` jumps to the filename under the cursor.  Point at an import statement
" and jump to it!
python << EOF
import os
import sys
import vim
for p in sys.path:
    if os.path.isdir(p):
        vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
EOF

Comment 1 Karsten Hopp 2012-08-28 11:21:19 UTC
There is no such file like vim.py. The ultisnips scripts is intended to run within vim, not as a python.
Please read the instructions at 
http://www.vim.org/scripts/script.php?script_id=2715


Note You need to log in before you can comment on or make changes to this bug.