Four vintage keycaps illustrating keyboard navigation in Vim

Bram Moolenaar and Vim: The Story of a Modal Editor

Sticker 017 · Back to Bram Moolenaar’s sticker · Leggi la versione italiana

In Vim, the same letter can insert a character or issue a command. It depends on which mode you are in. Bram Moolenaar kept that idea from vi when he started working on Vim for the Amiga, then spent decades making the editor more useful and extensible. The first public version, 1.14, appeared in November 1991 in Fred Fish’s collection of Amiga disks. Moolenaar describes Vim’s origins · An account of the early releases.

From vi and Stevie to Vim

Moolenaar used Bill Joy’s editor vi on Unix. When he bought an Amiga, he started with Stevie, a vi-like editor whose source was available. Features such as the ability to undo several changes took it beyond the original goal of matching the editor he already knew. Ports and interfaces drew on a wider community. In a 2007 interview, Moolenaar recalled that other contributors started work on the Amiga-to-Unix port and the graphical interface, among other features. The 2007 interview.

How modal editing works

In Normal mode, w moves the cursor towards the start of the next word. Press i to enter Insert mode, where the letter w is typed as text. Press Esc to return to commands. The payoff comes when you combine actions and motions. dw applies deletion over the range given by the w motion, using the motion’s rules. This small teaching example shows how a few commands can be combined in different ways. Vim’s introductory manual · Motion reference.

Two original lines by Moolenaar

Vim 9.0, released in June 2022, introduced Vim9 script. In June 2023 Moolenaar used that language to change filetype detection. Vim can inspect a script’s first line, which often begins #!, for the name of its interpreter. In the two lines below, if the detected name matches nix-shell, Vim sets the buffer’s filetype to nix. This helps the editor apply the configuration for Nix. The excerpt reproduces Moolenaar’s 8 June 2023 commit. Bram Moolenaar’s commit · script.vim source file · Vim 9.0 release announcement.

  elseif name =~ 'nix-shell'
    setl ft=nix

Reproduced without changes, with the full Vim licence from the same revision. Repository LICENSE file.

Full Vim licence
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 and maintenance after Moolenaar

Moolenaar invited Vim users to make voluntary donations to support children’s education in Uganda. This arrangement, known as charityware, accompanied the distribution of free software. After he died in 2023, the community continued to develop the editor. Vim’s official news records that ICCF Holland’s activities transferred to Kuwasha in 2025. Official charity update · Vim 9.2 announcement.

Featured image. Original AI-generated editorial illustration for this sticker.

Nominate a programmer for the album

Who has made an outstanding contribution to software? We welcome nominations for well-known and lesser-known programmers. Give us a name, a specific project or contribution and sources we can check. An email address is optional and helps if we need clarification. The editors review each nomination before deciding whether to publish it.

← Back

Thank you for your response. ✨







Posted

in

by

Tags:

Article read 0 times. Thanks for watching

Condividi questa pagina

Impronta carbonica: stima non disponibile.

Stima indicativa del solo trasferimento osservabile: 0,81 kWh/GB × 442 g CO₂e/kWh (ipotesi illustrative, non misura certificata). Cache e risorse non osservabili possono ridurre il dato. GestioneSocial.top
Il nostro impegno per un web responsabile

Crediamo in un web più leggero, accessibile e sostenibile. Progettiamo le nostre pagine cercando di ridurre il trasferimento di dati, il consumo energetico e l’utilizzo non necessario delle risorse informatiche. Una pagina leggera facilita la navigazione anche da dispositivi meno recenti e connessioni lente, e può contribuire a contenere l’impatto ambientale delle attività digitali. La stima visualizzata non è una certificazione ambientale.

Un progetto di GestioneSocial.top per un web più responsabile.