summaryrefslogtreecommitdiff
path: root/runtime/doc/if_pyth.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-24 16:58:02 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-24 16:58:02 +0200
commit2c3b1d997607e44d5037bd8875fcc98bc31020b4 (patch)
tree4c095cc2986c60278d87a317e98d78a632eba045 /runtime/doc/if_pyth.txt
parent904c622b105bf785df59f870831309d5c0c7722e (diff)
downloadvim-git-2c3b1d997607e44d5037bd8875fcc98bc31020b4.tar.gz
Document extra argument for Python append().
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r--runtime/doc/if_pyth.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt
index 953d95b8d..f9fddaffd 100644
--- a/runtime/doc/if_pyth.txt
+++ b/runtime/doc/if_pyth.txt
@@ -1,4 +1,4 @@
-*if_pyth.txt* For Vim version 7.3b. Last change: 2010 Jul 21
+*if_pyth.txt* For Vim version 7.3b. Last change: 2010 Jul 24
VIM REFERENCE MANUAL by Paul Moore
@@ -240,10 +240,12 @@ with marks (see below) which use vim line numbers.
The buffer object methods are:
b.append(str) Append a line to the buffer
+ b.append(str, nr) Idem, below line "nr"
b.append(list) Append a list of lines to the buffer
Note that the option of supplying a list of strings to
the append method differs from the equivalent method
for Python's built-in list objects.
+ b.append(list, nr) Idem, below line "nr"
b.mark(name) Return a tuple (row,col) representing the position
of the named mark (can also get the []"<> marks)
b.range(s,e) Return a range object (see |python-range|) which
@@ -285,10 +287,12 @@ The range object attributes are:
The range object methods are:
r.append(str) Append a line to the range
+ r.append(str, nr) Idem, after line "nr"
r.append(list) Append a list of lines to the range
Note that the option of supplying a list of strings to
the append method differs from the equivalent method
for Python's built-in list objects.
+ r.append(list, nr) Idem, after line "nr"
Example (assume r is the current range):
# Send all lines in a range to the default printer