Remapping u/U interferes with foldopen #9

Closed
y opened this Issue Aug 17, 2012 · 3 comments

Projects

None yet

2 participants

@y
y commented Aug 17, 2012

Because the repeat plugin remaps the 'u' command, foldopen no longer opens the fold when an undo happens in a closed fold.
According to the help for foldopen:

When the command is part of a mapping this option is not used. Add the zv command to the mapping to get the same effect.

So repeat should check if 'undo' is listed in 'foldopen' and if so, add the 'zv' command to the 'u' remapping.

@tpope
Owner

Simple enough. Can you confirm if the same behavior should apply to U and <C-R>?

@y
y commented Aug 18, 2012

Yes, U and should also reopen folds.

@tpope tpope added a commit that closed this issue Aug 22, 2012
@tpope Respect 'foldopen' on undo
Closes #9.
613eb1c
@tpope tpope closed this in 613eb1c Aug 22, 2012
@tpope
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment