summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-26 23:59:20 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-26 23:59:20 +0000
commita226a6dd9f63c28ab6d82cf895f69d3daad98801 (patch)
treeb378dd33d134dd0674bcb46b515d18a1a45f3885 /runtime
parenta562149de3f44a24669ce191c9d557f979da8556 (diff)
updated for version 7.0208
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/tabpage.txt19
1 files changed, 12 insertions, 7 deletions
diff --git a/runtime/doc/tabpage.txt b/runtime/doc/tabpage.txt
index 85fc1d7d02..244fd24b87 100644
--- a/runtime/doc/tabpage.txt
+++ b/runtime/doc/tabpage.txt
@@ -1,4 +1,4 @@
-*tabpage.txt* For Vim version 7.0aa. Last change: 2006 Feb 25
+*tabpage.txt* For Vim version 7.0aa. Last change: 2006 Feb 26
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -284,19 +284,20 @@ label separately.
See the 'statusline' option for the format of the value.
The "%N" item can be used for the current tab page number. The |v:lnum|
-variable is also set to this number.
+variable is also set to this number when 'guitablabel' is evaluated.
+The items that use a file name refer to the current window of the tab page.
Note that syntax highlighting is not used for 'guitablabel'. The %T and %X
-are also ignored.
-
-A simple example that puts the tab page number and the buffer name in the label: >
+items are also ignored.
+A simple example that puts the tab page number and the buffer name in the
+label: >
:set guitablabel=%N\ %f
An example that resembles the default: Show the number of windows in the tab
page and a '+' if there is a modifed buffer: >
- function! GuiTabLabel()
+ function GuiTabLabel()
let label = ''
let bufnrlist = tabpagebuflist(v:lnum)
@@ -320,7 +321,11 @@ page and a '+' if there is a modifed buffer: >
" Append the buffer name
return label . bufname(bufnrlist[tabpagewinnr(v:lnum) - 1])
endfunction
+
set guitablabel=%{GuiTabLabel()}
-<
+
+Note that the function must be defined before setting the option, otherwise
+you get an error message for the function not being known.
+
vim:tw=78:ts=8:ft=help:norl: