How can I call Vim from Python?
Question: I would like a Python script to prompt me for a string, but I would like to
use Vim to enter that string (because the string might be long and I want to
use Vim's editing capability while entering it).


Answer: You can call vim with a file path of your choice:

    
    
    from subprocess import call
    call(["vim","hello.txt"])
    

Now you can use this file as your string:

    
    
    file = open("hello.txt", "r")
    aString = file.read()
    

