Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 820 Bytes

README.md

File metadata and controls

59 lines (38 loc) · 820 Bytes

Tux.vim

Launch commands in Tmux from Vim

Tux

Installation

Use your preferred installation method for Vim plugins.

Plug 'iovis/tux.vim'
use("iovis/tux.vim")

Usage

Launch :Tux to run a command in your last pane or create a new one. Use ! for running it in a new window.

:Tux[!] {cmd}

The command :TuxRaw won't escape semicolons.

Examples

Launch rspec on the current file

:Tux rspec %

Launch htop in a new window

:Tux! htop

Run last command of last pane

:Tux Up

Execute current line in last pane

:execute 'Tux ' . getline('.')

Run rspec for current file and line

:execute 'Tux ' . expand('%') . line('.')