Repeat-char: inserting a character n times in Insert mode

This plugin is a resurrection of the first plugin/recipe I ever wrote for Kakoune.

I deleted the original repository and created a new one:

The new version has been improved by the inclusion of a default character and a default count, which can be updated along the current editing session.

This makes the insertion of repeated characters (for example, ASCII horizontal rulers) very fast and hassle-free.

EDIT
The plugin has been further improved by giving it the capacity to “underline” the string on the preceding line, as in this screenshot.

3 Likes

Last note: the length of the underlining will be correct even if the heading above it includes double-width, CJK characters.

1 Like