🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: VIM, BenjaVIM y sus funciones.

#14321
From: Benjamín Albiñana Pérez
Date: Thu, 16 Nov 2000 00:00
63 lines
2505 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 Cuando: Thu, 16 Nov 2000 10:54:17 +0100
 Quien: Santiago Romero <sromero@escomposlinux.org>
 Que: VIM, BenjaVIM y sus funciones.

> como harias para crear una funcion que me pregunte una
> cadena (llamemosle pag) y haga un:
> :r !lynx -dump ~/web/$pag 
> :?

  No es muy elegante, pero funciona:
  
fun! Srm()
   let pag = input ("�P�gina?   ")
   let pat = "r!lynx -dump ~/web/"
   let todo = pat . pag
   exec todo 
endfun

  M�telo en el .vimrc, o en un fichero que cargues al lanzar
  el vim, y a�ade 

  map <F12> :call Srm()<CR>

  Aunque esto ya lo sab�as, pero es que me encanta darme
  pisto. 

> Por cierto, tal vez te haga ilu esta opcion del LYNX:
>    -vikeys
>                  enable vi-like key movement.
> Y esta?
>     -emacskeys

  /home/benjamin-> grep vi .lynxrc | grep -v '#'
  file_editor=vim
  vi_keys=on

  De hecho, en el /etc/profile tengo 

  set -o vi  

  que d� mucho juego.  No por nada el desemacscareitor es
  idea m�a. ;-) Alg�n d�a haremos de �ste un mundo
  emacs-free. 

- -- 
Benjam�n Albi�ana P�rez
Linux User N�78177                         http://www.escomposlinux.org/
Clave p�blica: wget http://www.escomposlinux.org/benalb/benjamin-gpg.asc
"Recientemente he conseguido usar vim, via telnet, en un Nokia Communicator,
y ahora puedo decir que funciona de maravilla en un Palm Pilot"
                                              Allan Kelly   :h quotes.txt

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6E/8W633hg168lHwRAgDYAJwJOUQRX1xGvueI3po+c2n70KJrngCcCs+A
dUFwlncELIDB+tG8pSGePvY=
=v4VP
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn917voj.gl7.benjamin@lamanonegra.net.dhis.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <9sa0v8.bc.ln@127.0.0.1>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,e8df8b74b906430b
X-Google-Attributes: gidf86c8,public
From: benjamin@lamanonegra.net.dhis.org (Benjamín Albiñana Pérez)
Subject: Re: VIM, BenjaVIM y sus funciones.
Date: 2000/11/16
Message-ID: <slrn917voj.gl7.benjamin@lamanonegra.net.dhis.org>
X-Deja-AN: 694360135
Content-Transfer-Encoding: 8bit
References: <9sa0v8.bc.ln@127.0.0.1>
Content-Type: text/plain; charset=iso-8859-1
X-Trace: fu-berlin.de 974389405 3264940 62.36.10.143 (16 [31308])
Organization: Debian: the biggest, still the best
Mime-Version: 1.0
User-Agent: vimnus.0.0.a1 (Linux)
Reply-To: benjamin@lamanonegra.net.dhis.org
Newsgroups: es.comp.os.linux.programacion