How can you use Python in Vim?

前端 未结 12 1766
清酒与你
清酒与你 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:19

    You can execute the code, read the output on the cursor and finish with u, supposing you are executing python code. Simple and quick.

    :r !python %
    
    u
    

    I like it over mapping and selecting-in-visual-mode, like with too-much-php, because it keeps the base simple!

提交回复
热议问题