vim2hs
vim2hs copied to clipboard
"No fold found"
Folding functions inside Haskell files does not work for me. The fold column also stays empty. Cabal files can be folded however.
Tested with Vim 7.8.4 without any other plugins or vimrc settings on Ubuntu 14.04.
I think I found the cause. I had tried https://github.com/Twinside/vim-haskellFold before, on the same file. I am using:
""" Save folds on exit, restore folds on open
autocmd BufWinLeave * silent! mkview
autocmd BufWinEnter * silent! loadview
Which stores setlocal foldtext=HaskellFoldText() in the viewdir for that file, and vim2hs doesn't overwrite that setting.
Stop-gap solution: delete viewdir folder.