Skip to content

Commit

Permalink
Merge remote-tracking branch 'vim/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ychin committed Aug 31, 2023
2 parents 55620ef + 816fbcc commit 4b6110f
Show file tree
Hide file tree
Showing 283 changed files with 18,154 additions and 8,918 deletions.
6 changes: 6 additions & 0 deletions .github/CODEOWNERS_vim
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ runtime/ftplugin/eruby.vim @tpope @dkearns
runtime/ftplugin/expect.vim @dkearns
runtime/ftplugin/fennel.vim @gpanders
runtime/ftplugin/fetchmail.vim @dkearns
runtime/ftplugin/forth.vim @jkotlinski
runtime/ftplugin/fpcmake.vim @dkearns
runtime/ftplugin/freebasic.vim @dkearns
runtime/ftplugin/fstab.vim @rid9
Expand All @@ -158,6 +159,7 @@ runtime/ftplugin/html.vim @dkearns
runtime/ftplugin/i3config.vim @hiqua
runtime/ftplugin/icon.vim @dkearns
runtime/ftplugin/indent.vim @dkearns
runtime/ftplugin/ishd.vim @dkearns
runtime/ftplugin/j.vim @glts
runtime/ftplugin/javascript.vim @dkearns
runtime/ftplugin/javascriptreact.vim @dkearns
Expand Down Expand Up @@ -210,6 +212,7 @@ runtime/ftplugin/scss.vim @tpope
runtime/ftplugin/sdoc.vim @gpanders
runtime/ftplugin/sed.vim @dkearns
runtime/ftplugin/sh.vim @dkearns
runtime/ftplugin/solidity.vim @cothi
runtime/ftplugin/solution.vim @dkearns
runtime/ftplugin/spec.vim @ignatenkobrain
runtime/ftplugin/ssa.vim @ObserverOfTime
Expand Down Expand Up @@ -299,6 +302,7 @@ runtime/indent/sass.vim @tpope
runtime/indent/scala.vim @derekwyatt
runtime/indent/scss.vim @tpope
runtime/indent/sh.vim @chrisbra
runtime/indent/solidity.vim @cothi
runtime/indent/systemverilog.vim @Kocha
runtime/indent/tcl.vim @dkearns
runtime/indent/tcsh.vim @dkearns
Expand Down Expand Up @@ -382,6 +386,7 @@ runtime/syntax/gitolite.vim @sitaramc
runtime/syntax/gitrebase.vim @tpope
runtime/syntax/go.vim @bhcleek
runtime/syntax/godoc.vim @dbarnett
runtime/syntax/gp.vim @KBelabas
runtime/syntax/gprof.vim @dpelle
runtime/syntax/groff.vim @jmarshall
runtime/syntax/gyp.vim @ObserverOfTime
Expand Down Expand Up @@ -470,6 +475,7 @@ runtime/syntax/sdoc.vim @gpanders
runtime/syntax/sed.vim @dkearns
runtime/syntax/sh.vim @cecamp
runtime/syntax/sm.vim @cecamp
runtime/syntax/solidity.vim @cothi
runtime/syntax/spec.vim @ignatenkobrain
runtime/syntax/sqloracle.vim @chrisbra
runtime/syntax/squirrel.vim @zenmatic
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:

env:
CC: gcc
CFLAGS: -Wno-deprecated-declarations
DEBIAN_FRONTEND: noninteractive
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion ci/config.mk.sed
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror/
/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror -Wno-deprecated-declarations/
/^PERL_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-function -Wno-shadow/
/^RUBY_CFLAGS_EXTRA[[:blank:]]*=/s/$/ -Wno-error=unused-parameter/
31 changes: 26 additions & 5 deletions runtime/autoload/dist/ft.vim
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export def FTasmsyntax()
endif
enddef

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

# See FTfrm() for Visual Basic form file detection
export def FTbas()
Expand Down Expand Up @@ -146,12 +146,20 @@ export def FTcls()
return
endif

if getline(1) =~ '^\v%(\%|\\)'
setf tex
elseif getline(1)[0] == '#' && getline(1) =~ 'rexx'
var line1 = getline(1)
if line1 =~ '^#!.*\<\%(rexx\|regina\)\>'
setf rexx
elseif getline(1) == 'VERSION 1.0 CLASS'
return
elseif line1 == 'VERSION 1.0 CLASS'
setf vb
return
endif

var nonblank1 = getline(nextnonblank(1))
if nonblank1 =~ '^\v%(\%|\\)'
setf tex
elseif nonblank1 =~ '^\s*\%(/\*\|::\w\)'
setf rexx
else
setf st
endif
Expand Down Expand Up @@ -324,6 +332,11 @@ export def FTfrm()
return
endif

if getline(1) == "VERSION 5.00"
setf vb
return
endif

var lines = getline(1, min([line("$"), 5]))

if match(lines, ft_visual_basic_content) > -1
Expand Down Expand Up @@ -1197,5 +1210,13 @@ export def FTv()
setf v
enddef

