Figurina 017 · Torna alla figurina di Bram Moolenaar · Read the English version
In Vim, la stessa lettera può inserire un carattere o dare un comando. Dipende dalla modalità in cui ti trovi. Bram Moolenaar conservò questa idea di vi quando iniziò a lavorare su Vim per Amiga, poi dedicò decenni a rendere l’editor più utile ed estensibile. La prima versione pubblica, la 1.14, apparve nel novembre 1991 nella raccolta di dischetti Amiga di Fred Fish. Moolenaar racconta le origini di Vim · Ricostruzione delle prime versioni.
Da vi e Stevie a Vim
Moolenaar usava già vi, l’editor di Bill Joy, sui sistemi Unix. Quando comprò un Amiga, prese come punto di partenza Stevie, un editor compatibile con vi disponibile in sorgente. Aggiungendo funzioni come la possibilità di annullare più modifiche, portò il progetto oltre l’obiettivo iniziale di riprodurre le funzioni che già usava. Anche i porting e le interfacce si devono a più persone: nell’intervista del 2007 Moolenaar ricorda che altri collaboratori avviarono, tra l’altro, il porting da Amiga a Unix e l’interfaccia grafica. L’intervista del 2007.
Come funziona la modifica a modalità
In modalità normale w porta il cursore verso l’inizio della parola successiva. Premendo i si entra in modalità inserimento, in cui la lettera w viene scritta. Con Esc si torna ai comandi. Il vantaggio emerge quando si combinano azioni e movimenti: dw esegue il comando di cancellazione fino al punto raggiunto da w, secondo le regole del movimento. Questo piccolo esempio didattico mostra perché imparare alcuni comandi basta per cominciare a combinarli. Manuale di Vim per iniziare · Riferimento ai movimenti.
Due righe originali di Moolenaar
Vim 9.0, pubblicato nel giugno 2022, introdusse Vim9 script. Nel giugno 2023 Moolenaar usò quel linguaggio in una modifica al rilevamento dei tipi di file. Vim può esaminare la prima riga di uno script, quella che spesso inizia con #!, per ricavare il nome dell’interprete. Nelle due righe qui sotto, se il nome estratto corrisponde a nix-shell, Vim imposta il tipo di file a nix per il buffer. Questo aiuta l’editor ad applicare la configurazione per Nix. Il frammento riproduce il commit di Moolenaar dell’8 giugno 2023. Commit di Bram Moolenaar · file script.vim · Annuncio di Vim 9.0.
elseif name =~ 'nix-shell'
setl ft=nix
Riproduzione senza modifiche, con il testo integrale della licenza Vim della stessa revisione. File LICENSE del repository.
Testo integrale della licenza Vim
VIM LICENSE
I) There are no restrictions on distributing unmodified copies of Vim except
that they must include this license text. You can also distribute
unmodified parts of Vim, likewise unrestricted except that they must
include this license text. You are also allowed to include executables
that you made from the unmodified Vim sources, plus your own usage
examples and Vim scripts.
II) It is allowed to distribute a modified (or extended) version of Vim,
including executables and/or source code, when the following four
conditions are met:
1) This license text must be included unmodified.
2) The modified Vim must be distributed in one of the following five ways:
a) If you make changes to Vim yourself, you must clearly describe in
the distribution how to contact you. When the maintainer asks you
(in any way) for a copy of the modified Vim you distributed, you
must make your changes, including source code, available to the
maintainer without fee. The maintainer reserves the right to
include your changes in the official version of Vim. What the
maintainer will do with your changes and under what license they
will be distributed is negotiable. If there has been no negotiation
then this license, or a later version, also applies to your changes.
The current maintainer is Bram Moolenaar <Bram@vim.org>. If this
changes it will be announced in appropriate places (most likely
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
impossible to contact the maintainer, the obligation to send him
your changes ceases. Once the maintainer has confirmed that he has
received your changes they will not have to be sent again.
b) If you have received a modified Vim that was distributed as
mentioned under a) you are allowed to further distribute it
unmodified, as mentioned at I). If you make additional changes the
text under a) applies to those changes.
c) Provide all the changes, including source code, with every copy of
the modified Vim you distribute. This may be done in the form of a
context diff. You can choose what license to use for new code you
add. The changes and their license must not restrict others from
making their own changes to the official version of Vim.
d) When you have a modified Vim which includes changes as mentioned
under c), you can distribute it without the source code for the
changes if the following three conditions are met:
- The license that applies to the changes permits you to distribute
the changes to the Vim maintainer without fee or restriction, and
permits the Vim maintainer to include the changes in the official
version of Vim without fee or restriction.
- You keep the changes for at least three years after last
distributing the corresponding modified Vim. When the maintainer
or someone who you distributed the modified Vim to asks you (in
any way) for the changes within this period, you must make them
available to him.
- You clearly describe in the distribution how to contact you. This
contact information must remain valid for at least three years
after last distributing the corresponding modified Vim, or as long
as possible.
e) When the GNU General Public License (GPL) applies to the changes,
you can distribute the modified Vim under the GNU GPL version 2 or
any later version.
3) A message must be added, at least in the output of the ":version"
command and in the intro screen, such that the user of the modified Vim
is able to see that it was modified. When distributing as mentioned
under 2)e) adding the message is only required for as far as this does
not conflict with the license used for the changes.
4) The contact information as required under 2)a) and 2)d) must not be
removed or changed, except that the person himself can make
corrections.
III) If you distribute a modified version of Vim, you are encouraged to use
the Vim license for your changes and make them available to the
maintainer, including the source code. The preferred way to do this is
by e-mail or by uploading the files to a server and e-mailing the URL.
If the number of changes is small (e.g., a modified Makefile) e-mailing a
context diff will do. The e-mail address to be used is
<maintainer@vim.org>
IV) It is not allowed to remove this license from the distribution of the Vim
sources, parts of it or from a modified version. You may use this
license for previous Vim releases instead of the license that they came
with, at your option.Charityware e manutenzione dopo Moolenaar
Moolenaar invitava chi usava Vim a sostenere volontariamente l’istruzione dei bambini in Uganda. L’invito, chiamato charityware, affiancava la distribuzione del software libero. Dopo la sua morte nel 2023, la comunità ha continuato a sviluppare l’editor. Le notizie ufficiali di Vim riferiscono che nel 2025 le attività di ICCF Holland sono passate a Kuwasha. Aggiornamento ufficiale sul progetto solidale · Annuncio di Vim 9.2.
Immagine in evidenza. Illustrazione editoriale originale generata con IA per questa figurina.
Proponi una nuova figurina
Conosci una programmatrice o un programmatore, celebre o poco noto, con un contributo eccellente? Indica il nome, il progetto o contributo e le fonti per verificarlo. L’email è facoltativa e serve per eventuali chiarimenti. La redazione valuta ogni proposta prima di decidere se pubblicarla.
