ashisha / image.vim

View images in Vim, because Vim is awesome!
Other
136 stars 26 forks source link

How to open a image? #3

Open ghost opened 8 years ago

ghost commented 8 years ago

I installed python and image.vim as you required,but when I typed the command "vim XX.png", I didn't get my result. How to open an image? What's the command?

ashisha commented 8 years ago

Can you please share more details?

Did the plugin load correctly? (you can check :scriptnames inside vim)? Does your vim has python support? Did you install Pillow as required?

ghost commented 8 years ago

Thanks for your reply.

The follwing is my computer's response and I think I have installed Pillow and python because I have done these before as you request-----I typed in "pip install Pillow" to install PIL/Pillow, used "git clone https://github.com/ashisha/image.vim ~/.vim/bundle/image.vim" to install image.vim(I cannot find ".vim/plugin/" directory on my computer and my vim supports python).

root@ubuntu:~# pip install Pillow Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/lib/python2.7/dist-packages Cleaning up... root@ubuntu:~# find plugin find:plugin': No such file or directory root@ubuntu:~# git clone https://github.com/ashisha/image.vim ~/.vim/bundle/image.vim fatal: destination path '/root/.vim/bundle/image.vim' already exists and is not an empty directory. root@ubuntu:~# vim --version | grep python +cryptv +linebreak +python +viminfo +cscope +lispindent -python3 +vreplace Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
` I still don't understand why this cool function didn't work on my computer.