Skip to content

Instantly share code, notes, and snippets.

@Raimondi
Created July 13, 2010 09:17
Show Gist options
  • Save Raimondi/473663 to your computer and use it in GitHub Desktop.
Save Raimondi/473663 to your computer and use it in GitHub Desktop.
Delete a buffer and keep window distribution.
function! Bd()
let curbuf = bufnr('%')
bnext
exec "bdelete ".curbuf
endfunction
command Bd call Bd()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment