Skip to content

Commit 4b6110f

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 55620ef + 816fbcc commit 4b6110f

283 files changed

Lines changed: 18154 additions & 8918 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS_vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ runtime/ftplugin/eruby.vim @tpope @dkearns
133133
runtime/ftplugin/expect.vim @dkearns
134134
runtime/ftplugin/fennel.vim @gpanders
135135
runtime/ftplugin/fetchmail.vim @dkearns
136+
runtime/ftplugin/forth.vim @jkotlinski
136137
runtime/ftplugin/fpcmake.vim @dkearns
137138
runtime/ftplugin/freebasic.vim @dkearns
138139
runtime/ftplugin/fstab.vim @rid9
@@ -158,6 +159,7 @@ runtime/ftplugin/html.vim @dkearns
158159
runtime/ftplugin/i3config.vim @hiqua
159160
runtime/ftplugin/icon.vim @dkearns
160161
runtime/ftplugin/indent.vim @dkearns
162+
runtime/ftplugin/ishd.vim @dkearns
161163
runtime/ftplugin/j.vim @glts
162164
runtime/ftplugin/javascript.vim @dkearns
163165
runtime/ftplugin/javascriptreact.vim @dkearns
@@ -210,6 +212,7 @@ runtime/ftplugin/scss.vim @tpope
210212
runtime/ftplugin/sdoc.vim @gpanders
211213
runtime/ftplugin/sed.vim @dkearns
212214
runtime/ftplugin/sh.vim @dkearns
215+
runtime/ftplugin/solidity.vim @cothi
213216
runtime/ftplugin/solution.vim @dkearns
214217
runtime/ftplugin/spec.vim @ignatenkobrain
215218
runtime/ftplugin/ssa.vim @ObserverOfTime
@@ -299,6 +302,7 @@ runtime/indent/sass.vim @tpope
299302
runtime/indent/scala.vim @derekwyatt
300303
runtime/indent/scss.vim @tpope
301304
runtime/indent/sh.vim @chrisbra
305+
runtime/indent/solidity.vim @cothi
302306
runtime/indent/systemverilog.vim @Kocha
303307
runtime/indent/tcl.vim @dkearns
304308
runtime/indent/tcsh.vim @dkearns
@@ -382,6 +386,7 @@ runtime/syntax/gitolite.vim @sitaramc
382386
runtime/syntax/gitrebase.vim @tpope
383387
runtime/syntax/go.vim @bhcleek
384388
runtime/syntax/godoc.vim @dbarnett
389+
runtime/syntax/gp.vim @KBelabas
385390
runtime/syntax/gprof.vim @dpelle
386391
runtime/syntax/groff.vim @jmarshall
387392
runtime/syntax/gyp.vim @ObserverOfTime
@@ -470,6 +475,7 @@ runtime/syntax/sdoc.vim @gpanders
470475
runtime/syntax/sed.vim @dkearns
471476
runtime/syntax/sh.vim @cecamp
472477
runtime/syntax/sm.vim @cecamp
478+
runtime/syntax/solidity.vim @cothi
473479
runtime/syntax/spec.vim @ignatenkobrain
474480
runtime/syntax/sqloracle.vim @chrisbra
475481
runtime/syntax/squirrel.vim @zenmatic

.github/workflows/coverity.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313

1414
env:
1515
CC: gcc
16-
CFLAGS: -Wno-deprecated-declarations
1716
DEBIAN_FRONTEND: noninteractive
1817
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
1918

ci/config.mk.sed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror/
1+
/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror -Wno-deprecated-declarations/
22
/^PERL_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-function -Wno-shadow/
33
/^RUBY_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-parameter/

runtime/autoload/dist/ft.vim

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export def FTasmsyntax()
6262
endif
6363
enddef
6464

65-
var ft_visual_basic_content = '\cVB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)'
65+
var ft_visual_basic_content = '\c^\s*\%(Attribute\s\+VB_Name\|Begin\s\+\%(VB\.\|{\%(\x\+-\)\+\x\+}\)\)'
6666

6767
# See FTfrm() for Visual Basic form file detection
6868
export def FTbas()
@@ -146,12 +146,20 @@ export def FTcls()
146146
return
147147
endif
148148

149-
if getline(1) =~ '^\v%(\%|\\)'
150-
setf tex
151-
elseif getline(1)[0] == '#' && getline(1) =~ 'rexx'
149+
var line1 = getline(1)
150+
if line1 =~ '^#!.*\<\%(rexx\|regina\)\>'
152151
setf rexx
153-
elseif getline(1) == 'VERSION 1.0 CLASS'
152+
return
153+
elseif line1 == 'VERSION 1.0 CLASS'
154154
setf vb
155+
return
156+
endif
157+
158+
var nonblank1 = getline(nextnonblank(1))
159+
if nonblank1 =~ '^\v%(\%|\\)'
160+
setf tex
161+
elseif nonblank1 =~ '^\s*\%(/\*\|::\w\)'
162+
setf rexx
155163
else
156164
setf st
157165
endif
@@ -324,6 +332,11 @@ export def FTfrm()
324332
return
325333
endif
326334

