vim-stylish-haskell
vim-stylish-haskell copied to clipboard
deletes code when combined with vim2hs
Using the following vimrc as vim -u vimrc
set nocompatible
filetype on
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'dag/vim2hs'
Bundle 'nbouscal/vim-stylish-haskell'
filetype plugin indent on
syntax on
saving a file such as
main :: IO ()
main = undefined
ends up with all the code deleted leaving only the type declaration.
On the other hand saving a file such as
main = undefined
--
seems to leave everything intact.
Not really sure what a good configuration for haskell would be (I happened to have vim2hs already) but deleting code like that seems kind of bad.
I run into this problem too.