Skip to content

Instantly share code, notes, and snippets.

@honzajavorek
Created December 22, 2019 16:53
Show Gist options
  • Save honzajavorek/f3ae4d7ade97d820e81f08140960376e to your computer and use it in GitHub Desktop.
Save honzajavorek/f3ae4d7ade97d820e81f08140960376e to your computer and use it in GitHub Desktop.
vim in Haskell

vim in Haskell

This is a rather robust reimplementation of vim in Haskell. To run this on macOS:

$ brew install ghc
$ runhaskell vim.hs  # then type characters and press return
import Control.Monad
main = do
line <- getLine
when (line /= ":wq") $ main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment