formatting
This commit is contained in:
parent
9cac0abecf
commit
787bc765f1
7
vimrc
7
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue