Skip to content

Instantly share code, notes, and snippets.

@dahu
Created October 10, 2012 04:23
Show Gist options
  • Select an option

  • Save dahu/3863148 to your computer and use it in GitHub Desktop.

Select an option

Save dahu/3863148 to your computer and use it in GitHub Desktop.
Die, Tabs, Die!
" dietabsdie.vim - Reopen new tabs as buffers
" Barry Arthur, 4 June 2010
function! DieTabsDie()
let tabbufname=expand('%')
tabclose
exe ":b " . expand(tabbufname)
endfunction
autocmd TabEnter * call DieTabsDie()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment