Pages

Wednesday, 8 August 2012

tmux, gvim automation

tmux

List panes
tmux list-panes
Select a pane
tmux select-pane -t 0
Send Ctrl-P and Ctrl-N to pane #1
tmux send-keys -t 1 C-p C-m

gvim

you will need gvim to do these things

Start vim as a server
vim --servername "coding"
Send a message to vim
vim --servername "coding" --remote-send '<Esc>:!ls<CR>'

No comments:

Post a Comment