robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:fc00006: runtime(sieve): preserve existing line endings in ftplugin (#37334)d1f7672bc9

master
809 B23 linesraw
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