in reply to Executing script from Vim, annoying...

Try using this plugin to run your scripts in a new buffer.
Sorry if my advice was wrong.
  • Comment on Re: Executing script from Vim, annoying...

Replies are listed 'Best First'.
Re^2: Executing script from Vim, annoying...
by mascip (Pilgrim) on Jul 20, 2012 at 13:25 UTC

    I installed it, i can type

    :ConqueTerm perl
    and it opens an empty buffer with "perl" written on the bottom. Then, i can write stuff in the buffer but nothing happens.
    If i try instead
    :ConqueTerm perl -e "print 'a'"
    it opens the same buffer, with "perl -e" written at the bottom, and still nothing useful happens.

    Am i doing something wrong ?

    I read the manual, watched videos of people using it, but it just doesn't seem to work on my computer right now.

      Running :ConqueTerm perl -de 42 works for me. Moreover, :ConqueTerm perl -E'say "test"' doesn't work, but :ConqueTerm perl -E'say 1; sleep 1; say 2' works.

      What's more interesting, running :ConqueTerm perl ~/current/bothunter.pl leaves buffer silent, but :ConqueTerm sh -c 'perl ~/current/bothunter.pl' works. (bothunter.pl is a script which runs for about a minute while scanning one forum for spam robots)

      Sorry if my advice was wrong.

        Strange...but it does the job and that's all i ask.

        I had to use the same trick :

        :ConqueTerm CMD /c "perl -Ilib /my/scirpt.pl"
        I'll tweak it a bit more tonight or tomorrow, to try and integrate it in my Vim framework. Exciting !! =D

        PS : i've been playing a bit more, i don't understand its behavior. The screen flashes black and white somtimes, there's often a bug from Vim, and sometimes it behaves as expected.