Language:
Vim/Vim script     Change language:
Pastebin: 132634
Author: Anonymous
Subject: Untitled
Created: 2010-02-07 17:47:40
Download and save
Toggle line numbers
1function! BufferDetect() 
2    let s:visible_buffers = map(tabpagebuflist(), 'bufname(v:val)') 
3    call filter(s:visible_buffers, 'v:val =~# "title of your buffer"') 
4    if !empty(s:visible_buffers) 
5        return 1 
6    else 
7        return 0 
8    endif 
9endfunc 
Thread:
[132634] Untitled by Anonymous at 2010-02-07 17:47:40
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.