How should I enter the following as a single string at the command prompt in vim
:let v:errmsg = "" :silent! /\cend of .*project gutenberg :if v:errmsg != "" :echo "Not found" :endif This does not work, the message is not printed.
:let v:errmsg = ""|:silent! /\cend of .*project gutenberg|:if v:errmsg != ""|:echo "Not found"|:endif