Remapping u/U interferes with foldopen #9

y opened this Issue Aug 17, 2012 · 3 comments


None yet

2 participants

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.


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

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.
@tpope tpope closed this in 613eb1c Aug 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment