From e7bdaf0e7984160a8501af64c076724cbb9de9ac Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 15 Oct 2018 10:08:53 +0200 Subject: [PATCH] Change vimrc Scratch command to use enew Scratch now changes the current window, instead of opening a new one. --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 93cedfb..8528f47 100644 --- a/vimrc +++ b/vimrc @@ -607,7 +607,7 @@ function! s:snapshot() endfun command! Snapshot call snapshot() -command! -nargs=? Scratch new | set buftype=nofile | set filetype= +command! -nargs=? Scratch enew | set buftype=nofile | set filetype= command! -nargs=? Tempfile exec 'new '.tempname() | set filetype= | au BufDelete call delete(expand('%')) " ┌──────────────────────────┐