Code Monkey home page Code Monkey logo

Comments (8)

asm-jaime avatar asm-jaime commented on May 30, 2024 1

It may be useful.
When you open a single fold under cursor: hit enter (or zo) and move string, it causes "close all folds under cursor". To avoid this, just open all folds in the file through: zR

from vim-move.

cpfaff avatar cpfaff commented on May 30, 2024

Can try it yourself with a simple file containing this:

asdf 
asdf

# {{{
    asdlfjasdf
# }}}

asdf 
asdf

# {{{
    asdlfjasdf
# }}}

from vim-move.

cpfaff avatar cpfaff commented on May 30, 2024

When all folds in there are closed. Just go to the first line and move it down to replace the second. The last fold will open. And then go to the last fold to close it again but it will not work as no fold is recognized.

from vim-move.

matze avatar matze commented on May 30, 2024

Sorry for the late response, I've been on vacation. I use folds myself and this would affect me, however I cannot replicate this behaviour. When I close all folds in your example above (or my vimrc) I can exchange the topmost lines just fine. Maybe some other fold-related plugin is causing this?

However, there is a big problem when trying to move folds but this is worth a separate ticket.

from vim-move.

cpfaff avatar cpfaff commented on May 30, 2024

No problem. Well actually I do not much modify the fold settings in my vimrc. I only set:

set foldmethod=marker
set foldnestmax=10

But maybe some of my plugins manipulate fold settings which I do not know about.

from vim-move.

matze avatar matze commented on May 30, 2024

I edited your vimrc and nothing opened when moving lines in the upper portion. So, I guess one of the plugins may mess with the fold settings somehow. But it's a bit too much asked, to find out which one.

from vim-move.

cpfaff avatar cpfaff commented on May 30, 2024

Well seems so. I will try it out which one is the guilty by disabling them all and enableling them one after the other again. Thanks.

from vim-move.

matze avatar matze commented on May 30, 2024

I don't like to close it for that reason, but still: works for me.

from vim-move.

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.