blob: cfee68e8a2767b6e252923a6f934115fbb13eb44 [file] [log] [blame] [view]
Viktor Szépeb23db542023-08-19 14:16:10 +02001# [![Vim The editor](https://github.com/vim/vim/raw/master/runtime/vimlogo.gif)](https://www.vim.org)
Bram Moolenaar0261a1a2020-12-24 17:41:12 +01002
Viktor Szépeb23db542023-08-19 14:16:10 +02003[![Github Build status](https://github.com/vim/vim/workflows/GitHub%20CI/badge.svg)](https://github.com/vim/vim/actions?query=workflow%3A%22GitHub+CI%22)
4[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/o2qht2kjm02sgghk?svg=true)](https://ci.appveyor.com/project/chrisbra/vim)
5[![Cirrus Build Status](https://api.cirrus-ci.com/github/vim/vim.svg)](https://cirrus-ci.com/github/vim/vim)
6[![Coverage Status](https://codecov.io/gh/vim/vim/coverage.svg?branch=master)](https://codecov.io/gh/vim/vim?branch=master)
7[![Coverity Scan](https://scan.coverity.com/projects/241/badge.svg)](https://scan.coverity.com/projects/vim)
8[![Debian CI](https://badges.debian.net/badges/debian/testing/vim/version.svg)](https://buildd.debian.org/vim)
9[![Packages](https://repology.org/badge/tiny-repos/vim.svg)](https://repology.org/metapackage/vim)
10[![Fossies codespell report](https://fossies.org/linux/test/vim-master.tar.gz/codespell.svg)](https://fossies.org/linux/test/vim-master.tar.gz/codespell.html)
Bram Moolenaar694cac72015-07-10 19:22:03 +020011
Bram Moolenaar4a27aef2021-06-12 16:12:16 +020012If you find a bug or want to discuss the best way to add a new feature, please
Viktor Szépeb23db542023-08-19 14:16:10 +020013[open an issue](https://github.com/vim/vim/issues/new/choose).
Bram Moolenaar4a27aef2021-06-12 16:12:16 +020014If you have a question or want to discuss the best way to do something with
15Vim, you can use [StackExchange](https://vi.stackexchange.com/)
16or one of the [Maillists](https://www.vim.org/community.php).
17
Viktor Szépeb23db542023-08-19 14:16:10 +020018## What is Vim?
Bram Moolenaar694cac72015-07-10 19:22:03 +020019
Bram Moolenaar56994d22021-04-17 16:31:09 +020020Vim is a greatly improved version of the good old UNIX editor
Christian Brabandt4e9adfa2024-05-07 18:17:00 +020021[Vi](https://en.wikipedia.org/wiki/Vi_(text_editor)). Many new
Bram Moolenaard18cfb72016-03-29 22:29:18 +020022features have been added: multi-level undo, syntax highlighting, command line
23history, on-line help, spell checking, filename completion, block operations,
24script language, etc. There is also a Graphical User Interface (GUI)
25available. Still, Vi compatibility is maintained, those who have Vi "in the
Bram Moolenaar56994d22021-04-17 16:31:09 +020026fingers" will feel at home.
27See [`runtime/doc/vi_diff.txt`](runtime/doc/vi_diff.txt) for differences with
Bram Moolenaard18cfb72016-03-29 22:29:18 +020028Vi.
Bram Moolenaar694cac72015-07-10 19:22:03 +020029
30This editor is very useful for editing programs and other plain text files.
31All commands are given with normal keyboard characters, so those who can type
32with ten fingers can work very fast. Additionally, function keys can be
Bram Moolenaard18cfb72016-03-29 22:29:18 +020033mapped to commands by the user, and the mouse can be used.
Bram Moolenaar694cac72015-07-10 19:22:03 +020034
K.Takata27b53be2022-09-18 12:25:49 +010035Vim runs under MS-Windows (7, 8, 10, 11), macOS, Haiku, VMS and almost all
36flavours of UNIX. Porting to other systems should not be very difficult.
37Older versions of Vim run on MS-DOS, MS-Windows 95/98/Me/NT/2000/XP/Vista,
38Amiga DOS, Atari MiNT, BeOS, RISC OS and OS/2. These are no longer maintained.
Bram Moolenaar694cac72015-07-10 19:22:03 +020039
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010040For Vim9 script see [README_VIM9](README_VIM9.md).
41
Viktor Szépeb23db542023-08-19 14:16:10 +020042## Distribution
Bram Moolenaar694cac72015-07-10 19:22:03 +020043
Bram Moolenaarc92399f2015-10-25 13:55:00 +010044You can often use your favorite package manager to install Vim. On Mac and
45Linux a small version of Vim is pre-installed, you still need to install Vim
46if you want more features.
47
Bram Moolenaar694cac72015-07-10 19:22:03 +020048There are separate distributions for Unix, PC, Amiga and some other systems.
49This `README.md` file comes with the runtime archive. It includes the
50documentation, syntax files and other files that are used at runtime. To run
51Vim you must get either one of the binary archives or a source archive.
52Which one you need depends on the system you want to run it on and whether you
Bram Moolenaar89a9c152021-08-29 21:55:35 +020053want or must compile it yourself. Check https://www.vim.org/download.php for
Bram Moolenaar694cac72015-07-10 19:22:03 +020054an overview of currently available distributions.
55
Bram Moolenaar5d98c9d2016-04-15 20:54:52 +020056Some popular places to get the latest Vim:
Bram Moolenaar56994d22021-04-17 16:31:09 +020057* Check out the git repository from [GitHub](https://github.com/vim/vim).
Patrick Brinich-Langlois4225f282024-06-13 20:22:13 +020058* Get the source code as an [archive](https://github.com/vim/vim/tags).
Bram Moolenaar5d98c9d2016-04-15 20:54:52 +020059* Get a Windows executable from the
60[vim-win32-installer](https://github.com/vim/vim-win32-installer/releases) repository.
61
Viktor Szépeb23db542023-08-19 14:16:10 +020062## Compiling
Bram Moolenaard18cfb72016-03-29 22:29:18 +020063
64If you obtained a binary distribution you don't need to compile Vim. If you
65obtained a source distribution, all the stuff for compiling Vim is in the
Viktor Szépeb23db542023-08-19 14:16:10 +020066[`src`](./src/) directory. See [`src/INSTALL`](./src/INSTALL) for instructions.
Bram Moolenaard18cfb72016-03-29 22:29:18 +020067
Viktor Szépeb23db542023-08-19 14:16:10 +020068## Installation
Bram Moolenaard18cfb72016-03-29 22:29:18 +020069
70See one of these files for system-specific instructions. Either in the
Bram Moolenaar56994d22021-04-17 16:31:09 +020071[READMEdir directory](./READMEdir/) (in the repository) or
72the top directory (if you unpack an archive):
Bram Moolenaard18cfb72016-03-29 22:29:18 +020073
Viktor Szépeb23db542023-08-19 14:16:10 +020074```
75README_ami.txt Amiga
76README_unix.txt Unix
77README_dos.txt MS-DOS and MS-Windows
78README_mac.txt Macintosh
79README_haiku.txt Haiku
80README_vms.txt VMS
81```
Bram Moolenaard18cfb72016-03-29 22:29:18 +020082
83There are other `README_*.txt` files, depending on the distribution you used.
84
Viktor Szépeb23db542023-08-19 14:16:10 +020085## Documentation
Bram Moolenaar694cac72015-07-10 19:22:03 +020086
Bram Moolenaard18cfb72016-03-29 22:29:18 +020087The Vim tutor is a one hour training course for beginners. Often it can be
Bram Moolenaar694cac72015-07-10 19:22:03 +020088started as `vimtutor`. See `:help tutor` for more information.
89
90The best is to use `:help` in Vim. If you don't have an executable yet, read
Viktor Szépeb23db542023-08-19 14:16:10 +020091[`runtime/doc/help.txt`](./runtime/doc/help.txt).
Bram Moolenaar56994d22021-04-17 16:31:09 +020092It contains pointers to the other documentation files.
93The User Manual reads like a book and is recommended to learn to use
Bram Moolenaar694cac72015-07-10 19:22:03 +020094Vim. See `:help user-manual`.
95
Viktor Szépeb23db542023-08-19 14:16:10 +020096## Copying
Bram Moolenaar694cac72015-07-10 19:22:03 +020097
98Vim is Charityware. You can use and copy it as much as you like, but you are
99encouraged to make a donation to help orphans in Uganda. Please read the file
Viktor Szépeb23db542023-08-19 14:16:10 +0200100[`runtime/doc/uganda.txt`](./runtime/doc/uganda.txt)
Bram Moolenaar56994d22021-04-17 16:31:09 +0200101for details (do `:help uganda` inside Vim).
Bram Moolenaar694cac72015-07-10 19:22:03 +0200102
103Summary of the license: There are no restrictions on using or distributing an
104unmodified copy of Vim. Parts of Vim may also be distributed, but the license
Bram Moolenaarf1dcd142022-12-31 15:30:45 +0000105text must always be included. For modified versions, a few restrictions apply.
Bram Moolenaar694cac72015-07-10 19:22:03 +0200106The license is GPL compatible, you may compile Vim with GPL libraries and
107distribute it.
108
Viktor Szépeb23db542023-08-19 14:16:10 +0200109## Sponsoring
Bram Moolenaar694cac72015-07-10 19:22:03 +0200110
111Fixing bugs and adding new features takes a lot of time and effort. To show
Restorerb75825f2024-03-28 09:14:47 +0000112your appreciation for the work and motivate developers to continue working on
113Vim please send a donation.
Bram Moolenaar694cac72015-07-10 19:22:03 +0200114
Restorerb75825f2024-03-28 09:14:47 +0000115The money you donated will be mainly used to help children in Uganda. See
116[`runtime/doc/uganda.txt`](./runtime/doc/uganda.txt). But at the same time
117donations increase the development team motivation to keep working on Vim!
Bram Moolenaar694cac72015-07-10 19:22:03 +0200118
119For the most recent information about sponsoring look on the Vim web site:
Bram Moolenaar89a9c152021-08-29 21:55:35 +0200120 https://www.vim.org/sponsor/
Bram Moolenaar694cac72015-07-10 19:22:03 +0200121
Viktor Szépeb23db542023-08-19 14:16:10 +0200122## Contributing
Bram Moolenaar3fe076f2015-09-25 15:00:56 +0200123
Bram Moolenaarf1dcd142022-12-31 15:30:45 +0000124If you would like to help make Vim better, see the
Viktor Szépeb23db542023-08-19 14:16:10 +0200125[CONTRIBUTING.md](./CONTRIBUTING.md) file.
Bram Moolenaar3fe076f2015-09-25 15:00:56 +0200126
Viktor Szépeb23db542023-08-19 14:16:10 +0200127## Information
Bram Moolenaar694cac72015-07-10 19:22:03 +0200128
parteve6e3a7a2024-03-26 13:09:05 -0400129If you are on macOS, you can use [MacVim](https://macvim.org).
Bram Moolenaar2ecbe532022-07-29 21:36:21 +0100130
Bram Moolenaar694cac72015-07-10 19:22:03 +0200131The latest news about Vim can be found on the Vim home page:
Bram Moolenaar89a9c152021-08-29 21:55:35 +0200132 https://www.vim.org/
Bram Moolenaar694cac72015-07-10 19:22:03 +0200133
134If you have problems, have a look at the Vim documentation or tips:
Bram Moolenaar89a9c152021-08-29 21:55:35 +0200135 https://www.vim.org/docs.php
136 https://vim.fandom.com/wiki/Vim_Tips_Wiki
Bram Moolenaar694cac72015-07-10 19:22:03 +0200137
138If you still have problems or any other questions, use one of the mailing
139lists to discuss them with Vim users and developers:
Bram Moolenaar89a9c152021-08-29 21:55:35 +0200140 https://www.vim.org/maillist.php
Bram Moolenaar694cac72015-07-10 19:22:03 +0200141
Christian Brabandte978b452023-08-13 10:33:05 +0200142If nothing else works, report bugs directly to the vim-dev mailing list:
Viktor Szépeb23db542023-08-19 14:16:10 +0200143 `<vim-dev@vim.org>`
Bram Moolenaar694cac72015-07-10 19:22:03 +0200144
Viktor Szépeb23db542023-08-19 14:16:10 +0200145## Main author
Bram Moolenaar694cac72015-07-10 19:22:03 +0200146
Viktor Szépeb23db542023-08-19 14:16:10 +0200147Most of Vim was created by Bram Moolenaar `<Bram@vim.org>`
Christian Brabandt16889382023-08-13 17:53:07 +0200148[Bram-Moolenaar](https://vimhelp.org/version9.txt.html#Bram-Moolenaar)
149
Christian Brabandte978b452023-08-13 10:33:05 +0200150Send any other comments, patches, flowers and suggestions to the vim-dev mailing list:
Viktor Szépeb23db542023-08-19 14:16:10 +0200151 `<vim-dev@vim.org>`
Bram Moolenaar5c367072018-06-18 22:31:11 +0200152
Christian Brabandtb4ddc6c2024-01-02 16:51:11 +0100153This is `README.md` for version 9.1 of Vim: Vi IMproved.