bernatnan / image.vim

View images in Vim, because Vim is awesome!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image.vim

The Image.vim Original project is Unmainteined.

View images in Vim, because Vim is awesome!

Features

  • Let's you open (preview) images in Vim!: Image supported:
    • .png
    • .jpg
    • .jpeg
    • .webp
  • It's safe, never modifies the original image (unless you force write)
  • Adapted to work with python3 instead of python2

Requirements

  • Vim with python support. You can verify if your Vim is compiled with python using:

    vim --version | grep python

    If you see +python, your Vim has python support. If not, compile or install yourself a vim with python support.

    In arch:

    sudo pacman -S gvim
    

    In Debian based:

    sudo apt install vim-gtk
    

    It will install gvim which include vim with python support and a GTK application of vim.
    You will be asked to remove Vim, but relax, you will keep the option of use vim in terminal.

  • Also needs the Python library PIL. You can install PIL using pip install Pillow

Installation

  • Pathogen

    • git clone https://github.com/Daniel1404/image.vim ~/.vim/bundle/image.vim
  • Vundle

    • Plugin 'Daniel1404/image.vim' Then reload your .vimrc file and Install the Plugin.
      :so ~/.vimrc
      :PluginInstall
    
  • NeoBundle

    • NeoBundle 'Daniel1404/image.vim'
  • Manual Copy image.vim into your ~/.vim/plugin/ directory

    git clone https://github.com/Daniel1404/image.vim
    cd image.vim
    cp image.vim ~/.vim/plugin/
    

Errors

Not an error but a deficit, it doesn't work well with image that are full colored like Screenshots, because the plugin uses Ascii characters.

Thank you!

About

View images in Vim, because Vim is awesome!

License:Other


Languages

Language:Vim Script 100.0%