summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/change.txt6
-rw-r--r--runtime/doc/diff.txt4
-rw-r--r--runtime/doc/eval.txt22
-rw-r--r--runtime/doc/tags1
-rw-r--r--runtime/doc/usr_41.txt14
5 files changed, 27 insertions, 20 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index c507ccd4a..85271b1c2 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1,4 +1,4 @@
-*change.txt* For Vim version 7.0aa. Last change: 2005 Apr 03
+*change.txt* For Vim version 7.0aa. Last change: 2005 Apr 26
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -748,8 +748,8 @@ either the first or second pattern in parentheses did not match, so either
<
Substitute with an expression *sub-replace-expression*
-
-When the substitute string starts with "\=" the remainer is interpreted as an
+ *sub-replace-\=*
+When the substitute string starts with "\=" the remainder is interpreted as an
expression. This does not work recursively: a substitute() function inside
the expression cannot use "\=" for the substitute string.
diff --git a/runtime/doc/diff.txt b/runtime/doc/diff.txt
index 391629ba7..7d6383126 100644
--- a/runtime/doc/diff.txt
+++ b/runtime/doc/diff.txt
@@ -1,4 +1,4 @@
-*diff.txt* For Vim version 7.0aa. Last change: 2005 Mar 08
+*diff.txt* For Vim version 7.0aa. Last change: 2005 Apr 26
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -161,6 +161,8 @@ buffer. If you don't want a buffer to remain used for the diff do ":set
nodiff" before hiding it.
*:diffu* *:diffupdate*
+:diffu[pdate] Update the diff highlighting and folds.
+
Vim attempts to keep the differences updated when you make changes to the
text. This mostly takes care of inserted and deleted lines. Changes within a
line and more complicated changes do not cause the differences to be updated.
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index d9020a741..84571bbc4 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.0aa. Last change: 2005 Apr 22
+*eval.txt* For Vim version 7.0aa. Last change: 2005 May 18
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -194,6 +194,10 @@ is an empty list. If the second index is lower, this results in an error. >
:echo mylist[2:1] " result: []
:echo mylist[2:0] " error!
+NOTE: mylist[s:e] means using the variable "s:e" as index. Watch out for
+using a single letter variable before the ":". Insert a space when needed:
+mylist[s : e].
+
List identity ~
*list-identity*
@@ -4596,14 +4600,14 @@ Using a script in the "autoload" directory is simpler, but requires using
exactly the right file name. A function that can be autoloaded has a name
like this: >
- :call filename:funcname()
+ :call filename#funcname()
When such a function is called, and it is not defined yet, Vim will search the
"autoload" directories in 'runtimepath' for a script file called
"filename.vim". For example "~/.vim/autoload/filename.vim". That file should
then define the function like this: >
- function filename:funcname()
+ function filename#funcname()
echo "Done!"
endfunction
@@ -4611,10 +4615,10 @@ The file name and the name used before the colon in the function must match
exactly, and the defined function must have the name exactly as it will be
called.
-It is possible to use subdirectories. Every colon in the function name works
-like a path separator. Thus when calling a function: >
+It is possible to use subdirectories. Every # in the function name works like
+a path separator. Thus when calling a function: >
- :call foo:bar:func()
+ :call foo#bar#func()
Vim will look for the file "autoload/foo/bar.vim" in 'runtimepath'.
@@ -4623,13 +4627,13 @@ otherwise it looks like a scope, such as "s:".
This also works when reading a variable that has not been set yet: >
- :let l = foo:bar:lvar
+ :let l = foo#bar#lvar
When assigning a value to such a variable nothing special happens. This can
be used to pass settings to the autoload script before it's loaded: >
- :let foo:bar:toggle = 1
- :call foo:bar:func()
+ :let foo#bar#toggle = 1
+ :call foo#bar#func()
Note that when you make a mistake and call a function that is supposed to be
defined in an autoload script, but the script doesn't actually define the
diff --git a/runtime/doc/tags b/runtime/doc/tags
index c923b6cca..3593dccc5 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -6292,6 +6292,7 @@ style-names develop.txt /*style-names*
style-spaces develop.txt /*style-spaces*
style-various develop.txt /*style-various*
sub-menu-priority gui.txt /*sub-menu-priority*
+sub-replace-\= change.txt /*sub-replace-\\=*
sub-replace-expression change.txt /*sub-replace-expression*
sub-replace-special change.txt /*sub-replace-special*
submatch() eval.txt /*submatch()*
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index e765b336c..ebf44faaf 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -1,4 +1,4 @@
-*usr_41.txt* For Vim version 7.0aa. Last change: 2005 Mar 25
+*usr_41.txt* For Vim version 7.0aa. Last change: 2005 May 18
VIM USER MANUAL - by Bram Moolenaar
@@ -2229,11 +2229,11 @@ Here you need to know that MyLibFunction() is defined in a script
To make this a bit simpler Vim offers the autoload mechanism. Then the
example looks like this: >
- call mylib:myfunction(arg)
+ call mylib#myfunction(arg)
That's a lot simpler, isn't it? Vim will recognize the function name and when
it's not defined search for the script "autoload/mylib.vim" in 'runtimepath'.
-That script must define the "mylib:myfunction()" function.
+That script must define the "mylib#myfunction()" function.
You can put many other functions in the mylib.vim script, you are free to
organize your functions in library scripts. But you must use function names
@@ -2243,7 +2243,7 @@ would not know what script to load.
If you get really enthousiastic and write lots of library scripts, you may
want to use subdirectories. Example: >
- call netlib:ftp:read('somefile')
+ call netlib#ftp#read('somefile')
For Unix the library script used for this could be:
@@ -2251,7 +2251,7 @@ For Unix the library script used for this could be:
Where the function is defined like this: >
- function netlib:ftp:read(fname)
+ function netlib#ftp#read(fname)
" Read the file fname through ftp
endfunction
@@ -2261,12 +2261,12 @@ exactly matches the subdirectory and script name.
You can use the same mechanism for variables: >
- let weekdays = dutch:weekdays
+ let weekdays = dutch#weekdays
This will load the script "autoload/dutch.vim", which should contain something
like: >
- let dutch:weekdays = ['zondag', 'maandag', 'dinsdag', 'woensdag',
+ let dutch#weekdays = ['zondag', 'maandag', 'dinsdag', 'woensdag',
\ 'donderdag', 'vrijdag', 'zaterdag']
Further reading: |autoload|.