On 13/06/11 02:10, Tim Johnson wrote:
I have vim 7.2 huge version on linux.
I would like to get the enumerated number of an open tab.
I wouldn't care if numbering started at 0 or 1, as long
as the process is consistant.
I have the following setting :
guitablabel=%N %t
which prints out the tab number in the tab itself, but
I would like to get the tab number programmatically.
:echo v:lnum
on my setup only gives the total number of tabs open,
not the tab number itself.
TIA
tim
:help tabpagenr()
HTH,
Tony.
--
Impartial, adj.:
Unable to perceive any promise of personal advantage from
espousing either side of a controversy or adopting either of two
conflicting opinions.
-- Ambrose Bierce, "The Devil's Dictionary"
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php