problem patching QT3 package

Ag. D. Hatzimanikas a.hatzim at
Sat Jan 19 11:58:13 PST 2008

On Sat, Jan 19, at 01:49 Arnie Stender wrote:
> Ag. D. Hatzimanikas wrote:
> > The specific setting in vim is the 'fileformat', so by doing a
> >
> > :echo &fileformat
> >
> > you should be able to see the file's format, which indeed for the qt patch is dos.
> >
> > If you want to show it permanently in the status line, have a look at the status line
> > I use and specifically in the '&ff' item.
> >
> > set statusline=<%F\ %m%r%y\ %w\ %{&encoding}\ %-7{&ff}0x%-3B%-8b\ %-12.(%l,%c%V%)\ %-5PBUF:%-3n%=[%{strftime(\"%d/%m/%y\-\%H:%M\")}]
> >
> >   
> Excellent! That does give me the file format in the status line. I may
> have been dreaming or maybe it is just my failing memory but I could
> have sworn I remembered that along with that I saw a trailing '^M' on
> the lines of the DOS format file I was editing. The way I remember it
> that made it very easy to just go to the end of each line and delete the
> CR. At least this does give me a heads up that I need to watch what I'm
> doing and fix things as necessary. Thanks a bunch.

Generally in vim, the best and easiest solution to fix the line endings is by just
setting the 'fileformat' to unix,

:set ff=unix

if you want to do it in a more interactive way, you can do something like,

:set list 

(where ^V^M is CTRL-V and CTRL-M)


More information about the blfs-support mailing list