IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Easy Question for VI (VIM) fans ...

I have forgotten the cmd line (:) command that allows displaying all the control charactes in an edited file. Have tried to find it in VIM help but that is so big I can't locate it.

Used to use it a lot but in recent time don't use VI as much as I used to.

Reason for this is that for some dumb reason, Apache Org ship the tomcat3.2.3.gz version of Tomcat, with some incorrect ctl chars embedded & none of the scripts will execute - believe it or not we have to download the tomcat3.2.3.zip (windows) and that works.

Just very keen to find our how they are corrupting the Linux version such that command scripts that look ok in normal VM won't execute.

Cheers

Doug Marker

PS am impressed with Mandrake 8.1 - they ship Apache 1.2.20 complete with a working SSL implementaion out of the box - getting SSL working under Apache from RH is a bit of a fiddle.
New There are several approaches.
The first one I'd use is quite subtle, but's easy. I presume for your message that the errant file seems to look okay in VI? Well, check the status line. If it says [dos] or [msdos] after the filename right after you load it, then that may be the problem. To fix that, do a :set fileformat=unix and then save it.

Next I'd try :set list to turn on CRs and Tabs. Use :set nolist to turn them off again.

Other than that, I'd say you were looking for the cchars or mchars options; VIM doesn't have them because it seems to always display unknown control characters as ^A etc.

HTH.

Wade.

"All around me are nothing but fakes
Come with me on the biggest fake of all!"

New Re: Thats it - Apache ship them wrong way round !!!

- so it seems !!!

As u said the format of the files will show when loaded by VI(m) & sure enough the *.zip file contains UNIX formatted text files & the *.gz file contains dos formatted text files.

This was my 1st suspicion but I was too dumbstruck to believe this is what Apache org would do - I still can't believe it as it must be causing a lot of people real grief. I had solved the problem a couple of months back (just forgot about it) & yesterday was mentoring one of my team in doing complete Linux installs (RH7.2, Apache, IBMHTTPServer, iPlanet, JRun, Tomcat, WebSphere, DB2 & Oracle)

When she hit this problem of the Tomcat scripts failing to be recognised at execution time, it seemed a familiar problem but my brain was locked on other issues & I couldn't page in the required memories (grin). Then late in the day brain kicked in & paged in memory of downloading *.zip version of Tomcat & that solved problem 1st time round. All I needed to round it off was to extract from deep store the memory of how to get vi to show ctl chars as was sure that was the reason.

Cheers

Doug

New You may want to email 'em.
Someone at Apache.org goofed and they would appreciate knowing what the goof was so they could fix it.

Wade.

"All around me are nothing but fakes
Come with me on the biggest fake of all!"

New :set list
...Wade beat me to it (and got it right).

Another option is to use a binary viewer or editor such as bview (bvi).
--
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]
What part of "gestalt" don't you understand?
Expand Edited by kmself Oct. 29, 2001, 08:24:46 PM EST
New Re: :set list

Also tried

:set list :set nolist but only showed extra $ at end - am sure that vi I used used to show ctl chars as ...
^M & ^D

Will try the binary viewer

Tks Doug
New -vet
tshirt front "born to die before I get old"
thshirt back "fscked another one didnja?"
New Emacs displays them by default...
Regards,

-scott anderson
New The answer to all vi/vim problems
[link|http://www.xemacs.org|Click here]

Peter
Counter-Strike Shill For Hire
[link|http://www.kuro5hin.org|There is no K5 Cabal]
New Envy, Peter?
Or, as we spell it, envi.
--
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]
What part of "gestalt" don't you understand?
New Re: The answer to all vi/vim problems

Downloading a copy now (from Qld Australia site).

Looks interesting

Cheers

Doug
New Re: XMACS - showing ctl chars

Any clues as to how to get it to show ctl chars ?

Have it running but despite a careful search of file options can't see any obvious place to toggle or force showing of ctl chars

Cheers

Doug
New Gah! Evil Evil Evil
I want an editor, not an operating system. :=)
"Beware of bugs in the above code; I have only proved it correct, not tried it."
-- Donald Knuth
New I wasn't going to enter this one....
... but if I was going to, I'd mention that there's a reason its* icon was an overflowing sink at one point. But I'm not because I've not used emacs to any great length. :-)

Wade.

* or its ilk. I can never remember which one it was.

"All around me are nothing but fakes
Come with me on the biggest fake of all!"

New No it wasn't.
It was an icon of a kitchen sink, not an overflowing one.

The metaphor is left as an exercise to the reader, but it is very similar. :-)
Regards,

-scott anderson
New Was
Actually, [link|http://web.mit.edu/afs/athena/contrib/xemacs/lib/xemacs-21.4.4/etc/xemacs-icon2.xpm|is].

That's overflowing in my book.
--
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]
What part of "gestalt" don't you understand?
New Heh, you're right.
Two metaphors for one.
Regards,

-scott anderson
New Heh. Nice find!
It wasn't the one I was thinking I remembered, but no matter. My point has been made. :-)

Wade.

"All around me are nothing but fakes
Come with me on the biggest fake of all!"

New Do you swim the channel everytime yer arse needs a wipe?:)
tshirt front "born to die before I get old"
thshirt back "fscked another one didnja?"
New Aaahhhh - psycho!
Emacs isn't reliable - as in isn't reliably found on any machine you're likely to telnet into - and vi is.

VI, because its there.
New Re: Aaahhhh - psycho!
Which means absolutely nothing if all the machines you DO telnet into have emacs already.
Regards,

-scott anderson
New Re: Aaahhhh - psycho!
You use telnet? ;-)
-YendorMike

"The problems of the world cannot possibly be solved by the skeptics or the cynics whose horizons are limited by the obvious realities. We need people who dream of things that never were." - John F. Kennedy
New Heh, non, not me mon ami.
Was responding in context. You know damned well that I ssh everywhere. ;-)
Regards,

-scott anderson
     Easy Question for VI (VIM) fans ... - (dmarker2) - (22)
         There are several approaches. - (static) - (2)
             Re: Thats it - Apache ship them wrong way round !!! - (dmarker2) - (1)
                 You may want to email 'em. - (static)
         :set list - (kmself) - (2)
             Re: :set list - (dmarker2) - (1)
                 -vet -NT - (boxley)
         Emacs displays them by default... -NT - (admin)
         The answer to all vi/vim problems - (pwhysall) - (14)
             Envy, Peter? - (kmself)
             Re: The answer to all vi/vim problems - (dmarker2)
             Re: XMACS - showing ctl chars - (dmarker2)
             Gah! Evil Evil Evil - (wharris2)
             I wasn't going to enter this one.... - (static) - (4)
                 No it wasn't. - (admin) - (3)
                     Was - (kmself) - (2)
                         Heh, you're right. - (admin)
                         Heh. Nice find! - (static)
             Do you swim the channel everytime yer arse needs a wipe?:) -NT - (boxley)
             Aaahhhh - psycho! - (tuberculosis) - (3)
                 Re: Aaahhhh - psycho! - (admin) - (2)
                     Re: Aaahhhh - psycho! - (Yendor) - (1)
                         Heh, non, not me mon ami. - (admin)

It's no good shouting out all of these random occurrences where you happen to see the face of the Virgin LRPD in a pancake in Guadalajara.
96 ms