🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#14434
From: Jaime Suarez
Date: Sat, 11 Nov 2000 00:00
45 lines
2243 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El d�a Tue, 7 Nov 2000 16:30:48 +0100, Benjam�n Albi�ana P�rez dec�a:

>  �Exactamente lo que necesitaba! Con esto la funci�n queda:
>
>fun! Mocka()
>    let inp = input ("Compile, Link, eXecute, Edit  ")
>    if inp == "c"
>        set mp=/usr/bin/mocka\ -c\ %<
>        make
>    elseif inp == "l"
>        set mp=/usr/bin/mocka\ -p\ %<
>        make
>    elseif inp == "x"
>        set mp=./%<
>        make
>    else
>        echo ""
>    endif
>endfun

Pues ya que estamos -yo tambi�n estoy peleando con el famoso mocka- �esta
definici�n de funci�n la pones en ~/.vimrc o puedo ponerla en un directorio
espec�fico y que s�lo la lea cuando est� en dicho directorio? 
�Y luego c�mo se ejecuta la funci�n?

Me hace falta mejor documentaci�n de VIM, con lo que me gusta...

- -- 
(0-   Jaime Suarez             Criptograf�a,seguridad,passwords...  -0) 
//\   Linux user #114.688      http://MundoCripto.come.to           /\\ 
V_/_  PGP Key id 0x6E90E61B                                        _\_V 
 
Si no puedes convencerlos, conf�ndelos.
- --------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Clave p�blica http://Mundocripto.come.to/jsuarez.asc

iD8DBQE6DTwpQ56tmW6Q5hsRApzjAKCbPPzwi1GyFct/AKKz/OU6JTj0jgCfV+9g
yOvY7FUAbdvH1oyG/qqkpMY=
=288C
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn90qf1b.7u.jsuarez@cachonero.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn908jrf.unk.benjamin@lamanonegra.net.dhis.org> <slrn90e14p.k9.jsuarez@cachonero.org> <slrn90g814.k5u.benjamin@lamanonegra.net.dhis.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,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/11
Message-ID: <slrn90qf1b.7u.jsuarez@cachonero.org>
X-Deja-AN: 692520370
Content-Transfer-Encoding: 8bit
References: <slrn908jrf.unk.benjamin@lamanonegra.net.dhis.org> <slrn90e14p.k9.jsuarez@cachonero.org> <slrn90g814.k5u.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