Skip to content

vmchale/vim-hare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-hare

I forked an old version of this plugin since it hadn't been updated in two years. This version is documented and it works, but it doesn't have all of HaRe's features.

Installation

First, install HaRe with cabal, viz.

 $ cabal new-install HaRe -w ghc-8.0.2

Once that's done, you can install the plugin. To do so using vim-plug, add the following to your .vimrc:

Plug 'vmchale/vim-hare

Configuration

vim-hare provides keybindings, but you have to activate them yourself. This is what I have in my .vimrc:

au BufNewFile,BufRead *.hs nnoremap lu <Plug>LiftHare

Use

  • :Hreplace newName - Rename the identifier under the cursor to newName
  • :Hlift - Lift a function to top-level
  • :Happlicative - Generalize a monadic function to an applicative one

About

Vim plugin that I use for HaRe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published