Two decades of productitasks: Vim's 20th anniversaryby Ryan paulrunning Vim inside a terminal running inside a Vim
The Vim text editor was first released to the public on November 2, 1991-exactly 20 years ago today. although it was originally designed as a VI clone for the Amiga, it was soon ported to other platforms and
Eventually grew to become the most popular vi-compatible text editor. It is still actively developed and widely used processing SS several operating systems.
In this article, we will take a brief look back at the history of VI and its descendants, leading up to the creation of vim. we will also need e some of the compelling technical features that continue to make
Vim relevant today.
Prehistory
The VI text editor was originally created in the late '70s by Bill Joy, an early BSD developer who later went on to cofound Sun Microsystems. The original Implementation of VI was conceived as an interactive
"Visual" mode for an Ed-like line editor called ex. it was developed at first on an old ADM-3A terminal, about a decade before computer mice became ubiquitous. users relied on commands and keyboard-based navigation to interact with the editor.
The limitations and idiosyncrasies of the ADM-3A influenced some of VI's most distinctive characteristics. For example, VI was programmed to useh
,j
,k
, Andl
Keys
For direal Al navigation because the ADM-3A Keyboard had arrows printed on the keys with those letters. Although it was an accident of history,hjkl
Navigation model in VI proved to be enormously efficient. The combination of those letters
Has become practically iconic among VI users. The navigation scheme is used today in a variety of other applications, including Gmail and the official Twitter client for Mac OS X.
The VI editor became an inseparable part of the UNIX landscape. Joy bundled it with BSD and ATT ininitialized it into System V. The core functionality and behavior of VI was later specified in the POSIX standard,
Which led to the projection of the text editor in seconds of the major UNIX systems.
The VI clones, which began to emerge in the late '80s and early '90s, were widely adopted due to more permissive licensing. joy's VI implementation was based on the original ATT version of ED, which meant that
The Code was not freely redistributable. It cocould only be used by Parties that had a Unix license from ATT.
The first two prominent VI clones were Stevie and Elvis. stevie, the St editor for VI enthusiasts, was originally developed for the Atari ST in 1987 and ported to Unix the next year. it was somewhat primitive
But attracted a modest following. Elvis, which was first released in 1990, was more sophisticated and was designed to offer more functionality. Elvis was the first VI clone to introduce support for syntax highlighting.
Although Elvis still has some users and remains popular in the slackware community, it hasn' t seen a major update since 2003. elvis replaced Joy's VI in the original 386 port of BSD, but the BSD developers later
Produced a new clone called nvi that was intended to more closely match the behavior of Joy's implementation. The nvi editor is still shipped today by the BSD family of operating systems.
History
The earliest version of VIM was developed on the Amiga by Bram moolenaar in 1988. moolenaar was dissatisfied with the VI clones that were available for the Amiga platform and set out to make one that came closer
To matching VI's feature set. He based his new editor on Stevie, which he has said was the best Amiga-compatible VI clone at the time.
The first version of VIM that was released to the general public was 1.14, which was published on November 2, 1991. it was distributed on fish disk #591, one of the disks in Fred fish's Amiga freeware collection.
Following its public debut, users began contributing patches.
"A long time ago I got myself an amiga computer. since I was used to editing with Vi, I looked around for a program like VI for the amiga. I did find a few so-called 'clone', but none of them was good enough;
So I took the best one, and started improving it. at first the main goal was to be able to do all that vi cocould do. gradually I added some additional features, like multi-level undo, "moolenaar wrote in the first
Issue of Free Software magazine, back in 2001. "When I started working on VIM it was just for my own use. after some time I got the impression it was useful for others, and sent it out into the world. since then I'm working more and more on making
Program work well for a large audience. It's fun to create something useful. Also, there is a nice group of co-authors and power users, which is very inspiring ."
Othree
Moolenaar drafted his own loose Copyleft license for the software. The license grants the user broad freedom to use, distribute, and repurpose the code, but gives the maintainer the right to ask for improvements
To be contributed back to the project. Some clarifications were added to Vim's license in the version 6.0 release to ensure compatibility with GNU's General Public License (GPL ).
Vim is an open source software project, but it's also charityware. moolenaar helped establish a foundation called iccf Holand that
Works to support to a children's center in Uganda. He encourages users to consider making a donation to iccf Holland or the Kibaale Children's Fund. He serves as treasurer of the Foundation and visits
The site in Uganda nearly every year to monitor the center's SS.
The name "Vim" originally stood for VI imitation, But it later became VI improved. the name was changed in 1992 when version 1.22 was released with compelling new features and a Unix port. it gained support
Multiple buffers in version 3.0, which was released in 1994. version 4.0 in 1996 introduced a graphical user interface, version 5.0 in 1998 added syntax highlighting capabilities, and version 6.0 in 2001 added support for vertical window splits and a plugin
System that simplified Script Loading.
Login, Login Other features were added along the way. vim has been ported to numerous other platforms, including Linux, BEOs, windows, Mac OS X, and QNX. although Vim was originally designed to be used in a terminal,
There are several graphical frontends built with various user interface toolkits that add conventional menus, toolbars, and scrollbars.
The latest major release of VIM was version 7, which was released in 2006. It introduced some special significant features, including native support for spellchecking, an autocompletion system, a tab interface,
Andundo branches. The most recent minor version update was Version 7.3, released last year, which introduced a persistent undo feature and support
For Python 3.
Vim today
Due to the popularity of the clones, the name "Vi" has become a general term that is used colloquially to describe any member of the family of vi-compatible editors that more-or-less support the features that
Are specified in the POSIX standard. today, direct derivatives of Joy's VI are generally only used in a handful of commercial UNIX environments. all modern BSD and Linux systems include a clone rather than the original.
The BSD distributions still mostly ship nvi, but Mac OS X and the vast majority of Linux systems come with vim. in most cases, the VI command has been configured as a symlink that launches Vim directly, or
Script that launches Vim with strict vi-compatibility enabled. if you have used the VI command on a Linux system at any time in the past decade, it's very likely that you were using vim.
Unlike the other prominent VI clones, VIM is still actively developed and has a large base of contributors. New features are still being developed and added to the text editor every year, making it even more
Powerful. moolenaar also still serves as the chief maintainer and does much of the work to make sure that contributed patches function well and are integrated properly.
Why people still use vimremy
The notion of using a modal command-oriented Editor may seem a bit anachronistic at first glance, but Vim's rich feature set and deep extensibility have made it an enduring choice among advanced computer users.
It's still a highly popular Editor, especially among computer programmers, Web developers, scientists, and system administrators.
The full scope of Vim's advantages are difficult to articulate to users who are unfamiliar with the editor. although a full explanation of how Vim works is beyond the scope of this article, the following is
Small assortment of useful features:
Flexible Multiple Document Interface: In vim, your files and unsaved documents are referred to as buffers. The editor gives you a tremendous amount of control over how your buffers are displayed
On the screen. you can horizontally and vertically split the window as your times as you want so that you can view your buffers at the same time. you can even have the same buffer displayed in multiple splits, which lets you view separate parts of the same
Document simultaneously. You can also optionally organize sets of split layouts into tabs. layouts and state can be preserved by saving a "session" and restoring it later.
Modal editing with sophisticated keyboard shortcuts: Vim has separate interaction modes for text input and text editing. insert mode behaves largely as you wowould perform CT a regular text editor
To work-commands are saved Med with conventional keyboard shortcuts and characters are appended to the buffer as you press the associated keys. in the "normal" mode, however, sequences of key presses perform commands. the most useful commands allow you
Quickly navigate and manipulate the text in the buffer. You can extensively customize the behavior of the bindings to create custom shortcuts and commands.
Multiple clipboards: Instead of a conventional clipboard, VIM stores copied text with a mechanic that it CILS registers. There is a default register that is used to store text that is copied
By the standard Yank and delete operations, but the user can also indicate a specific register in which they want to store text when they cut or copy. this variable tively acts like a clipboard multiplexer. the contents of the registers persist between uses
Vim, which means that they are preserved when you quit and will still be there when you open the editor again.
Macros: Vim has a macro system that allows you to record keypresses for later playback. macros are trivially easy to create from the keyboard and can consist of operations into SS multiple Vim
Modes. macros are stored in registers, just like the clipboard items. As such, they can also persist extends SS uses of the application.
Extremely powerful search capabilities: Vim has some very sophisticated tools for automatic search and replace, including extensive support for regular expressions. It also has a built-in version
Ofgrep
Command, which integrates with vim's enormously convenient quickfix feature-a special buffer that shows you a list of results and allows you to conveniently jump between them.
Extremely rich extensibility: Vim is prodigiously Scriptable and Highly Conducting cive to automation. It has its own native scripting language with container types, a unique variable scoping model,
And a bunch of useful vim-specific functionality. it also has built-in scripting engines and bindings that allow it to be customized via numerous mainstream programming languages, including Perl, Python, Ruby, TCL, and Lua. vim can also be extended to add
Syntax highlighting for additional versions or create custom color schemes. Users widely share their scripts through various online repositories and package them into plugins. As we have previusly
Demonstrated, installing a few simple plugins and scripts can give Vim versions of the advanced capabilities of an integrated development environment.
Portability: Vim will work almost everywhere that you do. Vim is widely used on Windows, Linux, and Mac OS X and is available for your other platform. Users can run it from the terminal or operate
It with a native graphical interface on all three major operating systems. using System Administrators value Vim because it gives them a productive text editing environment on practically any remote Linux or Mac OS X system that they access through the terminal
Via ssh.
Conclusion
Vim has been my editor of choice since 1998, about a year after I started using Linux as my main desktop operating system. I 've used it to write several thousand articles and articles, there lines of code. although
I 've experimented with a lot of conventional modern text editors, I haven't found any that match Vim's efficiency. after using Vim nearly every day for so many years, I'm still discovering new features, capabilities, and useful behaviors that further improve
My productiinstances.
Vim has aged well over the past 20 years. it's not just a Greybeard relic-the editor is still as compelling as ever and continues to attract new users. the learning curve is steep, but the productivity gains
Are well worth the effort.
Do you remember your first experience with VI or Vim? In honor of the venerable text editor's 20th anniversary, share your memories and favorite features in the discussion thread.