export def FTvba()
if getline(1) =~ '^["#] Vimball Archiver'
setf vim
else
setf vb
endif
enddef

# Uncomment this line to check for compilation errors early
# defcompile
8 changes: 8 additions & 0 deletions runtime/autoload/dist/script.vim
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ export def Exe2filetype(name: string, line1: string): string
elseif name =~ 'nix-shell'
return 'nix'

# Crystal
elseif name =~ '^crystal\>'
return 'crystal'

# Rexx
elseif name =~ '^\%(rexx\|regina\)\>'
return 'rexx'

endif

return ''
Expand Down
7 changes: 6 additions & 1 deletion runtime/autoload/gzip.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
fun s:check(cmd)
let name = substitute(a:cmd, '\(\S*\).*', '\1', '')
if !exists("s:have_" . name)
" safety check, don't execute anything from the current directory
let f = fnamemodify(exepath(name), ":p:h") !=# getcwd()
if !f
echoerr "Warning: NOT executing " .. name .. " from current directory!"
endif
let e = executable(name)
if e < 0
let r = system(name . " --version")
let e = (r !~ "not found" && r != "")
endif
exe "let s:have_" . name . "=" . e
exe "let s:have_" . name . "=" . (e && f)
endif
exe "return s:have_" . name
endfun
Expand Down
4 changes: 4 additions & 0 deletions runtime/autoload/zip.vim
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ if !exists("g:zip_extractcmd")
let g:zip_extractcmd= g:zip_unzipcmd
endif

