sieve.vim (809B)
1 " Vim filetype plugin file 2 " Language: Sieve filtering language input file 3 " Maintainer: This runtime file is looking for a new maintainer. 4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> 5 " Latest Revision: 2025 Feb 20 6 " 2026 Jan 09 by Vim Project: preserve line endings for existing files #19144 7 8 if exists("b:did_ftplugin") 9 finish 10 endif 11 let b:did_ftplugin = 1 12 13 let b:undo_ftplugin = "setl com< cms< fo< ff<" 14 15 setlocal comments=s1:/*,mb:*,ex:*/,:# commentstring=#\ %s 16 setlocal formatoptions-=t formatoptions+=croql 17 18 " https://datatracker.ietf.org/doc/html/rfc5228#section-2.2 says 19 " "newlines (CRLF, never just CR or LF)" 20 " Use CRLF for new files only; preserve existing line endings 21 if expand('%:p') !=# '' && !filereadable(expand('%:p')) 22 setlocal fileformat=dos 23 endif