author | date |
---|---|
Hajime Nakagami<[email protected]> |
Sep 27, 2024 |
Do you use vim?
I have been using vi clone for over 30 years.
Currently, I use vim as vi, which comes by default with the OS.
Yes, pyvim is a pure python vim clone.
https://pypi.org/project/pyvim/
- pyvim (and python-prompt-toolkit) has written by Jonathan Slenders
- pyvim seems experimental package to show the functionality of python-prompt-toolkit.
- A new version of pyvim has not been released in a few years.
- However, I saw great potential in this package as a vi clone!
https://github.com/nakagami/pyvim
- I have made it work with newer version python and dependent packages.
- I tried to make it work as much as possible the same as vi/vim.
- The key bindings I use on a daily basis work pretty well, now.
- But internally, I applied many monkey patches to python-prompt-toolkit.
- The purpose is different from the original pyvim, now.
- If any of the key bindings do not work, please create a github issue!
- Of course I will be happy if you send me a pull request.
Install pyvim and required package(s) in your python environment
docker run -it python bash
pip install git+https://github.com/nakagami/pyvim >/dev/null
pip install janome >/dev/null
pyvim demo.py
then write your code
from janome.tokenizer import Tokenizer
t = Tokenizer()
print(t.tokenize("すもももももももものうち"))