Closed rom1v closed 11 years ago
First, doesn't invoking vim as vi disable a lot of the vim specific features? Second, was your copy of vim compiled with python support? This plugin requires python support. Issue #19 is relevant here. Felipe has been working on a complete rewrite (fmorales/vim-pantondoc) that aims to be more modular. I'm not sure how he has been handling the dependency on python.
You're right. I use Debian wheezy (current testing version), vim
is not compiled with libpython
.
$ ldd /usr/bin/vim
linux-vdso.so.1 => (0x00007fff705ff000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3a89abf000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f3a89896000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f3a89675000)
libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f3a8946c000)
libgpm.so.2 => /usr/lib/x86_64-linux-gnu/libgpm.so.2 (0x00007f3a89266000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3a88edb000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3a88cd7000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3a89d5c000)
libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007f3a88ad2000)
I tested on another computer with Ubuntu 12.10, it works:
$ ldd /usr/bin/vim | grep python
libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x00007fe24c751000)
I found a workaround: on Debian, just install vim-nox
instead of vim
, it is compiled with Python support ;-)
@rom1v I just want to say thanks for this tip, you really helped me solve my issue ;-)
I just starting out vim in android app called termux and facing the same problem
When i try to
change
python << EOF
to
python3 << EOF
the problem has gone!
When I open a (new or not) file (
vi file.md
):I have python installed (don't know if it helps).