1

In Vim, I can do this trick on a line with the words "People":

yy p Shift-v r +

It will produce a set of lines that like this:

People

++++++

I would like to be able to reproduce this in Emacs if possible.

Drew
  • 77,472
  • 10
  • 114
  • 243
Edman
  • 1,207
  • 8
  • 13

1 Answers1

5

Use C-M-% (query-replace-regexp) to replace the pattern . with + in the region (In Emacs regexp, . matches any characters except newline).

xuchunyang
  • 14,527
  • 1
  • 19
  • 39