annotate runtime/doc/usr_90.txt @ 28554:6481ccc776f9 v8.2.4801

patch 8.2.4801: fix for cursorbind fix not fully tested Commit: https://github.com/vim/vim/commit/3fd7480cd25f1e939fc2362e0644d497bcc81b71 Author: Christian Brabandt <cb@256bit.org> Date: Wed Apr 20 22:07:41 2022 +0100 patch 8.2.4801: fix for cursorbind fix not fully tested Problem: Fix for cursorbind fix not fully tested. Solution: Add another test case. (Christian Brabandt, closes https://github.com/vim/vim/issues/10240)
author Bram Moolenaar <Bram@vim.org>
date Wed, 20 Apr 2022 23:15:02 +0200
parents 3a1ed539ae2a
children 82244cfc4694
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19116
diff changeset
1 *usr_90.txt* For Vim version 8.2. Last change: 2020 Jun 11
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 VIM USER MANUAL - by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 Installing Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 *install*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 Before you can use Vim you have to install it. Depending on your system it's
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 simple or easy. This chapter gives a few hints and also explains how
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 upgrading to a new version is done.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 |90.1| Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 |90.2| MS-Windows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 |90.3| Upgrading
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 |90.4| Common installation issues
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 |90.5| Uninstalling Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19116
diff changeset
18 Previous chapter: |usr_46.txt| Write plugins using Vim9 script
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 Table of contents: |usr_toc.txt|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 *90.1* Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 First you have to decide if you are going to install Vim system-wide or for a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 single user. The installation is almost the same, but the directory where Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 is installed in differs.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 For a system-wide installation the base directory "/usr/local" is often
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 used. But this may be different for your system. Try finding out where other
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 packages are installed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 When installing for a single user, you can use your home directory as the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 base. The files will be placed in subdirectories like "bin" and "shared/vim".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 FROM A PACKAGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 You can get precompiled binaries for many different UNIX systems. There is a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 long list with links on this page:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 http://www.vim.org/binaries.html ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 Volunteers maintain the binaries, so they are often out of date. It is a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 good idea to compile your own UNIX version from the source. Also, creating
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 the editor from the source allows you to control which features are compiled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 This does require a compiler though.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 If you have a Linux distribution, the "vi" program is probably a minimal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 version of Vim. It doesn't do syntax highlighting, for example. Try finding
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 another Vim package in your distribution, or search on the web site.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 FROM SOURCES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 To compile and install Vim, you will need the following:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 - A C compiler (GCC preferred)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 - The GZIP program (you can get it from www.gnu.org)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 - The Vim source and runtime archives
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 To get the Vim archives, look in this file for a mirror near you, this should
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 provide the fastest download:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 ftp://ftp.vim.org/pub/vim/MIRRORS ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 Or use the home site ftp.vim.org, if you think it's fast enough. Go to the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 "unix" directory and you'll find a list of files there. The version number is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 embedded in the file name. You will want to get the most recent version.
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
67 You can get the files for Unix in one big archive that contains everything:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
69 vim-8.2.tar.bz2 ~
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
71 You need the bzip2 program to uncompress it.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 COMPILING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 First create a top directory to work in, for example: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 mkdir ~/vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 cd ~/vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
81 Then unpack the archives there. You can unpack it like this: >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
83 tar xf path/vim-8.2.tar.bz2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
85 If your tar command doesn't support bz2 directly: >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
87 bzip2 -d -c path/vim-8.2.tar.bz2 | tar xf -
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
89 Change "path" to where you have downloaded the file.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 If you are satisfied with getting the default features, and your environment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 is setup properly, you should be able to compile Vim with just this: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
93 cd vim82/src
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 The make program will run configure and compile everything. Further on we
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 will explain how to compile with different features.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 If there are errors while compiling, carefully look at the error messages.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 There should be a hint about what went wrong. Hopefully you will be able to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 correct it. You might have to disable some features to make Vim compile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 Look in the Makefile for specific hints for your system.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 TESTING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 Now you can check if compiling worked OK: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 make test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 This will run a sequence of test scripts to verify that Vim works as expected.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 Vim will be started many times and all kinds of text and messages flash by.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 If it is alright you will finally see:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 test results: ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 ALL DONE ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
2033
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
117 If you get "TEST FAILURE" some test failed. If there are one or two messages
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
118 about failed tests, Vim might still work, but not perfectly. If you see a lot
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
119 of error messages or Vim doesn't finish until the end, there must be something
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
120 wrong. Either try to find out yourself, or find someone who can solve it.
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
121 You could look in the |maillist-archive| for a solution. If everything else
de5a43c5eedc Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
122 fails, you could ask in the vim |maillist| if someone can help you.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 INSTALLING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 *install-home*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 If you want to install in your home directory, edit the Makefile and search
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 for a line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 #prefix = $(HOME) ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 Remove the # at the start of the line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 When installing for the whole system, Vim has most likely already selected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 a good installation directory for you. You can also specify one, see below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 You need to become root for the following.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 To install Vim do: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 make install
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 That should move all the relevant files to the right place. Now you can try
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 running vim to verify that it works. Use two simple tests to check if Vim can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 find its runtime files: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 :help
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 :syntax enable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 If this doesn't work, use this command to check where Vim is looking for the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 runtime files: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 :echo $VIMRUNTIME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 You can also start Vim with the "-V" argument to see what happens during
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 startup: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 vim -V
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 Don't forget that the user manual assumes you Vim in a certain way. After
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 installing Vim, follow the instructions at |not-compatible| to make Vim work
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 as assumed in this manual.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 SELECTING FEATURES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 Vim has many ways to select features. One of the simple ways is to edit the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 Makefile. There are many directions and examples. Often you can enable or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 disable a feature by uncommenting a line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 An alternative is to run "configure" separately. This allows you to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 specify configuration options manually. The disadvantage is that you have to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 figure out what exactly to type.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 Some of the most interesting configure arguments follow. These can also be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 enabled from the Makefile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 --prefix={directory} Top directory where to install Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 --with-features=tiny Compile with many features disabled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 --with-features=small Compile with some features disabled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 --with-features=big Compile with more features enabled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 --with-features=huge Compile with most features enabled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 See |+feature-list| for which feature
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 is enabled in which case.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 --enable-perlinterp Enable the Perl interface. There are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 similar arguments for ruby, python and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 tcl.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 --disable-gui Do not compile the GUI interface.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 --without-x Do not compile X-windows features.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 When both of these are used, Vim will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 not connect to the X server, which
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 makes startup faster.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 To see the whole list use: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 ./configure --help
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 You can find a bit of explanation for each feature, and links for more
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 information here: |feature-list|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 For the adventurous, edit the file "feature.h". You can also change the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 source code yourself!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 *90.2* MS-Windows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 There are two ways to install the Vim program for Microsoft Windows. You can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 uncompress several archives, or use a self-installing big archive. Most users
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 with fairly recent computers will prefer the second method. For the first
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 one, you will need:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 - An archive with binaries for Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 - The Vim runtime archive.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 - A program to unpack the zip files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 To get the Vim archives, look in this file for a mirror near you, this should
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 provide the fastest download:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 ftp://ftp.vim.org/pub/vim/MIRRORS ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 Or use the home site ftp.vim.org, if you think it's fast enough. Go to the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 "pc" directory and you'll find a list of files there. The version number is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 embedded in the file name. You will want to get the most recent version.
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
222 We will use "82" here, which is version 8.2.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
224 gvim82.exe The self-installing archive.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 This is all you need for the second method. Just launch the executable, and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 follow the prompts.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228
21499
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20856
diff changeset
229 For the first method you must choose one of the binary archives. These are
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 available:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
232 gvim82.zip The normal MS-Windows GUI version.
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
233 gvim82ole.zip The MS-Windows GUI version with OLE support.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 Uses more memory, supports interfacing with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 other OLE applications.
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
236 vim82w32.zip 32 bit MS-Windows console version.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 You only need one of them. Although you could install both a GUI and a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 console version. You always need to get the archive with runtime files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
241 vim82rt.zip The runtime files.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 Use your un-zip program to unpack the files. For example, using the "unzip"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 program: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 cd c:\
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
247 unzip path\gvim82.zip
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
248 unzip path\vim82rt.zip
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
250 This will unpack the files in the directory "c:\vim\vim82". If you already
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 have a "vim" directory somewhere, you will want to move to the directory just
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 above it.
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
253 Now change to the "vim\vim82" directory and run the install program: >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 install
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 Carefully look through the messages and select the options you want to use.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 If you finally select "do it" the install program will carry out the actions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 you selected.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 The install program doesn't move the runtime files. They remain where you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 unpacked them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 In case you are not satisfied with the features included in the supplied
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 binaries, you could try compiling Vim yourself. Get the source archive from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 the same location as where the binaries are. You need a compiler for which a
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
266 makefile exists. Microsoft Visual C, MinGW and Cygwin compilers can be used.
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
267 Check the file src/INSTALLpc.txt for hints.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 *90.3* Upgrading
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 If you are running one version of Vim and want to install another, here is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 what to do.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 UNIX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 When you type "make install" the runtime files will be copied to a directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 which is specific for this version. Thus they will not overwrite a previous
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 version. This makes it possible to use two or more versions next to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 each other.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 The executable "vim" will overwrite an older version. If you don't care
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 about keeping the old version, running "make install" will work fine. You can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 delete the old runtime files manually. Just delete the directory with the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 version number in it and all files below it. Example: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
287 rm -rf /usr/local/share/vim/vim74
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 There are normally no changed files below this directory. If you did change
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 the "filetype.vim" file, for example, you better merge the changes into the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 new version before deleting it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 If you are careful and want to try out the new version for a while before
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 switching to it, install the new version under another name. You need to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 specify a configure argument. For example: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
297 ./configure --with-vim-name=vim8
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 Before running "make install", you could use "make -n install" to check that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 no valuable existing files are overwritten.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 When you finally decide to switch to the new version, all you need to do is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 to rename the binary to "vim". For example: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
304 mv /usr/local/bin/vim8 /usr/local/bin/vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 MS-WINDOWS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 Upgrading is mostly equal to installing a new version. Just unpack the files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 in the same place as the previous version. A new directory will be created,
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
311 e.g., "vim82", for the files of the new version. Your runtime files, vimrc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 file, viminfo, etc. will be left alone.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 If you want to run the new version next to the old one, you will have to do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 some handwork. Don't run the install program, it will overwrite a few files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 of the old version. Execute the new binaries by specifying the full path.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 The program should be able to automatically find the runtime files for the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 right version. However, this won't work if you set the $VIMRUNTIME variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 somewhere.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 If you are satisfied with the upgrade, you can delete the files of the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 previous version. See |90.5|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 *90.4* Common installation issues
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 This section describes some of the common problems that occur when installing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 Vim and suggests some solutions. It also contains answers to many
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 installation questions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 Q: I Do Not Have Root Privileges. How Do I Install Vim? (Unix)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 Use the following configuration command to install Vim in a directory called
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 $HOME/vim: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 ./configure --prefix=$HOME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 This gives you a personal copy of Vim. You need to put $HOME/bin in your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 path to execute the editor. Also see |install-home|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 Q: The Colors Are Not Right on My Screen. (Unix)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 Check your terminal settings by using the following command in a shell: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 echo $TERM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 If the terminal type listed is not correct, fix it. For more hints, see
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 |06.2|. Another solution is to always use the GUI version of Vim, called
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 gvim. This avoids the need for a correct terminal setup.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 Q: My Backspace And Delete Keys Don't Work Right
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 The definition of what key sends what code is very unclear for backspace <BS>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 and Delete <Del> keys. First of all, check your $TERM setting. If there is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 nothing wrong with it, try this: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 :set t_kb=^V<BS>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 :set t_kD=^V<Del>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 In the first line you need to press CTRL-V and then hit the backspace key.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 In the second line you need to press CTRL-V and then hit the Delete key.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 You can put these lines in your vimrc file, see |05.1|. A disadvantage is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 that it won't work when you use another terminal some day. Look here for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 alternate solutions: |:fixdel|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 Q: I Am Using RedHat Linux. Can I Use the Vim That Comes with the System?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 By default RedHat installs a minimal version of Vim. Check your RPM packages
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 for something named "Vim-enhanced-version.rpm" and install that.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 Q: How Do I Turn Syntax Coloring On? How do I make plugins work?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 Use the example vimrc script. You can find an explanation on how to use it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 here: |not-compatible|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 See chapter 6 for information about syntax highlighting: |usr_06.txt|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 Q: What Is a Good vimrc File to Use?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 See the www.vim.org Web site for several good examples.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 Q: Where Do I Find a Good Vim Plugin?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 See the Vim-online site: http://vim.sf.net. Many users have uploaded useful
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 Vim scripts and plugins there.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 Q: Where Do I Find More Tips?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 See the Vim-online site: http://vim.sf.net. There is an archive with hints
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 from Vim users. You might also want to search in the |maillist-archive|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 *90.5* Uninstalling Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 In the unlikely event you want to uninstall Vim completely, this is how you do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 UNIX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 When you installed Vim as a package, check your package manager to find out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 how to remove the package again.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 If you installed Vim from sources you can use this command: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 make uninstall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 However, if you have deleted the original files or you used an archive that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 someone supplied, you can't do this. Do delete the files manually, here is an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 example for when "/usr/local" was used as the root: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
417 rm -rf /usr/local/share/vim/vim82
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 rm /usr/local/bin/eview
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 rm /usr/local/bin/evim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 rm /usr/local/bin/ex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 rm /usr/local/bin/gview
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 rm /usr/local/bin/gvim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 rm /usr/local/bin/gvim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 rm /usr/local/bin/gvimdiff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 rm /usr/local/bin/rgview
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 rm /usr/local/bin/rgvim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 rm /usr/local/bin/rview
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 rm /usr/local/bin/rvim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 rm /usr/local/bin/rvim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 rm /usr/local/bin/view
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 rm /usr/local/bin/vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 rm /usr/local/bin/vimdiff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 rm /usr/local/bin/vimtutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 rm /usr/local/bin/xxd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 rm /usr/local/man/man1/eview.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 rm /usr/local/man/man1/evim.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 rm /usr/local/man/man1/ex.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 rm /usr/local/man/man1/gview.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 rm /usr/local/man/man1/gvim.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 rm /usr/local/man/man1/gvimdiff.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 rm /usr/local/man/man1/rgview.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 rm /usr/local/man/man1/rgvim.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 rm /usr/local/man/man1/rview.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 rm /usr/local/man/man1/rvim.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 rm /usr/local/man/man1/view.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 rm /usr/local/man/man1/vim.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 rm /usr/local/man/man1/vimdiff.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 rm /usr/local/man/man1/vimtutor.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 rm /usr/local/man/man1/xxd.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 MS-WINDOWS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 If you installed Vim with the self-installing archive you can run
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 the "uninstall-gui" program located in the same directory as the other Vim
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
456 programs, e.g. "c:\vim\vim82". You can also launch it from the Start menu if
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 installed the Vim entries there. This will remove most of the files, menu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 entries and desktop shortcuts. Some files may remain however, as they need a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 Windows restart before being deleted.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 You will be given the option to remove the whole "vim" directory. It
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 probably contains your vimrc file and other runtime files that you created, so
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 be careful.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 Else, if you installed Vim with the zip archives, the preferred way is to use
18182
9b6bfce90778 patch 8.1.2086: missing a few changes for the renamed files
Bram Moolenaar <Bram@vim.org>
parents: 16606
diff changeset
465 the "uninstall" program. You can find it in the same directory as the
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
466 "install" program, e.g., "c:\vim\vim82". This should also work from the usual
18182
9b6bfce90778 patch 8.1.2086: missing a few changes for the renamed files
Bram Moolenaar <Bram@vim.org>
parents: 16606
diff changeset
467 "install/remove software" page.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 However, this only removes the registry entries for Vim. You have to
19116
9b7f90e56753 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
469 delete the files yourself. Simply select the directory "vim\vim82" and delete
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 it recursively. There should be no files there that you changed, but you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 might want to check that first.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 The "vim" directory probably contains your vimrc file and other runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 files that you created. You might want to keep that.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 Table of contents: |usr_toc.txt|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13963
diff changeset
479 Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl: