Vim: Run selected code in a persistent REPL-environment

前端 未结 5 1856
逝去的感伤
逝去的感伤 2020-12-09 12:38

R, Python, Scala etc. all come with REPL-environments, which I don\'t want to miss, however, most of the time editing text in them sucks, so I edit the code in vim, paste it

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 13:15

    Try Conque:

    """ Conque is a Vim plugin which allows you to run interactive programs, such as bash on linux or powershell.exe on Windows, inside a Vim buffer. """

    It can easily be configured to open a Python interpreter, and a key mapping can be used to transfer the current line to it to be executed (F9 for the current line, F10 for the current file etc.).

提交回复
热议问题