Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable folding (feature request) #8

Closed
haarts opened this issue May 26, 2013 · 8 comments
Closed

Disable folding (feature request) #8

haarts opened this issue May 26, 2013 · 8 comments

Comments

@haarts
Copy link

haarts commented May 26, 2013

You can now modify the folding behaviour. But it'd be nice if there was an option to disable it completely.

@dag
Copy link
Owner

dag commented May 26, 2013

All you need is:

autocmd FileType fish setlocal nofoldenable

Or just put setlocal nofoldenable in your own ~/.vim/ftplugin/fish.vim.

Closing as wontfix unless you have any objections.

@dag dag closed this as completed May 26, 2013
@haarts
Copy link
Author

haarts commented May 26, 2013

Not at all, if there was a mailing list I would have asked there. Thanks for clearing this up.

@dag
Copy link
Owner

dag commented May 26, 2013

Oh I don't mind. May I ask why you want to disable folding completely? Just concerned about the cost of calculating the folds? It's probably negligible.

@haarts
Copy link
Author

haarts commented May 26, 2013

The computation cost don't bother me at all.
I don't regularly use folds as I don't find them entirely useful (opinion, I know).

@dag
Copy link
Owner

dag commented May 26, 2013

I just realized the defaults in Vim mean the folds will all start out closed. I thought the defaults were to leave all folds open, so you wouldn't notice they're there if you didn't use them. I can see how this would be annoying if you don't want to use folds.

I'll see about making things more clear in the README or something.

@dag dag reopened this May 26, 2013
@dag
Copy link
Owner

dag commented May 26, 2013

Personally I think the fact that folds fold text is nice because it can let you focus on other parts or give you an overview of the file, but this is all secondary. The killer feature of folds for me is that they delimit structures so you can navigate them (zj and zk) and operate on them as text objects (vim-textobj-fold).

But I really didn't mean for the default experience with vim-fish to be that every fold is closed. Not sure if I should just document how to disable folds (or how to configure them to start out opened) or instead make folding in vim-fish opt-in. I don't really like either option and would have preferred Vim's defaults to be different, but alas.

@dag
Copy link
Owner

dag commented Jun 6, 2013

Gah, it's worse: the folding options are only window-local so there's no straightforward way to set them per buffer or filetype.

@dag
Copy link
Owner

dag commented Jun 6, 2013

Scratch that; I had misunderstood the behavior of window-local options.

@dag dag closed this as completed in 2641991 Jun 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants