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 badges2 Answers
Reset to default 7Recently 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
版权声明:本文标题:javascript - Could use Vim (-like bindings) in ipython notebook. Any workaround for Jupyter? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743867660a2552879.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论