diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-26 23:59:20 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-26 23:59:20 +0000 |
commit | a226a6dd9f63c28ab6d82cf895f69d3daad98801 (patch) | |
tree | b378dd33d134dd0674bcb46b515d18a1a45f3885 /runtime/doc/tabpage.txt | |
parent | a562149de3f44a24669ce191c9d557f979da8556 (diff) | |
download | vim-git-a226a6dd9f63c28ab6d82cf895f69d3daad98801.tar.gz |
updated for version 7.0208
Diffstat (limited to 'runtime/doc/tabpage.txt')
-rw-r--r-- | runtime/doc/tabpage.txt | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/runtime/doc/tabpage.txt b/runtime/doc/tabpage.txt index 85fc1d7d0..244fd24b8 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: |