clean up legacy files
This commit is contained in:
parent
638ff2812f
commit
bc35923fe2
658 changed files with 196 additions and 1 deletions
27
legacy/init.commands.vim
Normal file
27
legacy/init.commands.vim
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
" SpacesToTabs {{{
|
||||
" TODO - ake a proper regex substitution
|
||||
function! s:spacestotabs()
|
||||
%s/^ / /e
|
||||
%s/^ / /e
|
||||
%s/^ / /e
|
||||
%s/^ / /e
|
||||
%s/^ / /e
|
||||
%s/^ / /e
|
||||
endfunction
|
||||
command SpacesToTabs call s:spacestotabs()
|
||||
|
||||
|
||||
"}}}
|
||||
" TrimWhitespace {{{
|
||||
command! -range=% TrimWhitespace let b:wv = winsaveview() |
|
||||
\ keeppattern <line1>,<line2>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
|
||||
"}}}
|
||||
"
|
||||
"
|
||||
Loading…
Add table
Add a link
Reference in a new issue