Giter Club home page Giter Club logo

vim-fold-cycle's People

Contributors

arecarn avatar step- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tsuyoshicho

vim-fold-cycle's Issues

add option to limit the levels cycled through

For example if you had more than 3 levels of folds by and set the option to limit you to three levels the following would happen each time you performed an open command.

  1. open first level
  2. open second level
  3. open remaining levels

Must I use `zc` to fold a block to use vim-fold-cycle?

I use the defautl map CR and BS to open or close fold.

But I have to use zc to fold some code first to let CR and BS work. If not there is no responce when I press CR and BS.

expected behavior

After open a file, BS could fold an indent block.

actual behavior

No response when press BS after edit a file, must fold someting use zc and then BS and CR all works.

bell

I get a bell if, for instance, I
:set foldmethod=marker
on this file:
{{{1 Abc
...
then press with the cursor in the first line. I'm guessing this is not intentional?

Add option to enhance recursive `zC` to all nested folds

Vim's default behaviour for zC and zA when closing is that it only closes folds under the cursorline which is always only one line. This is identical to zc and za. Only when using visual selection the recursive nature of zC can be used.

IMHO I would expect a different behavior more similar to your plugin except that zC means always closing of the fold of the current cursor and all folds contained in this fold. zA should follow this pattern when closing except it inverts the current fold and all nested folds.

I suspect this should be quite close what your plugin does and could easily be added.

A similar discussion about my intention can be found here:
http://vim.1045645.n5.nabble.com/Folding-recursively-levels-td4848210.html

Update
For consistency one could also change zO and as a second option also change visual mode behaviour

Vim help would look like without visual mode description:

...
							*zO*
zO		Open all folds under the cursor recursively.  Folds that are
                contained in the fold of the cursor line are also changed.
...
							*zC*
zC		Close all folds under the cursor recursively.  Folds that are
                contained in the fold of the cursor line are also changed.
...
							*zA*
zA		Toggle the fold status of the fold under the cursor and
                all folds contained in this fold.
...

not working in neovim without using zc or zM firstly.

In nvim 0.4.3, when opening. a new file, nothing happens without first triger once with zc or zm, or other built-in fold methods. After usage of zc/zo, then CR and BS work nicely as expected. It is quite strange, any ideas on this?

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.