admin管理员组

文章数量:1350044

It was possible to use codemirror's vim mode in ipython notebook by generally following the way explained here and I was enjoying it, but in 2.x it's not possible because the notebook's interface "steals" escape key. In fact, "Esc" in codemirror's vim mode is Ctrl-c, which is not working nevertheless.

I don't know anything about Javascript, but it seems codemirror's vim.js located in

...\IPython\html\static\ponents\codemirror

somehow maps Ctrl-c to Esc, but this Esc is presumably taken by ipython notebook.

Mixing ipython notebook and vim keyboard binding was a great environment. Is there any workaround in 2.x? Because of this, I'm still using 1.2.1.

EDIT (Solution to 3.x/Jupyter):

~~Vimception does not work on 3.x(Jupyter) but I found that this guy did a great job. This works perfectly.~~

EDIT2

Just see @Λlisue's answer. He deserves +100.

It was possible to use codemirror's vim mode in ipython notebook by generally following the way explained here and I was enjoying it, but in 2.x it's not possible because the notebook's interface "steals" escape key. In fact, "Esc" in codemirror's vim mode is Ctrl-c, which is not working nevertheless.

I don't know anything about Javascript, but it seems codemirror's vim.js located in

...\IPython\html\static\ponents\codemirror

somehow maps Ctrl-c to Esc, but this Esc is presumably taken by ipython notebook.

Mixing ipython notebook and vim keyboard binding was a great environment. Is there any workaround in 2.x? Because of this, I'm still using 1.2.1.

EDIT (Solution to 3.x/Jupyter):

~~Vimception does not work on 3.x(Jupyter) but I found that this guy did a great job. This works perfectly.~~

EDIT2

Just see @Λlisue's answer. He deserves +100.

Share Improve this question edited Mar 30, 2016 at 19:53 akai asked Aug 6, 2014 at 10:29 akaiakai 2,0524 gold badges29 silver badges52 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

Recently I made a new plugin for enabling Vim key binding in Jupyter. Try https://github./lambdalisue/jupyter-vim-binding

There is now a plugin for enabling codemirror vim mode with extra features:

https://github./ivanov/ipython-vimception

I've been using it since I saw the SciPy video. It has some little problems, but it works.

(Video https://www.youtube./watch?v=p9gnhmX1sPo)

本文标签: javascriptCould use Vim (like bindings) in ipython notebook Any workaround for JupyterStack Overflow