hi to all the list! a fellow vimmer (from the list) has posted the
following tabline for gvim [i don't recall if it was exactly the
same]:
function! VimTabLabel()
let label = ''
let bufnrlist = tabpagebuflist(v:lnum)
" Add '+' if one of the buffers in the tab page is modified
for bufnr in bufnrlist
if getbufvar(bufnr, "&modified")
let label = '+'
break
endif
endfor
" Append the tab number
let label .= tabpagenr().': '
" Append the buffer name
let name = bufname(bufnrlist[tabpagenr(v:lnum) - 1])
if name == ''
" give a name to no-name documents
if &buftype=='quickfix'
let name = '[Quickfix List]'
else
let name = '[No Name]'
endif
else
" get only the file name
let name = fnamemodify(name,":t")
endif
let label .= name
Append the number of windows in the tab page
let wincount = tabpagewinnr(v:lnum, '$')
return label . ' [' . wincount . ']'
endfunction
this function ,works great for gvim, but when i try to use it with
vim, i get the following errors:
Error detected while processing function VimTabLabel:
line 5:
E714: List required
line 16:
E15: Invalid expression: 0
Press ENTER or type command to continue
is there any way to convert it for vim?
thanks in advance for any help,
nicolas
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---