Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hasufell/ghcup.vim

Vim plugin for GHCup
https://github.com/hasufell/ghcup.vim

haskell vim vim-plugin

Last synced: 23 days ago
JSON representation

Vim plugin for GHCup

Awesome Lists containing this project

README

        

# ghcup.vim

Vim plugin to use [GHCup](https://gitlab.haskell.org/haskell/ghcup-hs) from within vim buffers.
* Seamless switching between Vim and GHCup
* Support Vim8 / NeoVim terminal

Code and ideas inspired from [tig-explorer](https://github.com/iberianpig/tig-explorer.vim).

![GHCup](./ghcup.vim.gif)

## Requirement

* [GHCup](https://www.haskell.org/ghcup/)

## Installation

```vim
" vim-plug
Plug 'hasufell/ghcup.vim'

" NeoBundle
NeoBundle 'hasufell/ghcup.vim'
```

**NOTE: If you use Neovim, you have to add the dependency to the plugin bclose.vim:**

```vim
" vim-plug
Plug 'rbgrouleff/bclose.vim'

" NeoBundle
NeoBundle 'rbgrouleff/bclose.vim'
```

## Usage

### Keymap on Vim

Add following script to ~/.vimrc

```vim
" open ghcup in the current buffer
nnoremap g :GHCup
```