Skip to content

mk12/vim-lean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim Lean

This repository is a Pathogen/Vundle/Plug plugin for the Lean Theorem Prover. The files ftdetect/lean.vim and syntax/lean.vim are taken directly from the official lean.vim plugin.

Install

Set up vim-plug, and then add the following to your .vimrc:

Plug 'mk12/vim-lean', { 'for': 'lean' }

Usage

Why use this instead of the official plugin? Because it provides two useful commands:

  • :LeanReplace: Replace forall, Pi, ->, etc., with Unicode characters.
  • :LeanCheck: Run lean on the file and show the output in a split (if there is any).

Put let g:lean_auto_replace = 1 in your vimrc if you want to run :LeanReplace automatically on every save.

License

The Lean Theorem Prover is available under the Apache License 2.0; see LICENSE for details.

About

Lean Theorem Prover plugin for Vim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published