Skip to content

Commit 3fdfa4a

Browse files
committed
updated for version 7.0017
1 parent e5f258e commit 3fdfa4a

52 files changed

Lines changed: 954 additions & 584 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

runtime/doc/autocmd.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 7.0aa. Last change: 2004 Aug 30
1+
*autocmd.txt* For Vim version 7.0aa. Last change: 2004 Sep 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -234,22 +234,26 @@ BufWriteCmd Before writing the whole buffer to a file.
234234
should not be changed. |Cmd-event|
235235
*FileWritePre*
236236
FileWritePre Before writing to a file, when not writing the
237-
whole buffer.
237+
whole buffer. Use the '[ and '] marks for the
238+
range of lines.
238239
*FileWritePost*
239240
FileWritePost After writing to a file, when not writing the
240241
whole buffer.
241242
*FileWriteCmd*
242243
FileWriteCmd Before writing to a file, when not writing the
243244
whole buffer. Should do the writing to the
244-
file. Should not change the buffer.
245+
file. Should not change the buffer. Use the
246+
'[ and '] marks for the range of lines.
245247
|Cmd-event|
246248
*FileAppendPre*
247-
FileAppendPre Before appending to a file.
249+
FileAppendPre Before appending to a file. Use the '[ and ']
250+
marks for the range of lines.
248251
*FileAppendPost*
249252
FileAppendPost After appending to a file.
250253
*FileAppendCmd*
251254
FileAppendCmd Before appending to a file. Should do the
252-
appending to the file. |Cmd-event|
255+
appending to the file. Use the '[ and ']
256+
marks for the range of lines.|Cmd-event|
253257
*FilterWritePre*
254258
FilterWritePre Before writing a file for a filter command or
255259
making a diff.
@@ -738,8 +742,9 @@ The '[ and '] marks have a special position:
738742
the new lines will be inserted.
739743
- Before the *ReadPost event the '[ mark is set to the first line that was
740744
just read, the '] mark to the last line.
741-
- Before executing the *WritePre and *AppendPre autocommands the '[ mark is
742-
set to the first line that will be written, the '] mark to the last line.
745+
- Before executing the *WriteCmd, *WritePre and *AppendPre autocommands the '[
746+
mark is set to the first line that will be written, the '] mark to the last
747+
line.
743748
Careful: '[ and '] change when using commands that change the buffer.
744749

745750
In commands which expect a file name, you can use "<afile>" for the file name

runtime/doc/change.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 7.0aa. Last change: 2004 Jun 16
1+
*change.txt* For Vim version 7.0aa. Last change: 2004 Sep 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -659,7 +659,7 @@ magic nomagic action ~
659659
\0 replaced with the whole matched pattern *\0* *s/\0*
660660
\1 replaced with the matched pattern in the first
661661
pair of () *s/\1*
662-
\2 replaced with the matched pattern in the first
662+
\2 replaced with the matched pattern in the second
663663
pair of () *s/\2*
664664
.. .. *s/\3*
665665
\9 replaced with the matched pattern in the ninth

runtime/doc/digraph.txt

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*digraph.txt* For Vim version 7.0aa. Last change: 2001 Sep 03
1+
*digraph.txt* For Vim version 7.0aa. Last change: 2004 Oct 07
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -28,7 +28,8 @@ An alternative is using the 'keymap' option.
2828
*E104* *E39*
2929
:dig[raphs] {char1}{char2} {number} ...
3030
Add digraph {char1}{char2} to the list. {number} is
31-
the decimal representation of the character.
31+
the decimal representation of the character. Normally
32+
it is the Unicode character, see |digraph-encoding|.
3233
Example: >
3334
:digr e: 235 a: 228
3435
< Avoid defining a digraph with '_' (underscore) as the
@@ -48,7 +49,24 @@ In the middle of each column is the resulting character. This may be mangled
4849
if you look at it on a system that does not support digraphs or if you print
4950
this file.
5051

51-
The decimal number is the number of the character.
52+
*digraph-encoding*
53+
The decimal number normally is the Unicode number of the character. Note that
54+
the meaning doesn't change when 'encoding' changes. The character will be
55+
converted from Unicode to 'encoding' when needed. This does require the
56+
conversion to be available, it might fail.
57+
58+
When Vim was compiled without the +multi_byte feature, you need to specify the
59+
character in the encoding given with 'encoding'. You might want to use
60+
something like this: >
61+
62+
if has("multi_byte")
63+
digraph oe 339
64+
elseif &encoding == "iso-8859-15"
65+
digraph oe 189
66+
endif
67+
68+
This defines the "oe" digraph for a character that is number 339 in Unicode
69+
and 189 in latin9 (iso-8859-15).
5270

