Mercurial > vim
comparison runtime/doc/usr_41.txt @ 2207:b17bbfa96fa0 vim73
Add the settabvar() and gettabvar() functions.
Various runtime file updates.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 22 May 2010 15:37:44 +0200 |
parents | 7c8c7c95a865 |
children | 6f63294a1781 |
comparison
equal
deleted
inserted
replaced
2206:a8afba7027ae | 2207:b17bbfa96fa0 |
---|---|
668 islocked() check if a variable is locked | 668 islocked() check if a variable is locked |
669 function() get a Funcref for a function name | 669 function() get a Funcref for a function name |
670 getbufvar() get a variable value from a specific buffer | 670 getbufvar() get a variable value from a specific buffer |
671 setbufvar() set a variable in a specific buffer | 671 setbufvar() set a variable in a specific buffer |
672 getwinvar() get a variable from specific window | 672 getwinvar() get a variable from specific window |
673 gettabvar() get a variable from specific tab page | |
673 gettabwinvar() get a variable from specific window & tab page | 674 gettabwinvar() get a variable from specific window & tab page |
674 setwinvar() set a variable in a specific window | 675 setwinvar() set a variable in a specific window |
676 settabvar() set a variable in a specific tab page | |
675 settabwinvar() set a variable in a specific window & tab page | 677 settabwinvar() set a variable in a specific window & tab page |
676 garbagecollect() possibly free memory | 678 garbagecollect() possibly free memory |
677 | 679 |
678 Cursor and mark position: | 680 Cursor and mark position: |
679 col() column number of the cursor or a mark | 681 col() column number of the cursor or a mark |
2150 | 2152 |
2151 FUNCTIONS | 2153 FUNCTIONS |
2152 | 2154 |
2153 When defining a function, this only needs to be done once. But the filetype | 2155 When defining a function, this only needs to be done once. But the filetype |
2154 plugin will be sourced every time a file with this filetype will be opened. | 2156 plugin will be sourced every time a file with this filetype will be opened. |
2155 This construct make sure the function is only defined once: > | 2157 This construct makes sure the function is only defined once: > |
2156 | 2158 |
2157 :if !exists("*s:Func") | 2159 :if !exists("*s:Func") |
2158 : function s:Func(arg) | 2160 : function s:Func(arg) |
2159 : ... | 2161 : ... |
2160 : endfunction | 2162 : endfunction |