Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let [e and ]e work on closed fold in normal mode #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Let [e and ]e work on closed fold in normal mode #27

wants to merge 1 commit into from

Conversation

vheon
Copy link

@vheon vheon commented Dec 30, 2012

As I read in the vim documentation, closed fold should be treated as single line, so I thought that this could be helpful to keep all consistent. I'm a new to vimscript so if it is poorly structured or if could be improved with some vimscript trick let me know.

@tpope
Copy link
Owner

tpope commented Dec 30, 2012

I think I agree (although :move itself doesn't support this, curiously). How does your solution hold up when a count is given?

@vheon
Copy link
Author

vheon commented Dec 31, 2012

The count work just fine, but there's another problem: when you move a closed fold to a line where there's another closed fold the first one gets inside the latter and to me is a horrible thing, so I prefer if you put on hold this pull request until I figure it out a way of make this work and if this "feature" worth the complexity of doing it.

(p.s. sorry if my english is not good enough)

@tpope
Copy link
Owner

tpope commented Dec 31, 2012

No worries. When you figure it out, please squash it to a single commit. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants