From 9cac0abecf98717ea06690f8c3e54f6e6fa77608 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 21 Nov 2018 14:25:30 +0000 Subject: [PATCH] scratch commands --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index 1e4b2b1..3681337 100644 --- a/vimrc +++ b/vimrc @@ -871,6 +871,9 @@ command! -range=% TrimWhitespace let b:wv = winsaveview() | \ keeppattern ,s/\s\+$// | \ call winrestview(b:wv) +command! Scratch new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile +command! ScratchVertical vnew | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile + "}}} " #settings {{{ scriptencoding utf-8