In a vim buffer if I have a list of characters say:
A
B
c
C
d
D
and for each one I want to replace it with its corresponding ascii code ( in decimal ). Is there a way to do this without using an external tool through :r!some_tool
For instance, I know there is the :ascii and ga commands but they print the value to the screen but I can't find a way to get its output into the buffer.