Sunday, December 19, 2010

Re: cygwin startup time

I still have problems with vim (windows native) in cygwin.

example: columns.txt

AX|23.45|1932323|A|VI|-|Y|0
TY|93.45|2932323|B|VI|-|Y|1
RE|63.25|8932323|A|VI|0|N|1
AY|83.85|0932323|C|VI|-|Y|0

command in cygwin bash:
awk 'BEGIN{FS=OFS="|"}{print $1,$3}' c:/columns.txt

gives this output:
AX|1932323
TY|2932323
RE|8932323
AY|0932323

in vim command the same command (%!awk 'BEGIN{FS=OFS="|"}{print
$1,$3}') gives an error:
awk: 'BEGIN{FS=OFS= <C:\DOCUME~1\MYNAME\LOCALS~1\Temp\VIi129.tmp |}
{print
awk: ^ invalid char ''' in expression

What did I wrong?

-----------
this are my settings in vimrc:
set shell=C:\tools\cygwin\bin\bash
set shellcmdflag=-c
set shellxquote=\
let $TMP="c:/temp"
I checked in commandline and all these settings where active during
trying above awk command.


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: