🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #14537

Re: [vim] pasar el nombre del fichero a una variable.

#14537
From: Jaime Suarez
Date: Mon, 06 Nov 2000 00:00
44 lines
2247 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El d�a Sat, 4 Nov 2000 19:03:31 +0100, Benjam�n Albi�ana P�rez dec�a:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>
>  Nas,
>
>  En vim, �como se puede pasar el nombre del fichero que
>  est�s editando a una variable?  M�s o menos quiero hacer
>  esto

�Te sirve algo de esto? (en vim :help make_makeprg)
==============
The ":make" command executes the command given with the 'makeprg' option.
This is done by passing the command to the shell given with the 'shell'
option.  This works almost like typing

	":!{makeprg} [arguments] {shellpipe} {errorfile}".

{makeprg} is the string given with the 'makeprg' option.  Any command can be
used, not just "make".  Characters '%' and '#' are expanded as usual on a
command-line.  You can use "#<" to insert the current file name without
extension, for example:
  :set makeprg=make\ #<.o
==============

- -- 
(0-   Jaime Suarez             Criptograf�a,seguridad,passwords...  -0) 
//\   Linux user #114.688      http://MundoCripto.come.to           /\\ 
V_/_  PGP Key id 0x6E90E61B                                        _\_V 
 
El mejor efecto de cualquier libro es que incite a su lector a la acci�n
- --------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Clave p�blica http://Mundocripto.come.to/jsuarez.asc

iD8DBQE6BwSXQ56tmW6Q5hsRAtpCAJ9Ot6CIfvC7LPLg8aYMrAw0VnP/4ACdEMqM
jLTbifR3zyuRM1pTEQGhtxU=
=GVbj
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn90e14p.k9.jsuarez@cachonero.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn908jrf.unk.benjamin@lamanonegra.net.dhis.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,d06250fd9289765b
X-Google-Attributes: gidf86c8,public
From: jsuarez@cachonero.org (Jaime Suarez)
Subject: Re: [vim] pasar el nombre del fichero a una variable.
Date: 2000/11/06
Message-ID: <slrn90e14p.k9.jsuarez@cachonero.org>
X-Deja-AN: 690462152
Content-Transfer-Encoding: 8bit
References: <slrn908jrf.unk.benjamin@lamanonegra.net.dhis.org>
Content-Type: text/plain; charset=iso-8859-1
Organization: Corrupción de datos
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: jjsuarez@SINMAYUSCULASiname.com
Newsgroups: es.comp.os.linux.programacion