Detailed view of a page, which is probably more useful for debugging than anything else.
get_pagedata('DeleteBufferButHoldWindowOpen') | |
_cached_html | transformedtext Object ( [_type] => pagetype_wikitext Object ( ) [_basepage] => DeleteBufferButHoldWindowOpen [_content] => Array ( [0] => <div class="wikitext"><p class="tightenable top">User command <b>:BD</b></p> <p class="tightenable">Delete current buffer, but don't close the current window unless there's only one buffer left.</p> <p class="tightenable">Alternative for built-in <b>:bd</b></p> <pre class="tightenable"> function! s:deleteBufferHoldWindowOpen() let bufnum = bufnr("%") execute "bn" let cmd = bufnum . "bd" echo cmd execute cmd endfunction command! -nargs=0 BD :call <SID>deleteBufferHoldWindowOpen()</pre> <hr /> <p class="tightenable top bottom">If you want delete <i>all</i> buffers without exiting vim, try <b>:BDA</b></p> <pre class="tightenable top bottom"> command! -nargs=0 BDALL :1,100bd</pre> <p class="tightenable top bottom">works only for up to 100 buffers, though.</p> </div> ) ) |
hits | 57 |
get_versiondata('DeleteBufferButHoldWindowOpen',4) | |
%content | User command <b>:BD</b> Delete current ... |
author | 85.181.242.28 |
author_id | 85.181.242.28 |
is_minor_edit | 1 |
markup | 2 |
mtime | 1193679995 |
pagetype | wikitext |
get_versiondata('DeleteBufferButHoldWindowOpen',3) | |
%content | User command <b>:BD</b> Delete current ... |
_supplanted | 1193679995 |
author | 85.181.242.28 |
author_id | 85.181.242.28 |
is_minor_edit | 1 |
markup | 2 |
mtime | 1193679958 |
pagetype | wikitext |
get_versiondata('DeleteBufferButHoldWindowOpen',2) | |
%content | <b>:BD</b> Delete current buffer, but d ... |
_supplanted | 1193679958 |
author | 85.181.242.28 |
author_id | 85.181.242.28 |
is_minor_edit | 1 |
markup | 2 |
mtime | 1193679922 |
pagetype | wikitext |
get_versiondata('DeleteBufferButHoldWindowOpen',1) | |
%content | Close current buffer, but hold current w ... |
_supplanted | 1193679922 |
author | 85.181.242.28 |
author_id | 85.181.242.28 |
is_minor_edit | |
markup | 2 |
mtime | 1193679521 |
pagetype | wikitext |