Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to input hyphen as many as the number of characters in the line above?

I want to input specific character as many as the number of characters in the line above.

Before:

FooBar

After:

FooBar
------

I want to use this function to write reStructuredText

like image 316
Yohei Avatar asked Dec 17 '22 14:12

Yohei


1 Answers

yypVr-

Yank the line, paste it, then change every character to a dash.

like image 174
Amadan Avatar answered Dec 20 '22 02:12

Amadan