mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
runtime(doc): update how to get Vim
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
*usr_90.txt* For Vim version 9.1. Last change: 2024 Oct 05
|
*usr_90.txt* For Vim version 9.1. Last change: 2025 Mar 03
|
||||||
|
|
||||||
VIM USER MANUAL - by Bram Moolenaar
|
VIM USER MANUAL - by Bram Moolenaar
|
||||||
|
|
||||||
@ -28,20 +28,18 @@ is installed in differs.
|
|||||||
used. But this may be different for your system. Try finding out where other
|
used. But this may be different for your system. Try finding out where other
|
||||||
packages are installed.
|
packages are installed.
|
||||||
When installing for a single user, you can use your home directory as the
|
When installing for a single user, you can use your home directory as the
|
||||||
base. The files will be placed in subdirectories like "bin" and "shared/vim".
|
base. The files will be placed in subdirectories like "bin" and "share/vim".
|
||||||
|
|
||||||
|
|
||||||
FROM A PACKAGE
|
FROM A PACKAGE
|
||||||
|
|
||||||
You can get precompiled binaries for many different UNIX systems. There is a
|
Depending on the Unix/Linux system used, there may exist pre-compiled binary
|
||||||
long list with links on this page:
|
packages. You need to search for this. We used to keep a list for different
|
||||||
|
UNIX systems, but that list was outdated so the list was removed.
|
||||||
|
|
||||||
http://www.vim.org/binaries.html
|
It is a good idea to compile your own UNIX version from the source. Also,
|
||||||
|
creating the editor from the source allows you to control which features are
|
||||||
Volunteers maintain the binaries, so they are often out of date. It is a
|
compiled. This does require a compiler though.
|
||||||
good idea to compile your own UNIX version from the source. Also, creating
|
|
||||||
the editor from the source allows you to control which features are compiled.
|
|
||||||
This does require a compiler though.
|
|
||||||
|
|
||||||
If you have a Linux distribution, the "vi" program is probably a minimal
|
If you have a Linux distribution, the "vi" program is probably a minimal
|
||||||
version of Vim. It doesn't do syntax highlighting, for example. Try finding
|
version of Vim. It doesn't do syntax highlighting, for example. Try finding
|
||||||
@ -52,23 +50,18 @@ FROM SOURCES
|
|||||||
|
|
||||||
To compile and install Vim, you will need the following:
|
To compile and install Vim, you will need the following:
|
||||||
|
|
||||||
- A C compiler (GCC preferred)
|
- A C compiler (GCC or clang preferred)
|
||||||
- The GZIP program (you can get it from www.gnu.org)
|
- git (optionally, only when cloning from github)
|
||||||
- The Vim source and runtime archives
|
- zip/unzip (to uncompress the archive)
|
||||||
|
- The Vim source archives
|
||||||
|
|
||||||
To get the Vim archives, look in this file for a mirror near you, this should
|
To download the Vim source, you can either clone it from the Github project
|
||||||
provide the fastest download:
|
page: >
|
||||||
|
git clone https://github.com/vim/vim.git
|
||||||
|
<
|
||||||
|
or download the archive directly using:
|
||||||
|
|
||||||
ftp://ftp.vim.org/pub/vim/MIRRORS
|
https://github.com/vim/vim/archive/refs/heads/master.zip
|
||||||
|
|
||||||
Or use the home site ftp.vim.org, if you think it's fast enough. Go to the
|
|
||||||
"unix" directory and you'll find a list of files there. The version number is
|
|
||||||
embedded in the file name. You will want to get the most recent version.
|
|
||||||
You can get the files for Unix in one big archive that contains everything:
|
|
||||||
|
|
||||||
vim-8.2.tar.bz2 ~
|
|
||||||
|
|
||||||
You need the bzip2 program to uncompress it.
|
|
||||||
|
|
||||||
|
|
||||||
COMPILING
|
COMPILING
|
||||||
@ -80,17 +73,12 @@ First create a top directory to work in, for example: >
|
|||||||
|
|
||||||
Then unpack the archives there. You can unpack it like this: >
|
Then unpack the archives there. You can unpack it like this: >
|
||||||
|
|
||||||
tar xf path/vim-8.2.tar.bz2
|
unzip vim-master.zip
|
||||||
|
|
||||||
If your tar command doesn't support bz2 directly: >
|
|
||||||
|
|
||||||
bzip2 -d -c path/vim-8.2.tar.bz2 | tar xf -
|
|
||||||
|
|
||||||
Change "path" to where you have downloaded the file.
|
|
||||||
If you are satisfied with getting the default features, and your environment
|
If you are satisfied with getting the default features, and your environment
|
||||||
is setup properly, you should be able to compile Vim with just this: >
|
is setup properly, you should be able to compile Vim with just this: >
|
||||||
|
|
||||||
cd vim82/src
|
cd vim-master/src
|
||||||
make
|
make
|
||||||
|
|
||||||
The make program will run configure and compile everything. Further on we
|
The make program will run configure and compile everything. Further on we
|
||||||
|
Reference in New Issue
Block a user