Re: [SLUG] looking at vi file in wordpad
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/07/04 14:38, Michael Lake wrote: | Now that you mention it | Im using vim here under Windows but I have not been able to get it to | read my custom init file on startup. I have a $VIM set to c:\mikelake | and in that dir a _VIMRC file with vim commands but it does not get read. | | When you set a background in the vim menus or syn on how do you get vim | (preferably from the GUI vim) to save those settings ? I'm the only user on my Windows box, but rather than setting a %VIM% variable, I use the default (Which was the install directory on mine) directory and under there I created an _vimrc. So, in short with an install directory of C:\Vim, I have my file at C:\Vim\_vimrc. Note that that is *not* the location of the executable files, etc. So, if you set a %VIM% variable (I'm using the windows syntax on purpose, because $VIM ain't gonna work on 'doze) for your user of something like (assuming windows 2k or better) c:\Documents and Settings\YourUserName\Application Data\Vim and created a _vimrc file in there, you shouldn't be too far of it working :). HTH. HAND. Jordan -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD4DBQFBBNh0DJwcNfAsvs4RAkFHAJMHlez6WjIuy/Y8aFWQDTGKEHETAJ9TkLjW IRfPp2XEUCPRb8d0U8PHbw== =mdJt -END PGP SIGNATURE- -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] looking at vi file in wordpad
On Mon, 2004-07-26 at 12:58, [EMAIL PROTECTED] wrote: Dear slugers, I have created a file using vi. When I look at the same file on a windows box with notepad it is loaded as one line and where I expect to have carriage returns i have box looking characters. Can someone tell me how I can replicate these box looking characters on a windows system using wordpad or notepad. i hope this all makes sense. The box characters are the simple ^J on it's own. As noted elsewhere you can use wordpad or any number of other editors to read the files without any modification (ultraedit, borland builder editor, ...) The standard for Windows is to use ^M^J on the end of the line. If you are using vim or vi Improved you can simply use :set ff=dos before you save to write the file, this will write the dos line ends. -- Thanks KenF OpenOffice.org developer -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] looking at vi file in wordpad
[EMAIL PROTECTED] wrote: Dear slugers, I have created a file using vi. When I look at the same file on a windows box with notepad it is loaded as one line and where I expect to have carriage returns i have box looking characters. Can someone tell me how I can replicate these box looking characters on a windows system using wordpad or notepad. i hope this all makes sense. Open it in wordpad.exe instead. That will show the file OK. Alternatively in Linux use the utility 'todos' and/or 'fromdos' to convert to the format that DOS expects (carriage return + linefeed at end of each line instead of the unix linefeed only [me thinks thats the way around]). tofrodos - Converts text files between DOS and Unix formats. Mike -- Mike Lake Caver, Linux enthusiast and interested in anything technical. -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
RE: [SLUG] looking at vi file in wordpad
Rename the file to something.doc This will force it to be opened with Word. Word will then prompt the user as to how they want to interpret the newlines: as wraparounds or as newlines. Alternatively use dos2unix or unix2dos to convert the newlines to the appropriate characters. - Jill. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, 26 July 2004 12:59 PM To: [EMAIL PROTECTED] Subject: [SLUG] looking at vi file in wordpad Dear slugers, I have created a file using vi. When I look at the same file on a windows box with notepad it is loaded as one line and where I expect to have carriage returns i have box looking characters. Can someone tell me how I can replicate these box looking characters on a windows system using wordpad or notepad. i hope this all makes sense. Looking forward to your reply. regards michael -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- IMPORTANT NOTICES This email (including any documents referred to in, or attached, to this email) may contain information that is personal, confidential or the subject of copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties. This email is intended only for the named addressee. Any privacy, confidence, copyright or other proprietary rights in favour of Aristocrat, its affiliates or third parties, is not lost because this email was sent to you by mistake. If you received this email by mistake you should: (i) not copy, disclose, distribute or otherwise use it, or its contents, without the consent of Aristocrat or the owner of the relevant rights; (ii) let us know of the mistake by reply email or by telephone (+61 2 9413 6300); and (iii) delete it from your system and destroy all copies. Any personal information contained in this email must be handled in accordance with applicable privacy laws. Electronic and internet communications can be interfered with or affected by viruses and other defects. As a result, such communications may not be successfully received or, if received, may cause interference with the integrity of receiving, processing or related systems (including hardware, software and data or information on, or using, that hardware or software). Aristocrat gives no assurances in relation to these matters. If you have any doubts about the veracity or integrity of any electronic communication we appear to have sent you, please call +61 2 9413 6300 for clarification. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] looking at vi file in wordpad
[EMAIL PROTECTED] wrote on 26/07/2004 12:58:40 PM: Dear slugers, I have created a file using vi. When I look at the same file on a windows box with notepad it is loaded as one line and where I expect to have carriage returns i have box looking characters. Can someone tell me how I can replicate these box looking characters on a windows system using wordpad or notepad. I am not sure how you would create those boxes in notepad or wordpad but... why not use vim? http://www.vim.org, you can download a windows binary version, which is very nice with its syntax highlighting and it has all the commands of its *nix counterpart... Cheers, Scott -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] looking at vi file in wordpad
[EMAIL PROTECTED] wrote: why not use vim? http://www.vim.org, you can download a windows binary version, which is very nice with its syntax highlighting and it has all the commands of its *nix counterpart... Now that you mention it Im using vim here under Windows but I have not been able to get it to read my custom init file on startup. I have a $VIM set to c:\mikelake and in that dir a _VIMRC file with vim commands but it does not get read. When you set a background in the vim menus or syn on how do you get vim (preferably from the GUI vim) to save those settings ? Mike -- Michael Lake Chemistry, Materials Forensic Science, UTS Ph: 9514 1725 Fx: 9514 1460 -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html