annotate runtime/doc/os_msdos.txt @ 6497:749fc929da45 v7.4.576

updated for version 7.4.576 Problem: Redrawing problem with 'relativenumber' and 'linebreak'. Solution: Temporarily reset 'linebreak' and restore it in more places. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Jan 2015 17:52:30 +0100
parents 359743c1f59a
children 792bc43e69a7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5294
359743c1f59a release version 7.4
Bram Moolenaar <bram@vim.org>
parents: 5247
diff changeset
1 *os_msdos.txt* For Vim version 7.4. Last change: 2005 Mar 29
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 *msdos* *ms-dos* *MSDOS* *MS-DOS*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 This file contains the particularities for the MS-DOS version of Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 1. Two versions for MS-DOS |msdos-versions|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 2. Known problems |msdos-problems|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 3. Long file names |msdos-longfname|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 4. Termcap codes |msdos-termcap|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 5. Shifted arrow keys |msdos-arrows|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 6. Filename extensions |msdos-fname-extensions|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 7. Memory usage and limitations |msdos-limitations|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 8. Symbolically linked files |msdos-linked-files|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 9. Copy/paste in a dos box |msdos-copy-paste|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 Additionally, there are a number of common Win32 and DOS items:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 File locations |dos-locations|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 Using backslashes |dos-backslash|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 Standard mappings |dos-standard-mappings|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 Screen output and colors |dos-colors|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 File formats |dos-file-formats|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 :cd command |dos-:cd|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 Interrupting |dos-CTRL-Break|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 Temp files |dos-temp-files|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 Shell option default |dos-shell|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 For compiling Vim see src/INSTALL.pc. *msdos-compiling*
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 1. Two versions for MS-DOS *msdos-versions*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 There are two versions of Vim that can be used with MS-DOS machines:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 *dos16*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 Dos16 version Can be used on any MS-DOS system, only uses up to 640 Kbyte of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 memory. Also runs on OS/2, Windows 95, and NT. Excludes some
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 Vim-specific features (autocommands, syntax highlighting,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 etc.). Recommended for use on pre-386 machines.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 *dos32*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 Dos32 version Requires 386 processor and a |DPMI| driver, uses all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 available memory. Supports long file names and the Windows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 clipboard, but NOT on Windows NT. Recommended for MS-DOS,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 Windows 3.1 and Windows 95.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 There are also two versions that run under Windows:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 Win32 version Requires Windows 95 or Windows NT, uses all available
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 memory, supports long file names, etc. Has some problems on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 Windows 95. Recommended for Windows NT. See |os_win32.txt|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 Win32 GUI Requirements like the Win32 version, but runs in its own
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 window, instead of a console. Has scrollbars, menu, etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 Recommended for Windows 95 and Windows NT. See |gui-w32|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 It is recommended to use the Dos32 or Win32 version. Although the Dos16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 version is able to edit very big files, it quickly runs out of memory when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 making big changes. Disabling undo helps: ":set ul=-1". The screen updating
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 of the Dos16 version is the fastest of the three on DOS or Windows 95; on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 Windows NT, the Win32 version is just as fast.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 *DPMI*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 For the Dos32 version, you may need a DPMI driver when running in MS-DOS. If
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 you are running Windows or installed a clever memory manager, it will probably
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 work already. If you get the message "No DPMI", you need to install a DPMI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 driver. Such a driver is included with the executable in CSDPMI4B.ZIP. Run
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 "cwsdpmi" just before starting Vim each time. Or you might want to include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 "cwsdpmi -p" in your autoexec.bat to make it resident. The latest version of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 "CSDPMI*.ZIP" can be obtained from: "ftp.neosoft.com:pub/users/s/sandmann".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 *minimal-features*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 The 16 bit DOS version has been compiled with minimal features. Check the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 |+feature-list| which ones are included (marked with a "T").
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 You can include more features by editing feature.h and recompiling.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 2. Known problems *msdos-problems*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 When using smartdrive (MS-DOS 6.x) with write-behind caching, it is possible
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 that Vim will try to create a swap file on a read-only file system (e.g.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 write protected floppy). You will then be given the message >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 A serious disk error has occurred .., Retry (r)?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 There is nothing you can do but unprotect the floppy or switch off the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 computer. Even CTRL-ALT-DEL will not get you out of this. This is really a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 problem of smartdrive, not Vim. Smartdrive works fine otherwise. If this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 bothers you, don't use the write-behind caching.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 Vim can't read swap files that have been opened already, unless the "share"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 command has been used. If you see stray warnings for existing swap files,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 include the "share" command in your config.sys or autoexec.bat (see your MSDOS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 documentation).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 The Dos16 version can only have about 10 files open (in a window or hidden) at
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 one time. With more files you will get error messages when trying to read or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 write a file, and for filter commands. Or Vim runs out of memory, and random
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 problems may result.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 The Dos32 version cannot have an unlimited number of files open at any one
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
100 time. The limit depends on the setting of FILES in your CONFIG.SYS. This
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 defaults to 15; if you need to edit a lot of files, you should increase this.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 If you do not set FILES high enough, you can get strange errors, and shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 commands may cause a crash!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 The Dos32 version can work with long file names. When doing file name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 completion, matches for the short file name will also be found. But this will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 result in the corresponding long file name. For example, if you have the long
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 file name "this_is_a_test" with the short file name "this_i~1", the command
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 ":e *1" will start editing "this_is_a_test".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 When using the Dos32 version and you run into problems with DPMI support,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 check if there is a program in your config.sys that eats resources. One
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 program known to cause this problem is "netx", which says "NetWare v. 3.26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 Workstation shell". Replace it with version 3.32 to fix the problem.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 The Dos32 version will parse its arguments to handle quotation. This is good
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 to edit a file with spaces in its name, for example: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 vim "program files\accessories\ppp.scp"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 A side effect is that single quotes are removed. Insert a backslash to avoid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 that. For example, to edit the file "fi'le.txt": >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 vim fi\'le.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 3. Long file names *msdos-longfname*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 If the Dos32 version is run on Windows 95, it can use long file names. It
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 will work by default. If you want to disable this, use this setting:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 set LFN=N
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 You can put this in your autoexec.bat file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 Note: If you have installed DJGPP on your machine, you probably have a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 "djgpp.env" file, which contains "LFN=n". You need to use "LFN=Y" to switch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 on using long file names then.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 4. Termcap codes *msdos-termcap*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 If you want to use another output method (e.g., when using a terminal on a COM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 port), set the terminal name to "pcansi". You can change the termcap options
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 when needed (see |terminal-options|). Note that the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 normal IBM ansi.sys does not support all the codes of the builtin pcansi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 terminal. If you use ansi.sys, you will need to delete the termcap entries
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 t_al and t_dl with >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 :set t_al= t_dl=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 Otherwise, the screen will not be updated correctly. It is better to use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 nansi.sys, nnansi.sys, or the like instead of ansi.sys.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 If you want to use Vim on a terminal connected to a COM: port, reset the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 'bioskey' option. Otherwise the commands will be read from the PC keyboard.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 CTRL-C and CTRL-P may not work correctly with 'bioskey' reset.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 5. Shifted arrow keys *msdos-arrows*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 Use CTRL-arrow-left and CTRL-arrow-right instead of SHIFT-arrow-left and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 SHIFT-arrow-right. The arrow-up and arrow-down cannot be used with SHIFT or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 CTRL.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 6. Filename extensions *msdos-fname-extensions*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 MS-DOS allows for only one file name extension. Therefore, when appending an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 extension, the '.' in the original file name is replaced with a '_', the name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 is truncated to 8 characters, and the new extension (e.g., ".swp") is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 appended. Two examples: "test.c" becomes "test_c.bak", "thisisat.est"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 becomes "thisisat.bak". To reduce these problems, the default for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 'backupext' is "~" instead of ".bak". The backup file for "thisisat.est"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 then becomes "thisisat.es~". The 'shortname' option is not available,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 because it would always be set.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 7. Memory usage and limitations *msdos-limitations*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 A swap file is used to store most of the text. You should be able to edit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 very large files. However, memory is used for undo and other things. If you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 delete a lot of text, you can still run out of memory in the Dos16 version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 If Vim gives an "Out of memory" warning, you should stop editing. The result
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 of further editing actions is unpredictable. Setting 'undolevels' to 0 saves
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 some memory. Running the maze macros on a big maze is guaranteed to run out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 of memory, because each change is remembered for undo. In this case set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 'undolevels' to a negative number. This will switch off undo completely.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 *msdos-clipboard-limits*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 In the Dos32 version, extended memory is used to avoid these problems.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 However, if you are using the clipboard, you can still run into memory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 limitations because the Windows clipboard can only communicate with Vim using
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 Dos memory. This means that the largest amount of text that can be sent to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 or received from the Windows clipboard is limited by how much free Dos memory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 is available on your system.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 You can usually maximize the amount of available Dos memory by adding the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 following lines to Dos's "config.sys" file: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 DOS=HIGH,UMB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 DEVICE=C:\WINDOWS\himem.sys
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 DEVICE=C:\WINDOWS\emm386.exe RAM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 Modifying config.sys in this way will also help to make more memory available
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 for the Dos16 version, if you are using that.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 In the Dos16 version the line length is limited to about 32000 characters.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 When reading a file the lines are automatically split. But editing a line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 in such a way that it becomes too long may give unexpected results.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 8. Symbolically linked files *msdos-linked-files*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 When using Vim to edit a symbolically linked file on a unix NFS file server,
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
210 you may run into problems. When writing the file, Vim does not "write
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
211 through" the symlink. Instead, it deletes the symbolic link and creates a new
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
212 file in its place.
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
213
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
214 On Unix, Vim is prepared for links (symbolic or hard). A backup copy of the
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
215 original file is made and then the original file is overwritten. This assures
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
216 that all properties of the file remain the same. On non-Unix systems, the
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
217 original file is renamed and a new file is written. Only the protection bits
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
218 are set like the original file. However, this doesn't work properly when
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 working on an NFS-mounted file system where links and other things exist. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 only way to fix this in the current version is not making a backup file, by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 ":set nobackup nowritebackup" |'writebackup'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
223 A similar problem occurs when mounting a Unix filesystem through Samba or a
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
224 similar system. When Vim creates a new file it will get the default user ID
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
225 for the mounted file system. This may be different from the original user ID.
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
226 To avoid this set the 'backupcopy' option to "yes".
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
227
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 9. Copy/paste in a dos box *msdos-copy-paste*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 *E450* *E451* *E452* *E453* *E454*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 The 32 bit version can copy/paste from/to the Windows clipboard directly. Use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 the "* register. Large amounts of text can be copied this way, but it must be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 possible to allocate memory for it, see |msdos-clipboard-limits|. When moving
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 text from one Vim to another, the type of the selection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 (characterwise/linewise/blockwise) is passed on.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 In other versions, the following can be used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 (posted to comp.editors by John Velman <velman@igate1.hac.com>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 How to copy/paste text from/to vim in a dos box:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
244 1) To get VIM to run in a window, instead of full screen, press alt+enter.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 This toggles back and forth between full screen and a dos window.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 NOTE: In Windows 95 you must have the property "Fast Pasting" unchecked!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 In the properties dialog box for the MS-DOS window, go to "MS-DOS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 Prompt/Misc/Fast pasting" and make sure that it is NOT checked.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 To make this permanent, change the properties for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 "\windows\system\conagent.exe" (from Philip Nelson, unverified).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 2) To paste something _into_ Vim, put Vim in insert mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
254 3) Put the text you want to paste on the windows clipboard.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
256 4) Click the control box in the upper left of the Vim window. (This looks
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
257 like a big minus sign.) If you don't want to use the mouse, you can get
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 this with alt+spacebar.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
259 5) On the resulting dropdown menu choose "Edit".
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
260 6) On the child dropdown menu choose "Paste".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 To copy something from the Vim window to the clipboard,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
264 1) Select the control box to get the control drop down menu.
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
265 2) Select "Edit".
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
266 3) Select "Mark".
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
267 4) Using either the keys or the mouse, select the part of the Vim window that
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
268 you want to copy. To use the keys, use the arrow keys, and hold down shift
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 to extend the selection.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
270 5) When you've completed your selection, press 'enter'. The selection
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
271 is now in the windows clipboard. By the way, this can be any
4707450c2b33 updated for version 7.0066
vimboss
parents: 22
diff changeset
272 rectangular selection, for example columns 4-25 in rows 7-10. It can
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 include anything in the VIM window: the output of a :!dir, for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 example.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 vim:tw=78:ts=8:ft=help:norl: