All Projects → jebaum → Vim Tmuxify

jebaum / Vim Tmuxify

Vim plugin for handling tmux panes.

Labels

Projects that are alternatives of or similar to Vim Tmuxify

Unite Outline
outline source for unite.vim
Stars: ✭ 132 (-13.16%)
Mutual labels:  viml
Inkpot
Inkpot 88/256 Colour Scheme for Vim
Stars: ✭ 138 (-9.21%)
Mutual labels:  viml
Vim Js Context Coloring
JavaScript Context Coloring in Vim
Stars: ✭ 149 (-1.97%)
Mutual labels:  viml
Vim Textobj Line
Vim plugin: Text objects for the current line
Stars: ✭ 134 (-11.84%)
Mutual labels:  viml
Vim Addon Local Vimrc
kiss local vimrc with hash protection
Stars: ✭ 136 (-10.53%)
Mutual labels:  viml
Minivimrc
a tiny vimrc to be used primarily for troubleshooting plugins
Stars: ✭ 140 (-7.89%)
Mutual labels:  viml
Vim Noscrollbar
A scrollbar-like widget for the vim statusline
Stars: ✭ 129 (-15.13%)
Mutual labels:  viml
Vimside
Vim Scala IDE (VimSIde) built upon ENSIME
Stars: ✭ 151 (-0.66%)
Mutual labels:  viml
Doxygentoolkit.vim
Simplify Doxygen documentation in C, C++, Python.
Stars: ✭ 138 (-9.21%)
Mutual labels:  viml
Tlib vim
Some utility functions for VIM
Stars: ✭ 147 (-3.29%)
Mutual labels:  viml
Eddie Vim2
Yet another vimrc
Stars: ✭ 135 (-11.18%)
Mutual labels:  viml
Vimkata
Deliberate Practice lessons for learning the Vim Editor
Stars: ✭ 135 (-11.18%)
Mutual labels:  viml
C.vim
C/C++ IDE -- Write and run programs. Insert statements, idioms, comments etc.
Stars: ✭ 142 (-6.58%)
Mutual labels:  viml
Align
Help folks to align text, eqns, declarations, tables, etc
Stars: ✭ 132 (-13.16%)
Mutual labels:  viml
Mru.vim
Plugin to manage Most Recently Used (MRU) files
Stars: ✭ 149 (-1.97%)
Mutual labels:  viml
Mustache.vim
Vim mode for mustache and handlebars (Deprecated)
Stars: ✭ 129 (-15.13%)
Mutual labels:  viml
Vim Textobj Indent
Vim plugin: Text objects for indented blocks of lines
Stars: ✭ 140 (-7.89%)
Mutual labels:  viml
Dotvim
A community driven framework for vim
Stars: ✭ 151 (-0.66%)
Mutual labels:  viml
Vim Jekyll
📝 Fork of psykidellic/vim-jekyll because actually forking it freaks out
Stars: ✭ 151 (-0.66%)
Mutual labels:  viml
Matchit.zip
extended % matching for HTML, LaTeX, and many other languages
Stars: ✭ 146 (-3.95%)
Mutual labels:  viml

vim-tmuxify

This is a shiny Vim plugin for handling tmux panes from within Vim!

Features:

  • create/kill associated panes
  • associate tmuxify to already existing panes
  • send visually highlighted lines to the associated pane
  • send to pane by prompting for input
  • send to pane by setting a run command for the current filetype
  • once set, run commands are remembered, but can easily be reset
  • all the plugin configuration happens in one dictionary that holds filetypes as keys and run commands as values

NOTE: This plugin needs tmux 1.6 with a certain patch level. You're safe with versions 1.7+.

Feedback, please!

If you use any of my plugins, star it on github. This is a great way of getting feedback! Same for issues or feature requests.

Thank you for flying mhi airlines. Get the Vim on!

Installation

If you have no preferred installation method, I suggest using tpope's pathogen:

  1. git clone https://github.com/tpope/vim-pathogen ~/.vim/bundle/vim-pathogen
  2. mkdir -p ~/.vim/autoload && cd ~/.vim/autoload
  3. ln -s ../bundle/vim-pathogen/autoload/pathogen.vim

Afterwards, installing tmuxify is as easy as pie:

  1. git clone https://github.com/mhinz/vim-tmuxify ~/.vim/bundle/vim-tmuxify
  2. start Vim
  3. :Helptags
  4. :h tmuxify

Options

Put these variables into your vimrc for great enjoyment. The shown examples are also the default values.

let g:tmuxify_custom_command = 'tmux split-window -d'

Use this option if you want to overwrite that default command for creating a new pane.

(Examples are given in :h tmuxify-options)

let g:tmuxify_map_prefix = '<leader>m'

What to start mappings with. Set it to '' to disable mappings.

let g:tmuxify_run = {}

Set run commands for specific filetypes. '%' will be replaced by the full path to the current buffer.

Example:

let g:tmuxify_run = {
    \ 'sh': 'bash %',
    \ 'go': 'go build %',
    \}

Mappings

<leader>mn

Executes TxCreate. Creates a new pane and associates with it.

<leader>mq

Executes TxKill. Closes the associated pane.

<leader>ms

Executes TxSend. Prompts for input and sends it to the associated pane. This mapping also works on visual selections.

<leader>mr

Executes TxSendKey. Prompts for input and sends it to the associated pane as keys.

<leader>mk

Executes TxRun. Prompts for input if there is no entry in g:tmuxify_run for the current filetype. '%' will be replaced by the full path to the current buffer.

<leader>mt

Executes TxSetRunCmd. Change the run command for the current filetype.

<leader>mp

Executes TxSetPane. Associate an already existing pane with tmuxify. Note: You can use tab completion here.

<leader>mc

Executes TxClear. Sends ctrl+l to the associated pane.

<leader>mb

Executes TxSigInt. Sends ctrl+c to the associated pane.

Documentation

:h tmuxify

Author

Marco Hinz <[email protected]>

James Baumgarten (current maintainer)

License

Copyright © Marco Hinz. Distributed under the same terms as Vim itself. See :help license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].