lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.
2.1k stars 136 forks source link

Problem with vim commands (using :) #94

Closed mesalas closed 7 years ago

mesalas commented 7 years ago

Summary

I cant get any vim commands to work. eg: when I enter :/whatiwanttofind) I get Not an editor command ":/whatiwanttofind Similar behavior is seen for all commands I have tried. Otherwise the keybindings work fine eg: hjkl (for left down up right) and so on

Environment

lambdalisue commented 7 years ago

commands are not defined except for saving

mesalas commented 7 years ago

Thanks for the quick reply.

commands are not defined except for saving

Fair enough, that explains it 😄 I have somehow missed that. is it possible to define them?

lambdalisue commented 7 years ago

Prob. yes. https://codemirror.net/doc/manual.html#vimapi said defineEx can define ex command but I have not tried so not sure.

mesalas commented 7 years ago

Ok after looking through https://codemirror.net/keymap/vim.js I now realize what i'm doing wrong. Lots of the commands are in fact implemented, I just do not need the initial :. Eg if I want to search i just press / and not :/

this kinda fixed my problem. Thanks a bunch