From: Oleg Broytman Date: Tue, 24 Oct 2023 11:01:12 +0000 (+0300) Subject: .vimrc: Fix error message format X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=11f35051b0a00c2bb401a474cbb1fd8f0688671e .vimrc: Fix error message format Vim 9 slightly changed the format. --- 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