diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-04 21:57:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-04 21:57:18 +0200 |
commit | a5a7882ea4a21944924b778208e1d54734891033 (patch) | |
tree | 4a65d762e9c89943a98f0934f21202c47897f42d /runtime/doc/textprop.txt | |
parent | 26262f87770d3a1a68b09a70152d75c2e2ae186f (diff) | |
download | vim-git-a5a7882ea4a21944924b778208e1d54734891033.tar.gz |
patch 8.1.1986: more functions can be used as methodsv8.1.1986
Problem: More functions can be used as methods.
Solution: Make textprop functions usable as a method.
Diffstat (limited to 'runtime/doc/textprop.txt')
-rw-r--r-- | runtime/doc/textprop.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/runtime/doc/textprop.txt b/runtime/doc/textprop.txt index 5facae675..df12f83e7 100644 --- a/runtime/doc/textprop.txt +++ b/runtime/doc/textprop.txt @@ -1,4 +1,4 @@ -*textprop.txt* For Vim version 8.1. Last change: 2019 Aug 25 +*textprop.txt* For Vim version 8.1. Last change: 2019 Sep 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -157,6 +157,9 @@ prop_add({lnum}, {col}, {props}) See |text-properties| for information about text properties. + Can also be used as a |method|: > + GetLnum()->prop_add(col, props) + prop_clear({lnum} [, {lnum-end} [, {props}]]) *prop_clear()* Remove all text properties from line {lnum}. @@ -168,6 +171,9 @@ prop_clear({lnum} [, {lnum-end} [, {props}]]) *prop_clear()* See |text-properties| for information about text properties. + Can also be used as a |method|: > + GetLnum()->prop_clear() +< *prop_find()* prop_find({props} [, {direction}]) {not implemented yet} @@ -220,7 +226,9 @@ prop_list({lnum} [, {props}]) *prop_list()* See |text-properties| for information about text properties. - + Can also be used as a |method|: > + GetLnum()->prop_list() +< *prop_remove()* *E968* prop_remove({props} [, {lnum} [, {lnum-end}]]) Remove a matching text property from line {lnum}. When @@ -243,6 +251,9 @@ prop_remove({props} [, {lnum} [, {lnum-end}]]) See |text-properties| for information about text properties. + Can also be used as a |method|: > + GetProps()->prop_remove() + prop_type_add({name}, {props}) *prop_type_add()* *E969* *E970* Add a text property type {name}. If a property type with this @@ -267,6 +278,8 @@ prop_type_add({name}, {props}) *prop_type_add()* *E969* *E970* See |text-properties| for information about text properties. + Can also be used as a |method|: > + GetPropName()->prop_type_add(props) prop_type_change({name}, {props}) *prop_type_change()* Change properties of an existing text property type. If a @@ -275,6 +288,8 @@ prop_type_change({name}, {props}) *prop_type_change()* See |text-properties| for information about text properties. + Can also be used as a |method|: > + GetPropName()->prop_type_change(props) prop_type_delete({name} [, {props}]) *prop_type_delete()* Remove the text property type {name}. When text properties @@ -289,6 +304,8 @@ prop_type_delete({name} [, {props}]) *prop_type_delete()* See |text-properties| for information about text properties. + Can also be used as a |method|: > + GetPropName()->prop_type_delete() prop_type_get([{name} [, {props}]) *prop_type_get()* Returns the properties of property type {name}. This is a @@ -302,6 +319,8 @@ prop_type_get([{name} [, {props}]) *prop_type_get()* See |text-properties| for information about text properties. + Can also be used as a |method|: > + GetPropName()->prop_type_get() prop_type_list([{props}]) *prop_type_list()* Returns a list with all property type names. |