Skip to content

nakagami/pyvim

 
 

Repository files navigation

pyvim

An implementation of Vim in Python

The original pyvim seems to have been written to prove the usefulness of the python-prompt-toolkit .

I am trying to modify it to a more vi/vim like editor.

https://github.com/nakagami/pyvim/raw/master/docs/images/welcome-screen.png

Installation

Execute bellow pip command in the python virtual environment of your project.

pip install git+https://github.com/nakagami/pyvim

And you can execute pyvim command.

Some more screenshots

Editing its own source code:

https://github.com/nakagami/pyvim/raw/master/docs/images/editing-pyvim-source.png

Window layouts (horizontal and vertical splits + tab pages.)

https://github.com/nakagami/pyvim/raw/master/docs/images/window-layout.png

Pyflakes for Python code checking and Jedi for autocompletion:

https://github.com/nakagami/pyvim/raw/master/docs/images/pyflakes-and-jedi.png

Other colorschemes:

https://github.com/nakagami/pyvim/raw/master/docs/images/colorschemes.png

Chinese and Japanese input (double width characters):

https://raw.githubusercontent.com/nakagami/pyvim/master/docs/images/cjk.png?v2

Configuring pyvim

It is possible to create a .pyvimrc file for a custom configuration. Have a look at this example: pyvimrc

Alternatives

Certainly have a look at the alternatives:

Thanks

  • To original Pyvim: https://github.com/prompt-toolkit/pyvim, by Jonathan Slenders.
  • To Vi Improved, by Bram Moolenaar. For the inspiration.
  • To Jedi, pyflakes and the docopt Python libraries.
  • To the Python wcwidth port of Jeff Quast for support of double width characters.
  • To Guido van Rossum, for creating Python.

About

Pure Python Vim clone.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%