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
8if exists("b:did_ftplugin")
9 finish
10endif
11let b:did_ftplugin = 1
12
13let b:undo_ftplugin = "setl com< cms< fo< ff<"
14
15setlocal comments=s1:/*,mb:*,ex:*/,:# commentstring=#\ %s
16setlocal 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
21if expand('%:p') !=# '' && !filereadable(expand('%:p'))
22 setlocal fileformat=dos
23endif
24