at one time i'd pulled these from somewhere also -- currently they are commented out in my .*vimrc.
"au BufReadPre * if (&ff == "dos") |au BufReadPost * set fileformat=unix |au BufReadPost * %s/^M\+$// | endif "au BufReadPost * if (&ff == "dos") | set ff=unix | %s/^M\+$// | endif reid -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/