vim mode in Chrome?

322 views
Skip to first unread message

Eno

unread,
Feb 10, 2012, 11:34:56 AM2/10/12
to ace-d...@googlegroups.com
I just tried playing with the online demo in Chrome but I don't get how the vim mode works. How do we switch between command and insert modes? I tried using commands like "dw" and they don't seem to work?



-- 

Andrew Malcolmson

unread,
Feb 20, 2012, 1:45:56 PM2/20/12
to Ajax.org Cloud9 Editor (Ace)
Switch to command is Escape as usual, as does 'i' for insert. Many
commands like dw or (my favorites) 0 and $ for go to end/beginning of
line aren't implemented. There are some custom shortcuts like Shift i/
a for go to beginning/end of line and enter insert mode.

https://github.com/ajaxorg/ace/blob/master/lib/ace/keyboard/keybinding/vim.js
https://github.com/pizzapanther/Neutron-IDE/wiki/Vim-Key-Bindings

I do wish the bindings were more like in standard vi/Vim.

Ajai Khattri

unread,
Feb 21, 2012, 12:08:37 PM2/21/12
to ace-d...@googlegroups.com
On Mon, Feb 20, 2012 at 1:45 PM, Andrew Malcolmson <and...@gmail.com> wrote:

> Switch to command is Escape as usual, as does 'i' for insert.  Many
> commands like dw or (my favorites) 0 and $ for go to end/beginning of
> line aren't implemented.  There are some custom shortcuts like Shift i/
> a for go to beginning/end of line and enter insert mode.


Guess what commands are my favorite :-)

Just looked at those links you sent: Delete mode? Really? :-)


--

Andrew Malcolmson

unread,
Feb 23, 2012, 6:02:27 PM2/23/12
to Ajax.org Cloud9 Editor (Ace)
On Feb 21, 12:08 pm, Ajai Khattri <symb...@gmail.com> wrote:
snip
> Just looked at those links you sent: Delete mode? Really? :-)
>

I wondered myself what that was.

I've set up Neutron IDE (http://neutronide.com/) which is a fork of
the Ace editor plus some other features on my Debian server. Now I'm
playing around with vim.js to try to add more standard Vim bindings
but no luck so far. I make changes in the file and reload the editor
but my new bindings don't work. I'll let you know if I figure this
out.

Matt Pardee

unread,
Feb 23, 2012, 6:09:15 PM2/23/12
to ace-d...@googlegroups.com
I don't believe ACE implements Vim mode by default, it simply has great keybindings support.

I can't help but feel there may be some confusion/overlap from the Cloud9 IDE (c9.iohttps://github.com/ajaxorg/cloud9) project, where Vim mode is indeed integrated. This was our custom solution. See the Vim extension entry point for details on the implementation:


Cheers,

Matt

--
You received this message because you are subscribed to the Google Groups "Ajax.org Cloud9 Editor (Ace)" group.
To post to this group, send email to ace-d...@googlegroups.com.
To unsubscribe from this group, send email to ace-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ace-discuss?hl=en.


Reply all
Reply to author
Forward
0 new messages