Comments (8)
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.
Not at all, if there was a mailing list I would have asked there. Thanks for clearing this up.
from vim-fish.
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.
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.
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.
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.
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.
Scratch that; I had misunderstood the behavior of window-local options.
from vim-fish.
Related Issues (20)
- Move usage notes from README to help file
- Drop or improve the funced behavior HOT 5
- Improve portability
- Syntax Checker return Unknown command 'eval' HOT 2
- HOW TO INSTALL? HOT 9
- E484: Can't open file /tmp/vnKV0xX/0 at Vim startup HOT 3
- syntastic checker doesn't work with current syntastic HOT 2
- Indentation is broken HOT 10
- Comments are replaced by empty lines HOT 5
- funced support HOT 4
- Unable to create temp dir automatically
- Startup of vim-fish is insanely slow HOT 37
- Unknown option error on start up HOT 2
- neosnippet snippets HOT 1
- Not keyword is not highlighted HOT 4
- Broken syntax of quoted strings
- "Invalid range" plugin error when opening fish file HOT 1
- A fork that I indend to maintain HOT 1
- Completion is broken HOT 1
- pushd and popd are considered errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-fish.