tpope.vim-repeat/autoload
Illia Bobyr 0eaf1f2da0
Move required machinery into plugin/repeat.vim.
`repeat.vim` was written to be used as either an autoloaded script or a
normally loaded script.

In particular, as mappings used to be defined by the autoload script,
they would only be actually injected if any other plugin has used the
repeat functionality.

In practice, this creates problems as the mapping is not stable.  One
cannot define a custom mapping to `<Plug>(RepeatUndo)`, as the existence
of the mapping from `<Plug>(RepeatUndo)` is subject to the prior
execution of any code that uses the repeat functionality.

Similarly, when loading a session that was stored when `u` was remapped
to `<Plug>(RepeatUndo)` is almost guaranteed to be an issue.  As `u` is
already remapped, but the plugin has not constructed the next step,
mapping `<Plug>(RepeatUndo)` to the correct function.

Just setting up the mappings seems like a solid solution to these
problems.  While it is a bit less efficient, if the user has enabled
this plugin, they probably rely on it, and so the optimizations are most
likely negligible.

Also updated the installation instructions.  I would imagine most people
use plugin managers today.  And so it is no longer useful, in my mind,
to be able to decide if the plugin will be eagerly or lazily loaded.  It
just complicates the installation process.
2025-07-24 00:38:27 -07:00
..
repeat.vim Move required machinery into plugin/repeat.vim. 2025-07-24 00:38:27 -07:00