formatting

This commit is contained in:
ManjaroOne666 2018-11-21 14:28:03 +00:00
parent 9cac0abecf
commit 787bc765f1
1 changed files with 4 additions and 3 deletions

7
vimrc
View File

@ -866,14 +866,15 @@ endfunction
"----------------------------------------------------------------------------}}} "----------------------------------------------------------------------------}}}
"#commands{{{ "#commands{{{
" remove trailing whitespace " TrimWhitespace{{{
command! -range=% TrimWhitespace let b:wv = winsaveview() | 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)
"}}}
" Scratch, ScratchVertical{{{
command! Scratch new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile command! Scratch new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile
command! ScratchVertical vnew | 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