This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]