Closed wellle closed 9 years ago
But this introduces a regression for Vim versions between 7.3.100 and 7.4.600, no?
True, but only for those users that updated your plugin in the last nine days.
But I agree, for those we might want to keep the :norm
fallback. Will update.
Updated.
@tpope: Anything else that needs to be done here?
I was made wary by Ingo Karkat's comment, but since it seems to have been deleted I guess I'll give it a try.
I tended to favor :normal
, but as has been mentioned in another issue, that causes ugly multiline errors in case the repeat fails. (Which could be avoided, but not without a large restructuring.)
I think the new handling is the best trade-off, using the i
flag if supported, and :normal
(with not so nice errors) for older versions.
Similar to #36, fixes #23 by passing the new flag
'i'
tofeedkeys()
that is available since Patch 7.4.601.I also tested on Vim 7.3 to ensure compatibility. The unknown flag
'i'
is just silently ignored. So we don't need any version checks here.