From 69fa3cf9af785cae7edd74ca29b294869af928a9 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 14 Feb 2014 17:50:29 +0100 Subject: [PATCH] Handle "swap file found" (E325) exception The user has been warned and asked about how to proceed already. Catching this exception removes the additional output afterwards: Error detected while processing function 237_open_buffers: line 38: E325: ATTENTION Closes #67. --- autoload/startify.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index d4b630a..ae9753b 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -502,8 +502,9 @@ function! s:open_buffers(cword) abort else try execute 'normal' a:cword - catch /E832/ + catch /E832/ " don't ask for undo encryption key twice edit + catch /E325/ " swap file found endtry endif endfunction