blob: bf91aa6b586e738f75bfbf09dbf1c9b3b55fd114 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
" Default to no swapfile files at all, in a way that even ancient/tiny Vims
" will understand; the auto_swapdir.vim plugin will take care of this
set noswapfile
" Don't keep swap files from temporary directories or shared memory in case
" they're secrets
if has('autocmd')
augroup dotfiles_swap_skip
autocmd!
autocmd BufNewFile,BufReadPre
\ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
\ setlocal noswapfile
augroup END
endif
|