sponsor Vim development Vim logo Vim Book Ad

fancyterm.vim : Simple plugin that allows sending buffer text into an active terminal.

 script karma  Rating 4/1, Downloaded by 158  Comments, bugs, improvements  Vim wiki

created by
Ernest Deak
 
script type
utility
 
description
fancyterm is a simple plugin that helps with sending entire buffers
or just lines or selections into repls or shells

fancyterm isn't actually as fancy as some more advanced live-repl
environments, but because it aims to be somewhat universal, it works
with many repls/shells out of the box, without any extra configuration.

So it can easily become a quick-and-easy way to start a live-repl programming
session.

Demo video:
https://www.youtube.com/watch?v=j8QnTPhQMKo
 
install details
The official git repository can be found here:
https://bitbucket.org/g0zar/vim-fancyterm



# Installation

## Manual installation

Copy `plugin/fancyterm.vim` and `doc/fancyterm.txt` and `doc/tags`
into a plugin directory in your runtime path

## Pathogen

Clone the repo into `~/.vim/bundle/`
Run `:Helptags` to generate the tags for the help file.

## Vim bulit-in packages

Clone the repository to path like
```
git clone <URL> ~/.vim/pack/plugins/opt/fancyterm/`
```
Replace <URL> the actuall url of this repository.
And add the following to your `.vimrc` file
```
packadd fancyterm
```

If you don't want the default bindings you can also write right before
```
let g:fancyterm_map_keys = 0
packadd fancyterm
```
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
fancyterm-2.0.0.tgz 2.0.0 2024-04-17 9.0 Ernest Deak Since version 2.0.0 the default <C-i> bindings have been removed.
Instead, the <leader> key has been used in their place. This is because
I didn't realize what <C-i> was actually used for, and choose it pretty much
at random.
If you set `let g:fancyterm_map_keys = 0` then this change doesn't affect you
fancyterm-1.2.2.tgz 1.2.2 2024-04-15 9.0 Ernest Deak fix for TermSendCurrentLine() not expanding tabs to spaces upon sending them to the terminal
fix for TermSendVisual() sending the visual selection several times
fancyterm-1.2.0.tgz 1.2.0 2024-04-15 9.0 Ernest Deak Tab expansion now happens based on the &tabstop global setting.
Fixed a bug where the current line would not be escaped before being sent to the terminal.
fancyterm-1.1.0.tgz 1.1.0 2024-04-15 9.0 Ernest Deak Added a command to set the active terminal via :TermSetActive
fancyterm-1.0.0.tgz 1.0.0 2024-04-14 9.0 Ernest Deak Initial upload
ip used for rating: 3.215.186.30

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github