diff --git a/README.md b/README.md index ea03240..797891a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,15 @@ Idris 2 mode for vim ==================== -This is an [Idris 2][] mode for vim which features syntax highlighting, -indentation and optional syntax checking via [Syntastic][]. If you need a REPL -I recommend using [Vimshell][]. +This is an [Idris2][] mode for vim which features interactive editing, +syntax highlighting, indentation and optional syntax checking via +[Syntastic][]. If you need a REPL I recommend using [Vimshell][]. +It is mostly cloned from the original [idris-mode][]. + +Not all of the commands work yet. Note that the keyboard shortcuts have +been updated since Idris 1 to be consistent with the Atom mode (e.g. +`a` to add definition, rather than `d`) although +the old shortcuts still work. ![Screenshot](http://raichoo.github.io/images/vim.png) @@ -42,12 +48,10 @@ commands are supported. `t` show type -`d` Create an initial clause for a type declaration. +`a` Create an initial clause for a type declaration. `b` Same as \d but for an initial typeclass method impl. -`md` Same as \d but for a proof clause - `c` case split `mc` make case @@ -64,11 +68,11 @@ commands are supported. `o` obvious proof search -`p` proof search +`s` proof search `i` open idris response window -`h` show documentation +`d` show documentation ## Configuration diff --git a/syntax/idris2.vim b/syntax/idris2.vim index fddf1ea..e786918 100644 --- a/syntax/idris2.vim +++ b/syntax/idris2.vim @@ -86,4 +86,4 @@ highlight def link idrisString String highlight def link idrisChar String highlight def link idrisBacktick Operator -let b:current_syntax = "idris" +let b:current_syntax = "idris2"