scratch commands

This commit is contained in:
ManjaroOne666 2018-11-21 14:25:30 +00:00
parent 9a4e728f4e
commit 9cac0abecf
1 changed files with 3 additions and 0 deletions

3
vimrc
View File

@ -871,6 +871,9 @@ command! -range=% TrimWhitespace let b:wv = winsaveview() |
\ keeppattern <line1>,<line2>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