Comments (8)
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.
Can try it yourself with a simple file containing this:
asdf
asdf
# {{{
asdlfjasdf
# }}}
asdf
asdf
# {{{
asdlfjasdf
# }}}
from vim-move.
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.
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.
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.
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.
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.
I don't like to close it for that reason, but still: works for me.
from vim-move.
Related Issues (20)
- How to restore the position in the line after moving? HOT 2
- Moving block including indents HOT 4
- Using Ctrl + Shift as a modifier HOT 1
- Moving by multiple lines does not work anymore HOT 2
- [Bug] Does not work on macos HOT 12
- Undoing a move opens folds
- Only first line is indented when moving multiple lines into another indentation level HOT 6
- Can't move to the right when it finds a tilded character HOT 2
- Options to disable all default mappings? HOT 1
- Ridiculously high CPU usage when moving lines horizontally HOT 2
- move_key_modifier='S'
- How to use this Plugin with arrow keys? HOT 5
- How can I map J K to move block down and up? HOT 1
- [Bug] Moveblockleft and down after that makes unexpected behavior. HOT 1
- feat: Allow usage in only a specific mode, i.e. visual mode HOT 1
- Custom key mapping not working properly in neovim HOT 9
- Better default mappings for macOS: use arrow keys HOT 1
- Out-of-box keymaps for moving are not working HOT 5
- The wrong installation method in vim-plug
- Use S as move_key_modifier
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-move.