335+
if getline(1) == "VERSION 5.00"
336+
setf vb
337+
return
338+
endif
339+
327340
var lines = getline(1, min([line("$"), 5]))
328341

329342
if match(lines, ft_visual_basic_content) > -1
@@ -1197,5 +1210,13 @@ export def FTv()
11971210
setf v
11981211
enddef
11991212

1213+
export def FTvba()
1214+
if getline(1) =~ '^["#] Vimball Archiver'
1215+
setf vim
1216+
else
1217+
setf vb
1218+
endif
1219+
enddef
1220+
12001221
# Uncomment this line to check for compilation errors early
12011222
# defcompile

runtime/autoload/dist/script.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ export def Exe2filetype(name: string, line1: string): string
209209
elseif name =~ 'nix-shell'
210210
return 'nix'
211211

212+
# Crystal
213+
elseif name =~ '^crystal\>'
214+
return 'crystal'
215+
216+
# Rexx
217+
elseif name =~ '^\%(rexx\|regina\)\>'
218+
return 'rexx'
219+
212220
endif
213221

214222
return ''

runtime/autoload/gzip.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@
1010
fun s:check(cmd)
1111
let name = substitute(a:cmd, '\(\S*\).*', '\1', '')
1212
if !exists("s:have_" . name)
13+
" safety check, don't execute anything from the current directory
14+
let f = fnamemodify(exepath(name), ":p:h") !=# getcwd()
15+
if !f
16+
echoerr "Warning: NOT executing " .. name .. " from current directory!"
17+
endif
1318
let e = executable(name)
1419
if e < 0
1520
let r = system(name . " --version")
1621
let e = (r !~ "not found" && r != "")
1722
endif
18-
exe "let s:have_" . name . "=" . e
23+
exe "let s:have_" . name . "=" . (e && f)
1924
endif
2025
exe "return s:have_" . name
2126
endfun

runtime/autoload/zip.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ if !exists("g:zip_extractcmd")
5757
let g:zip_extractcmd= g:zip_unzipcmd
5858
endif
5959

60+
if fnamemodify(exepath(g:zip_unzipcmd), ":p:h") ==# getcwd()
61+
echoerr "Warning: NOT executing " .. g:zip_unzipcmd .. " from current directory!"
62+
finish
63+
endif
6064
" ----------------
6165
" Functions: {{{1
6266
" ----------------

runtime/doc/builtin.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ inputrestore() Number restore typeahead
310310
inputsave() Number save and clear typeahead
311311
inputsecret({prompt} [, {text}]) String like input() but hiding the text
312312
insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}]
313+
instanceof({object}, {class}) Number |TRUE| if {object} is an instance of {class}
313314
interrupt() none interrupt script execution
314315
invert({expr}) Number bitwise invert
315316
isabsolutepath({path}) Number |TRUE| if {path} is an absolute path
@@ -5054,6 +5055,17 @@ insert({object}, {item} [, {idx}]) *insert()*
50545055
Can also be used as a |method|: >
50555056
mylist->insert(item)
50565057
5058+
instanceof({object}, {class}) *instanceof()*
5059+
The result is a Number, which is |TRUE| when the {object} argument is a
5060+
direct or indirect instance of a |Class| specified by {class}.
5061+
When {class} is a |List| the function returns |TRUE| when {object} is an
5062+
instance of any of the specified classes.
5063+
Example: >
5064+
instanceof(animal, [Dog, Cat])
5065+
5066+
< Can also be used as a |method|: >
5067+
myobj->instanceof(mytype)
5068+
50575069
interrupt() *interrupt()*
50585070
Interrupt script execution. It works more or less like the
50595071
user typing CTRL-C, most commands won't execute and control

