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 compiler file
2" Compiler: Pyright (Python Type Checker)
3" Maintainer: @konfekt
4" Last Change: 2025 Dec 26
5
6if exists("current_compiler") | finish | endif
7let current_compiler = "pyright"
8
9let s:cpo_save = &cpo
10set cpo&vim
…lines 11–14 unchanged (4 lines)
15 \ get(b:, 'pyright_makeprg', get(g:, 'pyright_makeprg', 'pyright')),
16 \ ' \|"')
17CompilerSet errorformat=
18 \%E%f:%l:%c\ -\ error:\ %m,
19 \%W%f:%l:%c\ -\ warning:\ %m,
20 \%N%f:%l:%c\ -\ note:\ %m,
21 \%C[ \t]\ %.%#,
22 \%-G%.%#
23
24let &cpo = s:cpo_save
25unlet s:cpo_save
26

After

1" Vim compiler file
2" Compiler: Pyright (Python Type Checker)
3" Maintainer: @konfekt
4" Last Change: 2025 Feb 7
5
6if exists("current_compiler") | finish | endif
7let current_compiler = "pyright"
8
9let s:cpo_save = &cpo
10set cpo&vim
…lines 11–14 unchanged (4 lines)
15 \ get(b:, 'pyright_makeprg', get(g:, 'pyright_makeprg', 'pyright')),
16 \ ' \|"')
17CompilerSet errorformat=
18 \%E%f:%l:%c\ -\ error:\ %m,
19 \%W%f:%l:%c\ -\ warning:\ %m,
20 \%N%f:%l:%c\ -\ note:\ %m,
21 \%C[\ \t]\ %.%#,
22 \%-G%.%#
23
24let &cpo = s:cpo_save
25unlet s:cpo_save
26

Before

script_file
comment "\" Vim compiler file"
comment "\" Compiler: Pyright (Python Type Checker)"
comment "\" Maintainer: @konfekt"
comment "\" Last Change: 2025 Dec 26"
if_statement
if "if"
call_expression
identifier "exists"
( "("
string_literal "\"current_compiler\""
) ")"
body
unknown_builtin_statement
unknown_command_name "finish"
endif "endif"
let_statement
let "let"
identifier "current_compiler"
= "="
string_literal "\"pyright\""
let_statement
let "let"
scoped_identifier
scope "s:"
identifier "cpo_save"
= "="
option
& "&"
option_name "cpo"
set_statement
set "set"
set_item
default_option
option_name "cpo"
& "&"
vim "vim"
comment "\" CompilerSet makeprg=pyright"
comment "\" CompilerSet makeprg=basedpyright"
execute_statement (+28 nodes collapsed)
user_command
command_name "CompilerSet"
arguments
command_argument "errorformat="
command_argument "%E%f:%l:%c\\"
command_argument "-\\"
command_argument "error:\\"
command_argument "%m,"
command_argument "%W%f:%l:%c\\"
command_argument "-\\"
command_argument "warning:\\"
command_argument "%m,"
command_argument "%N%f:%l:%c\\"
command_argument "-\\"
command_argument "note:\\"
command_argument "%m,"
command_argument "%C["
command_argument "\\t]\\"
command_argument "%.%#,"
command_argument "%-G%.%#"
let_statement
let "let"
option
& "&"
option_name "cpo"
= "="
scoped_identifier
scope "s:"
identifier "cpo_save"
unlet_statement
unlet "unlet"
scoped_identifier
scope "s:"
identifier "cpo_save"

After

script_file
comment "\" Vim compiler file"
comment "\" Compiler: Pyright (Python Type Checker)"
comment "\" Maintainer: @konfekt"
comment "\" Last Change: 2025 Feb 7"
if_statement
if "if"
call_expression
identifier "exists"
( "("
string_literal "\"current_compiler\""
) ")"
body
unknown_builtin_statement
unknown_command_name "finish"
endif "endif"
let_statement
let "let"
identifier "current_compiler"
= "="
string_literal "\"pyright\""
let_statement
let "let"
scoped_identifier
scope "s:"
identifier "cpo_save"
= "="
option
& "&"
option_name "cpo"
set_statement
set "set"
set_item
default_option
option_name "cpo"
& "&"
vim "vim"
comment "\" CompilerSet makeprg=pyright"
comment "\" CompilerSet makeprg=basedpyright"
execute_statement (+28 nodes collapsed)
user_command
command_name "CompilerSet"
arguments
command_argument "errorformat="
command_argument "%E%f:%l:%c\\"
command_argument "-\\"
command_argument "error:\\"
command_argument "%m,"
command_argument "%W%f:%l:%c\\"
command_argument "-\\"
command_argument "warning:\\"
command_argument "%m,"
command_argument "%N%f:%l:%c\\"
command_argument "-\\"
command_argument "note:\\"
command_argument "%m,"
command_argument "%C[\\"
command_argument "\\t]\\"
command_argument "%.%#,"
command_argument "%-G%.%#"
let_statement
let "let"
option
& "&"
option_name "cpo"
= "="
scoped_identifier
scope "s:"
identifier "cpo_save"
unlet_statement
unlet "unlet"
scoped_identifier
scope "s:"
identifier "cpo_save"