Vim-bclose is a project mainly written in Vim Script, it's free.
Clone of bclose script.
This is a copy of the handy bclose script at http://vim.wikia.com/wiki/VimTip165 for closing a buffer while leaving the window alone.