ghcup.vim icon indicating copy to clipboard operation
ghcup.vim copied to clipboard

Vim plugin for GHCup

ghcup.vim

Vim plugin to use GHCup from within vim buffers.

  • Seamless switching between Vim and GHCup
  • Support Vim8 / NeoVim terminal

Code and ideas inspired from tig-explorer.

GHCup

Requirement

Installation

" 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-plug
Plug 'rbgrouleff/bclose.vim'

" NeoBundle
NeoBundle 'rbgrouleff/bclose.vim'

Usage

Keymap on Vim

Add following script to ~/.vimrc

" open ghcup in the current buffer
nnoremap <Leader>g :GHCup<CR>