blob: 2ca67875bb54863f42f2d7a1a7e0b826057ff1cb [file] [log] [blame]
dkearns04e53632024-04-11 06:18:37 +10001" Vim comments
2
3" Legacy-script comment
4
5# 42 " comment
6
7function! Foo()
8 " Legacy-script comment
9 # 42 " comment
10endfunction
11
12def! Bar()
13 # Vim9-script comment
14 "useless string" # comment
15enddef
16
17command -nargs=1 FooCommand {
18 # Vim9-script comment
19 "useless string" # comment
20}
21
22autocmd BufNewFile * {
23 # Vim9-script comment
24 "useless string" # comment
25}
26
27
dkearns059cbe82024-06-12 03:27:53 +100028" Multiline comments
29
30" comment
31 \ continuing comment
32 \ continuing comment
33
Doug Kearnsc29b5332025-04-26 20:14:15 +020034let foo = 42 " commment
35 \ continuing comment
36 \ continuing comment
37
dkearns059cbe82024-06-12 03:27:53 +100038" :Foo
39 \ arg1
40 "\ comment
41 \ arg2
42
43echo "TOP"
44
45
46" Line-continuation comments
47
48:Foo
49 "\ line continuation comment
50 \ arg1
51 "\ line continuation comment
52 \ arg2
53
54
dkearns04e53632024-04-11 06:18:37 +100055" Issue: #13047
56
57if !exists(":DiffOrig")
58 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
59 \ | wincmd p | diffthis
60endif
61
62
63" Issue: #11307 and #11560
64
65" This is what we call " blah
66
67
68" Issue # #9587
69
70def CommentTitle()
71 # Title: ...
72enddef