Post #15,607
10/29/01 6:32:08 PM
|
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.
|
Post #15,618
10/29/01 8:06:12 PM
|
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!"
|
Post #15,623
10/29/01 8:41:56 PM
|
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
|
Post #15,628
10/29/01 8:54:00 PM
|
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!"
|
Post #15,621
10/29/01 8:15:17 PM
10/29/01 8:24:46 PM
|
: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?
Edited by kmself
Oct. 29, 2001, 08:24:46 PM EST
|
Post #15,631
10/29/01 9:06:24 PM
|
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
|
Post #15,719
10/30/01 11:09:21 AM
|
-vet
tshirt front "born to die before I get old" thshirt back "fscked another one didnja?"
|
Post #15,654
10/29/01 11:37:39 PM
|
Emacs displays them by default...
Regards,
-scott anderson
|
Post #15,656
10/30/01 12:08:01 AM
|
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]
|
Post #15,666
10/30/01 1:26:35 AM
|
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?
|
Post #15,678
10/30/01 2:29:15 AM
|
Re: The answer to all vi/vim problems
Downloading a copy now (from Qld Australia site).
Looks interesting
Cheers
Doug
|
Post #15,687
10/30/01 3:54:22 AM
|
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
|
Post #15,718
10/30/01 11:08:16 AM
|
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
|
Post #15,829
10/30/01 11:41:26 PM
|
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!"
|
Post #15,851
10/31/01 8:54:13 AM
|
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
|
Post #15,901
10/31/01 3:13:52 PM
|
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?
|
Post #15,903
10/31/01 3:21:57 PM
|
Heh, you're right.
Two metaphors for one.
Regards,
-scott anderson
|
Post #15,947
10/31/01 7:58:39 PM
|
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!"
|
Post #15,904
10/31/01 3:26:22 PM
|
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?"
|
Post #16,772
11/5/01 10:04:30 PM
|
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.
|
Post #16,781
11/5/01 11:06:46 PM
|
Re: Aaahhhh - psycho!
Which means absolutely nothing if all the machines you DO telnet into have emacs already.
Regards,
-scott anderson
|
Post #16,827
11/6/01 9:40:12 AM
|
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
|
Post #16,867
11/6/01 2:00:29 PM
|
Heh, non, not me mon ami.
Was responding in context. You know damned well that I ssh everywhere. ;-)
Regards,
-scott anderson
|