All Projects → jberryman → Haskomplete.vim

jberryman / Haskomplete.vim

A vim ftplugin for magical contextual haskell code completions

Labels

Projects that are alternatives of or similar to Haskomplete.vim

Vim Cmake Syntax
Unmaintained; see https://github.com/pboettch/vim-cmake-syntax
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Dotfiles
My Vim dotfiles.
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Cu.vim
vim plugin for conversion camelCase and underscoreCase
Stars: ✭ 10 (+0%)
Mutual labels:  viml
Ctrlp Branches
Git branch searching using CtrlP.vim
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Ftl Vim Syntax
Vim syntax for FTL (FreeMarker Template Language)
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Vim confs
Personal Vim configurations with focus on a few programming languages (Python, Perl, Ruby and Go) and MacVim.
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Formatvim
Convert current file to colored HTML, BBCode or whatever
Stars: ✭ 8 (-20%)
Mutual labels:  viml
Vim Simplebar
A simple non-attention-seeking Vim status line.
Stars: ✭ 10 (+0%)
Mutual labels:  viml
Freeswitch log vim syntax
Vim syntax for Freeswitch logs
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Devlindo.vim
Ultimate productivity boost for Vim.
Stars: ✭ 10 (+0%)
Mutual labels:  viml
Vim Rspec Focus
Helpers for focused rspec testruns.
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Vim Independence
A vim plugin for loading (git) project specific vim settings
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Reading Vimrc
vimrc読書会資料集
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Elysian.vim
elysian is a 256 terminal only colorscheme inspired by Apprentice
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Zdict.vim
A vim plugin integrate with zdict - the last online dictionary framework you need.
Stars: ✭ 10 (+0%)
Mutual labels:  viml
My.vim
Just a collection of all of the things I have in my .vim/ directory
Stars: ✭ 8 (-20%)
Mutual labels:  viml
Ap dark8
8色 Terminal 用の色設定と vim 用の色設定の自作
Stars: ✭ 9 (-10%)
Mutual labels:  viml
Vim Textobj Rubysymbol
Text object for manipulation of ruby symbol variables
Stars: ✭ 10 (+0%)
Mutual labels:  viml
Molokai Terminal
A molokai-like theme for 16-color terminals and a 256-color theme for vim.
Stars: ✭ 10 (+0%)
Mutual labels:  viml
Puppet Multipuppetmaster
A setup for multiple puppetmaster and one puppeteer who manges them
Stars: ✭ 9 (-10%)
Mutual labels:  viml

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 = undefined

Prepare 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 = #undefined

Normal mode

...todo
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].