From 11f35051b0a00c2bb401a474cbb1fd8f0688671e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 24 Oct 2023 14:01:12 +0300 Subject: [PATCH] .vimrc: Fix error message format Vim 9 slightly changed the format. --- .vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 5546bdf..dfa434f 100644 --- a/.vimrc +++ b/.vimrc @@ -592,13 +592,13 @@ function! W() execute 'set fileencoding=' . e w break - catch /E513: write error, conversion failed/ + catch /E513: [Ww]rite error, conversion failed/ continue endtry endfor if &modified - throw '"' . expand('%') . '" E513: write error, conversion failed; tried ' . join(encodings, ',') + throw '"' . expand('%') . '" E513: Write error, conversion failed; tried ' . join(encodings, ',') elseif has("spell") call SetupSpell() endif -- 2.39.5