The :sh is a new trick for me and one I will definitely have to try and 
remember. Our dev group simulated this in a similar manner and quicker 
than respawning the vim process (as this can be slow on larger files) by 
simply suspending the process (Ctrl+z), the firing the perl script (or 
whatever command you need to), then using "fg" to bring the vim process 
"back to life" (active).  Very similar and really a matter of preference 
I imagine. It also allows you to move directories, etc. because you are 
at the original shell level, which can be good and bad :-).........

Anyone hiring?
http://danconia.org/



Chris Devers wrote:
> On Wed, 3 Jul 2002, Koen van der Drift wrote:
> 
> 
>>At 01:13 AM 7/3/2002 -0400, Chris Devers wrote:
>>
>>>Take a look under /sw/fink/dists/stable/main/finkinfo/editors for a
>>>few options (err, mostly Emacs & Vi variants... :/ ), and there are
>>>some others scattered around the rest of the Fink catalog.
>>
>>Yes, I saw all those. thanks. But before I started to d/l them (both
>>xemacs and vim look pretty big), I wanted to make sure that I can also
>>run a perl script directly from the editor, instead of moving back and
>>forth between another terminal window. I have no experience with UNIX
>>editors, so I don't know all the features of each package.
> 
> 
> If you don't want to leave the editor to run your script -- and for an app
> that starts up as quickly as Vim, this isn't such a big hit -- then you
> can either open a subshell (":sh" then do whatever), execute the command
> directoy ("!/usr/bin/perl -args ~/bin/file -args") or, yes, there are
> hooks for running commands interactively in Vi and Vim just as there are
> for Emacs.   ...though to be honest, I forget the keystrokes since I
> usually just do the :sh trick instead. I know that gvim provides an icon
> to run a script, which might work for you, but suffice to say that a few
> minutes browsing the docs should turn up what you're looking for.
> 
> 
> 
> 
> --
> Chris Devers   [EMAIL PROTECTED]
> DO  NOT  LEAVE  IT  IS  NOT  REAL
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Two, two, TWO treats in one.
> http://thinkgeek.com/sf
> _______________________________________________
> Fink-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/fink-users
> 
> 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to