On 03/16/2011 06:02 AM, Hofmann, Joachim wrote:
gvim  +?"0 Datei(en)" BefehlsausgabenVoll.log

When the pattern is not found:

"BefehlsausgabenVoll.log" 148L, 8098C
Error detected while processing command line:
E486: Pattern not found: 0 Datei(en)
Press ENTER or type command to continue

How can I smoothe this, so that I don't have to hit enter?

When attempting to put something together to address Joachim's issue, I tried all 5 of the following:

  :try | /does_not_exist/ | endtry
  :try | /does_not_exist/ | catch | endtry
  :try | /does_not_exist/ | catch /.*/ | endtry
  :try | /does_not_exist/ | catch | finally | endtry
  :try | /does_not_exist/ | catch /.*/ | finally | endtry

However I get the following in all cases:
"""
Error detected while processing :
E486: Pattern not found: does_not_exist
"""

I expect that in the first case where it's uncaught, but with the empty "catch" in the remaining cases (trying both with an "everything" pattern and the empty catch which should/does behave the same), it seems contrary to the help on "try" to get an error instead of a caught exception:

    Moreover, an error or interrupt (dynamically) inside
    ":try" and ":endtry" is converted to an exception.



So
1a) is this a bug?

1b) is this a bug in my older 7.1.314 (whatever Debian's handing me) that's been fixed in a more recent version and it's my own fault for not tracking a more recent version?

2) is this my misunderstanding of the help-text?

Thanks,

-tim








--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to