GUI Tab Tooltip: list buffers
- I pilfered the following code that is supposed to show a buffer list
as the tooltip on the tabs, but it is not working. Any ideas?
I can see the buffers with :buffers and with ctrlP buffer list, so I
know they are there, but they are not showing as the tooltip. Am I not
understanding what this code *should* do?
"make those tooltips cool by showing buffer names within them
let tip = ''
let bufnrlist = tabpagebuflist(v:lnum)
for bufnr in bufnrlist
" separate buffer entries
let tip .= " \n "
" Add name of buffer
if name == ''
" give a name to no name documents
let name = '[Quickfix List]'
let name = '[No Name]'
" add modified/modifiable flags
if getbufvar(bufnr, "&modified")
let tip .= ' [+]'
if getbufvar(bufnr, "&modifiable")==0
let tip .= ' [-]'
"show tooltips on tabs
Chris Lott <chris@...>
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