Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: editd

by jsprat (Curate)
on Jul 27, 2002 at 03:28 UTC ( #185716=note: print w/ replies, xml ) Need Help??


in reply to editd

Self-modifying batch files, brings back memories of programming with MS QuickBasic! BTW, this does require NT, since 9x doesn't have pushd or popd.

OT - A comment on vim - when you type 'gvim' at the command prompt, you don't need to wait for gvim to exit to get your prompt back (since at least version 5.6, could be earlier). 'start gvim' isn't necessary, as control is returned almost immediately.


Comment on Re: editd
(tye)Re: editd
by tye (Cardinal) on Jul 28, 2002 at 04:49 UTC

    Typing path/to/gvim at the command prompt doesn't wait but putting path/to/gvim in a *.BAT file does wait, and that is a good thing too, otherwise this script could not be used with gvim.

            - tye (but my friends call me "Tye")
      Apologies in advance if I'm not reading your reply right...

      Try set VISUAL=gvim (if vim is in your path), then run vid.bat. You can edit your directory stack and popd to your heart's content, and it works just fine.

      Update: I hit submit, and then realized that I _did_ misread your reply. The command processor will wait for gvim to exit when called from vid.bat, then continues when you exit or it would never push the directories you add. I originally thought you meant if you didn't have something like 'vi.bat', it wouldn't work.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://185716]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2014-08-23 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls