How can you use Python in Vim?

前端 未结 12 1760
清酒与你
清酒与你 2020-12-07 06:43

I waste a lot of time between Vim and Python. I find it too slow to manually copy-paste from Python to Vim and vice versa. A good broken example is:

%

12条回答
  •  一整个雨季
    2020-12-07 07:41

    On Windows, if you are editing the python script, just do:

    !start python my...
    

    and press tab to cycle along the available file names, until you find your match:

    !start python myscript.py
    

    It will run in a new cmd window. Personally I prefer to do !start cmd and from there run Python, since it is easier to debug from the eventual error messages.

提交回复
热议问题