diff options
Diffstat (limited to 'vim/config/swapfile.vim')
-rw-r--r-- | vim/config/swapfile.vim | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vim/config/swapfile.vim b/vim/config/swapfile.vim deleted file mode 100644 index de0598c2..00000000 --- a/vim/config/swapfile.vim +++ /dev/null @@ -1,15 +0,0 @@ -" Default to no swap files at all, in a way that even ancient/tiny Vims will -" understand; the auto_cache_dirs.vim plugin will take care of re-enabling -" this with a 'directory' setting -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 |