I'd like to find and replace some text with other text which consist the result of the shell command. This is my trial, which is not working:
:40,43s/'height': 650/'height': system('python -c "import random; print(random.randint(500, 600))"')/g
Vim don't want to evaluate system('python -c "import random; print(random.randint(500, 600)') part.
Please help me to fix this