如何输入与上一行字符数一样多的连字符?

Yoh*_*hei 4 vim restructuredtext

我想输入与上面一行中的字符数一样多的特定字符。

前:

FooBar
Run Code Online (Sandbox Code Playgroud)

后:

FooBar
------
Run Code Online (Sandbox Code Playgroud)

我想用这个函数写reStructuredText

Ama*_*dan 11

yypVr-
Run Code Online (Sandbox Code Playgroud)

拉动这条线,粘贴它,然后将每个字符更改为破折号。