Mercurial > vim
annotate READMEdir/README_dos.txt @ 9767:27aa753f4dfc
Added tag v7.4.2158 for changeset be9b5f8c3fd9857766e43e39c50666c4ee43229b
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 05 Aug 2016 20:45:07 +0200 |
parents | 58e749232bd7 |
children | 9f48eab77d62 |
rev | line source |
---|---|
8623
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 README_dos.txt for version 7.4 of Vim: Vi IMproved. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 This file explains the installation of Vim on MS-DOS and MS-Windows systems. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 See "README.txt" for general information about Vim. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 There are two ways to install Vim: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 A. Use the self-installing .exe file. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 B. Unpack .zip files and run the install.exe program. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 A. Using the self-installing .exe |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 --------------------------------- |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 This is mostly self-explaining. Just follow the prompts and make the |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 selections. A few things to watch out for: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 - When an existing installation is detected, you are offered to first remove |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 this. The uninstall program is then started while the install program waits |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 for it to complete. Sometimes the windows overlap each other, which can be |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 confusing. Be sure the complete the uninstalling before continuing the |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 installation. Watch the taskbar for uninstall windows. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 - When selecting a directory to install Vim, use the same place where other |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 versions are located. This makes it easier to find your _vimrc file. For |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 example "C:\Program Files\vim" or "D:\vim". A name ending in "vim" is |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 preferred. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
28 - After selecting the directory where to install Vim, clicking on "Next" will |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
29 start the installation. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
30 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
31 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
32 B. Using .zip files |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
33 ------------------- |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
34 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
35 These are the normal steps to install Vim from the .zip archives: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
36 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
37 1. Go to the directory where you want to put the Vim files. Examples: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
38 cd C:\ |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
39 cd D:\editors |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
40 If you already have a "vim" directory, go to the directory in which it is |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
41 located. Check the $VIM setting to see where it points to: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
42 set VIM |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
43 For example, if you have |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
44 C:\vim\vim54 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
45 do |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
46 cd C:\ |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
47 Binary and runtime Vim archives are normally unpacked in the same location, |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
48 on top of each other. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
49 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
50 2. Unpack the zip archives. This will create a new directory "vim\vim74", |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
51 in which all the distributed Vim files are placed. Since the directory |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
52 name includes the version number, it is unlikely that you overwrite |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
53 existing files. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
54 Examples: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
55 pkunzip -d gvim74.zip |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
56 unzip vim74w32.zip |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
57 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
58 You need to unpack the runtime archive and at least one of the binary |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
59 archives. When using more than one binary version, be careful not to |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
60 overwrite one version with the other, the names of the executables |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
61 "vim.exe" and "gvim.exe" are the same. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
62 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
63 After you unpacked the files, you can still move the whole directory tree |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
64 to another location. That is where they will stay, the install program |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
65 won't move or copy the runtime files. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
66 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
67 Only for the 32 bit DOS version on MS-DOS without DPMI support (trying to |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
68 run install.exe will produce an error message): Unpack the CSDPMI4B.ZIP |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
69 archive and follow the instructions in the documentation. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
70 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
71 3. Change to the new directory: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
72 cd vim\vim74 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
73 Run the "install.exe" program. It will ask you a number of questions about |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
74 how you would like to have your Vim setup. Among these are: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
75 - You can tell it to write a "_vimrc" file with your preferences in the |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
76 parent directory. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
77 - It can also install an "Edit with Vim" entry in the Windows Explorer |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
78 popup menu. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
79 - You can have it create batch files, so that you can run Vim from the |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
80 console or in a shell. You can select one of the directories in your |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
81 $PATH. If you skip this, you can add Vim to the search path manually: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
82 The simplest is to add a line to your autoexec.bat. Examples: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
83 set path=%path%;C:\vim\vim74 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
84 set path=%path%;D:\editors\vim\vim74 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
85 - Create entries for Vim on the desktop and in the Start menu. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
86 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
87 That's it! |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
88 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
89 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
90 Remarks: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
91 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
92 - If Vim can't find the runtime files, ":help" won't work and the GUI version |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
93 won't show a menubar. Then you need to set the $VIM environment variable to |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
94 point to the top directory of your Vim files. Example: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
95 set VIM=C:\editors\vim |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
96 Vim version 7.4 will look for your vimrc file in $VIM, and for the runtime |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
97 files in $VIM/vim74. See ":help $VIM" for more information. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
98 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
99 - To avoid confusion between distributed files of different versions and your |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
100 own modified vim scripts, it is recommended to use this directory layout: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
101 ("C:\vim" is used here as the root, replace it with the path you use) |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
102 Your own files: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
103 C:\vim\_vimrc Your personal vimrc. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
104 C:\vim\_viminfo Dynamic info for 'viminfo'. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
105 C:\vim\vimfiles\ftplugin\*.vim Filetype plugins |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
106 C:\vim\... Other files you made. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
107 Distributed files: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
108 C:\vim\vim74\vim.exe The Vim version 7.4 executable. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
109 C:\vim\vim74\doc\*.txt The version 7.4 documentation files. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
110 C:\vim\vim74\bugreport.vim A Vim version 7.4 script. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
111 C:\vim\vim74\... Other version 7.4 distributed files. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
112 In this case the $VIM environment variable would be set like this: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
113 set VIM=C:\vim |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
114 Then $VIMRUNTIME will automatically be set to "$VIM\vim74". Don't add |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
115 "vim74" to $VIM, that won't work. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
116 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
117 - You can put your Vim executable anywhere else. If the executable is not |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
118 with the other Vim files, you should set $VIM. The simplest is to add a line |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
119 to your autoexec.bat. Examples: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
120 set VIM=c:\vim |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
121 set VIM=d:\editors\vim |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
122 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
123 - If you have told the "install.exe" program to add the "Edit with Vim" menu |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
124 entry, you can remove it by running the "uninstal.exe". See |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
125 ":help win32-popup-menu". |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
126 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
127 - In Windows 95/98/NT you can create a shortcut to Vim. This works for all |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
128 DOS and Win32 console versions. For the console version this gives you the |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
129 opportunity to set defaults for the Console where Vim runs in. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
130 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
131 1. On the desktop, click right to get a menu. Select New/Shortcut. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
132 2. In the dialog, enter Command line: "C:\command.com". Click "Next". |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
133 3. Enter any name. Click "Finish". |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
134 The new shortcut will appear on the desktop. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
135 4. With the mouse pointer on the new shortcut, click right to get a menu. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
136 Select Properties. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
137 5. In the Program tab, change the "Cmdline" to add "/c" and the name of the |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
138 Vim executable. Examples: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
139 C:\command.com /c C:\vim\vim74\vim.exe |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
140 C:\command.com /c D:\editors\vim\vim74\vim.exe |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
141 6. Select the font, window size, etc. that you like. If this isn't |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
142 possible, select "Advanced" in the Program tab, and deselect "MS-DOS |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
143 mode". |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
144 7. Click OK. |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
145 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
146 For gvim, you can use a normal shortcut on the desktop, and set the size of |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
147 the Window in your $VIM/_gvimrc: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
148 set lines=30 columns=90 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
149 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
150 |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
151 For further information, type one of these inside Vim: |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
152 :help dos |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
153 :help msdos |
58e749232bd7
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
154 :help win32 |