-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc2__remove_my_tail
29 lines (25 loc) · 1.06 KB
/
.vimrc2__remove_my_tail
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
" Take off the '__remove_my_tail' part and put your system-specific vim stuff
" in here.
" Don't write swapfiles to disk while editing within OneDrive, since this
" will prevent it from synching anything (including other files you
" probably want to be actively synched while you're editing).
"
" Edit or add to the below to add additional OneDrive locations that don't
" match what's already specified here.
"
augroup swapfile_suppression
autocmd!
autocmd BufReadPre */OneDrive*/*,*OneDrive/* :setlocal noswapfile
" autocmd BufReadPre /mnt/?/Organization\ LTD/* :setlocal noswapfile
" autocmd BufReadPre /cygdrive/?/Organization\ LTD/* :setlocal noswapfile
" ^2 Institutional subscriptions to OneDrive take this general form,
" depending on whether you're on Cygwin or WSL. See `:h file-pattern`
augroup END
" Avoid stripping trailing whitespace from plaintext `pg_dump` output, which
" can screw things up if there are trailing nulls for any columns:
function! ShouldStripTrailing()
if match(expand('%:p'),'.*populate.sql') != -1
return 0
endif
return 1
endfunction