Mercurial > vim
comparison runtime/doc/eval.txt @ 4354:c80838526eeb v7.3.926
updated for version 7.3.926
Problem: Autocommands are triggered by setwinvar() et al. Missing BufEnter
on :tabclose. Duplicate WinEnter on :tabclose. Wrong order of
events for :tablose and :tabnew.
Solution: Fix these autocommand events. (Zyx)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 06 May 2013 04:50:35 +0200 |
parents | 2d1383658bb4 |
children | cf1d93a3914a |
comparison
equal
deleted
inserted
replaced
4353:1ab21898454f | 4354:c80838526eeb |
---|---|
5318 settabvar({tabnr}, {varname}, {val}) *settabvar()* | 5318 settabvar({tabnr}, {varname}, {val}) *settabvar()* |
5319 Set tab-local variable {varname} to {val} in tab page {tabnr}. | 5319 Set tab-local variable {varname} to {val} in tab page {tabnr}. |
5320 |t:var| | 5320 |t:var| |
5321 Note that the variable name without "t:" must be used. | 5321 Note that the variable name without "t:" must be used. |
5322 Tabs are numbered starting with one. | 5322 Tabs are numbered starting with one. |
5323 Vim briefly goes to the tab page {tabnr}, this may trigger | |
5324 TabLeave and TabEnter autocommands. | |
5325 This function is not available in the |sandbox|. | 5323 This function is not available in the |sandbox|. |
5326 | 5324 |
5327 settabwinvar({tabnr}, {winnr}, {varname}, {val}) *settabwinvar()* | 5325 settabwinvar({tabnr}, {winnr}, {varname}, {val}) *settabwinvar()* |
5328 Set option or local variable {varname} in window {winnr} to | 5326 Set option or local variable {varname} in window {winnr} to |
5329 {val}. | 5327 {val}. |
5332 When {winnr} is zero the current window is used. | 5330 When {winnr} is zero the current window is used. |
5333 This also works for a global or local buffer option, but it | 5331 This also works for a global or local buffer option, but it |
5334 doesn't work for a global or local buffer variable. | 5332 doesn't work for a global or local buffer variable. |
5335 For a local buffer option the global value is unchanged. | 5333 For a local buffer option the global value is unchanged. |
5336 Note that the variable name without "w:" must be used. | 5334 Note that the variable name without "w:" must be used. |
5337 Vim briefly goes to the tab page {tabnr}, this may trigger | |
5338 TabLeave and TabEnter autocommands. | |
5339 Examples: > | 5335 Examples: > |
5340 :call settabwinvar(1, 1, "&list", 0) | 5336 :call settabwinvar(1, 1, "&list", 0) |
5341 :call settabwinvar(3, 2, "myvar", "foobar") | 5337 :call settabwinvar(3, 2, "myvar", "foobar") |
5342 < This function is not available in the |sandbox|. | 5338 < This function is not available in the |sandbox|. |
5343 | 5339 |