commit b27937d5e4c41ef0a5cf119549d4518cda49811d (tree)
parent 152c9195aecea8b4549205bc810081ee26c14d9a
Author: Tim Pope <code@tpope.net>
Date: Wed, 19 Mar 2014 00:53:05 -0400
Turn off swap files in all URL buffers
References #202.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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