From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ben Aurel" Newsgroups: gmane.emacs.help Subject: How do you run your scripts efficiently? Date: Sun, 14 Sep 2008 08:13:58 -0700 Message-ID: <74a4f4670809140813l50ecc65ey10b29303abb620f3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221540612 12623 80.91.229.12 (16 Sep 2008 04:50:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 04:50:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 06:51:04 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfSWf-0001Ex-5d for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 06:50:57 +0200 Original-Received: from localhost ([127.0.0.1]:58228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfSVe-0006Vo-A7 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 00:49:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KetIX-0004Jl-O1 for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 11:14:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KetIV-0004JA-VX for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 11:14:01 -0400 Original-Received: from [199.232.76.173] (port=45198 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KetIV-0004J2-LE for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 11:13:59 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.244]:10519) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KetIV-0006ux-Br for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 11:13:59 -0400 Original-Received: by an-out-0708.google.com with SMTP id c38so158178ana.84 for ; Sun, 14 Sep 2008 08:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=w0nuxgWDIMj2V+JiO5C91NeLrNnfUHYaMxPEeUuzGro=; b=jKQeKzr5UPodXA0OvJylzPla+mh65yOwaYFhWMtJEM13HB2pYPVC3P+xMrZhmfryYC VVZVhLObZetR+GL4KevVdNghTgjjllgZv4x13Dv5fRoLUBM9eY9EX5rGWdRTBpvJyC0l KWDQSc3x/5qHJ1de7LIoJa4zyS5HLaLqvtKPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=i87GlDyNr6XRKUDv6tyornDAMQu3dOpa35LW5UL+4pUAw1s66TlegMqYF1XCN09bjI BfkufvyDnH5IXfv2N4vAL9sxzu92Zz8xPOf6QcJ3fR+4laeaLsG1O9/M9T7ZiJi1yQpH mZBh9yUA48jq+PEWYK65NOQrzp1u6Uzw2G0WQ= Original-Received: by 10.100.41.8 with SMTP id o8mr7461013ano.11.1221405238339; Sun, 14 Sep 2008 08:13:58 -0700 (PDT) Original-Received: by 10.100.32.11 with HTTP; Sun, 14 Sep 2008 08:13:58 -0700 (PDT) Content-Disposition: inline X-Google-Sender-Auth: 3e5d9edd229bbcc1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 16 Sep 2008 00:48:42 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57658 Archived-At: hi I work mostly in vim, although I'm not a very advanced vim user. The problem is I can't find a simple way to easily run a perl script and capture its output. I've tried different things but I'm still *very* unsatisfied with the implementation of the following basic workflow: 1. Edit a perl script in the editor 2. Press one key (eg. F5) to save and run the script 3. Print the output to a window below the editor window 4. Possibility to easily switch to the output window and scroll through the messages 5. Possibility to easily switch back to the editor window Currently I work with a GNU screen/vim combo. ________________ | term1: vim | |~ |~ |________________ | term2 | jdoe:% |________________ But there is always a lot of typing involved. For example to accomplish step 2. in the workflow above: - ESC, :w (to save the script in vim in term1) - CTRL-Z, tab (to switch to term2) - type "./myscript.pl" (to run the script in term2) I think it's far from ideal... Can this easier be done with emacs? How is your workflow? thanks ben