[r200]: trunk / doc / version7.txt  Maximize  Restore  History

Download this file

9957 lines (7801 with data), 387.9 kB

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
*version7.txt* For Vim version 7.3. 最近更新: 20108
VIM 参考手册 by Bram Moolenaar
译者: Willis
http://vimcdoc.sf.net
*vim7* *version-7.0* *version7.0*
欢迎来到 Vim 版本 7!新版本增加了很多新特性。本文档列出所有加入的新项目、已
有特性的改动以及 Vim 6.x 以来的漏洞修正。使用这个命令可以看到你使用的版本: >
:version
|vi_diff.txt| 提供 Vi Vim 7.0 的区别的一个概述。
|version4.txt| 说明 Vim 3.x Vim 4.x 的区别。
|version5.txt| 说明 Vim 4.x Vim 5.x 的区别。
|version6.txt| 说明 Vim 5.x Vim 6.x 的区别。
|incompatible-7|
|new-7|
Vim 脚本增强 |new-vim-script|
拼写检查 |new-spell|
全能补全 |new-omni-completion|
MzScheme 接口 |new-MzScheme|
打印多字节文本 |new-print-multi-byte|
标签页 |new-tab-pages|
撤销分支 |new-undo-branches|
扩展的 Unicode 支持 |new-more-unicode|
更多高亮 |new-more-highlighting|
翻译的手册页 |new-manpage-trans|
内部 grep |new-vimgrep|
消息往回滚动 |new-scroll-back|
光标超越行尾 |new-onemore|
POSIX 兼容性 |new-posix|
调试器支持 |new-debug-support|
远程文件探索器 |new-netrw-explore|
定义操作符 |new-define-operator|
映射到表达式 |new-map-expression|
可视和选择模式映射 |new-map-select|
位置列表 |new-location-list|
若干新项目 |new-items-7|
|improvements-7|
|compile-changes-7|
|bug-fixes-7|
7.1 |version-7.1|
改动 |changed-7.1|
新增 |added-7.1|
修正 |fixed-7.1|
7.2 版本 |version-7.2|
改动 |changed-7.2|
新增 |added-7.2|
修正 |fixed-7.2|
7.3 版本 |version-7.3|
持久化撤销 |new-persistent-undo|
更多加密 |new-more-encryption|
隐藏文本 |new-conceal|
Lua 接口 |new-lua|
Python3 接口 |new-python3|
改动 |changed-7.3|
新增 |added-7.3|
修正 |fixed-7.3|
(译者注: 各版本的修正一节,因内容过于琐碎,保留原文未翻译)
==============================================================================
*incompatible-7*
这些改动和以前版本不兼容。如果从 Vim 6.x 升级到 7.0 时出现问题,检查这个列表。
":write file" 命令不再复位缓冲区的 'modified' 标志位,除非 'cpoptions' 里包含
'+' 标志位 |cpo-+|。本来的行为不合逻辑,因为缓冲区和原来的文件相比,仍然有修改
的内容。另外,撤销所有改变时,文件仍然会被标记为修改状态。现在,执行此命令后用
":quit" 会失败。
":helpgrep" 现在使用帮助窗口来显示匹配。
参数列表里本来可用双引号在文件名里包含空格。这使得 ":edit" ":next" 转义双引
号时的行为不同,而且和 Vi 有些版本也不兼容。
命令 Vim 6.x 文件名 Vim 7.x 文件名 ~
:edit foo\"888 foo"888 foo"888
:next foo\"888 foo888 foo"888
:next a\"b c\"d ab cd a"b c"d
在 |literal-string| 里,单引号加倍可以得到一个。":echo 'a''b'" 本来返回
"a b",现在因为两个引号代表一个,它返回 "a'b"。
用 ":w! fname" 覆盖文件时,本来不会警告 "fname" 正在被另一个 Vim 编辑。Vim 现
在给出错误信息 |E768|。
删除了 Mac OS 9 的支持。
.tex 结尾的文件现在设置 'filetype' 为 "context"、"plaintex" 或 "tex"。
|ft-tex-plugin|
次要不兼容点:
文件类型检测: 许多类型用 */.dir/filename 代替了 ~/.dir/filename,从而也能使用
别的用户的文件。
不少文件类型的缩进设置从文件类型插件移到了缩进插件。如果你用: >
:filetype plugin on
有些缩进设置可能会丢失。你需要用: >
:filetype plugin indent on
":0verbose" 现在设置 'verbose' 为零而不是一。
删除了旧且不完整的 "VimBuddy" 代码。
无名缓冲区报告 "No Name" 而不是 "No File"。过去这和有名字但 'buftype' 设为
"nofile" 的缓冲区容易混淆。
如果 ":file xxx" 用于无名缓冲区,不设置轮换文件名。这避免了没有意义的另一个无
名缓冲区的建立。
"2html.vim" 脚本现在把关闭折叠也转换到 HTML。因为折叠的打开关闭相同,HTML 看上
去和显示接近。如果 HTML 里不要折叠,用 "zR" 或 "let html_ignore_folding=1"。
(部分来自 Carl Osterwisch)
diff 模式也被转换到 HTML,和显示一致。
Win32: <F10> 键的效果过去取决于 'winaltkeys'。现在它取决于 <F10> 是否被映射。
这样就可以映射 <F10> 而不修改 'winaltkeys'。
如果 'nrformats' 包含 'octal',"08" 上用 CTRL-A 过去得到 "018",这不合逻辑。现
在得到 "9"。同时也删除引导的一到多个零,以免 "009" 递增到 "010" 后该数变成八进
制。
如果 'encoding' 设为一个 Unicode 编码,'fileencodings' 的值现在在 "latin1" 之
前包含 "default"。这意味着如有可能,8 位编码的文件缺省使用环境指定的编码。以前
总是使用 latin1,在非 latin1 的环境下这是错的,俄语就是如此。
如果有两个窗口存在且都显示帮助文件时,过去用 ":quit" 会退出。现在只关闭窗口。
"-w {scriptout}" 只有当 {scriptout} 不以数位开头时才可用。否则,用它设置
'window' 选项。
<Home> 和 <xHome> 过去可以分别映射。这样做的缺点是所有映射 (加上修饰符) 不得不
都重复一遍,因为你不能确信键盘会产生哪个值。现在所有的 <xHome> 在内部都被翻译
为 <Home>,键码和映射都是。同样的改动也适用于 <xEnd>、<xF1> 等键。
":put" 现在把光标放在插入的末行。
如果 .gvimrc 存在,关闭 'compatible',就像 ".vimrc" 文件存在时一样。
用 "vlllU" 或类似的命令使字符串大写时,德语 sharp s 被替换为 "SS"。因为兼容性
问题,"~" 不这么做,这也是因为 "SS" 不能被改回 sharp s。
"gd" 过去在函数里找到变量的第一次出现,而这可以是没有类型的函数参数。现在只会
去找包含类型的位置。
函数里的后继行过去不参加计算,错误信息的行号是逻辑行而不是源代码里的行。这使得
定位错误十分困难。现在包含函数开始处起算的源代码行号。这也意味着 ":breakadd
func" 里的行号含义有了变化。
用 |:command| 定义用户命令时,过去特殊项目可以是缩写。这导致不可预测的行为,如
<li> 会被识别为 <line1>。现在这些项目不再允许缩写。
执行 FileChangedRO 自动命令时,不再允许切换到另一个缓冲区或者编辑另一个文件。
这是为了防止崩溃 (激活事件所在的代码埋藏得很深,那里我们不期待改变缓冲区)。但
重新载入缓冲区仍然允许。
|more-prompt| 和 |hit-enter-prompt| 提示上,如果置位 'more' 选项,现在可以使用
'k'、'u'、'g' 和 'b' 键来往回滚动到以前的消息。它们不再用作预输入。
==============================================================================
新 特 性 *new-7*
Vim 脚本增强 *new-vim-script*
------------
Vim 脚本加入以下类型:
|List| 项目的有序列表
|Dictionary| 项目的关联数组
|Funcref| 指向函数的引用
加入许多函数和命令以支持这些新类型。
用 |string()| 函数可以得到变量的字符串表示形式。这包括数值、字符串和它们的复合
形式。用 |eval()| 又可把字符串转换变量值。
|:let| 命令现在可用 "+=","-=" 和 ".="。 >
:let var += expr " 相当于 :let var = var + expr
:let var -= expr " 相当于 :let var = var - expr
:let var .= string " 相当于 :let var = var . string
|:profile| 命令,你可以确定哪个函数或脚本最耗时。
Python 接口 vim.eval() 也能处理字典和列表。|python-eval| (G. Sumner Hayes)
加入 |getscript| 插件,提供从 www.vim.org 自动更新脚本的便捷方法。
(Charles Campbell)
加入 |vimball| 插件,提供发布包含一组文件 (插件文件、autoload 脚本、文档) 的插
件的便捷方法。(Charles Campbell)
拼写检查 *new-spell*
--------
Vim 已经集成了拼写检查。本来有一些脚本的实现,但都较慢和/或需要外部程序。
'spell' 选项切换拼写检查的开关。
'spelllang' 选项指定能接受的语言。
'spellfile' 选项指定加入新词的文件名。
'spellsuggest' 选项指定提供建议的方法。
|]s| |[s| 命令移动到下一个或前一个错误。
|zg| |zw| 命令加入好词和坏词。
|z=| 命令改正单词。
|:mkspell| 命令从单词列表生成 Vim 的拼写文件。
加入 "undercurl" 高亮属性,GUI 里可以清楚地指出拼写错误 (基于 Marcin Dalecki
的补丁)。
"guisp" 颜色指定和前景背景不同的第三种颜色。
可用高亮属性的数目从大约 220 个增加到超过 30000 个。这使拼写的属性和语法高亮的
属性可以进行合并。也可用于语法高亮和标注可视区域。
详情可见: |spell|。
全能补全 *new-omni-completion*
----------
本来可以叫 "intellisense" 的,但它已经是注册商标了。这是一种智能的补全形式,它
检视光标前面的文本,然后寻找后面可以跟什么内容。它可以用来提供结构和类的成员,
系统函数,等等。
(译者注: 原文为 omni completion,但 omni 具体何义并无解释。暂按其字面意思直译
"全能"。)
插入模式下用 CTRL-X CTRL-O 开始全能补全。|i_CTRL-X_CTRL-O|
文件类型插件设置 'omnifunc' 选项来定义进行补全的函数。
目前支持的语言:
C |ft-c-omni|
(X)HTML,带有 CSS |ft-html-omni|
JavaScript |ft-javascript-omni|
PHP |ft-php-omni|
Python
Ruby |ft-ruby-omni|
SQL |ft-sql-omni|
XML |ft-xml-omni|
任何支持语法高亮的语言 |ft-syntax-omni|
你可以加入自己的全能补全脚本。
如果 'completeopt' 选项包含 "menu",使用 (相当原始的) 弹出菜单显示插入模式的补
全匹配。
MzScheme 接口 *new-MzScheme*
-------------
支持 MzScheme 解释器。|MzScheme|
|:mzscheme| 命令执行 MzScheme 命令。
|:mzfile| 命令执行 MzScheme 脚本文件。
这需要 Vim 编译时加入 |+mzscheme| 特性。
打印多字节文本 *new-print-multi-byte*
--------------
|:hardcopy| 命令现在支持多字节字符的 PostScript 打印。
为此可使用 'printmbcharset' 'printmbfont' 选项。
另见 |postscript-cjk-printing|。(Mike Williams)
标签页 *new-tab-pages*
-----
标签页 (tab page) 是包含一或多个窗口并在顶部贴有标签 (tab) 的页面 (page)。点击
标签可以快速在标签页间切换。键盘则可用 |gt| (转到标签页,Goto Tab) 命令。这是
一个需要使用很多窗口工作的便捷方式。
要在启动 Vim 时为每个文件参数打开一个单独的标签页,使用 |-p| 参数。
'tabpagemax' 设置可打开的最大标签页数。
标签页标签所在的行可以使用高亮的普通文本,也可以使用 GUI 的机制。GUI 标签看起
来更舒服,但只有少数系统支持。用 'tabline'、'guitablabel' 'guitabtooltip'
可以定制标签页行,而它显示与否则由 'showtabline' 控制。至于是否使用 GUI 标签由
'guioptions' "e" 标志位决定。
|:tab| 命令修饰符,多数打开新窗口的命令会用新标签页代替。
|--remote-tab| 参数使已运行的 Vim 服务器用新标签页编辑文件。
"t:" 开始的变量局部于标签页。
详情见: |tabpage|
多数 GUI 部分由 Yegappan Lakshmanan 实现。
撤销分支 *new-undo-branches*
--------
以前只有单线的撤销-重做。如果撤销一系列改变后进行了一项新改变,所有撤销的改变
就全丢失了。这可能会不小心导致大量工作的丢失。
为此情形,Vim 现在实现了撤销分支机制,使你可以回到任何改变之后的文本,即使曾经
撤销过也没问题。唯一的例外是你到达了 'undolevels' 的限制,这时需要释放撤销信息
以减少内存用量。
要能在撤销分支间游历,按顺序给每个改变编号。命令 |g-| |:earlier| 在时间上往
后退到旧的改变上。而命令 |g+| |:later| 在时间上往前进到新的改变上。
每个改变同时记录时间。":earlier 10m" 回到大约十分钟前的文本。
|:undolist| 命令了解存在的撤销分支的大概情况。|:undo| 命令现在接受参数以直
接跳转到该列表的任意位置。用 |changenr()| 函数得到改变号。
现在还没有图形化的改变树显示,导航机制可能不甚简明。
扩展的 Unicode 支持 *new-more-unicode*
-------------------
以前只能显示两个组合用字符。现在限制最高提高到 6 个。用 'maxcombine' 选项可以
设置这个限制。缺省值仍然是 2 个。
|ga| 现在显示所有的组合用字符,而不只是前面两个。
以前只支持 16 Unicode 字符的显示,现在可用完整的 32 位字符集。除非编译时手
动关闭这项功能以减少一些内存使用。
模式匹配现在可以搜索单个合成用字符。|patterns-composing|
|8g8| 命令搜索非法的 UTF-8 字节序列。
更多高亮 *new-more-highlighting*
--------
高亮匹配的括号:
在文本上移动时光标如果在括号上,同时高亮匹配的另一个括号。这使用了新的
|CursorMoved| 自动命令事件。
这意味着每次移动光标都会执行一些命令。如果对你来说速度减慢太多,可以关闭: >
:NoMatchParen
|matchparen| 提供更多信息。
该插件使用 |:match| 命令。现在该命令同时支持三个匹配模式。插件使用的是第三个。
第一个给用户使用,第二个可以用于其它插件。
高亮光标行和列:
加入 'cursorline' 'cursorcolumn' 选项。它们高亮光标所在的屏幕行和屏幕列。这
阳方便定位光标位置。'cursorcolumn' 也可用于对齐文本。它们可能会使屏幕刷新慢很
多。它们使用 CursorColumn CursorLine 高亮,你可以修改使用的颜色。
|hl-CursorColumn| |hl-CursorLine|
可用高亮属性的数目从大约 220 个增加到超过 30000 个。这使拼写的属性和语法高亮的
属性可以进行合并。也可用于语法高亮,标注可视区域,CursorColumn 等等。
翻译的手册页 *new-manpage-trans*
------------
现在 Vim 有了若干其它语言的手册页和相关程序。
法语 - David Blanchet 翻译
意大利语 - Antonio Colombo 翻译
俄语 - Vassily Ragosin 翻译
波兰语 - Mikolaj Machowski 翻译
Unix Makefile .../man/it/man1/,.../man/it.ISO8859-1/man1/
.../man/it.UTF-8/man1/ 安装意大利语的手册页。看来没有关于 "it" 目录使用什么编
码的公认标准。作为我们的最佳猜测,目前使用的是 8 位编码文件。
其它语言也被安装在类似的位置。
Vim configure 时如果使用 "--disable-nls",不自动安装翻译页。但仍然可用
"make install-languages install-tool-languages" 完成这项工作。
内部 grep *new-vimgrep*
---------
":vimgrep" 命令可以在一组文件里搜索模式。和 ":grep" 命令类似,但它不需要外
部程序。除了移植性更好之外,它还能处理不同的文件编码并使用多行模式。它也能用来
在压缩和远程文件上进行搜索。|:vimgrep|。
如果想在脚本里使用搜索的结果,用 |getqflist()| 函数。
grep 多个目录下的文件,可用 "**" 模式。它会扩展为任意深度的目录。任何需要扩
展文件名的地方都可以用 "**",包括 |:next| |:args|。
消息往回滚动 *new-scroll-back*
------------
显示消息并停在 |more-prompt| |hit-enter-prompt| 时,用 'k'、'g'、'u' 'b'
键可以往回滚动到以前的消息。这对 ":syntax"":autocommand" ":highlight"
输出阅读特别有用。使用通用的实现所以支持所有的命令,同时也保持高亮。只有
'more' 选项置位时才能使用。以前,只有 ":clist" 实现了部分这项功能。
如果你在 |hit-enter-prompt| 时按了 <Enter>,用 |g<| 命令可以查看最后一个消息
页。这时你可以继续往回滚动。
光标超越行尾 *new-onemore*
------------
如果 'virtualedit' 选项包含 "onemore",光标可以移动到刚刚跨越行尾的位置。就像
它在换行符上一样。
这时有些命令的行为更加一致。以前,在空行上的光标总是跨越行尾。但这和 Vi 兼容差
得很远,而且也可能会影响一些插件或 Vim 脚本。小心使用!
Mattias Flodin 提供此补丁。
POSIX 兼容性 *new-posix*
------------
使用 POSIX 测试包来验证 POSIX 的兼容性。修正了不少问题,使 Vim POSIX 更兼
容。一些改变和传统的 Vi 或期待的行为有冲突。设置 $VIM_POSIX 环境变量得到 POSIX
兼容行为。见 |posix|。
为了 Vi POSIX 的兼容性而修正的项目:
- 用计数重复 "R" 只覆盖文本一次;'cpoptions' 加入 'X' 标志位 |cpo-X|
- 移动到不存在行的垂直移动命令失败;'cpoptions' 加入 '-' 标志位 |cpo--|
- preserve 保护文件时并执行 ":q!",文件可以恢复;'cpoptions' 加入 '&' 标志
|cpo-&|
- 部分实现了 'window' 选项。指定只有一个窗口时 CTRL-F CTRL-B 滚动的幅度。
现在接受 "-w {number}" 参数。"-w {scriptout}" 里的 {scriptout} 必须不以数位
开始。
- 接受 "-c{command}" 参数,"-c" {command} 之间没有空格。
- ":w!" 写入文件时不复位 'readonly',如果 'cpoptions' 里包含 'Z' 的话。
- 接受 ":list"":print" ":number" 'l' '#' 标志位。
- 'cpoptions' 加入 '.' 标志位: 如果缓冲区被修改,":cd" 失败。
- Ex 模式里,空缓冲区使用 ":read file" 不在新行上下保留空行。
- ":global" 命令删除换行符前面的反斜杠。
- ":append"":insert" ":change" ":global" 一起使用时,从命令中获取插入
的行。可以用反斜杠-换行符来分隔行。
- 可用 ":global /pat/ visual" 在每个匹配行上执行普通模式命令。"Q" 可以继续并转
到下一行。
- 部分实现 |:open| 命令。它退出 Ex 模式,但重画整个屏幕,而不是像 open 模式应
该做的那样,重画一行。
- 支持使用管道读入外部程序的输出和把输入写到外部程序。加入 'shelltemp' 选项和
has("filterpipe")。
- Ex 安静模式里显示 ":set" 的命令输出。
- 如果以前没用过寄存器,":@@" ":**" 报错。
- 搜索模式 "[]-`]" 匹配 ']'、'^'、'_' '`'。
- ":insert" 的自动缩进使用插入位置下方的行。
- ":change" 的自动缩进使用第一个改变的行。
- Ex 命令行的编辑不用加工 (cooked) 模式,因为这样不能处理 CTRL-D CTRL-T。
- Ex 模式里 "1,3" 显示三行,"%" 显示所有行。
- Ex 模式里 "undo" 会撤销所有从启动 Ex 模式时开始的改变。
- 实现 'prompt' 选项。
调试器支持 *new-debug-support*
----------
加入 'balloonexpr' 选项。这是实现气泡功能的通用机制。用它显示鼠标指针所在单词
的相关信息。
远程文件探索器 *new-netrw-explore*
--------------
netrw 插件现在支持使用 "scp://" 的目录浏览。也可以删除和换名文件。
为了避免大量重复代码,以前的文件探索器插件现在已经和 netrw 插件集成。这意味着
本地和远程的文件浏览现在使用相同的方式。
":browse edit" ":browse split" GUI 对话框不可用而 netrw 插件可用时,使用
该插件。
Charles Campbell 维护 netrw 插件。
定义操作符 *new-define-operator*
----------
以前你不能定义自己的操作符: {motion} 动作后面可以跟随的命令。Vim 7 引入了
'operatorfunc' 选项和 |g@| 操作符。这样就可以定义和操作符行为相同的映射。实际
工作由函数完成,而 |g@| 操作符调用该函数。
|:map-operator| 给出解释和一个示例。
映射到表达式 *new-map-expression*
------------
映射的 {rhs} 参数可以是表达式。这意味着产生的字符可以取决于上下文。例如: >
:inoremap <expr> . InsertDot()
这里句号并映射到任何 InsertDot() 返回的内容。
这也可用于缩写。详情见 |:map-<expr>|。
可视和选择模式映射 *new-map-select*
------------------
以前的可视模式映射同时适用于可视和选择模式。使用一点技巧可以使选择模式的映射和
可视模式下的行为相同。
现在加入了分别定义可视和选择模式映射的命令: |:xmap| |:smap|,以及配套的
"noremap" "unmap" 命令。
这个改动同样适用于菜单: |:xmenu|、|:smenu| 等等。
位置列表 *new-location-list*
--------
加入了每个窗口分别拥有的 quickfix 列表 (称为位置列表) 的支持。位置列表显示在位
置窗口里 (和 quickfix 窗口类似)。你可以打开多于一个位置列表窗口。也加入了一组
quickfix 命令类似的命令,用来浏览位置列表。(Yegappan Lakshmanan)
若干新项目 *new-items-7*
----------
普通模式命令: ~
a"、a' 和 a` 选择引号括起的字符串的新文本对象。|a'|
i"、i' i` (Taro Muraoka)
CTRL-W <Enter> quickfix 窗口里: 打开新窗口,显示光标所在错误的位置。
|at| |it| 文本对象选择 HTML XML 标签之间的文本块。
<A-LeftMouse> ('mousemodel' "popup" "popup-setpos")
<A-RightMouse> ('mousemodel' "extend")
进行面向列块的选择。|<A-LeftMouse>|
gF 开始编辑光标所在的文件名并跳转到文件名后跟随的行号。
(Yegappan Lakshmanan)
CTRL-W F 在新窗口里开始编辑光标所在的文件名并跳转到文件名后跟随
的行号。(Yegappan Lakshmanan)
插入模式命令: ~
CTRL-\ CTRL-O 执行普通模式命令。类似于 CTRL-O,但不移动光标。
|i_CTRL-\_CTRL-O|
选项: ~
'balloonexpr' 用于计算气泡显示文本的表达式
'completefunc' 用户指定的插入模式补全使用的函数名。插入模式下用
CTRL-X CTRL-U 可以进行任何形式的补全。(Taro Muraoka)
'completeopt' 插入模式补全可以使用弹出菜单。
'cursorcolumn' 高亮光标列
'cursorline' 高亮光标行
'formatexpr' |gq| 或插入模式下文本超过 'textwidth' 以后的文本排版使
用的表达式。
'formatlistpat' 排版时识别编号列表的模式。(Hugo Haas 的建议)
'fsync' 写入文件时是否调用 fsync()。(Ciaran McCreesh)
'guitablabel' GUI 标签页标签用于显示文本的表达式
'guitabtooltip' GUI 标签页标签用于显示工具提示文本的表达式
'macatsui' Mac: ATSUI 文本显示函数
'maxcombine' 显示的组合用字符的最大数目
'maxmempattern' 模式匹配使用的最大内存量
'mkspellmem' |:mkspell| 使用内存的相关参数
'mzquantum' 毫秒计的调度 MzScheme 线程的时间间隔。
'numberwidth' 'number' 'relativenumber' 选项使用空间的最小宽度。
(Emmanuel Renieris)
'omnifunc' 全能补全使用的函数名。
'operatorfunc' |g@| 操作符使用的函数
'printmbcharset' :hardcopy 使用的 CJK 字符集
'printmbfont' :hardcopy 产生的 CJK 输出使用的字体名
'pumheight' 弹出菜单显示的最大项目数
'quoteescape' 字符串内转义引号的字符。用于 a"、a' 和 a` 文本对象。
|a'|
'shelltemp' 外壳命令使用临时文件还是管道
'showtabline' 是否显示标签页行
'spell' 打开/关闭拼写检查
'spellcapcheck' 定位句子尾部的模式
'spellfile' 加入好词和坏词所用的文件
'spelllang' 拼写检查所用的语言
'spellsuggest' 拼写建议的方法
'synmaxcol' 检查语法项目的最大列数;避免长行的重画过慢
'tabline' 标签页行用于显示文本的表达式
'tabpagemax' |-p| 打开的最大标签页数
'verbosefile' 记录消息到文件。
'wildoptions' "tagfile" 值使 CTRL-D 命令行补全可以列出匹配标签所在的
文件名。(基于 Yegappan Lakshmanan 的意见)
'winfixwidth' 固定宽度的窗口,类似于 'winfixheight'
Ex 命令: ~
Win32: ":winpos" 命令现在支持控制台版本。(Vipin Aravind)
|:startreplace| 开始替换模式。(Charles Campbell)
|:startgreplace| 开始虚拟替换模式。
|:0file| 删除缓冲区的名字。(Charles Campbell)
|:diffoff| 关闭当前窗口或所有窗口的 diff 模式。
|:delmarks| 删除位置标记。
|:exusage| Ex 命令的帮助 (Nvi 命令)。
|:viusage| Vi 命令的帮助 (Nvi 命令)。
|:sort| 给缓冲区的行排序,不依赖外部命令。(部分由 Bryce Wagner
提供)
|:vimgrep| 内部 grep 命令,在多个文件中搜索模式。
|:vimgrepadd| 类似于 |:vimgrep|,但不建立新列表。
|:caddfile| 加入错误信息到已存在的 quickfix 列表
(Yegappan Lakshmanan)。
|:cbuffer| 读入缓冲区的错误行。(部分由 Yegappan Lakshmanan 提供)
|:cgetbuffer| 基于缓冲区创建 quickfix 列表,但不跳到第一个错误。
|:caddbuffer| 从当前缓冲区加入错误到 quickfix 列表。
|:cexpr| 从 Vim 表达式读入错误信息 (Yegappan Lakshmanan)。
|:caddexpr| 从 Vim 表达式加入错误信息到已存在的 quickfix 列表
(Yegappan Lakshmanan)。
|:cgetexpr| 基于 Vim 表达式创建 quickfix 列表,但不跳到第一个错误
(Yegappan Lakshmanan)。
|:lfile| 类似于 |:cfile| 但使用位置列表。
|:lgetfile| 类似于 |:cgetfile| 但使用位置列表。
|:laddfile| 类似于 |:caddfile| 但使用位置列表。
|:lbuffer| 类似于 |:cbuffer| 但使用位置列表。
|:lgetbuffer| 类似于 |:cgetbuffer| 但使用位置列表。
|:laddbuffer| 类似于 |:caddbuffer| 但使用位置列表。
|:lexpr| 类似于 |:cexpr| 但使用位置列表。
|:lgetexpr| 类似于 |:cgetexpr| 但使用位置列表。
|:laddexpr| 类似于 |:caddexpr| 但使用位置列表。
|:ll| 类似于 |:cc| 但使用位置列表。
|:llist| 类似于 |:clist| 但使用位置列表。
|:lnext| 类似于 |:cnext| 但使用位置列表。
|:lprevious| 类似于 |:cprevious| 但使用位置列表。
|:lNext| 类似于 |:cNext| 但使用位置列表。
|:lfirst| 类似于 |:cfirst| 但使用位置列表。
|:lrewind| 类似于 |:crewind| 但使用位置列表。
|:llast| 类似于 |:clast| 但使用位置列表。
|:lnfile| 类似于 |:cnfile| 但使用位置列表。
|:lpfile| 类似于 |:cpfile| 但使用位置列表。
|:lNfile| 类似于 |:cNfile| 但使用位置列表。
|:lolder| 类似于 |:colder| 但使用位置列表。
|:lnewer| 类似于 |:cnewer| 但使用位置列表。
|:lwindow| 类似于 |:cwindow| 但使用位置列表。
|:lopen| 类似于 |:copen| 但使用位置列表。
|:lclose| 类似于 |:cclose| 但使用位置列表。
|:lmake| 类似于 |:make| 但使用位置列表。
|:lgrep| 类似于 |:grep| 但使用位置列表。
|:lgrepadd| 类似于 |:grepadd| 但使用位置列表。
|:lvimgrep| 类似于 |:vimgrep| 但使用位置列表。
|:lvimgrepadd| 类似于 |:vimgrepadd| 但使用位置列表。
|:lhelpgrep| 类似于 |:helpgrep| 但使用位置列表。
|:lcscope| 类似于 |:cscope| 但使用位置列表。
|:ltag| 跳转到标签,并把匹配的标签加入位置列表。
|:undojoin| 将下一个改变和上一个撤销块合并。
|:undolist| 列出撤销树的叶结点。
|:earlier| 在时间上退到以前的文本改变。
|:later| 在时间上进到以后的文本改变。
|:for| 在 |List| 上循环。
|:endfor|
|:lockvar| 给变量加锁,防止被改变。
|:unlockvar| 给加锁的变量解锁。
|:mkspell| 建立 Vim 拼写文件。
|:spellgood| 增加单词到好词列表。
|:spellwrong| 增加单词到坏词列表。
|:spelldump| 转储好词列表。
|:spellinfo| 显示关于使用的拼写文件的信息。
|:spellrepall| 为整个缓冲区重复某个拼写校正。
|:spellundo| 从好词和坏词列表里删除单词。
|:mzscheme| 执行 MzScheme 命令。
|:mzfile| 执行 MzScheme 脚本文件。
|:nbkey| 把键传递给 NetBeans 进行处理。
|:profile| 用于 Vim 脚本刨视的命令。
|:profdel| 为指定项目停止刨视。
|:smap| 选择模式映射。
|:smapclear|
|:snoremap|
|:sunmap|
|:xmap| 可视模式映射,不用于选择模式。
|:xmapclear|
|:xnoremap|
|:xunmap|
|:smenu| 选择模式菜单。
|:snoremenu|
|:sunmenu|
|:xmenu| 可视模式菜单,不用于选择模式。
|:xnoremenu|
|:xunmenu|
|:tabclose| 关闭当前标签页。
|:tabdo| 为每个标签页执行命令。
|:tabedit| 在新标签页里编辑文件。
|:tabnew| 打开新标签页。
|:tabfind| 搜索文件并在新标签页里打开。
|:tabnext| 转到下一个标签页。
|:tabprevious| 转到前一个标签页。
|:tabNext| 转到前一个标签页。
|:tabfirst| 转到第一个标签页。
|:tabrewind| 转到第一个标签页。
|:tablast| 转到最后一个标签页。
|:tabmove| 把当前标签页移到别处。
|:tabonly| 关闭所有其它标签页。
|:tabs| 列出标签页和它们包含的窗口。
Ex 命令修饰符: ~
|:keepalt| 不改变轮换文件。
|:noautocmd| 不激活自动命令。
|:sandbox| 在沙盘里执行命令。
|:tab| 打开新窗口时,同时建立新标签页。
Ex 命令参数: ~
|++bad| 指定出现不能转换的字符或者非法字节时的行为。(代码示例
由 Yasuhiro Matsumoto 提供)
另外,如果出现转换错误或者发现非法字节,错误信息里包含
行号。
新出现和经过扩充的函数: ~
|add()| 在列表后附加项目
|append()| 附加行列表到缓冲区
|argv()| 没有参数返回整个参数列表
|browsedir()| 选择目录的对话框
|bufnr()| 接受额外参数: 建立缓冲区
|byteidx()| 字符的位置 (Ilya Sher)
|call()| 调用函数,参数以列表出现
|changenr()| 当前改变号
|complete()| 设定插入模式补全的匹配
|complete_add()| 加入用于 'completefunc' 的匹配
|complete_check()| 检察键击,用于 'completefunc'
|copy()| 建立列表或字典的浅备份
|count()| 计算列表或字典里某值的出现次数
|cursor()| 也接受 'virtualedit' 的偏移,而第一个参数可以是列表:
[lnum, col, off]
|deepcopy()| 建立列表或字典的完整备份
|diff_filler()| 得到行 {lnum} 上方填充行的数目。
|diff_hlID()| 得到 diff 模式高亮标识号
|empty()| 检查列表或字典是否为空
|eval()| 计算 {string} 并返回其结果
|extend()| 为列表/字典附加另一个列表/字典
|feedkeys()| 把若干字符放入预输入缓冲区
|filter()| 删除列表/字典的选定项目
|finddir()| 寻找 'path' 里的目录
|findfile()| 寻找 'path' 里的文件 (Johannes Zellner)
|foldtextresult()| 行 "lnum" 所在关闭折叠的显示用文本
|function()| 得到函数名对应的函数引用
|garbagecollect()| 清理只含循环引用的 |Lists| 和 |Dictionaries|
|get()| 得到列表/字典的项目
|getbufline()| 得到指定缓冲区的行列表 (Yegappan Lakshmanan)
|getcmdtype()| 得到当前命令行的类型 (Yegappan Lakshmanan)
|getfontname()| 得到当前使用的字体名
|getfperm()| 得到文件权限字符串 (Nikolai Weibull)
|getftype()| 得到文件类型 (Nikolai Weibull)
|getline()| 带第二个参数: 得到缓冲区行列表
|getloclist()| 位置列表项目的列表 (Yegappan Lakshmanan)
|getpos()| 得到光标、位置标记等的位置的列表
|getqflist()| quickfix 错误的列表 (Yegappan Lakshmanan)
|getreg()| 取得寄存器内容
|gettabwinvar()| 取得指定标签页的窗口变量。
|has_key()| 检查某键是否出现在字典里
|haslocaldir()| 检查当前窗口是否使用过 |:lcd|
|hasmapto()| 检查到字符串的映射是否存在
|index()| 列表中某值的索引
|inputlist()| 提示用户从列表选择一项
|insert()| 在列表某处插入一个项目
|islocked()| 检查变量是否加锁
|items()| 得到字典的键-值组对的列表
|join()| 合并列表项目成为字符串
|keys()| 得到字典的键列表
|len()| 列表或字典项目的总数
|map()| 改变每个列表或字典项目
|maparg()| 额外参数: 使用缩写
|mapcheck()| 额外参数: 使用缩写
|match()| 额外参数: 计数
|matcharg()| 返回 |:match| 命令的参数
|matchend()| 额外参数: 计数
|matchlist()| 字符串对模式的匹配和子匹配列表
|matchstr()| 额外参数: 计数
|max()| 列表或字典项目的最大值
|min()| 列表或字典项目的最小值
|mkdir()| 建立目录
|pathshorten()| 把目录名简化到一个字符
|printf()| 格式化文本
|pumvisible()| 检查弹出菜单是否显示
|range()| 产生数字序列的列表
|readfile()| 读入文件到一个行列表
|reltime()| 得到时间值,可能是相对的
|reltimestr()| 把时间值转换为字符串
|remove()| 删除列表或字典里一或多个项目
|repeat()| 重复 "expr" "count" 次 (Christophe Poucet)
|reverse()| 反转列表项目的顺序
|search()| 额外参数:
|searchdecl()| 查找变量的声明
|searchpair()| 额外参数: 停止搜索的行
|searchpairpos()| 返回匹配位置的列表
|searchpos()| 返回匹配位置的列表
|setloclist()| 修改位置列表 (Yegappan Lakshmanan)
|setpos()| 设置光标或位置标记到某位置
|setqflist()| 修改 quickfix 列表 (Yegappan Lakshmanan)
|settabwinvar()| 设置指定标签页的窗口变量
|sort()| 给列表排序
|soundfold()| 返回 "发音相似" 的单词等价形式
|spellbadword()| 返回错误拼写的单词
|spellsuggest()| 返回建议的拼写校正列表
|split()| 分割字符串成为列表
|str2nr()| 把字符串转换为 8、10、16 进制的数值
|stridx()| 额外参数: 开始位置
|strridx()| 额外参数: 开始位置
|string()| 列表或字典的字符串表示形式
|system()| 额外参数: 用外壳命令过滤 {input}
|tabpagebuflist()| 得到标签页里的缓冲区列表
|tabpagenr()| 得到当前或最后一个标签页号
|tabpagewinnr()| 得到标签页里的窗口号
|tagfiles()| 标签文件名的列表
|taglist()| 得到匹配标签的列表 (Yegappan Lakshmanan)
|tr()| 翻译字符 (Ron Aaron)
|values()| 得到列表或字典的值列表
|winnr()| 接受参数: 使用哪个窗口
|winrestview()| 恢复当前窗口的视图
|winsaveview()| 保存当前窗口的视图
|writefile()| 把一个行列表写到文件里
用户定义的函数现在可以从 'runtimepath' 里的 "autoload" 目录自动载入。见
|autoload-functions|。
新 Vim 变量: ~
|v:insertmode| 用于 |InsertEnter| 和 |InsertChange| 自动命令
|v:val| |map()| 或 |filter()| 函数的项目值
|v:key| |map()| 或 |filter()| 函数的项目键
|v:profiling| ":profile start" 命令之后非零
|v:fcs_reason| 激活 |FileChangedShell| 的原因
|v:fcs_choice| |FileChangedShell| 之后应该做什么
|v:beval_bufnr| 'balloonexpr' 的缓冲区号
|v:beval_winnr| 'balloonexpr' 的窗口号
|v:beval_lnum| 'balloonexpr' 的行号
|v:beval_col| 'balloonexpr' 的列号
|v:beval_text| 'balloonexpr' 鼠标指针所在的文本
|v:scrollstart| 屏幕上滚的原因
|v:swapname| |SwapExists| 事件所用的交换文件名
|v:swapchoice| 交换文件存在时应该做什么
|v:swapcommand| 处理 |SwapExists| 后应该执行的命令
|v:char| 执行 'formatexpr' 时的参数
新自动命令事件: ~
|ColorScheme| 载入色彩方案后
|CursorHoldI| 在插入模式下,用户有一段时间没有按键
|CursorMoved| 普通模式下移动了光标
|CursorMovedI| 插入模式下移动了光标
|FileChangedShellPost| 对在 Vim 外部改变的文件的处理完成后
|InsertEnter| 开始插入或替换模式时
|InsertChange| 出入插入或替换模式时
|InsertLeave| 离开插入或替换模式时
|MenuPopup| 刚要显示弹出菜单前
|QuickFixCmdPre| 执行 :make、:grep 等命令前 (Ciaran McCreesh)
|QuickFixCmdPost| 执行 :make、:grep 等命令后 (Ciaran McCreesh)
|SessionLoadPost| 载入会话文件后。(Yegappan Lakshmanan)
|ShellCmdPost| 执行外壳命令后
|ShellFilterPost| 用外壳命令执行完过滤后
|SourcePre| 执行 Vim 脚本之前
|SpellFileMissing| 使用不存在的拼写文件
|SwapExists| 编辑文件时检测到交换文件已经存在
|TabEnter| 刚进入标签页后
|TabLeave| 刚离开标签页前
|VimResized| Vim 窗口大小改变后 (Yakov Lerner)
新高亮组: ~
Pmenu 弹出菜单: 普通项目 |hl-Pmenu|
PmenuSel 弹出菜单: 选中项目 |hl-PmenuSel|
PmenuThumb 弹出菜单: 滚动条 |hl-PmenuThumb|
PmenuSbar 弹出菜单: 滚动条的拇指 |hl-PmenuSbar|
TabLine 标签页行,非活动标签页标签 |hl-TabLine|
TabLineSel 标签页行,活动标签页标签 |hl-TabLineSel|
TabLineFill 标签页行,没有标签的地方 |hl-TabLineFill|
SpellBad 拼写错误的单词 |hl-SpellBad|
SpellCap 大小写错误的单词 |hl-SpellCap|
SpellRare 偏僻词 |hl-SpellRare|
SpellLocal 只存在于别的区域的单词 |hl-SpellLocal|
CursorColumn 'cursorcolumn' |hl-CursorColumn|
CursorLine 'cursorline' |hl-CursorLine|
MatchParen 匹配的括号 |pi_paren.txt| |hl-MatchParen|
搜索模式里的新项目: ~
|/\%d| \%d123 匹配十进制指定的字符
|/\]| [\d123] 同上,用于字符类
|/\%o| \%o103 匹配八进制指定的字符
|/\]| [\o1o3] 同上,用于字符类
|/\%x| \%x1a 匹配两位十六进制指定的字符
|/\]| [\x1a] 同上,用于字符类
|/\%u| \%u12ab 匹配四位十六进制指定的字符
|/\]| [\u12ab] 同上,用于字符类
|/\%U| \%U1234abcd 匹配八位十六进制指定的字符
|/\]| [\U1234abcd] 同上,用于字符类
(以上部分由 Ciaran McCreesh 提供)
|/[[=| [[=a=]] 等价类 (只用于 latin1 字符)
|/[[.| [[.a.]] 排序规则元素 (只能使用单个字符)
|/\%'m| \%'m 在位置标记 m 处匹配
|/\%<'m| \%<'m 在位置标记 m 之前匹配
|/\%>'m| \%>'m 在位置标记 m 之后匹配
|/\%V| \%V 在可视区域内匹配
如有空匹配,嵌套的 |/multi| 项目不再是错误。
现在可用 \{0},匹配前导的匹配原零次。没有用处,只为兼容性而设置。
新语法/缩进/文件类型插件文件: ~
所有缩进设置都从文件类型插件移到了缩进文件。
实现 b:undo_indent 在 'filetype' 设为其它值时撤销缩进设置。
a2ps 语法和文件类型插件文件。(Nikolai Weibull)
ABAB/4 语法文件。(Marius van Wyk)
alsaconf 文件类型插件文件。(Nikolai Weibull)
AppendMatchGroup 文件类型插件文件。(Dave Silvia)
arch 文件类型插件文件。(Nikolai Weibull)
asterisk 和 asteriskvm 语法文件。(Tilghman Lesher)
BDF 文件类型插件文件。(Nikolai Weibull)
BibTeX 缩进文件。(Dorai Sitaram)
BibTeX Bibliography Style 语法文件。(Tim Pope)
BTM 文件类型插件文件。(Bram Moolenaar)
calendar 文件类型插件文件。(Nikolai Weibull)
Changelog 缩进文件。(Nikolai Weibull)
ChordPro 语法文件。(Niels Bo Andersen)
Cmake 缩进和语法文件。(Andy Cedilnik)
conf 文件类型插件文件。(Nikolai Weibull)
context 语法和文件类型插件文件。(Nikolai Weibull)
CRM114 文件类型插件文件。(Nikolai Weibull)
cvs RC 文件类型插件文件。(Nikolai Weibull)
D 缩进文件。(Jason Mills)
Debian Sources.list 语法文件。(Matthijs Mohlmann)
dictconf 和 dictdconf 语法、缩进和文件类型插件文件。(Nikolai Weibull)
diff 文件类型插件文件。(Bram Moolenaar)
dircolors 文件类型插件文件。(Nikolai Weibull)
django 和 htmldjango 语法文件。(Dave Hodder)
doxygen 语法文件。(Michael Geddes)
elinks 文件类型插件文件。(Nikolai Weibull)
eterm 文件类型插件文件。(Nikolai Weibull)
eviews 语法文件。(Vaidotas Zemlys)
fetchmail RC 文件类型插件文件。(Nikolai Weibull)
FlexWiki 语法和文件类型插件文件。(George Reilly)
Generic 缩进文件。(Dave Silvia)
gpg 文件类型插件文件。(Nikolai Weibull)
gretl 语法文件。(Vaidotas Zemlys)
groovy 语法文件。(Alessio Pace)
group 语法和文件类型插件文件。(Nikolai Weibull)
grub 文件类型插件文件。(Nikolai Weibull)
Haskell 文件类型插件文件。(Nikolai Weibull)
help 文件类型插件文件。(Nikolai Weibull)
indent 文件类型插件文件。(Nikolai Weibull)
Javascript 文件类型插件文件。(Bram Moolenaar)
Kconfig 文件类型插件和语法文件。(Nikolai Weibull)
ld 语法、缩进和文件类型插件文件。(Nikolai Weibull)
lftp 文件类型插件文件。(Nikolai Weibull)
libao config 文件类型插件文件。(Nikolai Weibull)
limits 语法和文件类型插件文件。(Nikolai Weibull)
Lisp 缩进文件。(Sergey Khorev)
loginaccess 和 logindefs 语法和文件类型插件文件。(Nikolai Weibull)
m4 文件类型插件文件。(Nikolai Weibull)
mailaliases 语法文件。(Nikolai Weibull)
mailcap 文件类型插件文件。(Nikolai Weibull)
manconf 语法和文件类型插件文件。(Nikolai Weibull)
matlab 文件类型插件文件。(Jake Wasserman)
Maxima 语法文件。(Robert Dodier)
MGL 语法文件。(Gero Kuhlmann)
modconf 文件类型插件文件。(Nikolai Weibull)
mplayer config 文件类型插件文件。(Nikolai Weibull)
Mrxvtrc 语法和文件类型插件文件。(Gautam Iyer)
MuPAD source 语法、缩进和文件类型插件。(Dave Silvia)
mutt RC 文件类型插件文件。(Nikolai Weibull)
nanorc 语法和文件类型插件文件。(Nikolai Weibull)
netrc 文件类型插件文件。(Nikolai Weibull)
pamconf 语法和文件类型插件文件。(Nikolai Weibull)
Pascal 缩进文件。(Neil Carter)
passwd 语法和文件类型插件文件。(Nikolai Weibull)
PHP 编译器插件。(Doug Kearns)
pinfo 文件类型插件文件。(Nikolai Weibull)
plaintex 语法和文件类型插件文件。(Nikolai Weibull,Benji Fisher)
procmail 文件类型插件文件。(Nikolai Weibull)
prolog 文件类型插件文件。(Nikolai Weibull)
protocols 语法和文件类型插件文件。(Nikolai Weibull)
quake 文件类型插件文件。(Nikolai Weibull)
racc 语法和文件类型插件文件。(Nikolai Weibull)
readline 文件类型插件文件。(Nikolai Weibull)
rhelp 语法文件。(Johannes Ranke)
rnoweb 语法文件。(Johannes Ranke)
Relax NG compact 文件类型插件文件。(Nikolai Weibull)
Scheme 缩进文件。(Sergey Khorev)
screen 文件类型插件文件。(Nikolai Weibull)
sensors 语法和文件类型插件文件。(Nikolai Weibull)
services 语法和文件类型插件文件。(Nikolai Weibull)
setserial 语法和文件类型插件文件。(Nikolai Weibull)
sieve 语法和文件类型插件文件。(Nikolai Weibull)
SiSU 语法文件。(Ralph Amissah)
Sive 语法文件。(Nikolai Weibull)
slp config、reg 和 spi 语法和文件类型插件文件。(Nikolai Weibull)
SML 缩进文件。(Saikat Guha)
SQL anywhere 语法和缩进文件。(David Fishburn)
SQL 缩进文件。
SQL-Informix 语法文件。(Dean L Hill)
SQL: 处理各种不同的变种。(David Fishburn)
sshconfig 文件类型插件文件。(Nikolai Weibull)
Stata 和 SMCL 语法文件。(Jeff Pitblado)
sudoers 文件类型插件文件。(Nikolai Weibull)
sysctl 语法和文件类型插件文件。(Nikolai Weibull)
terminfo 文件类型插件文件。(Nikolai Weibull)
trustees 语法文件。(Nima Talebi)
Vera 语法文件。(David Eggum)
udev config、permissions 和 rules 语法和文件类型插件文件。(Nikolai Weibull)
updatedb 语法和文件类型插件文件。(Nikolai Weibull)
VHDL 缩进文件。(Gerald Lai)
WSML 语法文件。(Thomas Haselwanter)
Xdefaults 文件类型插件文件。(Nikolai Weibull)
XFree86 config 文件类型插件文件。(Nikolai Weibull)
xinetd 语法、缩进和文件类型插件文件。(Nikolai Weibull)
xmodmap 文件类型插件文件。(Nikolai Weibull)
Xquery 语法文件。(Jean-Marc Vanel)
xsd (XML schema) 缩进文件。
YAML 文件类型插件文件。(Nikolai Weibull)
Zsh 文件类型插件文件。(Nikolai Weibull)
新键盘映射表: ~
僧伽罗语 (斯里兰卡) (Harshula Jayasuriya)
TSCII 编码的泰米尔语 (Yegappan Lakshmanan)
cp737 的希腊语 (Panagiotis Louridas)
波兰语-slash (HS6_06)
乌克兰语-jcuken 键盘 (Anatoli Sakhnik)
日语假名 (Edward L. Fox)
新消息翻译: ~
现在也有了 cp1251 的乌克兰语消息。
越南语消息翻译和菜单。(Phan Vinh Thinh)
其它: ~
|:read| 参数现在有了 |++edit| 参数。从而使用检测到的缓冲区的 'fileformat'、
'fileencoding' 和其它选项。同时也修正了压缩文件编辑时不设置这些选项的问题。
为 Sun Studio 10 更新 Netbeans 接口。协议号从 2.2 上到 2.3。(Gordon Prieur)
Mac: 启动时 Vim 会载入 $VIMRUNTIME/macmap.vim 脚本来定义缺省的 command 键的映
射。(多由 by Benji Fisher 提供)
Mac: 加入剪贴板选择区的类型,这样两个 Vim 之间可以共享面向列块、行和字符的选择
区。(Eckehard Berns)
也修正设置 'clipboard' 为 "unnamed" 时 "yyp" 出现的问题。
Mac: GUI 字体选择器。(Peter Cucka)
Mac: 支持多字节字符。(Da Woon Jung)
并不总能工作。如果有文本绘制的问题,可以尝试关闭 'macatsui' 选项。
Mac: 支持非 GUI 版本的 xterm 鼠标。
Mac: 和 Xcode 更好的集成。在 odoc 事件和拖动接收处理程序之后发送 (post) 伪鼠标
释放事件,以解决 Vim 载入文件后不响应的问题。修正一个 "一行之差" 的行号错误。
(Da Woon Jung)
Mac: 从 Finder 启动时改变目录为编辑文件所在的目录或用户主目录。
加入 t_SI 和 t_EI 转义序列以启动和结束插入模式。
用于设置光标形状为条状或块状。没有缺省值,因为 termcap/terminfo 不支持它们。
Motif 上有了 GUI 字体选择器。(Marcin Dalecki)
Motif 有更好的工具栏按钮。(Marcin Dalecki)
Motif 有搜索/替代对话框助记。(Marcin Dalecki)
加入 Marcin Dalecki 提供的若干 Motif 改进。现在我们自己绘制标签内容,使得字体
的处理方式可以通过 Vim 定制,也相对减少了对 X11 字体管理的依赖。
可以定义局部于缓冲区的自动命令。这意味着即使缓冲区没有名字或者没有特定的名字,
也能使用自动命令。见 |autocmd-buflocal|。(Yakov Lerner)
xterm 现在能够识别多数功能键和修饰符的组合。|xterm-modifier-keys|
如果设置 'verbose',":highlight" 的输出显示高亮项目最近在哪里设置。
如果设置 'verbose',":map"、":abbreviate"、":command"、":function" 和
":autocmd" 的输出显示它最近在哪里定义。(Yegappan Lakshmanan)
":function /pattern" 列出匹配模式的函数。
"1gd" 和 "gd" 类似,但忽略光标位置之前的 {} 块里的匹配。"1gD" 和 "gD" 也是。
'scrolljump' 可以设为负数,滚动到窗口高度的一个百分比。
加入 |v:scrollstart| 变量,帮助寻找产生 hit-enter 提示的脚本位置。
要能处理待编辑的文件已经被别的 Vim 实例编辑的情形,加入 |SwapExists| 事件。可
以使用 |v:swapname|、|v:swapchoice| 和 |v:swapcommand| 变量。用此事件可以调用
|client-server| 功能,把另一个 Vim 带到前台。
启动 Vim 时如有 "-t tag" 参数,已经有交换文件而用户选择了 "quit" 或 "abort",
退出 Vim。
撤销现在同时恢复 '< 和 '> 位置标记。"gv" 可以选择改变和撤销之前的相同区域。
编辑 "/" 或 "?" 命令的搜索模式并且置位 'incsearch' 时,可用 CTRL-L 从当前匹配
上加一个字符。CTRL-R CTRL-W 会加入一个单词,但排除已经输入的单词部分。
Ruby 接口: 加入行号方法。(Ryan Paul)
$MYVIMRC 环境变量设为第一个找到的 vimrc 文件。
$MYGVIMRC 环境变量设为第一个找到的 gvimrc 文件。
==============================================================================
改 进 *improvements-7*
":helpgrep" 在模式之后接受语言描述符: "pat@it"。
打印的帮助信息被移到独立的帮助文件。现在这部分篇幅已经不短。
执行 ":!cmd"、":r !cmd" 或 ":w !cmd" 的补全时,寻找 $PATH 里的可执行文件而不是
当前目录的普通文件。
如果使用 ":silent" 并且 Ex 命令使用反向的行范围,自动交换范围的两端而不询问用
户是否需要这么做。
模式匹配的代码从递归函数修改为迭代机制。这样避免了堆栈溢出错误。分配的内存保存
了状态,所以总是可以检测到内存溢出。允许匹配更加复杂的模式,但过程可能很长,所
以期间 Vim 看起来可能像挂起一样。
以前总在沙盘 |sandbox| 里计算一些选项,现在只有从模式行里设置选项或在安全模式
里才会这么做。应用于 'balloonexpr'、'foldexpr'、'foldtext' 和 'includeexpr'。
(Sumner Hayes)
一些命令和表达式可能包含可怕的副作用,比如编辑搜索模式时使用 CTRL-R =,而该表
达式又调用了跳到其它窗口的函数的情况。加入 |textlock| 防止这种情况的发生。
用 ":breakadd here" 和 ":breakdel here" 可以在光标位置设置或删除断点。
现在可以这样定义函数: >
:exe "func Test()\n ...\n endfunc"
教程进行了更新,使它更容易使用,也增加了一些解释更多重要命令的文本。建议由
Gabriel Zachmann 提供。
Unix: libcall() 失败时,用 dlerror() 得到错误信息并显示。(Johannes Zellner)
Mac 和 Cygwin: 编辑已有的文件时,使文件名使用和编辑文件相同的大小写。因而输入
":e os_UNIX.c" 后文件名会成为 "os_unix.c"。
'listchars' 里加入 "nbsp"。(David Blanchet)
'buftype' 选项加入 "acwrite" 值。适用于无名但引用某个文件的缓冲区,写回时会用
到 BufWriteCmd 自动命令。
Lisp 缩进和括号匹配: (Sergey Khorev)
- 正确识别方括号
- 识别 #\(、#\)、#\[ 和 #\] 为字符常数
- 识别 Lisp 行注释 (分号定界)
match()、matchend() 和 matchstr() 加入 "count" 参数。(Ilya Sher)
winnr() 接受可选的 "$" 或 "#" 参数。(Nikolai Weibull,Yegappan Lakshmanan)
search() 加入 's' 标志位: 如果光标移动,设置 ' 位置标记。(Yegappan Lakshmanan)
search() 加入 'n' 标志位: 不移动光标。(Nikolai Weibull)
search() 加入 'c' 标志位: 接受光标所在的匹配。
search() 加入 'e' 标志位: 移到匹配的尾部。(Benji Fisher)
search() 加入 'p' 标志位: 返回子模式号。(Benji Fisher)
同样适用于 searchpos()、searchpair() 和 searchpairpos()。
search() 和 searchpair() 函数包含附加参数来指定在哪里停止搜索。如果搜索无须走
得太远,这加快了搜索的速度。
gzip 插件解压失败时,给出错误消息但不删除原始文本。这有助于文件有 .gz 扩展名但
实际没有压缩的情形。(Andrew Pimlott)
使用 C、C++ 或 IDL 语法时,可以附加载入 doxygen 语法。(Michael Geddes)
支持设置 'filetype' 和 'syntax' 为 "aaa.bbb",代表 "aaa" 加上 "bbb" 的文件类型
和语法。
":registers" 命令现在正确显示多字节字符。
VMS: 使用说明提到了可以用斜杠使标志位大写。加入内建的 vt320 终端代码色彩支持。
(Zoltan Arpadffy)
'viminfo' 的 '%' 项目允许设置缓冲区数目的上限。
文件类型的识别: 如果文件看起来像外壳脚本,检查启动 tcl 解释器的 "exec" 命令。
(Alexios Zavras 建议)
支持 utf-8 和 latin9 (iso-8859-15) 的内部转换,这样就算没有 iconv 也可以使用二
合字母。
编辑无名且空白的缓冲区时如果载入会话文件,彻底删除该缓冲区。避免在缓冲区列表里
留下一个不用的缓冲区。
Win32: 如果 libintl.dll 支持 bind_textdomain_codeset(),使用此函数。
(NAKADAIRA Yukihiro)
Win32: Vim 以前不识别 NTFS 文件系统的硬链接。现在当 'backupcopy' 为 "auto" 时
会检测到。同时也修正关于链接的 "file has been changed since reading it" 虚假信
息。
如果 foldtext() 发现删除注释引导符后没有文本,使用折叠的第二行。可用于 C 风格
的 /* */ 注释,其中第一行只包含 "/*"。
两个系统上编辑相同文件时 (例如 Unix 和 MS-Windows),以前大多不会给出交换文件已
经存在的警告,因为使用的编辑文件名不同 (如 y:\dir\file 和 /home/me/dir/file)。
现在给交换文件加入标志位,指示和编辑文件放在相同的目录。因为不受使用路径的影
响,现在关于是否编辑相同文件的检查可靠得多。
Unix: 通过符号链接编辑文件时,交换文件过去使用符号链接的名字。现在使用实际文件
的名字,这样可以检测到对文件的重复编辑。(Stefano Zacchiroli 和 James Vega 的建
议)
客户-服务器通信现在支持 'encoding'。如果在 Vim 服务器上设置 'encoding' 为
"utf-8" 而从控制台上调用 "vim --remote fname","fname" 被从控制台编码转换为
utf-8。这样也允许使用不同 'encoding' 设置的 Vim 之间交换消息。
内部改动: 修改 ga_room 为 ga_maxlen,这样它不需要每次都递增/递减。
如果寄存器为空,不把它保存到 viminfo 文件。
删除 tcltags 脚本,它已经废弃了。
":redir @*>>" 和 ":redir @+>>" 附加到剪贴板。寄存器名后非法字符的检查更严格。
|:redir|
":redir => variable" 和 ":redir =>> variable" 写入或附加到变量。
(Yegappan Lakshmanan) |:redir|
":redir @{a-z}>>" 附加到寄存器 a z。(Yegappan Lakshmanan)
'verbosefile' 选项可以把消息记录到文件。此时不再显示 verbose 消息。也可用
"-V{filename}" 参数记录启动消息。
":let g:" 列出全局变量。
":let b:" 列出缓冲区局部变量。
":let w:" 列出窗口局部变量。
":let v:" 列出 Vim 变量。
stridx() strridx() 函数接受第三个参数,指定从哪里开始搜索。(Yegappan
Lakshmanan)
getreg() 函数接受额外的一个参数,从而得到 '=' 寄存器表达式本身而不是它计算之后
的值。
setline() 函数接受列表参数以设置多行。如果行号刚刚在末行之后,附加行。
如果字符数和字节数不同的话,g CTRL-G 同时显示字符数。
":debug" '=' 寄存器表达式的补全。跳过行范围和命令名之间的 ":"。
(Peter winters)
插入模式的 CTRL-Q 现在缺省同 CTRL-V。过去它被忽略。
如果 'debug' 包含 "beep",发出铃声的函数或脚本会给出消息并包括错误源。
补全缓冲区名时,用 "\(^\|[\/]\)" 而不是 "^" 进行匹配,这样 ":buf stor<Tab>"
能同时找到 "include/storage.h" "storage/main.c"。
要计算 (模式匹配) 的项目数而不修改缓冲区,可用 |:substitute| 'n' 标志位。见
|count-items|。
|:substitute| 命令的 \u、\U、\l \L 项目现在支持多字节字符。
识别名为 "screen.linux" $TERM 以设置 'background' 的缺省值为 "dark"。
(Ciaran McCreesh) "cygwin" "putty" 也是如此。
|FileChangedShell| 自动命令事件现在使用 |v:fcs_reason| 变量来指定激活事件的原
因。|v:fcs_choice| 可以选择重新载入缓冲区或询问用户应该如何进行。
xterm 功能键过去不能识别所有的修饰符。现在终端代码可用 ";*X" "O*X" 结尾,其
X 是任何字符而 * 代表修饰符代码。
加入 <xUp>、<xDown>、<xLeft> <xRight> 键以识别 xterm 发送这些代码的两种可能
形式,同时仍然可以处理所有的修饰符。
getwinvar() 现在也可以从指定窗口取得局部于缓冲区的选项。
'errorformat' 加入 "%s" 项目。(Yegappan Lakshmanan)
'errorformat' 加入 "%>" 项目。
'errorformat' 过去不能使用包含出现在 "%f" 之后的字符的文件名。例如,"%f:%l:%m"
里文件名不能包含 ":"。现在必须余下的模式匹配以后才会包含第一个 ":"。在这个例子
里,文件名可以包含后面没有行号的 ":"。(Emanuele Giaquinta 建议)
GTK GUI: 如果可能,使用 GTK 文件对话框。Grahame Bowland Evan Webb 补丁的混
合。
bugreport.vim 加入 ":scriptnames",这样可以看到使用了哪些插件。
Win32: 如果用户改变了滚轮点击滚动行数的设置,立即使用。过去 Vim 需要重启。
在表达式里使用 @= 时,值是 @= 包含的内容。用 ":let @= = value" 可以设置寄存器
内容。
":popup" 可以加上 !,使弹出菜单出现在鼠标指针的位置而不是文本光标的位置。
扩充了编码表,支持许多 MS-Windows 代码页,如 cp1250 cp737。这样 Unix 就可以
直接使用它们而无需在前面加上 "8bit-"。
如果编码名以 "microsoft-cp" 开始,忽略 "microsoft-" 部分。
用户定义的命令加入 "customlist" 补全参数。用户定义的补全参数应该返回 Vim 列表
形式的补全的候选值,Vim 不过滤返回值。(Yegappan Lakshmanan)
Win32: 如果 common controls 支持,气泡可以多行。(Sergey Khorev)
命令行补全现在对各种类型参数的匹配结果进行排序: 用户命令、变量、语法名等。
如果不设置 locale,使用 "C" locale。Vim 会处理 latin1 字符并使用自己的
isupper()/toupper()/等函数。
rxvt 终端模拟器用 COLORFGBG 环境变量来猜测 'background' 的值。
(Ciaran McCreesh)
同时支持 Unix t_SI t_EI 的正常功能。(Ciaran McCreesh)
如果 'foldcolumn' 1,放入尽量多的信息。鼠标点击 '-' 可以关闭折叠。
input() 接受可选的补全参数,指定输入能接受的补全类型。(Yegappan Lakshmanan)
diff 模式下,"dp" 可接受多于两个缓冲区,如果只有一个置位 'modifiable' 的话。
'diffopt' 选项有三个新值: "horizontal"、"vertical" "foldcolumn"。
如果 'include' 选项包含 \zs,找到的文件名是 \zs 到模式结束处或 \ze。这样可以给
'includeexpr' 传递更多的信息。
现在,在启动过程的插件载入时支持 plugin 目录下的子目录。|load-plugins|
foldcolumn 总是为关闭折叠显示 '+',方便打开。这可能覆盖其它字符,'foldcolumn'
1 尤其如此。
现在置位 'readonly' 可以再次得到 W10 消息。如果 FileChangedRO 自动命令获得文件
失败,可以利用这一点。
Unix: open() 返回 EFBIG 时会给出合适的信息。
":mksession" 设置 SessionLoad 变量以通知插件。会话文件也加入了模式行来设置
'filetype' "vim"。
ATTENTION 提示把 "Delete it" 选择放在 "Quit" 之前,这样更合逻辑。(Robert Webb)
附加到文件而缓冲区没有名字时,过去使用附加文件的名字作为缓冲区名。但是缓冲区的
内容实际和文件内容不同。现在不设置文件名,除非 'cpoptions' 包含 'P' 标志位。
开始编辑新文件而文件所在的目录不存在时,Vim 会报告 "[New DIRECTORY]" 而不是
"[New File]",从而提示用户可能出现了错误。
Win32: 保持 viminfo 文件的隐藏属性。
过去用了 CTRL-O 和光标键后,插入模式下的 CTRL-A 会记不住最近插入的文本。现在
CTRL-O 之后的那个命令如果不插入文本,最近插入的文本会被记住。这样,CTRL-O 命令
可以移动光标而不用担心会丢失最近插入的文本。
exists() 函数现在提供对自动命令组是否定义和自动命令事件是否支持的检查。
(Yegappan Lakshmanan)
允许在沙盘里使用 ":global",因为它本身不会造成任何伤害。
如果 'filetype' 为空,":saveas asdf.c" 会设置它为 c。":w asdf.c" 如果会设置缓
冲区的文件名,也是如此。
插入模式的整行补全现在同时搜索未载入的缓冲区。
colortest.vim 脚本现在可以用 ":source" ":runtime syntax/colortest.vim" 直接
调用。
'statusline' 选项可以局部于窗口,这样每个窗口就可以有不同的值。(部分由
Yegappan Lakshmanan 提供)
现在,'statusline' 和其它支持相同格式的选项可以使用新特性:
- 如果以 "%!" 开始,先作为表达式计算该值,然后再对计算结果进行分析。
- "%#HLname#" 开始名为 HLname 的高亮。
如果 'statusline' 设定的值产生了错误信息,它被清空以免出现无限重画循环。其它一
些选项,如 'tabline' 'titlestring',也是如此。":verbose set statusline"
提到该选项的设置位置在错误处理程序里。
如果有若干匹配的标签,":tag <name>" CTRL-] 命令跳转到第 [count] 个匹配的标
签。(Yegappan Lakshmanan)
Win32: 如果设置的话,安装程序生成的批处理文件使用 $VIMRUNTIME $VIM。Mathias
Michaelis 提供了示例。
同时新建 vimtutor.bat 批处理文件。
'balloonexpr' 选项现在变成了 |global-local| 类型。
system() 函数现在运行于加工 (cooked) 模式,从而可以用 CTRL-C 中断。
==============================================================================
*compile-changes-7*
放弃对 BeOS Amiga GUI 的支持。没有人维护,可能也已经无法工作。如果你想做:
获取 Vim 6.x 版本并重新把你的工作合并进来。
运行测试时,如果其中一个失败而不能生成 "test.out",其余的测试继续运行。如果有
内存溢出的情况,这么做会有帮助。
编译时定义 EXITFREE 并且带上 ccmalloc 库可来检测内存泄漏。有些内存总是报告为泄
漏,例如 X11 库函数分配的和 alloc_cmdbuff() 分配用于保存 ":quit" 命令的内存。
打印代码移到 src/hardcopy.c。
main() 的一些代码移到独立的若干函数,这使得操作更清晰。这些函数也使用结构来避
免过多的参数。
unix_expandpath() 移到 misc1.c,这使得 os_mac.c 也可以使用它而无须复制代码。
--- Mac ---
"make" 现在建立 Vim.app 目录,而 "make install" 把它复制到最终的目标位置。
(Raf)
运行时目录不直接放在 Vim.app,而放在 Vim.app/Contents/Resources/vim,这样做遵
从了 Mac 的规范。
编译时可以不用任何修改就加入 Motif、Athena GTK 支持,而且仍然可用 MacRoman
转换。加入 os_mac_conv.c 文件。
运行 "make install" 时,像 Unix 那样安装运行时文件,以免复制过多文件。
运行 "make" 时建立到运行时文件的链接,以免递归复制需要太多时间。
configure 尝试同时编译 Intel PowerPC Vim。configure 参数 --with-mac-arch
可以改变这一点。
--- Win32 ---
调整 Make_mvc.mak 文件,使它可用于最新的 MS 编译器,包括 Visual Studio 2005
的免费版本。(George Reilly)
INSTALLpc.txt 进行更新,以包含最近的改变。(George Reilly)
现在用免费的 Visual C++ Toolkit 2003 和其它免费 SDK 工具生成发布的可执行文件。
加入 msvcsetup.bat,提供这方面的支持。
也生成 .pdb 文件,可用于生成 MS-Windows 上有用的崩溃报告。(George Reilly)
==============================================================================
*bug-fixes-7*
When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
instead of "copy". When 'printdevice' was empty the copy command did not
work. Use "LPT1" then.
The GTK font dialog uses a font size zero when the font name doesn't include a
size. Use a default size of 10.
This example in the documentation didn't work:
:e `=foo . ".c" `
Skip over the expression in `=expr` when looking for comments, |, % and #.
When ":helpgrep" doesn't find anything there is no error message.
"L" and "H" did not take closed folds into account.
Win32: The "-P title" argument stopped at the first title that matched, even
when it doesn't support MDI.
Mac GUI: CTRL-^ and CTRL-@ did not work.
"2daw" on "word." at the end of a line didn't include the preceding white
space.
Win32: Using FindExecutable() doesn't work to find a program. Use
SearchPath() instead. For executable() use $PATHEXT when the program searched
for doesn't have an extension.
When 'virtualedit' is set, moving the cursor up after appending a character
may move it to a different column. Was caused by auto-formatting moving the
cursor and not putting it back where it was.
When indent was added automatically and then moving the cursor, the indent was
not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
to make it work the old way.
When opening a command-line window, 'textwidth' gets set to 78 by the Vim
filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
After using cursor(line, col) moving up/down doesn't keep the same column.
Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
fields. (Walter Briscoe)
On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
Michele)
Printing with PostScript may keep the printer waiting for more. Append a
CTRL-D to the printer output. (Mike Williams)
When converting a string with a hex or octal number the leading '-' was
ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
Using "@:" to repeat a command line didn't work when it contains control
characters. Also remove "'<,'>" when in Visual mode to avoid that it appears
twice.
When using file completion for a user command, it would not expand environment
variables like for a regular command with a file argument.
'cindent': When the argument of a #define looks like a C++ class the next line
is indented too much.
When 'comments' includes multi-byte characters inserting the middle part and
alignment may go wrong. 'cindent' also suffers from this for right-aligned
items.
Win32: when 'encoding' is set to "utf-8" getenv() still returns strings in the
active codepage. Convert to utf-8. Also for $HOME.
The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
"cn" or "tw" as intended.
When 'bin' is set and 'eol' is not set then line2byte() added the line break
after the last line while it's not there.
Using foldlevel() in a WinEnter autocommand may not work. Noticed when
resizing the GUI shell upon startup.
Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
string with a trailing newline. The newline is ignored.
When using the ":saveas f2" command for buffer "f1", the Buffers menu would
contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
and BufFilePost events for the alternate buffer that gets the old name.
strridx() did not work well when the needle is empty. (Ciaran McCreesh)
GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
just before it is invoked
VMS: Occasionally CR characters were inserted in the file. Expansion of
environment variables was not correct. (Zoltan Arpadffy)
UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
from the first character of the word.
When using ":sball" in an autocommand only the filetype in one buffer was
detected. Reset did_filetype in enter_buffer().
When using ":argdo" and the window already was at the first argument index,
but not actually editing it, the current buffer would be used instead.
When ":next dir/*" includes many matches, adding the names to the argument
list may take an awful lot of time and can't be interrupted. Allow
interrupting this.
When editing a file that was already loaded in a buffer, modelines were not
used. Now window-local options in the modeline are set. Buffer-local options
and global options remain unmodified.
Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
command line with non-ASCII characters are not used correctly. Recode the
file names when 'encoding' is set, using the Unicode command line.
Win32 console: When the default for 'encoding' ends up to be "latin1", the
default value of 'isprint' was wrong.
When an error message is given while waiting for a character (e.g., when an
xterm reports the number of colors), the hit-enter prompt overwrote the last
line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
Mac GUI: Shift-Tab didn't work.
When defining tooltip text, don't translate terminal codes, since it's not
going to be used like a command.
GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
GTK error. Invalid characters may appear when 'encoding' is changed.
GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
Win32: When 'encoding' is changed while starting up, use the Unicode command
line to convert the file arguments to 'encoding'. Both for the GUI and the
console version.
Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
When two versions of GTK+ 2 are installed it was possible to use the header
files from one and the library from the other. Use GTK_LIBDIR to put the
directory for the library early in the link flags.
With the GUI find/replace dialog a replace only worked if the pattern was
literal text. Now it works for any pattern.
When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
cause equalizing window heights in the vertical direction.
When ":emenu" is used in a startup script the command was put in the typeahead
buffer, causing a prompt for the crypt key to be messed up.
Mac OS/X: The default for 'isprint' included characters 128-160, causes
problems for Terminal.app.
When a syntax item with "containedin" is used, it may match in the start or
end of a region with a matchgroup, while this doesn't happen for a "contains"
argument.
When a transparent syntax items matches in another item where the highlighting
has already stopped (because of a he= argument), the highlighting would come
back.
When cscope is used to set the quickfix error list, it didn't get set if there
was only one match. (Sergey Khorev)
When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
"cancel", would still give an error message.
The PopUp menu items that started Visual mode didn't work when not in Normal
mode. Switching between selecting a word and a line was not possible.
Win32: The keypad decimal point always resulted in a '.', while on some
keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
Removed unused function DisplayCompStringOpaque() from gui_w32.c
In Visual mode there is not always an indication whether the line break is
selected or not. Highlight the character after the line when the line break
is included, e.g., after "v$o".
GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
After "Y" '[ and '] were not at start/end of the yanked text.
When a telnet connection is dropped Vim preserves files and exits. While
doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
handle. Added handle_signal().
When completing a file name on the command line backslashes are required for
white space. Was only done for a space, not for a Tab.
When configure could not find a terminal library, compiling continued for a
long time before reporting the problem. Added a configure check for tgetent()
being found in a library.
When the cursor is on the first char of the last line a ":g/pat/s///" command
may cause the cursor to be displayed below the text.
Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
When recovering the 'fileformat' and 'fileencoding' were taken from the
original file instead of from the swapfile. When the file didn't exist, was
empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
the values when recovering.
":bufdo g/something/p" overwrites each last printed text line with the file
message for the next buffer. Temporarily clear 'shortmess' to avoid that.
Win32: Cannot edit a file starting with # with --remote. Do escape % and #
when building the ":drop" command.
A comment or | just after an expression-backtick argument was not recognized.
E.g. in :e `="foo"`"comment.
"(" does not stop at an empty sentence (single dot and white space) while ")"
does. Also breaks "das" on that dot.
When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
moved the cursor to another column.
When 'commentstring' is '"%s' and there is a double quote in the line a double
quote before the fold marker isn't removed in the text displayed for a closed
fold.
In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
break, resulting in "selected 202 of 201 bytes".
Motif: fonts were not used for dialog components. (Marcin Dalecki)
Motif: After using a toolbar button the keyboard focus would be on the toolbar
(Lesstif problem). (Marcin Dalecki)
When using "y<C-V>`x" where mark x is in the first column, the last line was
not included.
Not all test scripts work properly on MS-Windows when checked out from CVS.
Use a Vim command to fix all fileformats to dos before executing the tests.
When using ":new" and the file fits in the window, lines could still be above
the window. Now remove empty lines instead of keeping the relative position.
Cmdline completion didn't work after ":let var1 var<Tab>".
When using ":startinsert" or ":startreplace" when already in Insert mode
(possible when using CTRL-R =), pressing Esc would directly restart Insert
mode. (Peter Winters)
"2daw" didn't work at end of file if the last word is a single character.
Completion for ":next a'<Tab>" put a backslash before single quote, but it was
not removed when editing a file. Now halve backslashes in save_patterns().
Also fix expanding a file name with the shell that contains "\'".
When doing "1,6d|put" only "fewer lines" was reported. Now a following "more
lines" overwrites the message.
Configure could not handle "-Dfoo=long\ long" in the TCL config output.
When searching backwards, using a pattern that matches a newline and uses \zs
after that, didn't find a match. Could also get a hang or end up in the right
column in the wrong line.
When $LANG is "sl" for slovenian, the slovak menu was used, since "slovak"
starts with "sl".
When 'paste' is set in the GUI the Paste toolbar button doesn't work. Clear
'paste' when starting the GUI.
A message about a wrong viminfo line included the trailing NL.
When 'paste' is set in the GUI the toolbar button doesn't work in Insert mode.
Use ":exe" in menu.vim to avoid duplicating the commands, instead of using a
mapping.
Treat "mlterm" as an xterm-like terminal. (Seiichi Sato)
":z.4" and ":z=4" didn't work Vi compatible.
When sourcing a file, editing it and sourcing it again, it could appear twice
in ":scriptnames" and get a new <SID>, because the inode has changed.
When $SHELL is set but empty the 'shell' option would be empty. Don't use an
empty $SHELL value.
A command "w! file" in .vimrc or $EXINIT didn't work. Now it writes an empty
file.
When a CTRL-F command at the end of the file failed, the cursor was still
moved to the start of the line. Now it remains where it is.
When using ":s" or "&" to repeat the last substitute and "$" was used to put
the cursor in the last column, put the cursor in the last column again. This
is Vi compatible.
Vim is not fully POSIX compliant but sticks with traditional Vi behavior.
Added a few flags in 'cpoptions' to behave the POSIX way when wanted. The
$VIM_POSIX environment variable is checked to set the default.
Appending to a register didn't insert a line break like Vi. Added the '>'
flag to 'cpoptions' for this.
Using "I" in a line with only blanks appended to the line. This is not Vi
compatible. Added the 'H' flag in 'coptions' for this.
When joining multiple lines the cursor would be at the last joint, but Vi
leaves it at the position where "J" would put it. Added the 'q' flag in
'cpoptions' for this.
Autoindent didn't work for ":insert" and ":append".
Using ":append" in an empty buffer kept the dummy line. Now it's deleted to
be Vi compatible.
When reading commands from a file and stdout goes to a terminal, would still
request the xterm version. Vim can't read it, thus the output went to the
shell and caused trouble there.
When redirecting to a register with an invalid name the redirection would
still be done (after an error message). Now reset "redir_reg". (Yegappan
Lakshmanan)
It was not possible to use a NL after a backslash in Ex mode. This is
sometimes used to feed multiple lines to a shell command.
When 'cmdheight' is set to 2 in .vimrc and the GUI uses the number of lines
from the terminal we actually get 3 lines for the cmdline in gvim.
When setting $HOME allocated memory would leak.
Win32: bold characters may sometimes write in another character cell. Use
unicodepdy[] as for UTF-8. (Taro Muraoka)
":w fname" didn't work for files with 'buftype' set to "nofile".
The method used to locate user commands for completion differed from when they
are executed. Ambiguous command names were not completed properly.
Incremental search may cause a crash when there is a custom statusline that
indirectly invokes ":normal".
Diff mode failed when $DIFF_OPTIONS was set in the environment. Unset it
before invoking "diff".
Completion didn't work after ":argdo", ":windo" and ":bufdo". Also for ":set
&l:opt" and ":set &g:opt". (Peter Winters)
When setting 'ttymouse' to "dec" in an xterm that supports the DEC mouse
locator it doesn't work. Now switch off the mouse before selecting another
mouse model.
When the CursorHold event is triggered and the commands peek for typed
characters the typeahead buffer may be messed up, e.g., when a mouse-up event
is received. Avoid invoking the autocommands from the function waiting for a
character, let it put K_CURSORHOLD in the input buffer.
Removed the "COUNT" flag from ":argadd", to avoid ":argadd 1*" to be used like
":1argadd *". Same for ":argdelete" and ":argedit".
Avoid that $LANG is used for the menus when LC_MESSAGES is "en_US".
Added backslashes before dashes in the vim.1 manual page to make the appear as
real dashes. (Pierr Habouzit)
Where "gq" left the cursor depended on the value of 'formatprg'. Now "gq"
always leaves the cursor at the last line of the formatted text.
When editing a compressed file, such as "changelog.Debian.gz" file, filetype
detection may try to check the contents of the file while it's still
compressed. Skip setting 'filetype' for compressed files until they have been
decompressed. Required for patterns that end in a "*".
Starting with an argument "+cmd" or "-S script" causes the cursor the be moved
to the first line. That breaks a BufReadPost autocommand that uses g`".
Don't move the cursor if it's somewhere past the first line.
"gg=G" while 'modifiable' is off was uninterruptible.
When 'encoding' is "sjis" inserting CTRL-V u d800 a few times causes a crash.
Don't insert a DBCS character with a NUL second byte.
In Insert mode CTRL-O <Home> didn't move the cursor. Made "ins_at_eol" global
and reset it in nv_home().
Wildcard expansion failed: ":w /tmp/$$.`echo test`". Don't put quotes around
spaces inside backticks.
After this sequence of commands: Y V p gv: the wrong line is selected. Now
let "gv" select the text that was put, since the original text is deleted.
This should be the most useful thing to do.
":sleep 100u" sleeps for 100 seconds, not 100 usec as one might expect. Give
an error message when the argument isn't recognized.
In gui_mch_draw_string() in gui_w32.c "unibuflen" wasn't static, resulting in
reallocating the buffer every time. (Alexei Alexandrov)
When using a Python "atexit" function it was not invoked when Vim exits. Now
call Py_Finalize() for that. (Ugo Di Girolamo)
This breaks the thread stuff though, fixed by Ugo.
GTK GUI: using a .vimrc with "set cmdheight=2 lines=43" and ":split" right
after startup, the window layout is messed up. (Michael Schaap) Added
win_new_shellsize() call in gui_init() to fix the topframe size.
Trick to get ...MOUSE_NM not used when there are vertical splits. Now pass
column -1 for the left most window and add MOUSE_COLOFF for others. Limits
mouse column to 10000.
searchpair() may hang when the end pattern has "\zs" at the end. Check that
we find the same position again and advance one character.
When in diff mode and making a change that causes the "changed" highlighting
to disappear or reappear, it was still highlighted in another window.
When a ":next" command fails because the user selects "Abort" at the ATTENTION
prompt the argument index was advanced anyway.
When "~" is in 'iskeyword' the "gd" doesn't work, it's used for the previous
substitute pattern. Put "\V" in the pattern to avoid that.
Use of sprintf() sometimes didn't check properly for buffer overflow. Also
when using smsg(). Included code for snprintf() to avoid having to do size
checks where invoking them
":help \=<Tab>" didn't find "sub-replace-\=". Wild menu for help tags didn't
show backslashes. ":he :s\=" didn't work.
When reading an errorfile "~/" in a file name was not expanded.
GTK GUI: When adding a scrollbar (e.g. when using ":vsplit") in a script or
removing it the window size may change. GTK sends us resize events when we
change the window size ourselves, but they may come at an unexpected moment.
Peek for a character to get any window resize events and fix 'columns' and
'lines' to undo this.
When using the GTK plug mechanism, resizing and focus was not working
properly. (Neil Bird)
After deleting files from the argument list a session file generated with
":mksession" may contain invalid ":next" commands.
When 'shortmess' is empty and 'keymap' set to accents, in Insert mode CTRL-N
may cause the hit-enter prompt. Typing 'a then didn't result in the accented
character. Put the character typed at the prompt back in the typeahead buffer
so that mapping is done in the right mode.
setbufvar() and setwinvar() did not give error messages.
It was possible to set a variable with an illegal name, e.g. with setbufvar().
It was possible to define a function with illegal name, e.t. ":func F{-1}()"
CTRL-W F and "gf" didn't use the same method to get the file name.
When reporting a conversion error the line number of the last error could be
given. Now report the first encountered error.
When using ":e ++enc=name file" and iconv() was used for conversion an error
caused a fall-back to no conversion. Now replace a character with '?' and
continue.
When opening a new buffer the local value of 'bomb' was not initialized from
the global value.
Win32: When using the "Edit with Vim" entry the file name was limited to about
200 characters.
When using command line completion for ":e *foo" and the file "+foo" exists
the resulting command ":e +foo" doesn't work. Now insert a backslash: ":e
\+foo".
When the translation of "-- More --" was not 10 characters long the following
message would be in the wrong position.
At the more-prompt the last character in the last line wasn't drawn.
When deleting non-existing text while 'virtualedit' is set the '[ and '] marks
were not set.
Win32: Could not use "**/" in 'path', it had to be "**\".
The search pattern "\n" did not match at the end of the last line.
Searching for a pattern backwards, starting on the NUL at the end of the line
and 'encoding' is "utf-8" would match the pattern just before it incorrectly.
Affected searchpair('/\*', '', '\*/').
For the Find/Replace dialog it was possible that not finding the text resulted
in an error message while redrawing, which cleared the syntax highlighting
while it was being used, resulting in a crash. Now don't clear syntax
highlighting, disable it with b_syn_error.
Win32: Combining UTF-8 characters were drawn on the previous character.
Could be noticed with a Thai font.
Output of ":function" could leave some of the typed text behind. (Yegappan
Lakshmanan)
When the command line history has only a few lines the command line window
would be opened with these lines above the first window line.
When using a command line window for search strings ":qa" would result in
searching for "qa" instead of quitting all windows.
GUI: When scrolling with the scrollbar and there is a line that doesn't fit
redrawing may fail. Make sure w_skipcol is valid before redrawing.
Limit the values of 'columns' and 'lines' to avoid an overflow in Rows *
Columns. Fixed bad effects when running out of memory (command line would be
reversed, ":qa!" resulted in ":!aq").
Motif: "gvim -iconic" opened the window anyway. (David Harrison)
There is a tiny chance that a symlink gets created between checking for an
existing file and creating a file. Use the O_NOFOLLOW for open() if it's
available.
In an empty line "ix<CTRL-O>0" moved the cursor to after the line instead of
sticking to the first column.
When using ":wq" and a BufWriteCmd autocmd uses inputsecret() the text was
echoed anyway. Set terminal to raw mode in getcmdline().
Unix: ":w a;b~c" caused an error in expanding wildcards.
When appending to a file with ":w >>fname" in a buffer without a name, causing
the buffer to use "fname", the modified flag was reset.
When appending to the current file the "not edited" flag would be reset.
":w" would overwrite the file accidentally.
Unix: When filtering text with an external command Vim would still read input,
causing text typed for the command (e.g., a password) to be eaten and echoed.
Don't read input when the terminal is in cooked mode.
The Cygwin version of xxd used CR/LF line separators. (Corinna Vinschen)
Unix: When filtering text through a shell command some resulting text may be
dropped. Now after detecting that the child has exited try reading some more
of its output.
When inside input(), using "CTRL-R =" and the expression throws an exception
the command line was not abandoned but it wasn't used either. Now abandon
typing the command line.
'delcombine' was also used in Visual and Select mode and for commands like
"cl". That was illogical and has been disabled.
When recording while a CursorHold autocommand was defined special keys would
appear in the register. Now the CursorHold event is not triggered while
recording.
Unix: the src/configure script used ${srcdir-.}, not all shells understand
that. Use ${srcdir:-.} instead.
When editing file "a" which is a symlink to file "b" that doesn't exist,
writing file "a" to create "b" and then ":split b" resulted in two buffers on
the same file with two different swapfile names. Now set the inode in the
buffer when creating a new file.
When 'esckeys' is not set don't send the xterm code to request the version
string, because it may cause trouble in Insert mode.
When evaluating an expression for CTRL-R = on the command line it was possible
to call a function that opens a new window, resulting in errors for
incremental search, and many other nasty things were possible. Now use the
|textlock| to disallow changing the buffer or jumping to another window
to protect from unexpected behavior. Same for CTRL-\ e.
"d(" deleted the character under the cursor, while the documentation specified
an exclusive motion. Vi also doesn't delete the character under the cursor.
Shift-Insert in Insert mode could put the cursor before the last character
when it just fits in the window. In coladvance() don't stop at the window
edge when filling with spaces and when in Insert mode. In mswin.vim avoid
getting a beep from the "l" command.
Win32 GUI: When Alt-F4 is used to close the window and Cancel is selected in
the dialog then Vim would insert <M-F4> in the text. Now it's ignored.
When ":silent! {cmd}" caused the swap file dialog, which isn't displayed,
there would still be a hit-enter prompt.
Requesting the termresponse (|t_RV|) early may cause problems with "-c"
arguments that invoke an external command or even "-c quit". Postpone it
until after executing "-c" arguments.
When typing in Insert mode so that a new line is started, using CTRL-G u to
break undo and start a new change, then joining the lines with <BS> caused
undo info to be missing. Now reset the insertion start point.
Syntax HL: When a region start match has a matchgroup and an offset that
happens to be after the end of the line then it continued in the next line and
stopped at the region end match, making the region continue after that.
Now check for the column being past the end of the line in syn_add_end_off().
When changing a file, setting 'swapfile' off and then on again, making another
change and killing Vim, then some blocks may be missing from the swapfile.
When 'swapfile' is switched back on mark all blocks in the swapfile as dirty.
Added mf_set_dirty().
Expanding wildcards in a command like ":e aap;<>!" didn't work. Put
backslashes before characters that are special to the shell. (Adri Verhoef)
A CursorHold autocommand would cause a message to be cleared. Don't show the
special key for the event for 'showcmd'.
When expanding a file name for a shell command, as in "!cmd foo<Tab>" or ":r
!cmd foo<Tab>" also escape characters that are special for the shell:
"!;&()<>".
When the name of the buffer was set by a ":r fname" command |cpo-f| no
autocommands were triggered to notify about the change in the buffer list.
In the quickfix buffer 'bufhidden' was set to "delete", which caused closing
the quickfix window to leave an unlisted "No Name" buffer behind every time.
Win32: when using two screens of different size, setting 'lines' to a large
value didn't fill the whole screen. (SungHyun Nam)
Win32 installer: The generated _vimrc contained an absolute path to diff.exe.
After upgrading it becomes invalid. Now use $VIMRUNTIME instead.
The command line was cleared to often when 'showmode' was set and ":silent
normal vy" was used. Don't clear the command line unless the mode was
actually displayed. Added the "mode_displayed" variable.
The "load session" toolbar item could not handle a space or other special
characters in v:this_session.
":set sta ts=8 sw=4 sts=2" deleted 4 spaces halfway a line instead of 2.
In a multi-byte file the foldmarker could be recognized in the trail byte.
(Taro Muraoka)
Pasting with CTRL-V and menu didn't work properly when some commands are
mapped. Use ":normal!" instead of ":normal". (Tony Apuzzo)
Crashed when expanding a file name argument in backticks.
In some situations the menu and scrollbar didn't work, when the value contains
a CSI byte. (Yukihiro Nakadaira)
GTK GUI: When drawing the balloon focus changes and we might get a key release
event that removed the balloon again. Ignore the key release event.
'titleold' was included in ":mkexrc" and ":mksession" files.
":set background&" didn't use the same logic as was used when starting up.
When "umask" is set such that nothing is writable then the viminfo file would
be written without write permission. (Julian Bridle)
Motif: In diff mode dragging one scrollbar didn't update the scrollbar of the
other diff'ed window.
When editing in an xterm with a different number of colors than expected the
screen would be cleared and redrawn, causing the message about the edited file
to be cleared. Now set "keep_msg" to redraw the last message.
For a color terminal: When the Normal HL uses bold, possibly to make the color
lighter, and another HL group specifies a color it might become light as well.
Now reset bold if a HL group doesn't specify bold itself.
When using 256 color xterm the color 255 would show up as color 0. Use a
short instead of a char to store the color number.
ml_get errors when searching for "\n\zs" in an empty file.
When selecting a block and using "$" to select until the end of every line and
not highlighting the character under the cursor the first character of the
block could be unhighlighted.
When counting words for the Visual block area and using "$" to select until
the end of every line only up to the length of the last line was counted.
"dip" in trailing empty lines left one empty line behind.
The script ID was only remembered globally for each option. When a buffer- or
window-local option was set the same "last set" location was changed for all
buffers and windows. Now remember the script ID for each local option
separately.
GUI: The "Replace All" button didn't handle backslashes in the replacement in
the same way as "Replace". Escape backslashes so that they are taken
literally.
When using Select mode from Insert mode and typing a key, causing lines to be
deleted and a message displayed, delayed the effect of inserting the key.
Now overwrite the message without delay.
When 'whichwrap' includes "l" then "dl" and "yl" on a single letter line
worked differently. Now recognize all operators when using "l" at the end of
a line.
GTK GUI: when the font selector returned a font name with a comma in it then
it would be handled like two font names. Now put a backslash before the
comma.
MS-DOS, Win32: When 'encoding' defaults to "latin1" then the value for
'iskeyword' was still for CPxxx. And when 'nocompatible' was set 'isprint'
would also be the wrong value.
When a command was defined not to take arguments and no '|' no warning message
would be given for using a '|'. Also with ":loadkeymap".
Motif: When using a fontset and 'encoding' is "utf-8" and sizeof(wchar_t) !=
sizeof(XChar2b) then display was wrong. (Yukihiro Nakadaira)
":all" always set the current window to the first window, even when it
contains a buffer that is not in the argument list (can't be closed because it
is modified). Now go to the window that has the first item of the argument
list.
GUI: To avoid left-over pixels from bold text all characters after a character
with special attributes were redrawn. Now only do this for characters that
actually are bold. Speeds up displaying considerably.
When only highlighting changes and the text is scrolled at the same time
everything is redraw instead of using a scroll and updating the changed text.
E.g., when using ":match" to highlight a paren that the cursor landed on.
Added SOME_VALID: Redraw the whole window but also try to scroll to minimize
redrawing.
Win32: When using Korean IME making it active didn't work properly. (Moon,
Yu-sung, 2005 March 21)
Ruby interface: when inserting/deleting lines display wasn't updated. (Ryan
Paul)
--- fixes since Vim 7.0b ---
Getting the GCC version in configure didn't work with Solaris sed. First
strip any "darwin." and then get the version number.
The "autoload" directory was missing from the self-installing executable for
MS-Windows.
The MS-Windows install program would find "vimtutor.bat" in the install
directory. After changing to "c:" also change to "\" to avoid looking in the
install directory.
To make the 16 bit DOS version compile exclude not used highlight
initializations and build a tiny instead of small version.
finddir() and findfile() accept a negative count and return a List then.
The Python indent file contained a few debugging statements, removed.
Expanding {} for a function name, resulting in a name starting with "s:" was
not handled correctly.
Spelling: renamed COMPOUNDMAX to COMPOUNDWORDMAX. Added several items to be
able to handle the new Hungarian dictionary.
Mac: Default to building for the current platform only, that is much faster
than building a universal binary. Also, using Perl/Python/etc. only works for
the current platform.
The time on undo messages disappeared for someone. Using %T for strftime()
apparently doesn't work everywhere. Use %H:%M:%S instead.
Typing BS at the "z=" prompt removed the prompt.
--- fixes and changes since Vim 7.0c ---
When jumping to another tab page the Vim window size was always set, even when
nothing in the layout changed.
Win32 GUI tab pages line wasn't always enabled. Do a proper check for the
compiler version.
Win32: When switching between tab pages the Vim window was moved when part of
it was outside of the screen. Now only do that in the direction of a size
change.
Win32: added menu to GUI tab pages line. (Yegappan Lakshmanan)
Mac: Added document icons. (Benji Fisher)
Insert mode completion: Using Enter to accept the current match causes
confusion. Use CTRL-Y instead. Also, use CTRL-E to go back to the typed
text.
GUI: When there are left and right scrollbars, ":tabedit" kept them instead of
using the one that isn't needed.
Using "gP" to replace al the text could leave the cursor below the last line,
causing ml_get errors.
When 'cursorline' is set don't use the highlighting when Visual mode is
active, otherwise it's difficult to see the selected area.
The matchparen plugin restricts the search to 100 lines, to avoid a long delay
when there are closed folds.
Sometimes using CTRL-X s to list spelling suggestions used text from another
line.
Win32: Set the default for 'isprint' back to the wrong default "@,~-255",
because many people use Windows-1252 while 'encoding' is "latin1".
GTK: Added a workaround for gvim crashing when used over an untrusted ssh
link, caused by GTK doing something nasty. (Ed Catmur)
Win32: The font used for the tab page labels is too big. Use the system menu
font. (George Reilly)
Win32: Adjusting the window position and size to keep it on the screen didn't
work properly when the taskbar is on the left or top of the screen.
The installman.sh and installml.sh scripts use ${10}, that didn't work with
old shells. And use "test -f" instead of "test -e".
Win32: When 'encoding' was set in the vimrc then a directory argument for diff
mode didn't work.
GUI: at the inputlist() prompt the cursorshape was adjusted as if the windows
were still at their old position.
The parenmatch plugin didn't remember the highlighting per window.
Using ":bd" for a buffer that's the current window in another tab page caused
a crash.
For a new tab page the 'scroll' option wasn't set to a good default.
Using an end offset for a search "/pat/e" didn't work properly for multi-byte
text. (Yukihiro Nakadaira)
":s/\n/,/" doubled the text when used on the last line.
When "search" is in 'foldopen' "[s" and "]s" now open folds.
When using a numbered function "dict" can be omitted, but "self" didn't work
then. Always add FC_DICT to the function flags when it's part of a
dictionary.
When "--remote-tab" executes locally it left an empty tab page.
"gvim -u NONE", ":set cursorcolumn", "C" in the second line didn't update
text. Do update further lines even though the "$" is displayed.
VMS: Support GTK better, also enable +clientserver. (Zoltan Arpadffy)
When highlighting of statusline or tabline is changed there was no redraw to
show the effect.
Mac: Added "CFBundleIdentifier" to infplist.xml.
Added tabpage-local variables t:var.
Win32: Added double-click in tab pages line creates new tab. (Yegappan
Lakshmanan)
Motif: Added GUI tab pages line. (Yegappan Lakshmanan)
Fixed crash when 'lines' was set to 1000 in a modeline.
When init_spellfile() finds a writable directory in 'runtimepath' but it
doesn't contain a "spell" directory, create one.
Win32: executable() also finds "xxd" in the directory where Vim was started,
but "!xxd" doesn't work. Append the Vim starting directory to $PATH.
The tab page labels are shortened, directory names are reduced to a single
letter by default. Added the pathshorten() function to allow a user to do the
same.
":saveas" now resets 'readonly' if the file was successfully written.
Set $MYVIMRC file to the first found .vimrc file.
Set $MYGVIMRC file to the first found .gvimrc file.
Added menu item "Startup Settings" that edits the $MYVIMRC file
Added matcharg().
Error message E745 appeared twice. Renamed one to E786.
Fixed crash when using "au BufRead * Sexplore" and doing ":help". Was wiping
out a buffer that's still in a window.
":hardcopy" resulted in an error message when 'encoding' is "utf-8" and
'printencoding' is empty. Now it assumes latin1. (Mike Williams)
The check for the toolbar feature for Motif, depending on certain included
files, wasn't detailed enough, causing building to fail in gui_xmebw.c.
Using CTRL-E in Insert mode completion after CTRL-P inserted the first match
instead of the original text.
When displaying a UTF-8 character with a zero lower byte Vim might think the
previous character is double-wide.
The "nbsp" item of 'listchars' didn't work when 'encoding' was utf-8.
Motif: when Xm/xpm.h is missing gui_xmebw.c would not compile.
HAVE_XM_UNHIGHLIGHTT_H was missing a T.
Mac: Moved the .icns files into src/os_mac_rsrc, so that they can all be
copied at once. Adjusted the Info.plist file for three icons.
When Visual mode is active while switching to another tabpage could get ml_get
errors.
When 'list' is set, 'nowrap' the $ in the first column caused 'cursorcolumn'
to move to the right.
When a line wraps, 'cursorcolumn' was never displayed past the end of the
line.
'autochdir' was only available when compiled with NetBeans and GUI. Now it's
a separate feature, also available in the "big" version.
Added CTRL-W gf: open file under cursor in new tab page.
When using the menu in the tab pages line, "New Tab" opens the new tab before
where the click was. Beyond the labels the new tab appears at the end instead
of after the current tab page.
Inside a mapping with an expression getchar() could not be used.
When vgetc is used recursively vgetc_busy protects it from being used
recursively. But after a ":normal" command the protection was reset.
":s/a/b/n" didn't work when 'modifiable' was off.
When $VIMRUNTIME includes a multi-byte character then rgb.txt could not be
found. (Yukihiro Nakadaira)
":mkspell" didn't work correctly for non-ASCII affix flags when conversion is
needed on the spell file.
glob('/dir/\$ABC/*') didn't work.
When using several tab pages and changing 'cmdheight' the display could become
messed up. Now store the value of 'cmdheight' separately for each tab page.
The user of the Enter key while the popup menu is visible was still confusing.
Now use Enter to select the match after using a cursor key.
Added "usetab" to 'switchbuf'.
--- fixes and changes since Vim 7.0d ---
Added CTRL-W T: move a window to a new tab page.
Using CTRL-X s in Insert mode to complete spelling suggestions and using BS
deleted characters before the bad word.
A few small fixes for the VMS makefile. (Zoltan Arpadffy)
With a window of 91 lines 45 cols, ":vsp" scrolled the window. Copy w_wrow
when splitting a window and skip setting the height when it's already at the
right value.
Using <silent> in a mapping with a shell command and the GUI caused redraw
to use wrong attributes.
Win32: Using MSVC 4.1 for install.exe resulted in the start menu items to be
created in the administrator directory instead of "All Users". Define the
CSIDL_ items if they are missing.
Motif: The GUI tabline did not use the space above the right scrollbar. Work
around a bug in the Motif library. (Yegappan Lakshmanan)
The extra files for XML Omni completion are now also installed.
|xml-omni-datafile|
GTK GUI: when 'm' is missing from 'guioptions' during startup and pressing
<F10> GTK produced error messages. Now do create the menu but disable it just
after the first gui_mch_update().
":mkspell" doesn't work well with the Hungarian dictionary from the Hunspell
project. Back to the Myspell dictionary.
In help files hide the | used around tags.
Renamed pycomplete to pythoncomplete.
Added "tabpages" to 'sessionoptions'.
When 'guitablabel' is set the effect wasn't visible right away.
Fixed a few 'cindent' errors.
When completing menu names, e.g., after ":emenu", don't sort the entries but
keep them in the original order.
Fixed a crash when editing a directory in diff mode. Don't trigger
autocommands when executing the diff command.
Getting a keystroke could get stuck if 'encoding' is a multi-byte encoding and
typing a special key.
When 'foldignore' is set the folds were not updated right away.
When a list is indexed with [a : b] and b was greater than the length an error
message was given. Now silently truncate the result.
When using BS during Insert mode completion go back to the original text, so
that CTRL-N selects the first matching entry.
Added the 'M' flag to 'cinoptions'.
Win32: Make the "gvim --help" window appear in the middle of the screen
instead of at an arbitrary position. (Randall W. Morris)
Added gettabwinvar() and settabwinvar().
Command line completion: pressing <Tab> after ":e /usr/*" expands the whole
tree, because it becomes ":e /usr/**". Don't add a star if there already is
one.
Added grey10 to grey90 to all GUIs, so that they can all be used for
initializing highlighting. Use grey40 for CursorColumn and CursorLine when
'background' is "dark".
When reading a file and using iconv for conversion, an incomplete byte
sequence at the end caused problems. (Yukihiro Nakadaira)
--- fixes and changes since Vim 7.0e ---
Default color for MatchParen when 'background' is "dark" is now DarkCyan.
":syn off" had to be used twice in a file that sets 'syntax' in a modeline.
(Michael Geddes)
When using ":vsp" or ":sp" the available space wasn't used equally between
windows. (Servatius Brandt)
Expanding <cWORD> on a trailing blank resulted in the first word in the line
if 'encoding' is a multi-byte encoding.
Spell checking: spellbadword() didn't see a missing capital in the first word
of a line. Popup menu now only suggest the capitalized word when appropriate.
When using whole line completion CTRL-L moves through the matches but it
didn't work when at the original text.
When completion finds the longest match, don't go to the first match but stick
at the original text, so that CTRL-N selects the first one.
Recognize "zsh-beta" like "zsh" for setting the 'shellpipe' default. (James
Vega)
When using ":map <expr>" and the expression results in something with a
special byte (NUL or CSI) then it didn't work properly. Now escape special
bytes.
The default Visual highlighting for a color xterm with 8 colors was a magenta
background, which made magenta text disappear. Now use reverse in this
specific situation.
After completing the longest match "." didn't insert the same text. Repeating
also didn't work correctly for multi-byte text.
When using Insert mode completion and BS the whole word that was completed
would result in all possible matches. Now stop completion. Also fixes that
for spell completion the previous word was deleted.
GTK: When 'encoding' is "latin1" and using non-ASCII characters in a file name
the tab page label was wrong and an error message would be given.
The taglist() function could hang on a tags line with a non-ASCII character.
Win32: When 'encoding' differs from the system encoding tab page labels with
non-ASCII characters looked wrong. (Yegappan Lakshmanan)
Motif: building failed when Xm/Notebook.h doesn't exist. Added a configure
check, disable GUI tabline when it's missing.
Mac: When compiled without multi-byte feature the clipboard didn't work.
It was possible to switch to another tab page when the cmdline window is open.
Completion could hang when 'lines' is 6 and a preview window was opened.
Added CTRL-W gF: open file under cursor in new tab page and jump to the line
number following the file name.
Added 'guitabtooltip'. Implemented for Win32 (Yegappan Lakshmanan).
Added "throw" to 'debug' option: throw an exception for error messages even
whey they would otherwise be ignored.
When 'keymap' is set and a line contains an invalid entry could get a "No
mapping found" warning instead of a proper error message.
Motif: default to using XpmAttributes instead of XpmAttributes_21.
A few more changes for 64 bit MS-Windows. (George Reilly)
Got ml_get errors when doing "o" and selecting in other window where there are
less lines shorter than the cursor position in the other window. ins_mouse()
was using position in wrong window.
Win32 GUI: Crash when giving a lot of messages during startup. Allocate twice
as much memory for the dialog template.
Fixed a few leaks and wrong pointer use reported by coverity.
When showing menus the mode character was sometimes wrong.
Added feedkeys(). (Yakov Lerner)
Made matchlist() always return all submatches.
Moved triggering QuickFixCmdPost to before jumping to the first location.
Mac: Added the 'macatsui' option as a temporary work around for text drawing
problems.
Line completion on "/**" gave error messages when scanning an unloaded buffer.
--- fixes and changes since Vim 7.0f ---
Win32: The height of the tab page labels is now adjusted to the font height.
(Yegappan Lakshmanan)
Win32: selecting the tab label was off by one. (Yegappan Lakshmanan)
Added tooltips for Motif and GTK tab page labels. (Yegappan Lakshmanan)
When 'encoding' is "utf-8" then ":help spell" would report an illegal byte and
the file was not converted from latin1 to utf-8. Now retry with latin1 if
reading the file as utf-8 results in illegal bytes.
Escape the argument of feedkeys() before putting it in the typeahead buffer.
(Yukihiro Nakadaira)
Added the v:char variable for evaluating 'formatexpr'. (Yukihiro Nakadaira)
With 8 colors Search highlighting combined with Statement highlighted text
made the text disappear.
VMS: avoid warnings for redefining MAX and MIN. (Zoltan Arpadffy)
When 'virtualedit' includes "onemore", stopping Visual selection would still
move the cursor left.
Prevent that using CTRL-R = in Insert mode can start Visual mode.
Fixed a crash that occurred when in Insert mode with completion active and a
mapping caused edit() to be called recursively.
When using CTRL-O in Insert mode just after the last character while
'virtualedit' is "all", then typing CR moved the last character to the next
line. Call coladvance() before starting the new line.
When using |:shell| ignore clicks on the tab page labels. Also when using the
command line window.
When 'eventignore' is "all" then adding more to ignoring some events, e.g.,
for ":vimgrep", would actually trigger more events.
Win32: When a running Vim uses server name GVIM1 then "gvim --remote fname"
didn't find it. When looking for a server name that doesn't end in a digit
and it is not found then use another server with that name and a number (just
like on Unix).
When using "double" in 'spellsuggest' when the language doesn't support sound
folding resulted in too many suggestions.
Win32: Dropping a shortcut on the Vim icon didn't edit the referred file like
editing it in another way would. Use fname_expand() in buf_set_name() instead
of simply make the file name a full path.
Using feedkeys() could cause Vim to hang.
When closing another tab page from the tabline menu in Insert mode the tabline
was not updated right away.
The syntax menu didn't work in compatible mode.
After using ":tag id" twice with the same "id", ":ts" and then ":pop" a ":ts"
reported no matching tag. Clear the cached tag name.
In Insert mode the matchparen plugin highlighted the wrong paren when there is
a string just next to a paren.
GTK: After opening a new tab page the text was sometimes not drawn correctly.
Flush output and catch up with events when updating the tab page labels.
In the GUI, using CTRL-W q to close the last window of a tab page could cause
a crash.
GTK: The tab pages line menu was not converted from 'encoding' to utf-8.
Typing a multi-byte character or a special key at the hit-enter prompt did not
work.
When 'virtualedit' contains "onemore" CTRL-O in Insert mode still moved the
cursor left when it was after the end of the line, even though it's allowed to
be there.
Added test for using tab pages.
towupper() and towlower() were not used, because of checking for
__STDC__ISO_10646__ instead of __STDC_ISO_10646__. (sertacyildiz)
For ":map <expr>" forbid changing the text, jumping to another buffer and
using ":normal" to avoid nasty side effects.
--- fixes and changes since Vim 7.0g ---
Compilation error on HP-UX, use of "dlerr" must be inside a #ifdef.
(Gary Johnson)
Report +reltime feature in ":version" output.
The tar and zip plugins detect failure to get the contents of the archive and
edit the file as-is.
When the result of 'guitablabel' is empty fall back to the default label.
Fixed crash when using ":insert" in a while loop and missing "endwhile".
"gt" and other commands could move to another window when |textlock| active
and when the command line window was open.
Spell checking a file with syntax highlighting and a bad word at the end of
the line is ignored could make "]s" hang.
Mac: inputdialog() didn't work when compiled with big features.
Interrupting ":vimgrep" while it is busy loading a file left a modified and
hidden buffer behind. Use enter_cleanup() and leave_cleanup() around
wipe_buffer().
When making 'keymap' empty the b:keymap_name variable wasn't deleted.
Using CTRL-N that searches a long time, pressing space to interrupt the
searching and accept the first match, the popup menu was still displayed
briefly.
When setting the Vim window height with -geometry the 'window' option could be
at a value that makes CTRL-F behave differently.
When opening a quickfix window in two tabs they used different buffers,
causing redrawing problems later. Now use the same buffer for all quickfix
windows. (Yegappan Lakshmanan)
When 'mousefocus' is set moving the mouse to the text tab pages line would
move focus to the first window. Also, the mouse pointer would jump to the
active window.
In a session file, when an empty buffer is wiped out, do this silently.
When one window has the cursor on the last line and another window is resized
to make that window smaller, the cursor line could go below the displayed
lines. In win_new_height() subtract one from the available space.
Also avoid that using "~" lines makes the window scroll down.
Mac: When sourcing the "macmap.vim" script and then finding a .vimrc file the
'cpo' option isn't set properly, because it was already set and restored.
Added the <special> argument to ":map", so that 'cpo' doesn't need to be
changed to be able to use <> notation. Also do this for ":menu" for
consistency.
When using "/encoding=abc" in a spell word list, only "bc" was used.
When 'encoding' and 'printencoding' were both "utf-8" then ":hardcopy" didn't
work. (Mike Williams)
Mac: When building with "--disable-gui" the install directory would still be
"/Applications" and Vim.app would be installed. Now install in /usr/local as
usual for a console application.
GUI: when doing completion and there is one match and still searching for
another, the cursor was displayed at the end of the line instead of after the
match. Now show the cursor after the match while still searching for matches.
GUI: The mouse shape changed on the statusline even when 'mouse' was empty and
they can't be dragged.
GTK2: Selecting a button in the confirm() dialog with Tab or cursor keys and
hitting Enter didn't select that button. Removed GTK 1 specific code. (Neil
Bird)
When evaluating 'balloonexpr' takes a long time it could be called
recursively, which could cause a crash.
exists() could not be used to detect whether ":2match" is supported. Added a
check for it specifically.
GTK1: Tab page labels didn't work. (Yegappan Lakshmanan)
Insert mode completion: When finding matches use 'ignorecase', but when adding
matches to the list don't use it, so that all words with different case are
added, "word", "Word" and "WORD".
When 'cursorline' and 'hlsearch' are set and the search pattern is "x\n"
the rest of the line was highlighted as a match.
Cursor moved while evaluating 'balloonexpr' that invokes ":isearch" and
redirects the output. Don't move the cursor to the command line if msg_silent
is set.
exists() ignored text after a function name and option name, which could
result in false positives.
exists() ignored characters after the recognized word, which can be wrong when
using a name with non-keyword characters. Specifically, these calls no longer
allow characters after the name: exists('*funcname') exists('*funcname(...')
exists('&option') exists(':cmd') exists('g:name') exists('g:name[n]')
exists('g:name.n')
Trigger the TabEnter autocommand only after entering the current window of the
tab page, otherwise the commands are executed with an invalid current window.
Win32: When using two monitors and Vim is on the second monitor, changing the
width of the Vim window could make it jump to the first monitor.
When scrolling back at the more prompt and the quitting a line of text would
be left behind when 'cmdheight' is 2 or more.
Fixed a few things for Insert mode completion, especially when typing BS,
CTRL-N or a printable character while still searching for matches.
==============================================================================
7.1 *version-7.1* *version7.1*
本小节讨论 7.0 7.1 版本之间的改进。
这是一个漏洞修正版。没有什么突出的新特性。
改动 *changed-7.1*
-------
vimrc_example.vim 里,增加了 'mouse' 的设置。
MZscheme 编译时同时寻找 "plt" 子目录下的头文件。FreeBSD 用到那里的文件。
Ruby 界面的模块名现在叫做 "Vim" 而非 "VIM"。但为了反向兼容起见,保留 "VIM"
其别名。 (Tim Pope)
新增 *added-7.1*
-----
新语法文件:
/var/log/messages (Yakov Lerner)
Autohotkey (Nikolai Weibull)
AutoIt v3 (Jared Breland)
Bazaar commit file "bzr" (Dmitry Vasiliev)
Cdrdao TOC (Nikolai Weibull)
Cmusrc (Nikolai Weibull)
Conary recipe (rPath Inc)
Framescript (Nikolai Weibull)
FreeBasic (Mark Manning)
Hamster (David Fishburn)
IBasic (Mark Manning)
Initng (Elan Ruusamae)
Ldapconf (Nikolai Weibull)
Litestep (Nikolai Weibull)
Privoxy actions file (Doug Kearns)
Streaming Descriptors "sd" (Puria Nafisi Azizi)
新教程文件:
捷克语 (Lubos Turek)
匈牙利语 (Arpad Horvath)
土耳其语 (Serkan kkk)
希腊语教程的 utf-8 版本。
俄语教程的 utf-8 版本。
斯洛伐克语教程的 utf-8 版本。
新文件类型插件:
Bst (Tim Pope)
Cobol (Tim Pope)
Fvwm (Gautam Iyer)
Hamster (David Fishburn)
Django HTML 模板 (Dave Hodder)
新缩进文件:
Bst (Tim Pope)
Cobol (Tim Pope)
Hamster (David Fishburn)
Django HTML template (Dave Hodder)
Javascript
JSP (David Fishburn)
新键盘映射表:
保加利亚语 (Boyko Bantchev)
蒙古语 (Natsagdorj Shagdar)
马尔代夫语 (Ibrahim Fayaz)
越南语 (Samuel Thibault)
其它新运行时文件:
Ada 支持文件。(Neil Bird, Martin Krischik)
斯洛文尼亚语菜单翻译 (Mojca Miklavec)
Mono C# 编译器插件 (Jarek Sobiecki)
修正 *fixed-7.1*
-----
Could not build the Win32s version. Added a few structure definitions in
src/gui_w32.c
Patch 7.0.001
问题: ":set spellsuggest+=10" does not work. (Suresh Govindachar)
解决方案: Add P_COMMA to the 'spellsuggest' flags.
相关文件: src/option.c
Patch 7.0.002
问题: C omni completion has a problem with tags files with a path
containing "#" or "%".
解决方案: Escape these characters. (Sebastian Baberowski)
相关文件: runtime/autoload/ccomplete.vim
Patch 7.0.003
问题: GUI: clicking in the lower part of a label in the tab pages line
while 'mousefocus' is set may warp the mouse pointer. (Robert
Webb)
解决方案: Check for a negative mouse position.
相关文件: src/gui.c
Patch 7.0.004
问题: Compiler warning for debug_saved used before set. (Todd Blumer)
解决方案: Remove the "else" for calling save_dbg_stuff().
相关文件: src/ex_docmd.c
Patch 7.0.005 (extra)
问题: Win32: The installer doesn't remove the "autoload" and "spell"
directories. (David Fishburn)
解决方案: Add the directories to the list to be removed.
相关文件: nsis/gvim.nsi
Patch 7.0.006
问题: Mac: "make shadow" doesn't make a link for infplist.xml. (Axel
Kielhorn)
解决方案: Make the link.
相关文件: src/Makefile
Patch 7.0.007
问题: AIX: compiling fails for message.c. (Ruediger Hornig)
解决方案: Move the #if outside of memchr().
相关文件: src/message.c
Patch 7.0.008
问题: Can't call a function that uses both <SID> and {expr}. (Thomas)
解决方案: Check both the expanded and unexpanded name for <SID>.
相关文件: src/eval.c
Patch 7.0.009
问题: ml_get errors with both 'sidescroll' and 'spell' set.
解决方案: Use ml_get_buf() instead of ml_get(), get the line from the right
buffer, not the current one.
相关文件: src/spell.c
Patch 7.0.010
问题: The spellfile plugin required typing login name and password.
解决方案: Use "anonymous" and "vim7user" by default. No need to setup a
.netrc file.
相关文件: runtime/autoload/spellfile.vim
Patch 7.0.011
问题: Can't compile without the folding and with the eval feature.
解决方案: Add an #ifdef. (Vallimar)
相关文件: src/option.c
Patch 7.0.012
问题: Using the matchparen plugin, moving the cursor in Insert mode to a
shorter line that ends in a brace, changes the preferred column
解决方案: Use winsaveview()/winrestview() instead of getpos()/setpos().
相关文件: runtime/plugin/matchparen.vim
Patch 7.0.013
问题: Insert mode completion: using CTRL-L to add an extra character
also deselects the current match, making it impossible to use
CTRL-L a second time.
解决方案: Keep the current match. Also make CTRL-L work at the original
text, using the first displayed match.
相关文件: src/edit.c
Patch 7.0.014
问题: Compiling gui_xmebw.c fails on Dec Alpha Tru64. (Rolfe)
解决方案: Disable some code for Motif 1.2 and older.
相关文件: src/gui_xmebw.c
Patch 7.0.015
问题: Athena: compilation problems with modern compiler.
解决方案: Avoid type casts for lvalue. (Alexey Froloff)
相关文件: src/gui_at_fs.c
Patch 7.0.016
问题: Printing doesn't work for "dec-mcs" encoding.
解决方案: Add "dec-mcs", "mac-roman" and "hp-roman8" to the list of
recognized 8-bit encodings. (Mike Williams)
相关文件: src/mbyte.c
Patch 7.0.017 (after 7.0.014)
问题: Linking gui_xmebw.c fails on Dec Alpha Tru64. (Rolfe)
解决方案: Adjust defines for Motif 1.2 and older.
相关文件: src/gui_xmebw.c
Patch 7.0.018
问题: VMS: plugins are not loaded on startup.
解决方案: Remove "**" from the path. (Zoltan Arpadffy)
相关文件: src/main.c
Patch 7.0.019
问题: Repeating "VjA789" may cause a crash. (James Vega)
解决方案: Check the cursor column after moving it to another line.
相关文件: src/ops.c
Patch 7.0.020
问题: Crash when using 'mousefocus'. (William Fulton)
解决方案: Make buffer for mouse coordinates 2 bytes longer. (Juergen Weigert)
相关文件: src/gui.c
Patch 7.0.021
问题: Crash when using "\\[" and "\\]" in 'errorformat'. (Marc Weber)
解决方案: Check for valid submatches after matching the pattern.
相关文件: src/quickfix.c
Patch 7.0.022
问题: Using buffer.append() in Ruby may append the line to the wrong
buffer. (Alex Norman)
解决方案: Properly switch to the buffer to do the appending. Also for
buffer.delete() and setting a buffer line.
相关文件: src/if_ruby.c
Patch 7.0.023
问题: Crash when doing spell completion in an empty line and pressing
CTRL-E.
解决方案: Check for a zero pointer. (James Vega)
Also handle a situation without a matching pattern better, report
"No matches" instead of remaining in undefined CTRL-X mode. And
get out of CTRL-X mode when typing a letter.
相关文件: src/edit.c
Patch 7.0.024
问题: It is possible to set arbitrary "v:" variables.
解决方案: Disallow setting "v:" variables that are not predefined.
相关文件: src/eval.c
Patch 7.0.025
问题: Crash when removing an element of a:000. (Nikolai Weibull)
解决方案: Mark the a:000 list with VAR_FIXED.
相关文件: src/eval.c
Patch 7.0.026
问题: Using libcall() may show an old error.
解决方案: Invoke dlerror() to clear a previous error. (Yukihiro Nakadaira)
相关文件: src/os_unix.c
Patch 7.0.027 (extra)
问题: Win32: When compiled with SNIFF gvim may hang on exit.
解决方案: Translate and dispatch the WM_USER message. (Mathias Michaelis)
相关文件: src/gui_w48.c
Patch 7.0.028 (extra)
问题: OS/2: Vim doesn't compile with gcc 3.2.1.
解决方案: Add argument to after_pathsep(), don't define vim_handle_signal(),
define HAVE_STDARG_H. (David Sanders)
相关文件: src/os_unix.c, src/vim.h, src/os_os2_cfg.h
Patch 7.0.029
问题: getchar() may not position the cursor after a space.
解决方案: Position the cursor explicitly.
相关文件: src/eval.c
Patch 7.0.030
问题: The ":compiler" command can't be used in a FileChangedRO event.
(Hari Krishna Dara)
解决方案: Add the CMDWIN flag to the ":compiler" command.
相关文件: src/ex_cmds.h
Patch 7.0.031
问题: When deleting a buffer the buffer-local mappings for Select mode
remain.
解决方案: Add the Select mode bit to MAP_ALL_MODES. (Edwin Steiner)
相关文件: src/vim.h
Patch 7.0.032 (extra, after 7.0.027)
问题: Missing semicolon.
解决方案: Add the semicolon.
相关文件: src/gui_w48.c
Patch 7.0.033
问题: When pasting text, with the menu or CTRL-V, autoindent is removed.
解决方案: Use "x<BS>" to avoid indent to be removed. (Benji Fisher)
相关文件: runtime/autoload/paste.vim
Patch 7.0.034
问题: After doing completion and typing more characters or using BS
repeating with "." didn't work properly. (Martin Stubenschrott)
解决方案: Don't put BS and other characters in the redo buffer right away,
do this when finishing completion.
相关文件: src/edit.c
Patch 7.0.035
问题: Insert mode completion works when typed but not when replayed from
a register. (Hari Krishna Dara)
Also: Mappings for Insert mode completion don't always work.
解决方案: When finding a non-completion key in the input don't interrupt
completion when it wasn't typed.
Do use mappings when checking for typeahead while still finding
completions. Avoids that completion is interrupted too soon.
Use "compl_pending" in a different way.
相关文件: src/edit.c
Patch 7.0.036
问题: Can't compile with small features and syntax highlighting or the
diff feature.
解决方案: Define LINE_ATTR whenever syntax highlighting or the diff feature
is enabled.
相关文件: src/screen.c
Patch 7.0.037
问题: Crash when resizing the GUI window vertically when there is a line
that doesn't fit.
解决方案: Don't redraw while the screen data is invalid.
相关文件: src/screen.c
Patch 7.0.038
问题: When calling complete() from an Insert mode expression mapping
text could be inserted in an improper way.
解决方案: Make undo_allowed() global and use it in complete().
相关文件: src/undo.c, src/proto/undo.pro, src/eval.c
Patch 7.0.039
问题: Calling inputdialog() with a third argument in the console doesn't
work.
解决方案: Make a separate function for input() and inputdialog(). (Yegappan
Lakshmanan)
相关文件: src/eval.c
Patch 7.0.040
问题: When 'cmdheight' is larger than 1 using inputlist() or selecting
a spell suggestion with the mouse gets the wrong entry.
解决方案: Start listing the first alternative on the last line of the screen.
相关文件: src/eval.c, src/spell.c
Patch 7.0.041
问题: cursor([1, 1]) doesn't work. (Peter Hodge)
解决方案: Allow leaving out the third item of the list and use zero for the
virtual column offset.
相关文件: src/eval.c
Patch 7.0.042
问题: When pasting a block of text in Insert mode Vim hangs or crashes.
(Noam Halevy)
解决方案: Avoid that the cursor is positioned past the NUL of a line.
相关文件: src/ops.c
Patch 7.0.043
问题: Using "%!" at the start of 'statusline' doesn't work.
解决方案: Recognize the special item when the option is being set.
相关文件: src/option.c
Patch 7.0.044
问题: Perl: setting a buffer line in another buffer may result in
changing the current buffer.
解决方案: Properly change to the buffer to be changed.
相关文件: src/if_perl.xs
Patch 7.0.045 (extra)
问题: Win32: Warnings when compiling OLE version with MSVC 2005.
解决方案: Move including vim.h to before windows.h. (Ilya Bobir)
相关文件: src/if_ole.cpp
Patch 7.0.046
问题: The matchparen plugin ignores parens in strings, but not in single
quotes, often marked with "character".
解决方案: Also ignore parens in syntax items matching "character".
相关文件: runtime/plugin/matchparen.vim
Patch 7.0.047
问题: When running configure the exit status is wrong.
解决方案: Handle the exit status properly. (Matthew Woehlke)
相关文件: configure, src/configure
Patch 7.0.048
问题: Writing a compressed file fails when there are parens in the name.
(Wang Jian)
解决方案: Put quotes around the temp file name.
相关文件: runtime/autoload/gzip.vim
Patch 7.0.049
问题: Some TCL scripts are not recognized. (Steven Atkinson)
解决方案: Check for "exec wish" in the file.
相关文件: runtime/scripts.vim
Patch 7.0.050
问题: After using the netbeans interface close command a stale pointer
may be used.
解决方案: Clear the pointer to the closed buffer. (Xaview de Gaye)
相关文件: src/netbeans.c
Patch 7.0.051 (after 7.0.44)
问题: The Perl interface doesn't compile or doesn't work properly.
解决方案: Remove the spaces before #ifdef and avoid an empty line above it.
相关文件: src/if_perl.xs
Patch 7.0.052
问题: The user may not be aware that the Vim server allows others more
functionality than desired.
解决方案: When running Vim as root don't become a Vim server without an
explicit --servername argument.
相关文件: src/main.c
Patch 7.0.053
问题: Shortening a directory name may fail when there are multi-byte
characters.
解决方案: Copy the correct bytes. (Titov Anatoly)
相关文件: src/misc1.c
Patch 7.0.054
问题: Mac: Using a menu name that only has a mnemonic or accelerator
causes a crash. (Elliot Shank)
解决方案: Check for an empty menu name. Also delete empty submenus that
were created before detecting the error.
相关文件: src/menu.c
Patch 7.0.055
问题: ":startinsert" in a CmdwinEnter autocommand doesn't take immediate
effect. (Bradley White)
解决方案: Put a NOP key in the typeahead buffer. Also avoid that using
CTRL-C to go back to the command line moves the cursor left.
相关文件: src/edit.c, src/ex_getln.c
Patch 7.0.056
问题: "#!something" gives an error message.
解决方案: Ignore this line, so that it can be used in an executable Vim
script.
相关文件: src/ex_docmd.c
Patch 7.0.057 (extra, after 7.0.45)
问题: Win32: Compilation problem with Borland C 5.5.
解决方案: Include vim.h as before. (Mark S. Williams)
相关文件: src/if_ole.cpp
Patch 7.0.058
问题: The gbk and gb18030 encodings are not recognized.
解决方案: Add aliases to cp936. (Edward L. Fox)
相关文件: src/mbyte.c
Patch 7.0.059
问题: The Perl interface doesn't compile with ActiveState Perl 5.8.8.
解决方案: Remove the __attribute__() items. (Liu Yubao)
相关文件: src/if_perl.xs
Patch 7.0.060 (after 7.0.51)
问题: Code for temporarily switching to another buffer is duplicated in
quite a few places.
解决方案: Use aucmd_prepbuf() and aucmd_restbuf() also when FEAT_AUTOCMD is
not defined.
相关文件: src/buffer.c, src/eval.c, src/fileio.c, src/if_ruby.c,
src/if_perl.xs, src/quickfix.c, src/structs.h
Patch 7.0.061
问题: Insert mode completion for Vim commands may crash if there is
nothing to complete.
解决方案: Instead of freeing the pattern make it empty, so that a "not
found" error is given. (Yukihiro Nakadaira)
相关文件: src/edit.c
Patch 7.0.062
问题: Mac: Crash when using the popup menu for spell correction. The
popup menu appears twice when letting go of the right mouse button
early.
解决方案: Don't show the popup menu on the release of the right mouse
button. Also check that a menu pointer is actually valid.
相关文件: src/proto/menu.pro, src/menu.c, src/normal.c, src/term.c
Patch 7.0.063
问题: Tiny chance for a memory leak. (coverity)
解决方案: Free pointer when next memory allocation fails.
相关文件: src/eval.c
Patch 7.0.064
问题: Using uninitialized variable. (Tony Mechelynck)
解决方案: When not used set "temp" to zero. Also avoid a warning for
"files" in ins_compl_dictionaries().
相关文件: src/edit.c
Patch 7.0.065 (extra)
问题: Mac: left-right movement of the scrollwheel causes up-down
scrolling.
解决方案: Ignore mouse wheel events that are not up-down. (Nicolas Weber)
相关文件: src/gui_mac.c
Patch 7.0.066
问题: After the popup menu for Insert mode completion overlaps the tab
pages line it is not completely removed.
解决方案: Redraw the tab pages line after removing the popup menu. (Ori
Avtalion)
相关文件: src/popupmnu.c
Patch 7.0.067
问题: Undo doesn't always work properly when using "scim" input method.
Undo is split up when using preediting.
解决方案: Reset xim_has_preediting also when preedit_start_col is not
MAXCOL. Don't split undo when <Left> is used while preediting.
(Yukihiro Nakadaira)
相关文件: src/edit.c, src/mbyte.c
Patch 7.0.068
问题: When 'ignorecase' is set and using Insert mode completion,
typing characters to change the list of matches, case is not
ignored. (Hugo Ahlenius)
解决方案: Store the 'ignorecase' flag with the matches where needed.
相关文件: src/edit.c, src/search.c, src/spell.c
Patch 7.0.069
问题: Setting 'guitablabel' to %!expand(\%) causes Vim to free an
invalid pointer. (Kim Schulz)
解决方案: Don't try freeing a constant string pointer.
相关文件: src/buffer.c
Patch 7.0.070
问题: Compiler warnings for shadowed variables and uninitialized
variables.
解决方案: Rename variables such as "index", "msg" and "dup". Initialize
variables.
相关文件: src/edit.c, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c,
src/ex_docmd.c, src/gui_beval.c, src/gui_gtk.c, src/gui_gtk_x11.c,
src/hardcopy.c, src/if_cscope.c, src/main.c, src/mbyte.c,
src/memline.c, src/netbeans.c, src/normal.c, src/option.c,
src/os_unix.c, src/quickfix.c, src/regexp.c, src/screen.c,
src/search.c, src/spell.c, src/ui.c, src/undo.c, src/window.c,
src/version.c
Patch 7.0.071
问题: Using an empty search pattern may cause a crash.
解决方案: Avoid using a NULL pointer.
相关文件: src/search.c
Patch 7.0.072
问题: When starting the GUI fails there is no way to adjust settings or
do something else.
解决方案: Add the GUIFailed autocommand event.
相关文件: src/fileio.c, src/gui.c, src/vim.h
Patch 7.0.073
问题: Insert mode completion: Typing <CR> sometimes selects the original
text instead of keeping what was typed. (Justin Constantino)
解决方案: Don't let <CR> select the original text if there is no popup menu.
相关文件: src/edit.c
Patch 7.0.074 (extra)
问题: Win32: tooltips were not converted from 'encoding' to Unicode.
解决方案: Set the tooltip to use Unicode and do the conversion. Also
cleanup the code for the tab pages tooltips. (Yukihiro Nakadaira)
相关文件: src/gui_w32.c, src/gui_w48.c
Patch 7.0.075
问题: winsaveview() did not store the actual value of the desired cursor
column. This could move the cursor in the matchparen plugin.
解决方案: Call update_curswant() before using the value w_curswant.
相关文件: src/eval.c
Patch 7.0.076 (after 7.0.010)
问题: Automatic downloading of spell files only works for ftp.
解决方案: Don't add login and password for non-ftp URLs. (Alexander Patrakov)
相关文件: runtime/autoload/spellfile.vim
Patch 7.0.077
问题: ":unlet v:this_session" causes a crash. (Marius Roets)
解决方案: When trying to unlet a fixed variable give an error message.
相关文件: src/eval.c
Patch 7.0.078
问题: There are two error messages E46.
解决方案: Change the number for the sandbox message to E794.
相关文件: src/globals.h
Patch 7.0.079
问题: Russian tutor doesn't work when 'encoding' is "utf-8".
解决方案: Use tutor.ru.utf-8 as the master, and generate the other encodings
from it. Select the right tutor depending on 'encoding'. (Alexey
Froloff)
相关文件: runtime/tutor/Makefile, runtime/tutor/tutor.vim,
runtime/tutor/tutor.ru.utf-8
Patch 7.0.080
问题: Generating auto/pathdef.c fails for CFLAGS with a backslash.
解决方案: Double backslashes in the string. (Alexey Froloff)
相关文件: src/Makefile
Patch 7.0.081
问题: Command line completion doesn't work for a shell command with an
absolute path.
解决方案: Don't use $PATH when there is an absolute path.
相关文件: src/ex_getln.c
Patch 7.0.082
问题: Calling a function that waits for input may cause List and
Dictionary arguments to be freed by the garbage collector.
解决方案: Keep a list of all arguments to internal functions.
相关文件: src/eval.c
Patch 7.0.083
问题: Clicking with the mouse on an item for inputlist() doesn't work
when 'compatible' is set and/or when 'cmdheight' is more than one.
(Christian J. Robinson)
解决方案: Also decrement "lines_left" when 'more' isn't set. Set
"cmdline_row" to zero to get all mouse events.
相关文件: src/message.c, src/misc1.c
Patch 7.0.084
问题: The garbage collector may do its work while some Lists or
Dictionaries are used internally, e.g., by ":echo" that runs into
the more-prompt or ":echo [garbagecollect()]".
解决方案: Only do garbage collection when waiting for a character at the
toplevel. Let garbagecollect() set a flag that is handled at the
toplevel before waiting for a character.
相关文件: src/eval.c, src/getchar.c, src/globals.h, src/main.c
Patch 7.0.085
问题: When doing "make test" the viminfo file is modified.
解决方案: Use another viminfo file after setting 'compatible.
相关文件: src/testdir/test56.in
Patch 7.0.086
问题: getqflist() returns entries for pattern and text with the number
zero. Passing these to setqflist() results in the string "0".
解决方案: Use an empty string instead of the number zero.
相关文件: src/quickfix.c
Patch 7.0.087
问题: After ":file fname" and ":saveas fname" the 'autochdir' option
does not take effect. (Yakov Lerner)
Commands for handling 'autochdir' are repeated many times.
解决方案: Add the DO_AUTOCHDIR macro and do_autochdir(). Use it for
":file fname" and ":saveas fname".
相关文件: src/proto/buffer.pro, src/buffer.c, src/ex_cmds.c, src/macros.h,
src/netbeans.c, src/option.c, src/window.c
Patch 7.0.088
问题: When compiled with Perl the generated prototypes have "extern"
unnecessarily added.
解决方案: Remove the "-pipe" argument from PERL_CFLAGS.
相关文件: src/auto/configure, src/configure.in
Patch 7.0.089
问题: "ga" does not work properly for a non-Unicode multi-byte encoding.
解决方案: Only check for composing chars for utf-8. (Taro Muraoka)
相关文件: src/ex_cmds.c
Patch 7.0.090
问题: Cancelling the conform() dialog on the console with Esc requires
typing it twice. (Benji Fisher)
解决方案: When the start of an escape sequence is found use 'timeoutlen' or
'ttimeoutlen'.
相关文件: src/misc1.c
Patch 7.0.091
问题: Using winrestview() while 'showcmd' is set causes the cursor to be
displayed in the wrong position. (Yakov Lerner)
解决方案: Set the window topline properly.
相关文件: src/eval.c
Patch 7.0.092 (after 7.0.082 and 7.0.084)
问题: The list of internal function arguments is obsolete now that
garbage collection is only done at the toplevel.
解决方案: Remove the list of all arguments to internal functions.
相关文件: src/eval.c
Patch 7.0.093
问题: The matchparen plugin can't handle a 'matchpairs' value where a
colon is matched.
解决方案: Change the split() that is used to change 'matchpairs' into a
List.
相关文件: runtime/plugin/matchparen.vim
Patch 7.0.094
问题: When a hidden buffer is made the current buffer and another file
edited later, the file message will still be given. Using
":silent" also doesn't prevent the file message. (Marvin Renich)
解决方案: Reset the need_fileinfo flag when reading a file. Don't set
need_fileinfo when msg_silent is set.
相关文件: src/buffer.c, src/fileio.c
Patch 7.0.095
问题: The Greek tutor is not available in utf-8. "el" is used for the
language, only "gr" for the country is recognized.
解决方案: Add the utf-8 Greek tutor. Use it for conversion to iso-8859-7
and cp737. (Lefteris Dimitroulakis)
相关文件: runtime/tutor/Makefile, runtime/tutor/tutor.gr.utf-8,
runtime/tutor/tutor.vim
Patch 7.0.096
问题: taglist() returns the filename relative to the tags file, while
the directory of the tags file is unknown. (Hari Krishna Dara)
解决方案: Expand the file name. (Yegappan Lakshmanan)
相关文件: src/tag.c
Patch 7.0.097
问题: ":tabclose N" that closes another tab page does not remove the tab
pages line. Same problem when using the mouse.
解决方案: Adjust the tab pages line when needed in tabpage_close_other().
相关文件: src/ex_docmd.c
Patch 7.0.098
问题: Redirecting command output in a cmdline completion function
doesn't work. (Hari Krishna Dara)
解决方案: Enable redirection when redirection is started.
相关文件: src/ex_docmd.c, src/ex_getln.c
Patch 7.0.099
问题: GUI: When the popup menu is visible using the scrollbar messes up
the display.
解决方案: Disallow scrolling the current window. Redraw the popup menu
after scrolling another window.
相关文件: src/gui.c
Patch 7.0.100
问题: "zug" may report the wrong filename. (Lawrence Kesteloot)
解决方案: Call home_replace() to fill NameBuff[].
相关文件: src/spell.c
Patch 7.0.101
问题: When the "~/.vim/spell" directory does not exist "zg" may create
a wrong directory. "zw" doesn't work.
解决方案: Use the directory of the file name instead of NameBuff. For "zw"
not only remove a good word but also add the word with "!".
相关文件: src/spell.c
Patch 7.0.102
问题: Redrawing cmdline is not correct when using SCIM.
解决方案: Don't call im_get_status(). (Yukihiro Nakadaira)
相关文件: src/ex_getln.c
Patch 7.0.103 (after 7.0.101)
问题: Compiler warning for uninitialized variable. (Tony Mechelynck)
解决方案: Init variable.
相关文件: src/spell.c
Patch 7.0.104
问题: The CursorHoldI event only triggers once in Insert mode. It also
triggers after CTRL-V and other two-key commands.
解决方案: Set "did_cursorhold" before getting a second key. Reset
"did_cursorhold" after handling a command.
相关文件: src/edit.c, src/fileio.c
Patch 7.0.105
问题: When using incremental search the statusline ruler isn't updated.
(Christoph Koegl)
解决方案: Update the statusline when it contains the ruler.
相关文件: src/ex_getln.c
Patch 7.0.106
问题: The spell popup menu uses ":amenu", triggering mappings. Other
PopupMenu autocommands are removed. (John Little)
解决方案: Use ":anoremenu" and use an autocmd group.
相关文件: runtime/menu.vim
Patch 7.0.107
问题: Incremental search doesn't redraw the text tabline. (Ilya Bobir)
Also happens in other situations with one window in a tab page.
解决方案: Redraw the tabline after clearing the screen.
相关文件: src/screen.c
Patch 7.0.108 (extra)
问题: Amiga: Compilation problem.
解决方案: Have mch_mkdir() return a failure flag. (Willy Catteau)
相关文件: src/os_amiga.c, src/proto/os_amiga.pro
Patch 7.0.109
问题: Lisp </