636
|
1 Test for 'errorformat'. This will fail if the quickfix feature was disabled.
|
7
|
2
|
|
3 STARTTEST
|
|
4 :so small.vim
|
3002
|
5 :" Also test a BOM is ignored.
|
|
6 :so mbyte.vim
|
|
7 :set encoding=utf-8
|
3016
|
8 :7/start of errorfile/,/end of errorfile/w! Xerrorfile1
|
|
9 :7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2
|
7
|
10 :/start of testfile/,/end of testfile/w! Xtestfile
|
3555
|
11 :set efm+==%f=\\,\ line\ %l%*\\D%v%*[^\ ]\ %m
|
|
12 :set efm^=%AError\ in\ \"%f\"\ at\ line\ %l:,%Z%p^,%C%m
|
3016
|
13 :cf Xerrorfile2
|
|
14 :clast
|
|
15 :copen
|
|
16 :let a=w:quickfix_title
|
|
17 :wincmd p
|
3555
|
18 lgR=a
|
3016
|
19 :cf Xerrorfile1
|
3555
|
20 grA
|
|
21 :cn
|
|
22 gRLINE 6, COL 19
|
|
23 :cn
|
|
24 gRNO COLUMN SPECIFIED
|
7
|
25 :cn
|
3555
|
26 gRAGAIN NO COLUMN
|
|
27 :cn
|
|
28 gRCOL 1
|
|
29 :cn
|
|
30 gRCOL 2
|
7
|
31 :cn
|
3555
|
32 gRCOL 10
|
|
33 :cn
|
|
34 gRVCOL 10
|
|
35 :cn
|
|
36 grI
|
|
37 :cn
|
|
38 gR. SPACE POINTER
|
7
|
39 :cn
|
3555
|
40 gR. DOT POINTER
|
|
41 :cn
|
|
42 gR. DASH POINTER
|
7
|
43 :cn
|
3555
|
44 gR. TAB-SPACE POINTER
|
|
45 :clast
|
|
46 :cprev
|
|
47 :cprev
|
3016
|
48 :wincmd w
|
|
49 :let a=w:quickfix_title
|
|
50 :wincmd p
|
3555
|
51 lgR=a
|
7
|
52 :w! test.out " Write contents of this file
|
|
53 :qa!
|
|
54 ENDTEST
|
|
55
|
|
56 start of errorfile
|
|
57 "Xtestfile", line 4.12: 1506-045 (S) Undeclared identifier fd_set.
|
3555
|
58 "Xtestfile", line 6 col 19; this is an error
|
7
|
59 gcc -c -DHAVE_CONFIsing-prototypes -I/usr/X11R6/include version.c
|
3555
|
60 Xtestfile:9: parse error before `asd'
|
7
|
61 make: *** [vim] Error 1
|
3555
|
62 in file "Xtestfile" linenr 10: there is an error
|
7
|
63
|
|
64 2 returned
|
3555
|
65 "Xtestfile", line 11 col 1; this is an error
|
|
66 "Xtestfile", line 12 col 2; this is another error
|
|
67 "Xtestfile", line 14:10; this is an error in column 10
|
|
68 =Xtestfile=, line 15:10; this is another error, but in vcol 10 this time
|
|
69 "Xtestfile", linenr 16: yet another problem
|
|
70 Error in "Xtestfile" at line 17:
|
|
71 x should be a dot
|
|
72 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17
|
|
73 ^
|
|
74 Error in "Xtestfile" at line 18:
|
|
75 x should be a dot
|
|
76 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18
|
|
77 .............^
|
|
78 Error in "Xtestfile" at line 19:
|
|
79 x should be a dot
|
|
80 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19
|
|
81 --------------^
|
|
82 Error in "Xtestfile" at line 20:
|
|
83 x should be a dot
|
|
84 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20
|
|
85 ^
|
7
|
86
|
|
87 Does anyone know what is the problem and how to correction it?
|
3016
|
88 "Xtestfile", line 21 col 9: What is the title of the quickfix window?
|
|
89 "Xtestfile", line 22 col 9: What is the title of the quickfix window?
|
7
|
90 end of errorfile
|
|
91
|
|
92 start of testfile
|
3555
|
93 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 2
|
|
94 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 3
|
|
95 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 4
|
|
96 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 5
|
|
97 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 6
|
|
98 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 7
|
|
99 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 8
|
|
100 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 9
|
|
101 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 10
|
|
102 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 11
|
|
103 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 12
|
|
104 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 13
|
|
105 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 14
|
|
106 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 15
|
|
107 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 16
|
|
108 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17
|
|
109 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18
|
|
110 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19
|
|
111 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20
|
|
112 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 21
|
|
113 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 22
|
7
|
114 end of testfile
|