/ammonite-vi

ammonite vi mode ivy

Primary LanguageScalaApache License 2.0Apache-2.0

This plugin is used to enable vi key bindings for Ammonite repl,

Compatible Version

Scala: 2.13 Ammonite: 2.X

SetUp

Edit ~/.ammonite/predef.sc

import $ivy.`com.github.chengpohi:ammonite-vi_2.13:2.0`

@


repl.frontEnd() match {
  case ammoniteFrontEnd: ammonite.repl.AmmoniteFrontEnd => {
    com.github.chengpohi.VIMode(repl)
    println("VI Mode Enabled")
  }
  case _ =>
}

ESC + ENTER: switch vi mode