5371
==============================================================================
5472
2. Using digraphs *digraphs-use*
@@ -142,6 +160,9 @@ Example: a: is
142160
These are the RFC1345 digraphs for the one-byte characters. See the output of
143161
":digraphs" for the others. The characters above 255 are only available when
144162
Vim was compiled with the |+multi_byte| feature.
163+
164+
Exception: RFC1345 doesn't specify the euro sign. In Vim the digraph =e was
165+
added for this.
145166
*digraph-table*
146167
char digraph hex dec official name ~
147168
^@ NU 0x00 0 NULL (NUL)

runtime/doc/eval.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.0aa. Last change: 2004 Sep 13
1+
*eval.txt* For Vim version 7.0aa. Last change: 2004 Oct 06
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -125,8 +125,8 @@ Expression syntax summary, from least to most significant:
125125
|expr8| expr9[expr1] index in String
126126

127127
|expr9| number number constant
128-
"string" string constant
129-
'string' literal string constant
128+
"string" string constant, backslash is special
129+
'string' string constant
130130
&option option value
131131
(expr1) nested expression
132132
variable internal variable
@@ -355,13 +355,18 @@ Note that "\000" and "\x00" force the end of the string.
355355

356356
literal-string *literal-string* *E115*
357357
---------------
358-
'string' literal string constant *expr-'*
358+
'string' string constant *expr-'*
359359

360360
Note that single quotes are used.
361361

362-
This string is taken literally. No backslashes are removed or have a special
363-
meaning. A literal-string cannot contain a single quote. Use a normal string
364-
for that.
362+
This string is taken as it is. No backslashes are removed or have a special
363+
meaning. A literal-string cannot contain a single quote. Use a normal,
364+
double-quoted string for that.
365+
366+
Single quoted strings are useful for patterns, so that backslashes do not need
367+
to be doubled. These two commands are equivalent: >
368+
if a =~ "\\s*"
369+
if a =~ '\s*'
365370
366371
367372
option *expr-option* *E112* *E113*

runtime/doc/if_mzsch.txt

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,33 @@ All the examples below assume this naming scheme. Note that you need to do
7979
this again for every buffer.
8080

8181
The auto-instantiation can be achieved with autocommands, e.g. you can put
82-
something like this in your .vimrc: >
83-
au VimEnter,BufNew,BufNewFile,BufAdd,BufReadPre *
84-
\:mz (require (prefix vim- vimext)
82+
something like this in your .vimrc (EOFs should not have indentation): >
83+
function s:MzRequire()
84+
if has("mzscheme")
85+
:mz << EOF
86+
(require (prefix vim- vimext))
87+
(let ((buf (vim-get-buff-by-name (vim-eval "expand(\"<afile>\")"))))
88+
(when (and buf (not (eq? buf (vim-curr-buff))))
89+
(parameterize ((current-namespace (vim-get-buff-namespace buf)))
90+
(namespace-attach-module vim-global-namespace 'vimext)
91+
(namespace-require '(prefix vim vimext)))))
92+
EOF
93+
endif
94+
endfunction
95+
96+
function s:MzStartup()
97+
if has("mzscheme")
98+
au BufNew,BufNewFile,BufAdd,BufReadPre * :call s:MzRequire()
99+
:mz << EOF
100+
(current-library-collection-paths
101+
(cons
102+
(build-path (find-system-path 'addon-dir) (version) "collects")
103+
(current-library-collection-paths)))
104+
EOF
105+
endif
106+
endfunction
107+
108+
call s:MzStartup()
85109
<
86110

87111
The global namespace just instantiated this module with the prefix "vimext:".

runtime/doc/options.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 7.0aa. Last change: 2004 Sep 04
1+
*options.txt* For Vim version 7.0aa. Last change: 2004 Oct 07
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -954,6 +954,12 @@ A jump table for the options with a short description can be found at |Q_op|.
954954
prefer using ".bak", but make sure that you don't have files with
955955
".bak" that you want to keep.
956956

957+
If you like to keep a lot of backups, you could use a BufWritePre
958+
autocommand to change 'backupext' just before writing the file to
959+
include a timestamp. >
960+
:au BufWritePre * let &bex = '-' . strftime("%Y%b%d%X") . '~'
961+
< Use 'backupdir' to put the backup in a different directory.
962+
957963
*'backupskip'* *'bsk'*
958964
'backupskip' 'bsk' string (default: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*")
959965
global

0 commit comments

Comments
 (0)