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