In one terminal, run out_pipe
.
From vim:
:call PipeCommand("echo " . expand("%"))
See the current file name being printed out by out_pipe
.
Win.
In one terminal, run out_pipe
.
From vim:
:call PipeCommand("echo " . expand("%"))
See the current file name being printed out by out_pipe
.
Win.
#! /bin/bash | |
tail -F ~/tmp/commands | while read data; do | |
[ -z "$data" ] && continue | |
clear | |
echo $data | |
sh -c "${data}" | |
done |
function! PipeCommand(cmd) | |
let cwd = fnamemodify('.', ':p') | |
let full_cmd = "cd " . cwd . " && " . a:cmd | |
exe "silent !echo \"" . full_cmd . "\" > ~/tmp/commands" | |
exe "silent !echo > ~/tmp/commands" | |
exe "redraw!" | |
endfunction |