Bug#701588: vim not converting to unix
patrick295767
patrick295767 at gmail.com
Sat Feb 23 23:47:36 UTC 2013
Package: vim
Version: 2:7.2.445+hg~cb94c42c0e1a-1
Severity: normal
Hi,
I have a file with ^M
I run set ff=unix as below, and those chars are still there. even after
open/close
It could be nice that a function can do that ... a sort of embeeded call
function();
regards
here source:
dos2unix is a commandline utility that will do this, or :%s/^M//g will
if you use ctrl-v ctrl-m to input the ^M, or you can :set ff=unix and
vim will do it for you.
Docs on the 'fileformat' setting are here, and the vim wiki has a
comprehensive page on line ending conversions.
Alternately, if you move files back and forth a lot, you might not
want to convert them, but rather to do :set ff=dos, so vim will know
it's a DOS file and use DOS conventions for line endings.
-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages vim depends on:
ii libacl1 2.2.49-4 Access control list shared library
ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib
ii libgpm2 1.20.4-3.3 General Purpose Mouse - shared lib
ii libncurses5 5.7+20100313-5 shared libraries for terminal hand
ii libselinux1 2.0.96-1 SELinux runtime shared libraries
ii vim-common 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Common files
ii vim-runtime 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Runtime files
vim recommends no packages.
Versions of packages vim suggests:
pn ctags <none> (no description available)
pn vim-doc <none> (no description available)
pn vim-scripts <none> (no description available)
-- no debconf information
More information about the pkg-vim-maintainers
mailing list