Giter Site home page Giter Site logo

Disable folding (feature request) about vim-fish HOT 8 CLOSED

dag avatar dag commented on July 16, 2024
Disable folding (feature request)

from vim-fish.

Comments (8)

dag avatar dag commented on July 16, 2024

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.

from vim-fish.

haarts avatar haarts commented on July 16, 2024

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

from vim-fish.

dag avatar dag commented on July 16, 2024

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.

from vim-fish.

haarts avatar haarts commented on July 16, 2024

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).

from vim-fish.

dag avatar dag commented on July 16, 2024

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.

from vim-fish.

dag avatar dag commented on July 16, 2024

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.

from vim-fish.

dag avatar dag commented on July 16, 2024

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

from vim-fish.

dag avatar dag commented on July 16, 2024

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

from vim-fish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.