This is the mail archive of the cygwin@cygwin.com 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]

FW: vim 6.1.300-1 DOS line endings (newline expansion)


cygwin at cygwin dot com:

Igor Pechtchanski wrote on February 21, 2003 2:35 PM:
> Put the following in your ~/.vimrc:
>
> set fileformat=dos

Sounds logical.  Unfortunately, it doesn't seem to work:

    dchristensen at A05390:~$ cat .vimrc
    set autoindent
    set number
    set shiftwidth=4
    set fileformat=dos
    " Cygwin:
    syntax off
    " Linux:
    ":if exists("syntax_on") | syntax off | else | syntax enable | endif
    dchristensen at A05390:~$ vi baz
          1 abcd
          2
    dchristensen at A05390:~$ cat baz
    abcd

    dchristensen at A05390:~$ dump baz
    000000   a   b   c   d  \n  \n
    000006


I believe .vimrc is read every time Vim starts.  I don't get it...


David

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]