Calva: 1.3.61 breaks vim (vscodevim) extension

Created on 30 Jan 2019  路  7Comments  路  Source: BetterThanTomorrow/calva

v1.3.61 breaks vim (vscodevim) extension. I cannot switch back to normal mode only in clojure script files. Ruby, for example is fine.

Steps: to reproduce:

  1. open some cljs file
  2. switch to insert mode with i
  3. try to switch back to normal mode with esc
  4. nothing happens

In 1.3.60 (installed via "install another version") everything works fine.

enhancement

Most helpful comment

Escape is the natural way to dismiss those inline evaluations, but, boy, does it interfere with vi modes! I think we can detect it though, and use another default for when vscodevim is present.

All 7 comments

Thanks for the report!

We recently bound escape to clear the inline evaluation results.

https://github.com/BetterThanTomorrow/calva/blob/master/package.json#L265

We will look at changing the defaults so it does not conflict. As an interim workaround you can re-bind that command to something else, and that should bring vscodevim back for now. Let me know if that doesn't work for you.

Escape is the natural way to dismiss those inline evaluations, but, boy, does it interfere with vi modes! I think we can detect it though, and use another default for when vscodevim is present.

Thanks! Changed vim's keybinding for switching to normal mode and it works again.

You can change calva's binding instead if you prefer! Vim without ESC is like X without Y.

Yep, but they propose to bind it to jj. Lets see how it will feel 馃檪

Can we close this? Seems there are at least two work-arounds and probably keeping track of possibly conflicting extensions is a bit of a burden.

Sure!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bpringe picture bpringe  路  3Comments

PEZ picture PEZ  路  3Comments

lspector picture lspector  路  5Comments

TwiceII picture TwiceII  路  6Comments

frantic picture frantic  路  5Comments