Vim: Run selected code in a persistent REPL-environment

前端 未结 5 1858
逝去的感伤
逝去的感伤 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:17

    I recently wrote a plugin for a very similar purpose: vim-notebook which allows the user to keep a background process alive and to make it evaluate part of the current document (and to write the output in the document). It is intended to be used on notebook-style documents containing pieces of code to be evaluated.

提交回复
热议问题