matze / vim-move

Plugin to move lines and selections up and down
http://www.vim.org/scripts/script.php?script_id=4687
MIT License
1.21k stars 56 forks source link

Skip folds #51

Closed hugomg closed 4 years ago

hugomg commented 4 years ago

The MoveVertically commands now behave more similarly to j and k with respect to folds. We now move past closed folds instead of moving the lines inside them.

I think this might fix #23.

hugomg commented 4 years ago

I don't use folds on my day to day work so I'm not 100% that this is doing the right thing. But it seems to behave better than the previous version in the cases that I tested.

matze commented 4 years ago

Nice this has always been a pet peeve of mine! Undo still opens the folds but this is already a big improvement :+1: