Re: ^M problems with migrating VIM from WinXP to Linux

2006-05-04 Thread Eric Arnold
As for nulls as line breaks, you're not out of the woods yet. Try: :let @a='[EMAIL PROTECTED]@c' which should set @a to 'a<00>b<00>c'. Now put reg a, "apinto a buffer. The nulls will be treated as newlines. Now yank back all the lines into reg b, and try :echo strtrans(@b)

RE: ^M problems with migrating VIM from WinXP to Linux

2006-05-03 Thread Roy Fulbright
A matched set of external utilities I often use in the *nix world are "dos2unix" and "unix2dos". HTH Roy Fulbright From: "Eric Leenman" <[EMAIL PROTECTED]> To: vim@vim.org Subject: ^M problems with migrating VIM from WinXP to Linux Date: Wed, 03 May 2006 1

Re: ^M problems with migrating VIM from WinXP to Linux + VIMs difference prblem

2006-05-03 Thread Eric Leenman
Thank you all I got it working. One thing that seems to be broken is the VIM tip On http://www.vim.org/tips/tip.php?tip_id=892 fun! InitBex() let myvar = strftime("(%y%m%d)[%Hh%M]") let myvar = "set backupext=_". myvar execute myvar echo myvar endfun map :call InitBex() On my WinXP I use gvim

Re: ^M problems with migrating VIM from WinXP to Linux

2006-05-03 Thread Tim Chase
I wish Vim internally supported nul (00) line endings, but alas. You might be able to set up a before/after filter, much like the gzip example (":help gzip-example"), using tr, of the form tr '\000\012' '\012\000' This will swap all NUL characters in the file and 0x0A (octal 012) ch

Re: ^M problems with migrating VIM from WinXP to Linux

2006-05-03 Thread John Love-Jensen
Hi Eric, Do this to see which line-endings the buffer is associated with... :set ff? Do this to change them... :set ff=unix :wq For info... :help 'fileformat On WinXP, I strictly use the unix (0A) line endings, I do not use mac (0D) or dos (0D 0A). I wish Vim internally supported nul (00) l

Re: ^M problems with migrating VIM from WinXP to Linux

2006-05-03 Thread RICHARD PITMAN
--- Eric Leenman <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using VIM on WinXP and want to move my files now > also to Linux. > I copied the files and VIM reads in my .vimrc. > It comes up with a bounce of errors all related to > ^M. > > When I open this file on my WinXP I don't see them. > What d

Re: ^M problems with migrating VIM from WinXP to Linux

2006-05-03 Thread Tim Chase
I want to remove the ^M on my WinXP machine and then copy them over again to my linux machine. This is the ever-popular line-break-delimiter problem. If you do :set ff? Vim will likely currently come back with "dos". You should be able to solve it by executing :set ff=unix

Re: ^M problems with migrating VIM from WinXP to Linux

2006-05-03 Thread Thomas Adam
--- Eric Leenman <[EMAIL PROTECTED]> wrote: > I want to remove the ^M on my WinXP machine and then copy them over again > to > my linux machine. :h fileformat You set it to whichever one you want to use at the time. -- Thomas Adam

^M problems with migrating VIM from WinXP to Linux

2006-05-03 Thread Eric Leenman
Hi, I'm using VIM on WinXP and want to move my files now also to Linux. I copied the files and VIM reads in my .vimrc. It comes up with a bounce of errors all related to ^M. When I open this file on my WinXP I don't see them. What do I need to do to make these ^M also visible on my WinXP machine