Add Tempfile command and change modeline
This commit is contained in:
parent
5f7a6f7ae8
commit
c7bd7c2c3c
1 changed files with 2 additions and 1 deletions
3
vimrc
3
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 <sid>snapshot()
|
||||
|
||||
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('%'))
|
||||
|
||||
" ┌──────────────────────────┐
|
||||
" ├─┬──────────────────────┐ │
|
||||
|
|
Loading…
Reference in a new issue