Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion value of a variable within a expression

Received: by 10.216.80.144 with SMTP id k16mr101789wee.1.1296616279260;
        Tue, 01 Feb 2011 19:11:19 -0800 (PST)
X-BeenThere: vim_use@googlegroups.com
Received: by 10.216.237.207 with SMTP id y57ls59611weq.0.p; Tue, 01 Feb 2011
 19:11:08 -0800 (PST)
Received: by 10.216.45.205 with SMTP id p55mr99587web.14.1296616268620;
        Tue, 01 Feb 2011 19:11:08 -0800 (PST)
Received: by 10.216.178.13 with SMTP id e13mr544521wem.11.1296608692696;
        Tue, 01 Feb 2011 17:04:52 -0800 (PST)
Received: by 10.216.178.13 with SMTP id e13mr544520wem.11.1296608692667;
        Tue, 01 Feb 2011 17:04:52 -0800 (PST)
Return-Path: <jo...@geiregat.org>
Received: from mailrelay011.isp.belgacom.be (mailrelay011.isp.belgacom.be [195.238.6.178])
        by gmr-mx.google.com with ESMTP id f2si1881222wer.8.2011.02.01.17.04.52;
        Tue, 01 Feb 2011 17:04:52 -0800 (PST)
Received-SPF: softfail (google.com: domain of transitioning jo...@geiregat.org does not designate 195.238.6.178 as permitted sender) client-ip=195.238.6.178;
Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning jo...@geiregat.org does not designate 195.238.6.178 as permitted sender) smtp.mail=jo...@geiregat.org
X-Belgacom-Dynamic: yes
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArIBAOc6SE1btmK6/2dsb2JhbAAMlmHMDIVTBA
Received: from 186.98-182-91.adsl-dyn.isp.belgacom.be (HELO [192.168.1.6]) ([91.182.98.186])
  by relay.skynet.be with ESMTP; 02 Feb 2011 02:04:52 +0100
From: Jonas Geiregat <jo...@geiregat.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: value of a variable within a expression
Date: Wed, 2 Feb 2011 02:04:51 +0100
Message-Id: <9A5B7041-4373-4037-BEA5-C4EA7223344F@geiregat.org>
To: vim_use@googlegroups.com
Mime-Version: 1.0 (Apple Message framework v1082)
X-Mailer: Apple Mail (2.1082)

Hello,

You have to excuse me if this is a silly question. But as you might have =
guessed I'm new to vim.

I've defined a variable s:nfile and want to use it in the following =
expression.

!stylus < '%:p' > s:nfile

This doesn't work and really runs !stylus < whatever_is_the_current_file =
> s:nfile.

I've tried everything from echo s:nfile to let s:nfile within the =
expression.

Thanks in advance,

Jonas Geiregat.