GithubHelp home page GithubHelp logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
Are you using a Cygwin-compiled vim?  I have no idea what vimrun.exe does, but 
it 
sounds like a Cygwin vim would have no need for such a program.

PuTTYcyg does pass command-line arguments along, so I'm not sure where they are 
getting lost.

Why do you need a terminal in which to run external commands from vim anyway?

Original comment by medgar123 on 20 Nov 2009 at 7:30

from puttycyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
Thank you for your response.

I'm using win32 GUI vim.
I need a terminal to replace cmd.exe, just because:
:!echo "Hello\" & World"
this command isn't work if call from cmd.exe, but if we type in bash, it works 
well.
The command which need pass double quote or & won't work, I also want to call 
shell
script in vim, that is why I need a terminal.

There is another problem, vim call system command through vimrun.exe, 
vimrun.exe is a
windows console application, use bash as default shell still have the problem 
above.

And I tried use puttycyg replace vimrun.exe, I set shell=\"-\". I use external
command in vim, vim call puttycyg and pass the -, then I can log into bash, but 
I
can't pass any argument after :! to run, puttycyg will throw out error:
:!which awk
-: No such file or directory

Am I did wrong? Could you tell me how to pass a command to puttycyg and run in
command line mode?

Another way is I use vimrun.exe to call puttycyg(set start puttycyg as the 
shell),
vimrun pass the command linke this:
"start puttytel -load "Cygwin" - "  which awk
still get: -: No such file or directory, I don't think this is correct way pass
command to puttycyg.

Thanks!

Original comment by [email protected] on 21 Nov 2009 at 5:10

from puttycyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
I've investigated this.  First of all, the only way I got this to work was to 
set 
"Connection type" to "Cygterm" in the PuTTY "Default Settings".  For debugging, 
I 
recommend also changing "Close window on exit" to "Never" in "Default Settings" 
as 
well.

So, using :! seems to work fine, until you want whitespace and quoting to work 
properly.  However, :!r does not work as vim passes some flags to vimrun to 
handle 
this.  There are likely other variants of external command (makeprg, etc) which 
will 
likely break.

Given all that, if you still want to try to use putty.exe from gVim you can 
either 
double up your quoting:

:!printf \%\n \"hello world\"

Or, you can write a shim executable in place of vimrun which correctly requotes 
its 
command line for putty.exe.

In summary, using gVim with PuTTYcyg is not something I can support.  You 
should 
consider either using the Cygwin vim command, or to use something like 
unxutils.sf.net with the Windows (non-Cygwin) gVim.

Original comment by medgar123 on 8 Dec 2009 at 1:13

  • Changed state: WontFix

from puttycyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
You should look at using Vimshell, see 
http://theletterpsi.blogspot.com/2010/08/using-cygwin-bash-as-your-win32-vim.htm
l and http://code.google.com/p/vimshell/ . 

Original comment by ives.vdf on 14 Aug 2010 at 9:15

from puttycyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
Actually, I'm using vimshell now, thanks.
Vimshell still needs more improving that can implement shell more efficiency,
And I use another way: use shc compile shell script to executable files and 
call it in gvim, it works well.

Original comment by [email protected] on 16 Aug 2010 at 11:30

from puttycyg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.