chengpohi / ammonite-vi   1.6.1

Apache License 2.0 GitHub

ammonite vi mode ivy

Scala versions: 2.13 2.12 2.11

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