Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jberryman/haskomplete.vim
A vim ftplugin for magical contextual haskell code completions
https://github.com/jberryman/haskomplete.vim
Last synced: about 1 month ago
JSON representation
A vim ftplugin for magical contextual haskell code completions
- Host: GitHub
- URL: https://github.com/jberryman/haskomplete.vim
- Owner: jberryman
- Created: 2011-05-05T05:12:03.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-05-09T17:36:06.000Z (over 13 years ago)
- Last Synced: 2024-10-13T10:32:43.738Z (2 months ago)
- Language: VimL
- Homepage:
- Size: 399 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A vim ftplugin for magical haskell code completions.
I hope this becomes a collaborative project. Please send me pull requests with
improvements or new completions you would like to see.Installation
============Copy the .vim file to your vim installation's _ftplugin_ directory:
mkdir -p ~/.vim/ftplugin/
cp haskell_haskomplete.vim ~/.vim/ftplugin/the functionality should automatically load when you open a haskell source code
file.Usage
=====In insert or normal modes, press <CTRL-H>. If your cursor is in a context that
has an assigned completion (see below) some magic completion action will occur.Implemented Completions
=======================Below the cursor in insert mode looks like ^, in normal mode it looks like #.
When the cursor is ommited on the left hand side, assume the cursor is in insert
mode anywhere on the line shown:Insert mode
-----------create skeleton implementation of term(s) during type declaration:
func1, func2 ---> func1, func2 :: ^
func1 = undefined
func2 = undefinedPrepare a class restriction in a type signature line
func :: ---> func :: (^)=>
Create an arrow in a type signature:
func :: Type ---> func :: Type -> ^
Fill in 'undefined' in a function definition:
func x y ---> func x y = #undefined
func = ---> func = #undefinedNormal mode
-----------...todo