Skip to content

mcsf/vim-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-repl

A bare-bones utility for REPL-based development.

vim-repl

Press <cr> (Enter) over a paragraph of text to send it to a terminal (:h :term) of choice.

vim-repl prompting the user

Mappings

Mode Mapping Description
normal <cr> Send current paragraph to terminal.
visual <cr> Send current visual-line selection to terminal.

These are enabled either locally with :REPLEnableBuffer or globally with :REPLEnableAll.

Tip: add REPLEnableBuffer to your local ftplugin/<lang>.vim files.

Commands

  • REPLSendBlock: Send current paragraph to terminal.
  • REPLSendSelection: Send current range to terminal.
  • REPLEnableBuffer: Enable <cr> (Enter) mapping for the current buffer.
  • REPLEnableAll: Enable <cr> (Enter) mapping globally.

Variables

  • b:repl_dst_term: A reference to the chosen output terminal for the current buffer. Can be :unlet to reset the buffer's REPL preference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors