Bug 813203

Summary: vim.py is missing, should be suplied with one of the vim packages
Product: [Fedora] Fedora Reporter: Angus Salkeld <asalkeld>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: karsten, sdake
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-28 11:21:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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