vim2hs icon indicating copy to clipboard operation
vim2hs copied to clipboard

"No fold found"

Open thomie opened this issue 11 years ago • 1 comments

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.

thomie avatar Nov 02 '14 19:11 thomie

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.

thomie avatar Nov 02 '14 19:11 thomie