Dear Vimmers,

I've been playing with the following piece of code:

        try
            global/\v^\s*\+\+\+\s*$/delete
        catch
            echo "catch clause"
        finally
            echo "finally clause"
        endtry

It should remove the lines containing only three +'s from a file. I'm using 
the try clause to prevent the error message being displayed if there are no 
lines to be removed. However, the error is not caught. If I replace the 
search command with another arbitrary command, everything works as expected.
Could it be a bug?

(I'm still using ViM 6.4. If this has been dealt with in ViM 7, I apologize.)

-- Peter

Reply via email to