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