You are not logged in.

#1 2012-10-24 23:27:27

flexo3001
Member
From: berlin
Registered: 2012-01-13
Posts: 95

Haskell-Is there a working Vim-support?

Hey everyone out there!

In university i started programming haskell and try to do this job in my lovely Vim....but the Haskell-Syntaxhighlightning is something like crappy and there's no working Indentation. Is somebody out there who can help me to improve my workflow???

Thanks for your help and time,
greetz flexo

PS:btw, i tried the vim-haskell and vim-haskell-syntax packages from the AUR with no greater sucess. I found the "vim-haskell-mode" but it seems that the development is stopped.


Fight war not wars, destroy power not people!

Offline

#2 2012-10-26 05:53:44

Daedalus1
Member
Registered: 2011-11-17
Posts: 24

Re: Haskell-Is there a working Vim-support?

  1. Install Vundle to install vim scripts easily, following the instructions in the link below.
    https://github.com/gmarik/vundle

  2. Put the following in your .vimrc:

    Bundle 'indenthaskell.vim'
    Bundle 'dag/vim2hs'
    " Enable autocompletion from vim2hs
    Bundle 'Shougo/neocomplcache'
    let g:neocomplcache_enable_at_startup = 1
    Bundle 'ujihisa/neco-ghc'
  3. Run :BundleInstall

The Bundles with the forward slashes are github repos, and the ones without them are from <http://www.vim.org/scripts>.

I'd also recommend NERDTree, Command-T, and LustyJuggler

Last edited by Daedalus1 (2012-10-26 05:55:37)

Offline

#3 2012-10-28 00:10:07

flexo3001
Member
From: berlin
Registered: 2012-01-13
Posts: 95

Re: Haskell-Is there a working Vim-support?

Daedalus1 wrote:
  1. Install Vundle to install vim scripts easily, following the instructions in the link below.
    https://github.com/gmarik/vundle

  2. Put the following in your .vimrc:

    Bundle 'indenthaskell.vim'
    Bundle 'dag/vim2hs'
    " Enable autocompletion from vim2hs
    Bundle 'Shougo/neocomplcache'
    let g:neocomplcache_enable_at_startup = 1
    Bundle 'ujihisa/neco-ghc'
  3. Run :BundleInstall

The Bundles with the forward slashes are github repos, and the ones without them are from <http://www.vim.org/scripts>.

I'd also recommend NERDTree, Command-T, and LustyJuggler


thanks, i will try it. after a tip, i installed pathogen an haskell-indentation and -syntax from git.i think it will work fine for now. but your way sounds quite interessting too


Fight war not wars, destroy power not people!

Offline

Board footer

Powered by FluxBB