diff --git a/vimrc b/vimrc index 3681337..12c14b9 100644 --- a/vimrc +++ b/vimrc @@ -866,14 +866,15 @@ endfunction "----------------------------------------------------------------------------}}} "#commands{{{ -" remove trailing whitespace +" TrimWhitespace{{{ command! -range=% TrimWhitespace let b:wv = winsaveview() | \ keeppattern ,s/\s\+$// | \ call winrestview(b:wv) - +"}}} +" Scratch, ScratchVertical{{{ 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