alberto wrote: > > _English: (sorry for my english, is not very nice....) > _ > > Hi, I'm programmer and I always use Vi-Vim. > > I work directly with source code in a host. I usually connect by > telnet and then open de code with vi. In the host is not installed Vim > so if a want to use it I have to access from my local machine. > > My question is: > > I have a file with the code I want to modify, etc, for example: > > //home/usuario/aplicacion/pagina1.php > /home/usuario/aplicacion/pagina2.php > /home/usuario/aplicacion/pagina3.php/ > > All these files are in the remote host. Is there an easy way (or not > easy) to open any of these files with a macro...instead of write: > > :e ftp://hostname//home/usuario/aplicacion/pagina2.php > > ** First, I rather suspect that you could shorten the above down a bit. When you use ftp, are you doing it as the user "usuario"? If so, then
:e ftp://hostname/aplicacion/pagina2.php <ftp://hostname//home/usuario/aplicacion/pagina2.php> should work. Second, perhaps you might like to browse the directory and set up a map or command for that purpose (vim doesn't have "macro"s). Use the <return> key when atop the file you want to edit. Map: :nmap <Leader>apl :e ftp://hostname/aplicacion/<cr> Command: :com! Apl :e ftp://hostname/aplicacion/ I confess that I didn't test the above. Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
