Example (in vim function):
python3 << endpython
import vim,sys,locale
locale.setlocale(locale.LC_ALL, vim.eval("Locale"))
for i in range(1,10,2):
print(locale.format('%.2f', i))
endpython
The print command, prints the numbers as an echo message.
I would like to print the numbers at the top of the current buffer.
How can I do this?