Comments (5)
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.
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.
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.
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.
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)
- add utmp support HOT 1
- After CTRL-C to terminate executing process command text is no longer visible on input HOT 1
- Can't run a command from the commandline HOT 3
- Overflow error still not resolved
- Word-wrap at bash prompt doesn't work properly HOT 6
- Flow control HOT 3
- Incomplete output from cygcheck in PuTTYcyg session
- PuTTY 0.61 Released HOT 8
- PuTTY 0.61 released, will a new PuTTYCyg be coming? HOT 3
- Instead of opening ssh, config window is opened. HOT 1
- Can't open terminal, getting 'permission denied' error HOT 2
- Failed to checkout source code from svn HOT 1
- keyboard problem - Home and End keys dont work HOT 1
- Status of project HOT 9
- Cygwin filesystem root gets wrong
- Serial option not supported on command line - reports unknown option "-serial" HOT 1
- Suggestion: Automatic hyperlinking
- Would be nice if the puttycyg application could be signed, would save user the work of needing to Unblock it
- Please make a PuttyCyg based on latest Putty, current PuttyCyg propagates a serious remote port forwarding bug as manifested with a latest OpenSSH_6.1 OpenSSL 1.0.1c 10 May 2012 OpenBSD remote host. HOT 1
- puttycyg with 64bit cygwin? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puttycyg.