Skip to content

kanosuke/vimterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vimterm

Vim plugin for vim-terminal.

  • Start terminal on vim-terminal leftside.

  • Close terminal on vim-terminal leftside.

  • Send current line to terminal. if iptyhon then with %cpaste -q.

  • Send block (between # %% and # %%) to terminal. if ipython then with %cpaste -q.

  • Send selection line to terminal. if ipython then with %cpaste -q.

1. Install

Install by Vundle.
Add .vimrc

  • Plugin 'kanosuke/vimterm'

2. Key map

  • <leader>p Start IPython

  • <leader>r Start R

  • <leader>t Start bash

  • <leader>c Close terminal

  • <leader>l Sendline

  • <leader>b SendBlock

  • <leader>s SendSelection

3. Example

3.1. IPython Example

  1. Open IPython

  2. Send line.

  3. Send block.

  4. Send selection.

Code: py
# Open IPython. press <leader>p
# Send line. press <leader>l
print("Hello line.")

# Send block. press <leader>b
# %%
print("Hello block1.")
print("Hello block2.")
# %%

# Send selection. press <leader>s
print("Hello selection1.")
print("Hello selection2.")

# Close IPython press <leader>c

Example screenshot

3.2. R Example

  1. Open R

  2. Send line.

Code: R
# Open R. press <leader>r
# Send line. press <leader>l
print("Hello line.")

# Close IPython press <leader>c

Example screenshot

3.3. bash Example

  1. Open bash

  2. Send line.

Code: bash
# Open bash. press <leader>t
# Send line. press <leader>l
echo "Hello line."

# Close IPython press <leader>c

Example screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published