This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Using vi in UNIX mode instead of DOS mode
- From: "Reid Thompson" <Reid dot Thompson at ateb dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 21 Mar 2005 14:29:51 -0500
- Subject: RE: Using vi in UNIX mode instead of DOS mode
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/