From b27937d5e4c41ef0a5cf119549d4518cda49811d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 19 Mar 2014 00:53:05 -0400 Subject: [PATCH] Turn off swap files in all URL buffers References #202. --- plugin/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 6f09f09..bfd0cde 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2164,6 +2164,7 @@ function! s:BufReadIndexFile() if &bufhidden ==# '' setlocal bufhidden=delete endif + setlocal noswapfile endtry return '' catch /^fugitive: rev-parse/ @@ -2266,7 +2267,7 @@ function! s:BufReadObject() endif finally call setpos('.',pos) - setlocal ro noma nomod + setlocal ro noma nomod noswapfile if &bufhidden ==# '' setlocal bufhidden=delete endif