Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

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
7if exists("b:did_ftplugin")
8 finish
9endif
10let b:did_ftplugin = 1
11
12let b:undo_ftplugin = "setl com< cms< fo< ff<"
13
14setlocal comments=s1:/*,mb:*,ex:*/,:# commentstring=#\ %s
15setlocal formatoptions-=t formatoptions+=croql
16
17" https://datatracker.ietf.org/doc/html/rfc5228#section-2.2 says
18" "newlines (CRLF, never just CR or LF)"
19setlocal fileformat=dos
20

After

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

Before

script_file
comment "\" Vim filetype plugin file"
comment "\" Language: Sieve filtering language input file"
comment "\" Maintainer: This runtime file is looking for a n"...
comment "\" Previous Maintainer: Nikolai Weibull <now@bitwi.se>"
comment "\" Latest Revision: 2025 Feb 20"
if_statement
if "if"
call_expression
identifier "exists"
( "("
string_literal "\"b:did_ftplugin\""
) ")"
body
unknown_builtin_statement
unknown_command_name "finish"
endif "endif"
let_statement
let "let"
scoped_identifier
scope "b:"
identifier "did_ftplugin"
= "="
integer_literal "1"
let_statement
let "let"
scoped_identifier
scope "b:"
identifier "undo_ftplugin"
= "="
string_literal "\"setl com< cms< fo< ff<\""
setlocal_statement
setlocal "setlocal"
set_item
option_name "comments"
= "="
set_value "s1:/*,mb:*,ex:*/,:#"
" "
set_item
option_name "commentstring"
= "="
set_value "#\\ %s"
setlocal_statement
setlocal "setlocal"
set_item
option_name "formatoptions"
-= "-="
set_value "t"
" "
set_item
option_name "formatoptions"
+= "+="
set_value "croql"
comment "\" https://datatracker.ietf.org/doc/html/rfc5228#section-2.2 "...
comment "\" \"newlines (CRLF, never just CR or LF)\""
setlocal_statement
setlocal "setlocal"
set_item
option_name "fileformat"
= "="
set_value "dos"

After

script_file
comment "\" Vim filetype plugin file"
comment "\" Language: Sieve filtering language input file"
comment "\" Maintainer: This runtime file is looking for a n"...
comment "\" Previous Maintainer: Nikolai Weibull <now@bitwi.se>"
comment "\" Latest Revision: 2025 Feb 20"
comment "\" 2026 Jan 09 by Vim Project: preserve line endings for exis"...
if_statement
if "if"
call_expression
identifier "exists"
( "("
string_literal "\"b:did_ftplugin\""
) ")"
body
unknown_builtin_statement
unknown_command_name "finish"
endif "endif"
let_statement
let "let"
scoped_identifier
scope "b:"
identifier "did_ftplugin"
= "="
integer_literal "1"
let_statement
let "let"
scoped_identifier
scope "b:"
identifier "undo_ftplugin"
= "="
string_literal "\"setl com< cms< fo< ff<\""
setlocal_statement
setlocal "setlocal"
set_item
option_name "comments"
= "="
set_value "s1:/*,mb:*,ex:*/,:#"
" "
set_item
option_name "commentstring"
= "="
set_value "#\\ %s"
setlocal_statement
setlocal "setlocal"
set_item
option_name "formatoptions"
-= "-="
set_value "t"
" "
set_item
option_name "formatoptions"
+= "+="
set_value "croql"
comment "\" https://datatracker.ietf.org/doc/html/rfc5228#section-2.2 "...
comment "\" \"newlines (CRLF, never just CR or LF)\""
comment "\" Use CRLF for new files only; preserve existing line ending"...
if_statement
if "if"
binary_operation
binary_operation
call_expression
identifier "expand"
( "("
string_literal "'%:p'"
) ")"
!= "!="
match_case
# "#"
string_literal "''"
&& "&&"
unary_operation
! "!"
call_expression
identifier "filereadable"
( "("
call_expression
identifier "expand"
( "("
string_literal "'%:p'"
) ")"
) ")"
body
setlocal_statement
setlocal "setlocal"
set_item
option_name "fileformat"
= "="
set_value "dos"
endif "endif"