diff --git a/vimrc b/vimrc index a7ca438..9b74fce 100644 --- a/vimrc +++ b/vimrc @@ -1,4 +1,4 @@ -" vim: set noexpandtab :miv " +" vim: set bufhidden=delete list noexpandtab :miv " "!!! makes use of marker ' set nocompatible @@ -550,6 +550,7 @@ endfun command! Snapshot call snapshot() command! -nargs=? Scratch new | set buftype=nofile | set filetype= +command! -nargs=? Tempfile exec 'new '.tempname() | set filetype= | au BufDelete call delete(expand('%')) " ┌──────────────────────────┐ " ├─┬──────────────────────┐ │