Teknik Telekomunikasi    
   
Daftar Isi
(Sebelumnya) Vignette CorporationVim script (Berikutnya)

Vim (text editor)

Vim
Vim logo
Vim-(logiciel)-console.png
Vim running in a terminal emulator
Original author(s)Bram Moolenaar
Initial releaseNovember 2, 1991; 21 years ago (November 2, 1991)[1]
Stable release7.3.353 [edit]  (2011-10-26) [±]
Preview releasePatch 7.3.582  (2012-06-30) [±]
Written inC and Vimscript
PlatformCross-platform: Unix, Linux, Microsoft Windows, iOS, Android
Available inEnglish, Chinese, French, German, Italian, Persian, Polish, Russian, Spanish[2]
TypeText editor
LicenseFree software(Vim License), charityware
Websitehttp://www.vim.org/

Vim is a text editor written by Bram Moolenaar and first released publicly in 1991. Based on the vi editor common to Unix-like systems, Vim is designed for use both from a command line interface and as a standalone application in a graphical user interface. Vim is free and open source software and is released under a license that includes some charityware clauses, encouraging users who enjoy the software to consider donating to children in Uganda.[3] The license is compatible with the GNU General Public License.

Although Vim was originally released for the Amiga, Vim has since been developed to be cross-platform, supporting many other platforms. In 2006, it was voted the most popular editor amongst Linux Journal readers.[4]

Contents

History

Bram Moolenaar began working on Vim for the Amiga computer in 1988. Moolenaar first publicly released Vim (v1.14) in 1991.[5] Vim was based on an earlier editor, Stevie, for the Atari ST,[1] created by Tim Thompson, Tony Andrews and G.R. (Fred) Walter.[citation needed]

The name "Vim" is an acronym for "Vi IMproved"[6] because Vim is an extended version of the vi editor, with many additional features designed to be helpful in editing program source code. Originally, the acronym stood for "Vi IMitation", but that was changed with the release of Vim 2.0 in December 1993.[7] A later comment states that the reason for changing the name was that Vim's feature set surpassed that of vi.[8]

Interface

Graphical Vim under GTK+ 2.

Like vi, Vim's interface is based not on menus or icons but on commands given in a text user interface; its GUI mode, gVim, adds menus and toolbars for commonly used commands but the full functionality is still expressed through its command line mode.

Vim has a built-in tutorial for beginners (accessible through the "vimtutor" command). There is also the Vim Users' Manual that details Vim's features. This manual can be read from within Vim, or found online.[9][10]

Vim also has a built-in help facility (using the :help command) that allows users to query and navigate through commands and features.

Customization

Part of Vim's power is that it can be extensively customized. The basic interface can be controlled by the many options available, and the user can define personalized key mappings—often called macros—or abbreviations to automate sequences of keystrokes, or even call internal or user defined functions.

There are many plugins available that will extend or add new functionality to Vim. These complex scripts are usually written in Vim's internal scripting language vimscript.[11] Vim also supports scripting using Lua (as of Vim 7.3), Perl, Python, Racket[12] (formerly PLT Scheme), Ruby, and Tcl.

There are projects bundling together complex scripts and customizations and aimed at turning Vim into a tool for a specific task or adding a major flavour to its behaviour. Examples include Cream, which makes Vim behave like a click-and-type editor, or VimOutliner, which provides a comfortable outliner for users of Unix-like systems.

