question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vim cell commands

See original GitHub issue

It’d be nice if Vim bindings could while in the notebook cell mode (not editing a cell). i.e., dd deletes a cellandyy` copies a cell.

I keep on running into this bug from Jupyter notebook muscle memory. It’d be nice if installing this package meant that those keybindings were enabled (and yes, I could go into settings and change them all but this would be easier).

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
ah-commented, Mar 17, 2018

Just found this issue after wanting this enough to go and do https://github.com/jwkvam/jupyterlab_vim/pull/28 😃

Since this is explicitly a vim extension I think we should stay as close as possible to vim muscle memory shortcuts and make it easy for people to customize if they want other commands. At least for me it’d majorly mess with my sanity if dd deleted two cells.

8reactions
stsievertcommented, Feb 7, 2018

I’d prefer the bindings to be the same as vim’s actions for a single line. I don’t need to learn another set of keybindings then.

Could we present a choice to the user? I think maybe a switch would be appropriate here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vim-ipython-cell/README.md at master - GitHub
ipython-cell. Seamlessly run Python code from Vim in IPython, including executing individual code cells similar to Jupyter notebooks and MATLAB.
Read more >
jupyterlab-vim — jupyterlab-contrib 1.0.0 documentation
Vim command bindings¶ ; Ctrl-O, G · Select First Cell ; Ctrl-O, Ctrl-G · Select Last Cell ; Ctrl-E · Move Cell Down...
Read more >
Edit IPython cell in an external editor - Stack Overflow
Cell contents can now be edited via Gvim. From command mode use 'g' to open current cell contents in Gvim. After ':wq' from...
Read more >
PyCharm 2021.3 EAP + IdeaVim: can't enter a cell in jupyter
Activate vim bindings in pycharm (ideavim); Create a notebook; Go to jupyter command mode (execute a cell or double-tap esc ); Try to...
Read more >
Run Python code and code cells in IPython : r/vim - Reddit
Cells are defined by either Vim marks or by special text in the code, by default ## . I used to use ##...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found