scratch commands
This commit is contained in:
parent
9a4e728f4e
commit
9cac0abecf
3
vimrc
3
vimrc
|
@ -871,6 +871,9 @@ command! -range=% TrimWhitespace let b:wv = winsaveview() |
|
||||||
\ keeppattern <line1>,<line2>s/\s\+$// |
|
\ keeppattern <line1>,<line2>s/\s\+$// |
|
||||||
\ call winrestview(b:wv)
|
\ 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 {{{
|
" #settings {{{
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
Loading…
Reference in New Issue