Mercurial > vim
comparison runtime/doc/quickfix.txt @ 791:98a88a884610 v7.0230
updated for version 7.0230
author | vimboss |
---|---|
date | Mon, 20 Mar 2006 21:59:49 +0000 |
parents | 1a44839049ae |
children | 95dac6af3b3a |
comparison
equal
deleted
inserted
replaced
790:c8680debe1cc | 791:98a88a884610 |
---|---|
1 *quickfix.txt* For Vim version 7.0aa. Last change: 2006 Mar 19 | 1 *quickfix.txt* For Vim version 7.0aa. Last change: 2006 Mar 20 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
876 prefixes are: | 876 prefixes are: |
877 %E start of a multi-line error message | 877 %E start of a multi-line error message |
878 %W start of a multi-line warning message | 878 %W start of a multi-line warning message |
879 %I start of a multi-line informational message | 879 %I start of a multi-line informational message |
880 %A start of a multi-line message (unspecified type) | 880 %A start of a multi-line message (unspecified type) |
881 %> for next line start with current pattern again |efm-%>| | |
881 %C continuation of a multi-line message | 882 %C continuation of a multi-line message |
882 %Z end of a multi-line message | 883 %Z end of a multi-line message |
883 These can be used with '+' and '-', see |efm-ignore| below. | 884 These can be used with '+' and '-', see |efm-ignore| below. |
884 | 885 |
885 Using "\n" in the pattern won't work to match multi-line messages. | 886 Using "\n" in the pattern won't work to match multi-line messages. |
927 ' %.%#' (which stands for the regular expression ' .*') matches every line | 928 ' %.%#' (which stands for the regular expression ' .*') matches every line |
928 starting with a space, followed by any characters to the end of the line, | 929 starting with a space, followed by any characters to the end of the line, |
929 it also hides line 7 which would trigger a separate error message otherwise. | 930 it also hides line 7 which would trigger a separate error message otherwise. |
930 Error format strings are always parsed pattern by pattern until the first | 931 Error format strings are always parsed pattern by pattern until the first |
931 match occurs. | 932 match occurs. |
933 *efm-%>* | |
934 The %> item can be used to avoid trying patterns that appear earlier in | |
935 'errorformat'. This is useful for patterns that match just about anything. | |
936 For example, if the error looks like this: | |
937 | |
938 Error in line 123 of foo.c: ~ | |
939 unknown variable "i" ~ | |
940 | |
941 This can be found with: > | |
942 :set efm=xxx,%E%>Error in line %l of %f:,%Z%m | |
943 Where "xxx" has a pattern that would also match the second line. | |
932 | 944 |
933 Important: There is no memory of what part of the errorformat matched before; | 945 Important: There is no memory of what part of the errorformat matched before; |
934 every line in the error file gets a complete new run through the error format | 946 every line in the error file gets a complete new run through the error format |
935 lines. For example, if one has: > | 947 lines. For example, if one has: > |
936 setlocal efm=aa,bb,cc,dd,ee | 948 setlocal efm=aa,bb,cc,dd,ee |