if fnamemodify(exepath(g:zip_unzipcmd), ":p:h") ==# getcwd()
echoerr "Warning: NOT executing " .. g:zip_unzipcmd .. " from current directory!"
finish
endif
" ----------------
" Functions: {{{1
" ----------------
Expand Down
12 changes: 12 additions & 0 deletions runtime/doc/builtin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ inputrestore() Number restore typeahead
inputsave() Number save and clear typeahead
inputsecret({prompt} [, {text}]) String like input() but hiding the text
insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}]
instanceof({object}, {class}) Number |TRUE| if {object} is an instance of {class}
interrupt() none interrupt script execution
invert({expr}) Number bitwise invert
isabsolutepath({path}) Number |TRUE| if {path} is an absolute path
Expand Down Expand Up @@ -5054,6 +5055,17 @@ insert({object}, {item} [, {idx}]) *insert()*
Can also be used as a |method|: >
mylist->insert(item)
instanceof({object}, {class}) *instanceof()*
The result is a Number, which is |TRUE| when the {object} argument is a
direct or indirect instance of a |Class| specified by {class}.
When {class} is a |List| the function returns |TRUE| when {object} is an
instance of any of the specified classes.
Example: >
instanceof(animal, [Dog, Cat])
< Can also be used as a |method|: >
myobj->instanceof(mytype)
interrupt() *interrupt()*
Interrupt script execution. It works more or less like the
user typing CTRL-C, most commands won't execute and control
Expand Down
39 changes: 17 additions & 22 deletions runtime/doc/evim-it.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.TH EVIM 1 "16 febbraio 2002 "
.SH NOME
evim \- Vim "facile", Vim impostato in modo da poter essere usato
facilmente per modificare file, anche da chi non abbia familiarità
con i comandi.
evim \- Vim "facile", impostato in modo da poter essere usato come editore non-modale
.SH SINTASSI
.br
.B evim
Expand All @@ -13,42 +11,39 @@ con i comandi.
.B evim
Inizia
.B Vim
e imposta le opzioni per farlo comportare come un editore "modeless".
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
Simile all'uso di Notepad in MS-Windows.
.B evim
richiede la presenza della GUI, per avere a disposizione menù e barra
strumenti.
e imposta le opzioni per farlo comportare come un editore non-modale.
Si tratta sempre di Vim, ma usato nello stile "posizionati-e-clicca".
Rammenta molto l'utilizzo di Notepad in MS-Windows.
.B eVim
necessita della disponibilità della GUI, per utilizzare menù e barra strumenti.
.PP
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
maniera usuale.
La modifica file sarà molto meno efficiente.
Va a usato soltanto se non si è in grado di lavorare con Vim nella maniera usuale.
L'edit dei file sarà molto meno efficiente.
.PP
.B eview
come sopra, ma parte in modalità "Sola Lettura". Funziona come evim \-R.
come sopra, ma si parte in modalità "Sola Lettura". Funziona come evim \-R.
.PP
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
.PP
L'opzione 'insertmode' è impostata per poter immettere del testo direttamente.
L'opzione 'insertmode' è impostata in modo da consentire l'immissione diretta di testo fin dall'inizio.
.br
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
familiari tasti usati sotto MS-Windows.
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i familiari tasti usati sotto MS-Windows.
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
Usate CTRL-Q per ottenere quello che si otterrebbe con CTRL-V in Vim nativo.
Occorre usare CTRL-Q per ottenere il comportamenti di CTRL-V in Vim nativo.
.SH OPZIONI
Vedere vim(1).
.SH FILE
.TP 15
/usr/local/lib/vim/evim.vim
Lo script caricato per inizializzare eVim.
.SH NAC [NOTO ANCHE COME]
Noto Anche Come "Vim per semplici".
Quando usate evim si suppone che prendiate un fazzoletto,
facciate un nodo ad ogni angolo e ve lo mettiate in testa.
.SH AKA
[Also Known As] noto anche come "Vim per semplici".
Quando is usa evim si suppone che si prenda un fazzoletto,
si faccia un nodo ad ogni angolo e lo si metta in testa.
.SH VEDERE ANCHE
vim(1)
.SH AUTORE
Buona parte di
.B Vim
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
Vedere il menù "Aiuto/Crediti".
39 changes: 17 additions & 22 deletions runtime/doc/evim-it.UTF-8.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.TH EVIM 1 "16 febbraio 2002 "
.SH NOME
evim \- Vim "facile", Vim impostato in modo da poter essere usato
facilmente per modificare file, anche da chi non abbia familiarità
con i comandi.
evim \- Vim "facile", impostato in modo da poter essere usato come editore non-modale
.SH SINTASSI
.br
.B evim
Expand All @@ -13,42 +11,39 @@ con i comandi.
.B evim
Inizia
.B Vim
e imposta le opzioni per farlo comportare come un editore "modeless".
State sempre usando Vim, ma come un editore "posizionati-e-clicca".
Simile all'uso di Notepad in MS-Windows.
.B evim
richiede la presenza della GUI, per avere a disposizione menù e barra
strumenti.
e imposta le opzioni per farlo comportare come un editore non-modale.
Si tratta sempre di Vim, ma usato nello stile "posizionati-e-clicca".
Rammenta molto l'utilizzo di Notepad in MS-Windows.
.B eVim
necessita della disponibilità della GUI, per utilizzare menù e barra strumenti.
.PP
Da usarsi soltanto se non si è in grado di lavorare con Vim nella
maniera usuale.
La modifica file sarà molto meno efficiente.
Va a usato soltanto se non si è in grado di lavorare con Vim nella maniera usuale.
L'edit dei file sarà molto meno efficiente.
.PP
.B eview
come sopra, ma parte in modalità "Sola Lettura". Funziona come evim \-R.
come sopra, ma si parte in modalità "Sola Lettura". Funziona come evim \-R.
.PP
Vedere vim(1) per dettagli riguardo a Vim, opzioni, etc.
.PP
L'opzione 'insertmode' è impostata per poter immettere del testo direttamente.
L'opzione 'insertmode' è impostata in modo da consentire l'immissione diretta di testo fin dall'inizio.
.br
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i
familiari tasti usati sotto MS-Windows.
Sono definite delle mappature che consentono di usare COPIA e INCOLLA con i familiari tasti usati sotto MS-Windows.
CTRL-X taglia testo, CTRL-C copia testo e CTRL-V incolla testo.
Usate CTRL-Q per ottenere quello che si otterrebbe con CTRL-V in Vim nativo.
Occorre usare CTRL-Q per ottenere il comportamenti di CTRL-V in Vim nativo.
.SH OPZIONI
Vedere vim(1).
.SH FILE
.TP 15
/usr/local/lib/vim/evim.vim
Lo script caricato per inizializzare eVim.
.SH NAC [NOTO ANCHE COME]
Noto Anche Come "Vim per semplici".
Quando usate evim si suppone che prendiate un fazzoletto,
facciate un nodo ad ogni angolo e ve lo mettiate in testa.
.SH AKA
[Also Known As] noto anche come "Vim per semplici".
Quando is usa evim si suppone che si prenda un fazzoletto,
si faccia un nodo ad ogni angolo e lo si metta in testa.
.SH VEDERE ANCHE
vim(1)
.SH AUTORE
Buona parte di
.B Vim
è stato scritto da Bram Moolenaar, con molto aiuto da altri.
è stato scritto da Bram Moolenaar, con molto aiuto da parte di altri.
Vedere il menù "Aiuto/Crediti".
6 changes: 6 additions & 0 deletions runtime/doc/if_perl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,11 @@ instead of DYNAMIC_PERL_DLL file what was specified at compile time. The
version of the shared library must match the Perl version Vim was compiled
with.

Note: If you are building Perl locally, you have to use a version compiled
with threading support for it for Vim to successfully link against it. You can
use the `-Dusethreads` flags when configuring Perl, and check that a Perl
binary has it enabled by running `perl -V` and verify that `USE_ITHREADS` is
under "Compile-time options".

==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl:
4 changes: 4 additions & 0 deletions runtime/doc/insert.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ CTRL-R {register} *i_CTRL-R*
'/' the last search pattern
':' the last command-line
'.' the last inserted text
*i_CTRL-R_-*
'-' the last small (less than a line) delete
register. This is repeatable using |.| since
it remembers the register to put instead of
the literal text to insert.
*i_CTRL-R_=*
'=' the expression register: you are prompted to
enter an expression (see |expression|)
Expand Down
Loading

0 comments on commit 4b6110f

Please sign in to comment.