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
2" Language: TOML
3" Homepage: https://github.com/cespare/vim-toml
4" Maintainer: Aman Verma
5" Author: Lily Ballard <lily@ballards.net>
6" Last Change: Sep 21, 2021
7
8if exists('b:did_ftplugin')
9 finish
10endif
11let b:did_ftplugin = 1
12
13let s:save_cpo = &cpo
14set cpo&vim
15let b:undo_ftplugin = 'setlocal commentstring< comments<'
16
17setlocal commentstring=#\ %s
18setlocal comments=:#
19
20let &cpo = s:save_cpo
21unlet s:save_cpo
22
23" vim: et sw=2 sts=2
24

After

1" Vim filetype plugin
2" Language: TOML
3" Homepage: https://github.com/cespare/vim-toml
4" Maintainer: Aman Verma
5" Author: Lily Ballard <lily@ballards.net>
6" Last Change: May 5, 2025
7
8if exists('b:did_ftplugin')
9 finish
10endif
11let b:did_ftplugin = 1
12
13let s:save_cpo = &cpo
14set cpo&vim
15let b:undo_ftplugin = 'setlocal commentstring< comments< iskeyword<'
16
17setlocal commentstring=#\ %s
18setlocal comments=:#
19setlocal iskeyword+=-
20
21let &cpo = s:save_cpo
22unlet s:save_cpo
23
24" vim: et sw=2 sts=2
25

Before

script_file
comment "\" Vim filetype plugin"
comment "\" Language: TOML"
comment "\" Homepage: https://github.com/cespare/vim-toml"
comment "\" Maintainer: Aman Verma"
comment "\" Author: Lily Ballard <lily@ballards.net>"
comment "\" Last Change: Sep 21, 2021"
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 "s:"
identifier "save_cpo"
= "="
option
& "&"
option_name "cpo"
set_statement
set "set"
set_item
default_option
option_name "cpo"
& "&"
vim "vim"
let_statement
let "let"
scoped_identifier
scope "b:"
identifier "undo_ftplugin"
= "="
string_literal "'setlocal commentstring< comments<'"
setlocal_statement
setlocal "setlocal"
set_item
option_name "commentstring"
= "="
set_value "#\\ %s"
setlocal_statement
setlocal "setlocal"
set_item
option_name "comments"
= "="
set_value ":#"
let_statement
let "let"
option
& "&"
option_name "cpo"
= "="
scoped_identifier
scope "s:"
identifier "save_cpo"
unlet_statement
unlet "unlet"
scoped_identifier
scope "s:"
identifier "save_cpo"
comment "\" vim: et sw=2 sts=2"

After

script_file
comment "\" Vim filetype plugin"
comment "\" Language: TOML"
comment "\" Homepage: https://github.com/cespare/vim-toml"
comment "\" Maintainer: Aman Verma"
comment "\" Author: Lily Ballard <lily@ballards.net>"
comment "\" Last Change: May 5, 2025"
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 "s:"
identifier "save_cpo"
= "="
option
& "&"
option_name "cpo"
set_statement
set "set"
set_item
default_option
option_name "cpo"
& "&"
vim "vim"
let_statement
let "let"
scoped_identifier
scope "b:"
identifier "undo_ftplugin"
= "="
string_literal "'setlocal commentstring< comments< iskeyword<'"
setlocal_statement
setlocal "setlocal"
set_item
option_name "commentstring"
= "="
set_value "#\\ %s"
setlocal_statement
setlocal "setlocal"
set_item
option_name "comments"
= "="
set_value ":#"
setlocal_statement
setlocal "setlocal"
set_item
option_name "iskeyword"
+= "+="
set_value "-"
let_statement
let "let"
option
& "&"
option_name "cpo"
= "="
scoped_identifier
scope "s:"
identifier "save_cpo"
unlet_statement
unlet "unlet"
scoped_identifier
scope "s:"
identifier "save_cpo"
comment "\" vim: et sw=2 sts=2"