ianhi / jupyterlab-vimrc

add a basic vimrc to jupyterlab vim
BSD 3-Clause "New" or "Revised" License
66 stars 4 forks source link

vimrc only works once and stops working #28

Open sperezconesa opened 1 year ago

sperezconesa commented 1 year ago

Hello,

I have a problem when I use jupyterlab-vimrc. If I start jupyterlab it doesn´t work at all. If I change the settings.json and save, it works but as soon as I go to another cell it stops working. Is there a bug here?

I'm using:

Thanks in advance! Best, Sergio

sperezconesa commented 1 year ago

The issue seems to come from jupyterlab-vim 0.16 which breaks vimrc. Downgrading to jupyterlab-vim 0.15.1 fixes the problem Any chance this could be fixed?

muraii commented 1 year ago

I'm having the same issue with these settings:

Saving changes to vimrc.jupyterlab-settings in $HOME/.jupyter/lab/user-settings/jupyterlab-vimrc (but only through the "Advanced Settings" UI) engages the keybinds again, but in my quick testing only until I switch cells.

Edit to add: Apologies for all the edits. I did move to Python 3.11.1 keeping the other versions the same and as @sperezconesa mentioned above, the vimrc configuration works. I think moving to installing the extensions with poetry rather than npm may have helped, and using a more-recent Python version may have contributed to this.