Add Tempfile command and change modeline

This commit is contained in:
Talia 2018-05-23 09:38:47 +02:00
parent 5f7a6f7ae8
commit c7bd7c2c3c

3
vimrc
View file

@ -1,4 +1,4 @@
" vim: set noexpandtab :miv " " vim: set bufhidden=delete list noexpandtab :miv "
"!!! makes use of marker ' "!!! makes use of marker '
set nocompatible set nocompatible
@ -550,6 +550,7 @@ endfun
command! Snapshot call <sid>snapshot() command! Snapshot call <sid>snapshot()
command! -nargs=? Scratch new | set buftype=nofile | set filetype=<args> command! -nargs=? Scratch new | set buftype=nofile | set filetype=<args>
command! -nargs=? Tempfile exec 'new '.tempname() | set filetype=<args> | au BufDelete <buffer> call delete(expand('%'))
" ┌──────────────────────────┐ " ┌──────────────────────────┐
" ├─┬──────────────────────┐ │ " ├─┬──────────────────────┐ │