runtime/doc/evim-it.1

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.TH EVIM 1 "16 febbraio 2002 "
22
.SH NOME
3-
evim \- Vim "facile", Vim impostato in modo da poter essere usato
4-
facilmente per modificare file, anche da chi non abbia familiarità
5-
con i comandi.
3+
evim \- Vim "facile", impostato in modo da poter essere usato come editore non-modale
64
.SH SINTASSI
75
.br
86
.B evim
@@ -13,42 +11,39 @@ con i comandi.
1311
.B evim
1412
Inizia
1513
.B Vim
16-
e imposta le opzioni per farlo comportare come un editore "modeless".
17-
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
18-
Simile all'uso di Notepad in MS-Windows.
19-
.B evim
20-
richiede la presenza della GUI, per avere a disposizione menù e barra
21-
strumenti.
14+
e imposta le opzioni per farlo comportare come un editore non-modale.
15+
Si tratta sempre di Vim, ma usato nello stile "posizionati-e-clicca".
16+
Rammenta molto l'utilizzo di Notepad in MS-Windows.
17+
.B eVim
18+
necessita della disponibilità della GUI, per utilizzare menù e barra strumenti.
2219
.PP
23-
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
24-
maniera usuale.
25-
La modifica file sarà molto meno efficiente.
20+
Va a usato soltanto se non si è in grado di lavorare con Vim nella maniera usuale.
21+
L'edit dei file sarà molto meno efficiente.
2622
.PP
2723
.B eview
28-
come sopra, ma parte in modalità "Sola Lettura". Funziona come evim \-R.
24+
come sopra, ma si parte in modalità "Sola Lettura". Funziona come evim \-R.
2925
.PP
3026
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
3127
.PP
32-
L'opzione 'insertmode' è impostata per poter immettere del testo direttamente.
28+
L'opzione 'insertmode' è impostata in modo da consentire l'immissione diretta di testo fin dall'inizio.
3329
.br
34-
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
35-
familiari tasti usati sotto MS-Windows.
30+
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i familiari tasti usati sotto MS-Windows.
3631
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
37-
Usate CTRL-Q per ottenere quello che si otterrebbe con CTRL-V in Vim nativo.
32+
Occorre usare CTRL-Q per ottenere il comportamenti di CTRL-V in Vim nativo.
3833
.SH OPZIONI
3934
Vedere vim(1).
4035
.SH FILE
4136
.TP 15
4237
/usr/local/lib/vim/evim.vim
4338
Lo script caricato per inizializzare eVim.
44-
.SH NAC [NOTO ANCHE COME]
45-
Noto Anche Come "Vim per semplici".
46-
Quando usate evim si suppone che prendiate un fazzoletto,
47-
facciate un nodo ad ogni angolo e ve lo mettiate in testa.
39+
.SH AKA
40+
[Also Known As] noto anche come "Vim per semplici".
41+
Quando is usa evim si suppone che si prenda un fazzoletto,
42+
si faccia un nodo ad ogni angolo e lo si metta in testa.
4843
.SH VEDERE ANCHE
4944
vim(1)
5045
.SH AUTORE
5146
Buona parte di
5247
.B Vim
53-
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
48+
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
5449
Vedere il menù "Aiuto/Crediti".

runtime/doc/evim-it.UTF-8.1

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.TH EVIM 1 "16 febbraio 2002 "
22
.SH NOME
3-
evim \- Vim "facile", Vim impostato in modo da poter essere usato
4-
facilmente per modificare file, anche da chi non abbia familiarità
5-
con i comandi.
3+
evim \- Vim "facile", impostato in modo da poter essere usato come editore non-modale
64
.SH SINTASSI
75
.br
86
.B evim
@@ -13,42 +11,39 @@ con i comandi.
1311
.B evim
1412
Inizia
1513
.B Vim
16-
e imposta le opzioni per farlo comportare come un editore "modeless".
17-
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
18-
Simile all'uso di Notepad in MS-Windows.
19-
.B evim
20-
richiede la presenza della GUI, per avere a disposizione menù e barra
21-
strumenti.
14+
e imposta le opzioni per farlo comportare come un editore non-modale.
15+
Si tratta sempre di Vim, ma usato nello stile "posizionati-e-clicca".
16+
Rammenta molto l'utilizzo di Notepad in MS-Windows.
17+
.B eVim
18+
necessita della disponibilità della GUI, per utilizzare menù e barra strumenti.
2219
.PP
23-
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
24-
maniera usuale.
25-
La modifica file sarà molto meno efficiente.
20+
Va a usato soltanto se non si è in grado di lavorare con Vim nella maniera usuale.
21+
L'edit dei file sarà molto meno efficiente.
2622
.PP
2723
.B eview
28-
come sopra, ma parte in modalità "Sola Lettura". Funziona come evim \-R.
24+
come sopra, ma si parte in modalità "Sola Lettura". Funziona come evim \-R.
2925
.PP
3026
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
3127
.PP
32-
L'opzione 'insertmode' è impostata per poter immettere del testo direttamente.
28+
L'opzione 'insertmode' è impostata in modo da consentire l'immissione diretta di testo fin dall'inizio.
3329
.br
34-
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
35-
familiari tasti usati sotto MS-Windows.
30+
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i familiari tasti usati sotto MS-Windows.
3631
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
37-
Usate CTRL-Q per ottenere quello che si otterrebbe con CTRL-V in Vim nativo.
32+
Occorre usare CTRL-Q per ottenere il comportamenti di CTRL-V in Vim nativo.
3833
.SH OPZIONI
3934
Vedere vim(1).
4035
.SH FILE
4136
.TP 15
4237
/usr/local/lib/vim/evim.vim
4338
Lo script caricato per inizializzare eVim.
44-
.SH NAC [NOTO ANCHE COME]
45-
Noto Anche Come "Vim per semplici".
46-
Quando usate evim si suppone che prendiate un fazzoletto,
47-
facciate un nodo ad ogni angolo e ve lo mettiate in testa.
39+
.SH AKA
40+
[Also Known As] noto anche come "Vim per semplici".
41+
Quando is usa evim si suppone che si prenda un fazzoletto,
42+
si faccia un nodo ad ogni angolo e lo si metta in testa.
4843
.SH VEDERE ANCHE
4944
vim(1)
5045
.SH AUTORE
5146
Buona parte di
5247
.B Vim
53-
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
48+
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
5449
Vedere il menù "Aiuto/Crediti".

0 commit comments

Comments
 (0)