Skip to content

chengpohi/ammonite-vi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ammonite vi mode ivy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published