Features and improvements over vi

Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi.[13] However, even in compatibility mode, Vim is not 100% compatible with vi as defined in the Single Unix Specification[14] and POSIX (e.g., Vim does not support vi's open mode, only visual mode). Vim has nevertheless been described as “very much compatible with Vi”.[15]

Some of Vim's enhancements include completion, comparison and merging of files (known as vimdiff), a comprehensive integrated help system, extended regular expressions, scripting languages (both native and through alternative scripting interpreters such as Perl, Python, Ruby, Tcl, etc.) including support for plugins, a graphical user interface (known as gvim), limited integrated development environment-like features, mouse interaction (both with and without the GUI), folding, editing of compressed or archived files in gzip, bzip2, zip, and tar format and files over network protocols such as SSH, FTP, and HTTP, session state preservation, spell checking, split (horizontal and vertical) and tabbed windows, unicode and other multi-language support, syntax highlighting, trans-session command, search, and cursor position histories, multiple level undo/redo history which can persist across editing sessions, and visual mode.

Availability

Whereas vi was originally available only on Unix operating systems, Vim has been ported to many operating systems including AmigaOS (the initial target platform), Atari MiNT, BeOS, DOS, Microsoft Windows 95/98/Me/NT/2000/XP/Server 2003/Vista/Server 2008/7, IBM OS/2 and OS/390, MorphOS, OpenVMS, QNX, RISC OS, Unix, Linux, BSD, and Mac OS.[16] Also, Vim is shipped with every copy of Apple Mac OS X.[17]

Independent ports of Vim are available both for Android[18] and iOS.[19]

Release history

DateVersionChanges and additions
June, 1987N/ATim Thompson releases Stevie (ST editor for VI enthusiasts), a limited vi clone for the Atari ST, posting the source on Usenet.[20][21]
June, 1988N/ATony Andrews improves Stevie, and ports it to Unix and OS/2, releasing version 3.10 on Usenet.[20][22]
19881.0Bram Moolenaar creates Vi IMitation for the Amiga, based on Stevie, never publicly released
November 2, 19911.14[8]First public release for the Amiga on Fred Fish disk #591[23]
19921.22[8]Port to Unix. Vim now competes with vi.
December 14, 19932.0[7]This is the first release using the name Vi IMproved.
August 12, 19943.0[8]Support for multiple windows
May 29, 19964.0[8][24]Graphical user interface
February 19, 19985.0[8][25]Syntax highlighting, basic scripting (user defined functions, commands, etc.)
April 6, 19985.1Bug fixes, various improvements
April 27, 19985.2Long line support, file browser, dialogs, popup menu, select mode, session files, user defined functions and commands, Tcl interface, etc.
August 31, 19985.3Bug fixes, etc.
July 25, 19995.4Basic file encryption, various improvements
September 19, 19995.5Bug fixes, various improvements
January 16, 20005.6New syntax files, bug fixes, etc.
June 24, 20005.7idem
May 31, 20015.8idem
September 26, 20016.0[8][26]Folding, plugins, multi-language, etc.
March 24, 20026.1Bug fixes
June 1, 20036.2GTK2, Arabic language support, :try command, minor features, bug fixes
June 7, 20046.3Bug fixes, translation updates, mark improvements
October 15, 20056.4Bug fixes, updates to Perl, Python, and Ruby support
May 7, 20067.0[27]Spell checking, code completion, tab pages (multiple viewports/window layouts), current line and column highlighting, undo branches, and more
May 12, 20077.1Bug fixes, new syntax and runtime files, etc.
August 9, 20087.2[28]Floating point support in scripts, refactored screen drawing code, bug fixes, new syntax files, etc.
August 15, 20107.3Lua support, Python3 support, Blowfish encryption, persistent undo/redo

See also

References

  1. ^ a b Paul, Ryan (2011-11-02). "Two decades of productivity: Vim's 20th anniversary". Ars Technica. http://arstechnica.com/open-source/ne ws/2011/11/two-decades-of-productivit y-vims-20th-anniversary.ars. Retrieved 2011-11-04.
  2. ^ "Vim in non-English languages". http://www.vim.org/translations.php. Retrieved 14 December 2010.
  3. ^ Vim documentation: uganda
  4. ^ "Linux Journal: 2003 Readers' Choice Awards". 2003-11-01. http://www.linuxjournal.com/article/7 029#N0x850ca10.0x85cf4c4. Retrieved 2006-05-24.; "Linux Journal: 2004 Readers' Choice Awards". 2004-11-01. http://www.linuxjournal.com/article/7 724#N0x850cd80.0x85d3e3c. Retrieved 2006-05-24.; "Linux Journal: 2005 Readers' Choice Awards". 2005-09-28. http://www.linuxjournal.com/article/8 520#N0x850cd80.0x87983bc. Retrieved 2006-05-24.
  5. ^ http://moolenaar.net/vimstory.pdf
  6. ^ "ICCF Holland — helping children in Uganda". ICCF Holland. http://iccf-holland.org/click5.html#o ualline. Retrieved 2007-10-23.
  7. ^ a b "Filewatcher". http://www.filewatcher.com/b/ftp/ftp. twaren.net/pub/Unix/Editors/Vim/old.0 .0.html. Retrieved February 26, 2011.
  8. ^ a b c d e f g Moolenaar, Bram (2002-01-15). "Vim, an open-source text editor". http://www.free-soft.org/FSM/english/ issue01/vim.html. Retrieved 2005-10-24.
  9. ^ Vim manual at Sourceforge.net
  10. ^ Oualline, Steve (April 2001). Vi IMproved (VIM). New Riders Publishers. ISBN 0-7357-1001-5. ftp://ftp.vim.org/pub/vim/doc/book/vi mbook-OPL.pdf.
  11. ^ help vim-script-intro
  12. ^ "Vim documentation: if_mzsch". 11 February 2010. http://vimdoc.sourceforge.net/htmldoc /if_mzsch.html.
  13. ^ Vim help system (type ":help" within Vim)
  14. ^ The Open Group (2008), "vi — screen-oriented (visual) display editor", Single Unix Specification, Version 4 (IEEE Std 1003.1-2008), http://pubs.opengroup.org/onlinepubs/ 9699919799/utilities/vi.html, retrieved 2010-12-27
  15. ^ Peppe, Benji, Charles Campbell (2004-01-02). "Vim FAQ". http://vimdoc.sourceforge.net/htmldoc /vimfaq.html#1.3. Retrieved 2010-12-27. (question 1.3)
  16. ^ ":help sys-file-list"
    "Vim Online: Downloads". http://www.vim.org/download.php. Retrieved 2007-01-07.
  17. ^ "Mac OS X Manual Page For vim(1)". http://developer.apple.com/library/ma c/#DOCUMENTATION/Darwin/Reference/Man Pages/man1/vim.1.html. Retrieved 2010-01-12.
  18. ^ "Vim Touch". http://code.google.com/p/vimtouch/. Retrieved August 31, 2012.
  19. ^ "App Store - Vim". Apple Inc.. http://itunes.apple.com/us/app/vim/id 492668168?mt=8. Retrieved February 5, 2012.
  20. ^ a b Thompson, Tim (2000-03-26). "Stevie". http://nosuch.com/tjt/stevie/. Retrieved 2010-12-27.
  21. ^ Tim Thompson (1987-06-28). "A mini-vi for the ST". comp.sys.atari.st. Web link. Retrieved 2010-12-27.
  22. ^ Tony Andrews (1988-06-06). "v15i037: Stevie, an "aspiring" VI clone for Unix, OS/2, Amiga". comp.sources.unix. Web link. Retrieved 2010-12-27.
  23. ^ Textfiles.com
  24. ^ "Official Vim Manual, Version 4 summary". 2004-03-12. http://www.vim.org/htmldoc/version4.h tml. Retrieved 2008-08-06.
  25. ^ "Official Vim Manual, Version 5 summary". 2004-01-17. http://www.vim.org/htmldoc/version5.h tml. Retrieved 2008-08-06.
  26. ^ "Official Vim Manual, Version 6 summary". 2004-03-12. http://www.vim.org/htmldoc/version6.h tml. Retrieved 2008-08-06.
  27. ^ "Official Vim Manual, Version 7 summary". 2006-05-10. http://vimdoc.sourceforge.net/htmldoc /version7.html. Retrieved 2008-08-06.
  28. ^ Groups.google.com

External links

(Sebelumnya) Vignette CorporationVim script (Berikutnya)