#Vim 17 bytes
V, 9 bytes
:h<cr>Wy$ZZii{"<C-r>"""¹*":0}
This outputsVery straightforward. Enters insert mode, enters the following text:
{"For Vim version 8.0. Last change: 2016 Mar 31""*********":0}
For me. The output slightly varies depending on which version you use.
Explanation:
First, we open up vim's builtin help file. The text onreason this line is:
*help.txt*<tab>For Vim version 8.0. Last change: 2016 Mar 31
We could simply do Y
to yank the whole line, but tabs are invalid in JSON. So we move forward one word with W
, then yank to the end of the line with y$
. Then we save and close this file with ZZ
.
From here, we simply enter insert mode, and use so short is because <C-r>"¹
to insert the yanked text inrepeats the appropriate placefollowing character 9 times.