simnalamburt / vim-mundo

:christmas_tree: Vim undo tree visualizer
https://simnalamburt.github.io/vim-mundo
GNU General Public License v2.0
792 stars 28 forks source link

Add <nowait> to mundo mappings #124

Closed austinliuigi closed 2 years ago

austinliuigi commented 2 years ago

If a user sets 'notimeout' and also has mappings that start with any keys that mundo maps to, they will need to press after the mundo-mapped key to trigger the mundo mapping.

For example, if a user has vim-surround, ds is mapped to delete a surround pair. If they want to trigger the default diff mundo mapping, they will need to press d<esc> if they set 'notimeout', because vim will wait to see if the user will press s after d.

Setting in the mundo-mappings prevents this issue. This will make any mappings that start with a key that mundo maps to unusable in mundo windows, which should be harmless.

simnalamburt commented 2 years ago

@austinliuigi Is there any particular reason you closed this PR?

austinliuigi commented 2 years ago

@simnalamburt I saw issue #116 afterwards and decided that adding this would reduce flexibility for the user.