Change vimrc Scratch command to use enew

Scratch now changes the current window, instead of opening a new one.
This commit is contained in:
Talia 2018-10-15 10:08:53 +02:00
parent 64e4e304f8
commit e7bdaf0e79

2
vimrc
View file

@ -607,7 +607,7 @@ function! s:snapshot()
endfun
command! Snapshot call <sid>snapshot()
command! -nargs=? Scratch new | set buftype=nofile | set filetype=<args>
command! -nargs=? Scratch enew | set buftype=nofile | set filetype=<args>
command! -nargs=? Tempfile exec 'new '.tempname() | set filetype=<args> | au BufDelete <buffer> call delete(expand('%'))
" ┌──────────────────────────┐