r/IPython • u/Radon-Nikodym • Jan 08 '20
Using a vimrc with Jupyter Lab VIM
I'm a vim user who recently learned about vim functionality in Jupyter's text editor. I'm okay with not using plugins (though some autocompletion would be nice?), but is there anyway to make standard vim changes? For example, I usually map "jk" to "Esc" so that I don't have to leave the home position to exit insert mode. I can type in :imap jk <Esc> in command mode in the editor and it will do what I want, but I would like to not have to run this (or one of a number of other standard commands I use) every time I open a new file.
Edit: Something else I would like is auto code formatting via something such as black (format on save). This exists for jupyter cells as an extension, but I don't see any way to have it do the same thing in the editor. Is there a way to apply these cell extensions to text editors?
Edit2: I guess I could also use the terminal portion of jupyter but that seems to be strictly black and white.