Hacker News new | ask | show | jobs
by shabble 5053 days ago
From the original kickstarter[1] app:

What about key bindings?

I'm a VIM guy myself, but since we'll be using the awesome CodeMirror[2] editor, this is something that is easily adapted. If you're looking for a way to contribute, help improve CodeMirror and its emacs/vim plugins!

I haven't actually played around with the current release to see if it's been integrated yet, but it's almost certainly part of the plan.

[1] http://www.kickstarter.com/projects/306316578/light-table

[2] http://codemirror.net/

3 comments

If you view-source on this release you can see a vim.js file is included with vim bindings. I was able to activate them by setting a breakpoint in chrome on line 2098 of codemirror.js and typing this in the console:

  CodeMirror.defaults["keyMap"]="vim"
Presumably there will be a better way to turn them on in the future.
CodeMirror's vim support is fairly limited though. Here's the list, in comments at the top of the code here: http://codemirror.net/keymap/vim.js

Also, "Because CodeMirror's internal API is quite different from Vim, they are only a loose approximation of actual vim bindings" http://codemirror.net/demo/vim.html

Maybe so, but then again - "contribute for free, after we raised a whole lot of money and funding for our work"...