spacepaste

   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
diff -r 6581d543a54c runtime/indent/ada.vim
--- a/runtime/indent/ada.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/ada.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -64,9 +64,9 @@
    let lnum = a:prev_lnum
    let line = substitute( getline(lnum), g:ada#Comment, '', '' )
    while lnum > 1
-      if a:stop_at != ''  &&  line =~ '^\s*' . a:stop_at  &&  indent(lnum) < a:prev_indent
+      if a:stop_at != ''  &&  line =~# '^\s*' . a:stop_at  &&  indent(lnum) < a:prev_indent
 	 return a:prev_indent
-      elseif line =~ '^\s*' . a:blockstart
+      elseif line =~# '^\s*' . a:blockstart
 	 let ind = indent(lnum)
 	 if ind < a:prev_indent
 	    return ind
@@ -77,7 +77,7 @@
       " Get previous non-blank/non-comment-only line
       while 1
 	 let line = substitute( getline(lnum), g:ada#Comment, '', '' )
-	 if line !~ '^\s*$' && line !~ '^\s*#'
+	 if line !~# '^\s*$' && line !~# '^\s*#'
 	    break
 	 endif
 	 let lnum = prevnonblank(lnum - 1)
@@ -103,7 +103,7 @@
    let line = getline(lnum)
    let ends = 0
    while lnum > 1
-      if getline(lnum) =~ '^\s*' . a:blockstart
+      if getline(lnum) =~# '^\s*' . a:blockstart
 	 let ind = indent(lnum)
 	 if ends <= 0
 	    if ind < a:prev_indent
@@ -112,7 +112,7 @@
 	 else
 	    let ends = ends - 1
 	 endif
-      elseif getline(lnum) =~ '^\s*' . a:blockend
+      elseif getline(lnum) =~# '^\s*' . a:blockend
 	 let ends = ends + 1
       endif
 
@@ -121,7 +121,7 @@
       while 1
 	 let line = getline(lnum)
 	 let line = substitute( line, g:ada#Comment, '', '' )
-	 if line !~ '^\s*$'
+	 if line !~# '^\s*$'
 	    break
 	 endif
 	 let lnum = prevnonblank(lnum - 1)
@@ -149,7 +149,7 @@
       while 1
 	 let line = substitute( getline(lnum), g:ada#Comment, '', '' )
 	 
-	 if line !~ '^\s*$' && line !~ '^\s*#'
+	 if line !~# '^\s*$' && line !~# '^\s*#'
 	    break
 	 endif
 	 let lnum = prevnonblank(lnum - 1)
@@ -159,10 +159,10 @@
       endwhile
       " Leave indent alone if our ';' line is part of a ';'-delineated
       " aggregate (e.g., procedure args.) or first line after a block start.
-      if line =~ s:AdaBlockStart || line =~ '(\s*$'
+      if line =~# s:AdaBlockStart || line =~# '(\s*$'
 	 return a:current_indent
       endif
-      if line !~ '[.=(]\s*$'
+      if line !~# '[.=(]\s*$'
 	 let ind = indent(prev_lnum)
 	 if ind < a:current_indent
 	    return ind
@@ -187,7 +187,7 @@
    " Get previous non-blank/non-comment-only/non-cpp line
    while 1
       let line = substitute( getline(lnum), g:ada#Comment, '', '' )
-      if line !~ '^\s*$' && line !~ '^\s*#'
+      if line !~# '^\s*$' && line !~# '^\s*#'
 	 break
       endif
       let lnum = prevnonblank(lnum - 1)
@@ -201,13 +201,13 @@
    let initind = ind
 
    " Now check what's on the previous line
-   if line =~ s:AdaBlockStart  ||  line =~ '(\s*$'
+   if line =~# s:AdaBlockStart  ||  line =~# '(\s*$'
       " Check for false matches to AdaBlockStart
       let false_match = 0
-      if line =~ '^\s*\(procedure\|function\|package\)\>.*\<is\s*new\>'
+      if line =~# '^\s*\(procedure\|function\|package\)\>.*\<is\s*new\>'
 	 " Generic instantiation
 	 let false_match = 1
-      elseif line =~ ')\s*;\s*$'  ||  line =~ '^\([^(]*([^)]*)\)*[^(]*;\s*$'
+      elseif line =~# ')\s*;\s*$'  ||  line =~# '^\([^(]*([^)]*)\)*[^(]*;\s*$'
 	 " forward declaration
 	 let false_match = 1
       endif
@@ -215,79 +215,79 @@
       if ! false_match
 	 let ind = ind + &sw
       endif
-   elseif line =~ '^\s*\(case\|exception\)\>'
+   elseif line =~# '^\s*\(case\|exception\)\>'
       " Move indent in twice (next 'when' will move back)
       let ind = ind + 2 * &sw
-   elseif line =~ '^\s*end\s*record\>'
+   elseif line =~# '^\s*end\s*record\>'
       " Move indent back to tallying 'type' preceeding the 'record'.
       " Allow indent to be equal to 'end record's.
       let ind = s:MainBlockIndent( ind+&sw, lnum, 'type\>', '' )
-   elseif line =~ '\(^\s*new\>.*\)\@<!)\s*[;,]\s*$'
+   elseif line =~# '\(^\s*new\>.*\)\@<!)\s*[;,]\s*$'
       " Revert to indent of line that started this parenthesis pair
       exe lnum
       exe 'normal! $F)%'
-      if getline('.') =~ '^\s*('
+      if getline('.') =~# '^\s*('
 	 " Dire layout - use previous indent (could check for g:ada#Comment here)
 	 let ind = indent( prevnonblank( line('.')-1 ) )
       else
 	 let ind = indent('.')
       endif
       exe v:lnum
-   elseif line =~ '[.=(]\s*$'
+   elseif line =~# '[.=(]\s*$'
       " A statement continuation - move in one
       let ind = ind + &sw
-   elseif line =~ '^\s*new\>'
+   elseif line =~# '^\s*new\>'
       " Multiple line generic instantiation ('package blah is\nnew thingy')
       let ind = s:StatementIndent( ind - &sw, lnum )
-   elseif line =~ ';\s*$'
+   elseif line =~# ';\s*$'
       " Statement end (but not 'end' ) - try to find current statement-start indent
       let ind = s:StatementIndent( ind, lnum )
    endif
 
    " Check for potential argument list on next line
-   let continuation = (line =~ '[A-Za-z0-9_]\s*$')
+   let continuation = (line =~# '[A-Za-z0-9_]\s*$')
 
 
    " Check current line; search for simplistic matching start-of-block
    let line = getline(v:lnum)
-   if line =~ '^\s*#'
+   if line =~# '^\s*#'
       " Start of line for ada-pp
       let ind = 0
-   elseif continuation && line =~ '^\s*('
+   elseif continuation && line =~# '^\s*('
       " Don't do this if we've already indented due to the previous line
       if ind == initind
 	 let ind = ind + &sw
       endif
-   elseif line =~ '^\s*\(begin\|is\)\>'
+   elseif line =~# '^\s*\(begin\|is\)\>'
       let ind = s:MainBlockIndent( ind, lnum, '\(procedure\|function\|declare\|package\|task\)\>', 'begin\>' )
-   elseif line =~ '^\s*record\>'
+   elseif line =~# '^\s*record\>'
       let ind = s:MainBlockIndent( ind, lnum, 'type\>\|for\>.*\<use\>', '' ) + &sw
-   elseif line =~ '^\s*\(else\|elsif\)\>'
+   elseif line =~# '^\s*\(else\|elsif\)\>'
       let ind = s:MainBlockIndent( ind, lnum, 'if\>', '' )
-   elseif line =~ '^\s*when\>'
+   elseif line =~# '^\s*when\>'
       " Align 'when' one /in/ from matching block start
       let ind = s:MainBlockIndent( ind, lnum, '\(case\|exception\)\>', '' ) + &sw
-   elseif line =~ '^\s*end\>\s*\<if\>'
+   elseif line =~# '^\s*end\>\s*\<if\>'
       " End of if statements
       let ind = s:EndBlockIndent( ind, lnum, 'if\>', 'end\>\s*\<if\>' )
-   elseif line =~ '^\s*end\>\s*\<loop\>'
+   elseif line =~# '^\s*end\>\s*\<loop\>'
       " End of loops
       let ind = s:EndBlockIndent( ind, lnum, '\(\(while\|for\)\>.*\)\?\<loop\>', 'end\>\s*\<loop\>' )
-   elseif line =~ '^\s*end\>\s*\<record\>'
+   elseif line =~# '^\s*end\>\s*\<record\>'
       " End of records
       let ind = s:EndBlockIndent( ind, lnum, '\(type\>.*\)\=\<record\>', 'end\>\s*\<record\>' )
-   elseif line =~ '^\s*end\>\s*\<procedure\>'
+   elseif line =~# '^\s*end\>\s*\<procedure\>'
       " End of procedures
       let ind = s:EndBlockIndent( ind, lnum, 'procedure\>.*\<is\>', 'end\>\s*\<procedure\>' )
-   elseif line =~ '^\s*end\>\s*\<case\>'
+   elseif line =~# '^\s*end\>\s*\<case\>'
       " End of case statement
       let ind = s:EndBlockIndent( ind, lnum, 'case\>.*\<is\>', 'end\>\s*\<case\>' )
-   elseif line =~ '^\s*end\>'
+   elseif line =~# '^\s*end\>'
       " General case for end
       let ind = s:MainBlockIndent( ind, lnum, '\(if\|while\|for\|loop\|accept\|begin\|record\|case\|exception\|package\)\>', '' )
-   elseif line =~ '^\s*exception\>'
+   elseif line =~# '^\s*exception\>'
       let ind = s:MainBlockIndent( ind, lnum, 'begin\>', '' )
-   elseif line =~ '^\s*then\>'
+   elseif line =~# '^\s*then\>'
       let ind = s:MainBlockIndent( ind, lnum, 'if\>', '' )
    endif
 
diff -r 6581d543a54c runtime/indent/awk.vim
--- a/runtime/indent/awk.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/awk.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -76,7 +76,7 @@
    " If this line starts with an open brace bail out now before the line
    " continuation checks.
 
-   if getline( v:lnum ) =~ '^\s*{'
+   if getline( v:lnum ) =~# '^\s*{'
       return ind
    endif
 
@@ -118,7 +118,7 @@
    "   until that's not the case anymore. Take indent of one line down.
 
    " Case 1
-   if prev_data =~ ')' && brace_balance < 0
+   if prev_data =~# ')' && brace_balance < 0
       while brace_balance != 0 && prev_lineno > 0
 	 let prev_lineno = s:Get_prev_line( prev_lineno )
 	 let prev_data = getline( prev_lineno )
@@ -139,7 +139,7 @@
    endif
 
    " Decrease indent if this line contains a '}'.
-   if getline(v:lnum) =~ '^\s*}'
+   if getline(v:lnum) =~# '^\s*}'
       let ind = ind - &sw
    endif
 
@@ -162,7 +162,7 @@
 " call). Might need enhancements here.
 
 function! s:Starts_with_word( line )
-  if a:line =~ '^\s*[a-zA-Z_0-9]\+\s*('
+  if a:line =~# '^\s*[a-zA-Z_0-9]\+\s*('
      return 1
   endif
   return 0
@@ -189,14 +189,14 @@
 
 function! s:Seems_continuing( line )
   " Unfinished lines
-  if a:line =~ '\(--\|++\)\s*$'
+  if a:line =~# '\(--\|++\)\s*$'
     return 0
   endif
-  if a:line =~ '[\\,\|\&\+\-\*\%\^]\s*$'
+  if a:line =~# '[\\,\|\&\+\-\*\%\^]\s*$'
     return 1
   endif
   " if/for/while (cond) eol
-  if a:line =~ '^\s*\(if\|while\|for\)\s*(.*)\s*$' || a:line =~ '^\s*else\s*'
+  if a:line =~# '^\s*\(if\|while\|for\)\s*(.*)\s*$' || a:line =~# '^\s*else\s*'
       return 2
    endif
   return 0
@@ -208,7 +208,7 @@
 function! s:Get_prev_line( lineno )
    let lnum = a:lineno - 1
    let data = getline( lnum )
-   while lnum > 0 && (data =~ '^\s*#' || data =~ '^\s*$')
+   while lnum > 0 && (data =~# '^\s*#' || data =~# '^\s*$')
       let lnum = lnum - 1
       let data = getline( lnum )
    endwhile
diff -r 6581d543a54c runtime/indent/bst.vim
--- a/runtime/indent/bst.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/bst.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -27,7 +27,7 @@
     let lnum = a:lnum
     while lnum > 0
         let lnum = prevnonblank(lnum - 1)
-        if getline(lnum) !~ '^\s*%.*$'
+        if getline(lnum) !~# '^\s*%.*$'
             break
         endif
     endwhile
@@ -57,7 +57,7 @@
     endif
     let line = s:strip(lnum)
     let cline = s:strip(a:lnum)
-    if cline =~ '^}' && exists("b:current_syntax")
+    if cline =~# '^}' && exists("b:current_syntax")
         call cursor(a:lnum,indent(a:lnum))
         if searchpair('{','','}','bW',"synIDattr(synID(line('.'),col('.'),1),'name') =~? 'comment\\|string'")
             if col('.')+1 == col('$')
diff -r 6581d543a54c runtime/indent/chaiscript.vim
--- a/runtime/indent/chaiscript.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/chaiscript.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -30,19 +30,19 @@
   let ind = indent(lnum)
   let flag = 0
   let prevline = getline(lnum)
-  if prevline =~ '^.*{.*'
+  if prevline =~# '^.*{.*'
     let ind = ind + &shiftwidth
     let flag = 1
   endif
 
   " Subtract a 'shiftwidth' after lines containing a { followed by a }
   " to keep it balanced
-  if flag == 1 && prevline =~ '.*{.*}.*'
+  if flag == 1 && prevline =~# '.*{.*}.*'
     let ind = ind - &shiftwidth
   endif
 
   " Subtract a 'shiftwidth' on lines ending with }
-  if getline(v:lnum) =~ '^\s*\%(}\)'
+  if getline(v:lnum) =~# '^\s*\%(}\)'
     let ind = ind - &shiftwidth
   endif
 
diff -r 6581d543a54c runtime/indent/cobol.vim
--- a/runtime/indent/cobol.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/cobol.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -18,7 +18,7 @@
     finish
 endif
 
-let s:skip = 'getline(".") =~ "^.\\{6\\}[*/$-]\\|\"[^\"]*\""'
+let s:skip = 'getline(".") =~# "^.\\{6\\}[*/$-]\\|\"[^\"]*\""'
 
 function! s:prevgood(lnum)
     " Find a non-blank line above the current line.
diff -r 6581d543a54c runtime/indent/config.vim
--- a/runtime/indent/config.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/config.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -52,19 +52,19 @@
 
   " if previous line has unmatched, unescaped opening parentheses,
   " indent to its position. TODO: not failsafe if multiple ('s
-  if line =~ '\\\@<!([^)]*$'
+  if line =~# '\\\@<!([^)]*$'
     let ind = s:GetOffsetOf(line, '\\\@!(')
   endif
 
   " if previous line has unmatched opening bracket,
   " indent to its position. TODO: same as above
-  if line =~ '\[[^]]*$'
+  if line =~# '\[[^]]*$'
     let ind = s:GetOffsetOf(line, '\[')
   endif
 
   " if previous line had an unmatched closing parantheses,
   " indent to the matching opening parantheses
-  if line =~ '[^(]\+\\\@<!)$'
+  if line =~# '[^(]\+\\\@<!)$'
     call search(')', 'bW')
     let lnum = searchpair('\\\@<!(', '', ')', 'bWn')
     let ind = indent(lnum)
@@ -72,7 +72,7 @@
 
   " if previous line had an unmatched closing bracket,
   " indent to the matching opening bracket
-  if line =~ '[^[]\+]$'
+  if line =~# '[^[]\+]$'
     call search(']', 'bW')
     let lnum = searchpair('\[', '', ']', 'bWn')
     let ind = indent(lnum)
diff -r 6581d543a54c runtime/indent/css.vim
--- a/runtime/indent/css.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/css.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -25,11 +25,11 @@
   while lnum > 1
     let lnum = prevnonblank(lnum)
     let line = getline(lnum)
-    if line =~ '\*/'
-      while lnum > 1 && line !~ '/\*'
+    if line =~# '\*/'
+      while lnum > 1 && line !~# '/\*'
         let lnum -= 1
       endwhile
-      if line =~ '^\s*/\*'
+      if line =~# '^\s*/\*'
         let lnum -= 1
       else
         break
@@ -48,7 +48,7 @@
   let pattern = '[{}]'
   let i = match(line, pattern)
   while i != -1
-    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~ 'css\%(Comment\|StringQ\{1,2}\)'
+    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~# 'css\%(Comment\|StringQ\{1,2}\)'
       if line[i] == '{'
         let n_open += 1
       elseif line[i] == '}'
@@ -66,7 +66,7 @@
 
 function GetCSSIndent()
   let line = getline(v:lnum)
-  if line =~ '^\s*\*'
+  if line =~# '^\s*\*'
     return cindent(v:lnum)
   endif
 
diff -r 6581d543a54c runtime/indent/cucumber.vim
--- a/runtime/indent/cucumber.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/cucumber.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -51,7 +51,7 @@
   elseif cline =~# '^\s*$' && line =~# '^\s*|'
     let in = indent(prevnonblank(v:lnum-1))
     return in == indent(v:lnum) ? in : in - &sw
-  elseif cline =~# '^\s*#' && getline(v:lnum-1) =~ '^\s*$' && getline(v:lnum+1) =~# '\S'
+  elseif cline =~# '^\s*#' && getline(v:lnum-1) =~# '^\s*$' && getline(v:lnum+1) =~# '\S'
     return indent(getline(v:lnum+1))
   endif
   return indent(prevnonblank(v:lnum-1))
diff -r 6581d543a54c runtime/indent/dtd.vim
--- a/runtime/indent/dtd.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/dtd.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -108,7 +108,7 @@
     " one level.
     let [token, end] = s:lex(line, end, '^\%([-O(]\|ANY\|EMPTY\)')
     let n = 0
-    while token =~ '[-O]' && n < 2
+    while token =~# '[-O]' && n < 2
       let [token, end] = s:lex(line, end, '^\%([-O(]\|ANY\|EMPTY\)')
       let n += 1
     endwhile
@@ -148,7 +148,7 @@
           return indent
         endif
         " TODO: Should use s:lex here on getline(v:lnum) and check for >.
-        return getline(v:lnum) =~ '^\s*>' || count(values(seen), 0) == 0 ? indent : (indent + &sw)
+        return getline(v:lnum) =~# '^\s*>' || count(values(seen), 0) == 0 ? indent : (indent + &sw)
       endif
 
       " If we’ve seen an addition or exception already and this is of the same
@@ -180,7 +180,7 @@
       let [name, end] = s:lex(line, end)
       if name == ""
         " TODO: Should use s:lex here on getline(v:lnum) and check for >.
-        return getline(v:lnum) =~ '^\s*>' ? indent : (indent + &sw)
+        return getline(v:lnum) =~# '^\s*>' ? indent : (indent + &sw)
       elseif name == ">"
         return indent
       endif
@@ -301,7 +301,7 @@
         let [quoted_string, end] = s:lex(line, end, '\%("[^"]\+"\|''[^'']\+''\|>\)')
         if quoted_string == ""
           " TODO: Should use s:lex here on getline(v:lnum) and check for >.
-          return getline(v:lnum) =~ '^\s*>' ? indent : (indent + &sw * 2)
+          return getline(v:lnum) =~# '^\s*>' ? indent : (indent + &sw * 2)
         elseif quoted_string == '>'
           return indent
         endif
diff -r 6581d543a54c runtime/indent/dylan.vim
--- a/runtime/indent/dylan.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/dylan.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -23,7 +23,7 @@
   let cline = getline(v:lnum)
 
   " Don't reindent comments on first column
-  if cline =~ '^/\[/\*]'
+  if cline =~# '^/\[/\*]'
     return 0
   endif
 
@@ -39,7 +39,7 @@
   let chg = 0
 
   " If previous line was a comment, use its indent
-  if prevline =~ '^\s*//'
+  if prevline =~# '^\s*//'
     return ind
   endif
 
@@ -53,15 +53,15 @@
   elseif prevline =~? '^\s*let.*[^;]\s*$'
     let chg = &sw
   " If previous line opened a parenthesis, and did not close it, indent
-  elseif prevline =~ '^.*(\s*[^)]*\((.*)\)*[^)]*$'
+  elseif prevline =~# '^.*(\s*[^)]*\((.*)\)*[^)]*$'
     return = match( prevline, '(.*\((.*)\|[^)]\)*.*$') + 1
-  "elseif prevline =~ '^.*(\s*[^)]*\((.*)\)*[^)]*$'
-  elseif prevline =~ '^[^(]*)\s*$'
+  "elseif prevline =~# '^.*(\s*[^)]*\((.*)\)*[^)]*$'
+  elseif prevline =~# '^[^(]*)\s*$'
     " This line closes a parenthesis.  Find opening
     let curr_line = prevnonblank(lnum - 1)
     while curr_line >= 0
       let str = getline(curr_line)
-      if str !~ '^.*(\s*[^)]*\((.*)\)*[^)]*$'
+      if str !~# '^.*(\s*[^)]*\((.*)\)*[^)]*$'
 	let curr_line = prevnonblank(curr_line - 1)
       else
 	break
diff -r 6581d543a54c runtime/indent/eiffel.vim
--- a/runtime/indent/eiffel.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/eiffel.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -56,52 +56,52 @@
   endif
 
   " trust the user's indenting
-  if getline(lnum) =~ s:trust_user_indent
+  if getline(lnum) =~# s:trust_user_indent
     return -1
   endif
 
   " Add a 'shiftwidth' after lines that start with an indent word
   let ind = indent(lnum)
-  if getline(lnum) =~ s:relative_indent
+  if getline(lnum) =~# s:relative_indent
     let ind = ind + &sw
   endif
 
   " Indent to single indent
-  if getline(v:lnum) =~ s:single_dent && getline(v:lnum) !~ s:relative_indent
-	   \ && getline(v:lnum) !~ '\s*\<\(and\|or\|implies\)\>'
+  if getline(v:lnum) =~# s:single_dent && getline(v:lnum) !~# s:relative_indent
+	   \ && getline(v:lnum) !~# '\s*\<\(and\|or\|implies\)\>'
      let ind = &sw
   endif
 
   " Indent to double indent
-  if getline(v:lnum) =~ s:inheritance_dent
+  if getline(v:lnum) =~# s:inheritance_dent
      let ind = 2 * &sw
   endif
 
   " Indent line after the first line of the function definition
-  if getline(lnum) =~ s:single_dent
+  if getline(lnum) =~# s:single_dent
      let ind = ind + &sw
   endif
 
   " The following should always be at the start of a line, no indenting
-  if getline(v:lnum) =~ s:no_indent
+  if getline(v:lnum) =~# s:no_indent
      let ind = 0
   endif
 
   " Subtract a 'shiftwidth', if this isn't the first thing after the 'is'
   " or first thing after the 'do'
-  if getline(v:lnum) =~ s:outdent && getline(v:lnum - 1) !~ s:single_dent
-	\ && getline(v:lnum - 1) !~ '^\s*do\>'
+  if getline(v:lnum) =~# s:outdent && getline(v:lnum - 1) !~# s:single_dent
+	\ && getline(v:lnum - 1) !~# '^\s*do\>'
     let ind = ind - &sw
   endif
 
   " Subtract a shiftwidth for end statements
-  if getline(v:lnum) =~ '^\s*end\>'
+  if getline(v:lnum) =~# '^\s*end\>'
     let ind = ind - &sw
   endif
 
   " set indent of zero end statements that are at an indent of 3, this should
   " only ever be the class's end.
-  if getline(v:lnum) =~ '^\s*end\>' && ind == &sw
+  if getline(v:lnum) =~# '^\s*end\>' && ind == &sw
     let ind = 0
   endif
 
diff -r 6581d543a54c runtime/indent/erlang.vim
--- a/runtime/indent/erlang.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/erlang.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -96,7 +96,7 @@
         elseif a:line[i] == '$'
             let m = i+2
             let last_receive = 0
-        elseif a:line[i] == "." && (i+1>=linelen || a:line[i+1]!~ "[0-9]")
+        elseif a:line[i] == "." && (i+1>=linelen || a:line[i+1]!~# "[0-9]")
             let m = i+1
             if last_hash_sym
                 let last_hash_sym = 0
diff -r 6581d543a54c runtime/indent/eruby.vim
--- a/runtime/indent/eruby.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/eruby.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -43,14 +43,14 @@
 function! GetErubyIndent(...)
   if a:0 && a:1 == '.'
     let v:lnum = line('.')
-  elseif a:0 && a:1 =~ '^\d'
+  elseif a:0 && a:1 =~# '^\d'
     let v:lnum = a:1
   endif
   let vcol = col('.')
   call cursor(v:lnum,1)
   let inruby = searchpair('<%','','%>','W')
   call cursor(v:lnum,vcol)
-  if inruby && getline(v:lnum) !~ '^<%\|^\s*-\=%>'
+  if inruby && getline(v:lnum) !~# '^<%\|^\s*-\=%>'
     let ind = GetRubyIndent()
   else
     exe "let ind = ".b:eruby_subtype_indentexpr
diff -r 6581d543a54c runtime/indent/eterm.vim
--- a/runtime/indent/eterm.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/eterm.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -24,11 +24,11 @@
 
   let ind = indent(lnum)
 
-  if getline(lnum) =~ '^\s*begin\>'
+  if getline(lnum) =~# '^\s*begin\>'
     let ind = ind + &sw
   endif
 
-  if getline(v:lnum) =~ '^\s*end\>'
+  if getline(v:lnum) =~# '^\s*end\>'
     let ind = ind - &sw
   endif
 
diff -r 6581d543a54c runtime/indent/falcon.vim
--- a/runtime/indent/falcon.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/falcon.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -56,7 +56,7 @@
 
 " Check if the character at lnum:col is inside a string
 function s:IsInStringOrComment(lnum, col)
-    return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_strcom
+    return synIDattr(synID(a:lnum, a:col, 1), 'name') =~# s:syng_strcom
 endfunction
 
 "======================================
@@ -68,7 +68,7 @@
     let cline = getline(v:lnum)
 
     " Don't reindent comments on first column
-    if cline =~ '^\/\/'
+    if cline =~# '^\/\/'
         return 0
     endif
 
@@ -105,19 +105,19 @@
     if prevline =~? s:falcon_indent_keywords
         let chg = &sw
     " If previous line opened a parenthesis, and did not close it, indent
-    elseif prevline =~ '^.*(\s*[^)]*\((.*)\)*[^)]*$'
+    elseif prevline =~# '^.*(\s*[^)]*\((.*)\)*[^)]*$'
         " Make sure this isn't just a function split between two lines
-        if prevline =~ ',\s*$'
+        if prevline =~# ',\s*$'
             return indent(prevnonblank(v:lnum - 1)) + &sw
         else
             return match(prevline, '(.*\((.*)\|[^)]\)*.*$') + 1
         endif
-    elseif prevline =~ '^[^(]*)\s*$'
+    elseif prevline =~# '^[^(]*)\s*$'
         " This line closes a parenthesis. Finds opening.
         let curr_line = prevnonblank(lnum - 1)
         while curr_line >= 0
             let str = getline(curr_line)
-            if str !~ '^.*(\s*[^)]*\((.*)\)*[^)]*$'
+            if str !~# '^.*(\s*[^)]*\((.*)\)*[^)]*$'
                 let curr_line = prevnonblank(curr_line - 1)
             else
                 break
diff -r 6581d543a54c runtime/indent/fortran.vim
--- a/runtime/indent/fortran.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/fortran.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -48,7 +48,7 @@
     let s:ln=1
     while s:ln <= s:lmax
       let s:test = strpart(getline(s:ln),0,5)
-      if s:test !~ '^[Cc*]' && s:test !~ '^ *[!#]' && s:test =~ '[^ 0-9\t]' && s:test !~ '^[ 0-9]*\t'
+      if s:test !~# '^[Cc*]' && s:test !~# '^ *[!#]' && s:test =~# '[^ 0-9\t]' && s:test !~# '^[ 0-9]*\t'
 	let b:fortran_fixed_source = 0
 	break
       endif
@@ -138,11 +138,11 @@
   endif
 
   "First continuation line
-  if prevstat =~ '&\s*$' && prev2stat !~ '&\s*$'
+  if prevstat =~# '&\s*$' && prev2stat !~# '&\s*$'
     let ind = ind + &sw
   endif
   "Line after last continuation line
-  if prevstat !~ '&\s*$' && prev2stat =~ '&\s*$'
+  if prevstat !~# '&\s*$' && prev2stat =~# '&\s*$'
     let ind = ind - &sw
   endif
 
@@ -165,7 +165,7 @@
 function FortranGetFixedIndent()
   let currline=getline(v:lnum)
   "Don't indent comments, continuation lines and labelled lines
-  if strpart(currline,0,6) =~ '[^ \t]'
+  if strpart(currline,0,6) =~# '[^ \t]'
     let ind = indent(v:lnum)
     return ind
   endif
@@ -175,13 +175,13 @@
   let lnum = v:lnum - 1
   while lnum > 0
     let prevline=getline(lnum)
-    if (prevline =~ "^[C*!]") || (prevline =~ "^\s*$")
-	\ || (strpart(prevline,5,1) !~ "[ 0]")
+    if (prevline =~# "^[C*!]") || (prevline =~# "^\s*$")
+	\ || (strpart(prevline,5,1) !~# "[ 0]")
       " Skip comments, blank lines and continuation lines
       let lnum = lnum - 1
     else
       let test=strpart(prevline,0,5)
-      if test =~ "[0-9]"
+      if test =~# "[0-9]"
 	" Skip lines with statement numbers
 	let lnum = lnum - 1
       else
diff -r 6581d543a54c runtime/indent/framescript.vim
--- a/runtime/indent/framescript.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/framescript.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -23,7 +23,7 @@
     return 0
   endif
 
-  if getline(v:lnum) =~ '^\s*\*'
+  if getline(v:lnum) =~# '^\s*\*'
     return cindent(v:lnum)
   endif
 
diff -r 6581d543a54c runtime/indent/gitconfig.vim
--- a/runtime/indent/gitconfig.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/gitconfig.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -22,14 +22,14 @@
 function! GetGitconfigIndent()
   let line  = getline(prevnonblank(v:lnum-1))
   let cline = getline(v:lnum)
-  if line =~  '\\\@<!\%(\\\\\)*\\$'
+  if line =~#  '\\\@<!\%(\\\\\)*\\$'
     " odd number of slashes, in a line continuation
     return 2 * &sw
-  elseif cline =~ '^\s*\['
+  elseif cline =~# '^\s*\['
     return 0
-  elseif cline =~ '^\s*\a'
+  elseif cline =~# '^\s*\a'
     return &sw
-  elseif cline == ''       && line =~ '^\['
+  elseif cline == ''       && line =~# '^\['
     return &sw
   else
     return -1
diff -r 6581d543a54c runtime/indent/gitolite.vim
--- a/runtime/indent/gitolite.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/gitolite.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -26,15 +26,15 @@
   let pline = getline(prevln)
   let cline = getline(v:lnum)
 
-  if cline =~ '^\s*\(C\|R\|RW\|RW+\|RWC\|RW+C\|RWD\|RW+D\|RWCD\|RW+CD\|-\)[ \t=]'
+  if cline =~# '^\s*\(C\|R\|RW\|RW+\|RWC\|RW+C\|RWD\|RW+D\|RWCD\|RW+CD\|-\)[ \t=]'
     return &sw
-  elseif cline =~ '^\s*config\s'
+  elseif cline =~# '^\s*config\s'
     return &sw
-  elseif pline =~ '^\s*repo\s' && cline =~ '^\s*\(#.*\)\?$'
+  elseif pline =~# '^\s*repo\s' && cline =~# '^\s*\(#.*\)\?$'
     return &sw
-  elseif cline =~ '^\s*#'
+  elseif cline =~# '^\s*#'
     return indent(prevln)
-  elseif cline =~ '^\s*$'
+  elseif cline =~# '^\s*$'
     return -1
   else
     return 0
diff -r 6581d543a54c runtime/indent/haml.vim
--- a/runtime/indent/haml.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/haml.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -47,15 +47,15 @@
 
   let group = synIDattr(synID(lnum,lastcol,1),'name')
 
-  if line =~ '^!!!'
+  if line =~# '^!!!'
     return indent
-  elseif line =~ '^/\%(\[[^]]*\]\)\=$'
+  elseif line =~# '^/\%(\[[^]]*\]\)\=$'
     return increase
   elseif group == 'hamlFilter'
     return increase
-  elseif line =~ '^'.s:tag.'[&!]\=[=~-]\s*\%(\%(if\|else\|elsif\|unless\|case\|when\|while\|until\|for\|begin\|module\|class\|def\)\>\%(.*\<end\>\)\@!\|.*do\%(\s*|[^|]*|\)\=\s*$\)'
+  elseif line =~# '^'.s:tag.'[&!]\=[=~#-]\s*\%(\%(if\|else\|elsif\|unless\|case\|when\|while\|until\|for\|begin\|module\|class\|def\)\>\%(.*\<end\>\)\@!\|.*do\%(\s*|[^|]*|\)\=\s*$\)'
     return increase
-  elseif line =~ '^'.s:tag.'[&!]\=[=~-].*,\s*$'
+  elseif line =~# '^'.s:tag.'[&!]\=[=~#-].*,\s*$'
     return increase
   elseif line == '-#'
     return increase
diff -r 6581d543a54c runtime/indent/html.vim
--- a/runtime/indent/html.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/html.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -158,9 +158,9 @@
 	endif
     endif
     if '' != &syntax &&
-	\ synIDattr(synID(a:lnum, 1, 1), 'name') =~ '\(css\|java\).*' &&
+	\ synIDattr(synID(a:lnum, 1, 1), 'name') =~# '\(css\|java\).*' &&
 	\ synIDattr(synID(a:lnum, strlen(getline(a:lnum)), 1), 'name')
-	\ =~ '\(css\|java\).*'
+	\ =~# '\(css\|java\).*'
 	if a:style == match(getline(a:lnum), '^\s*}')
 	    return <SID>HtmlIndentOpenAlt(a:lnum) - <SID>HtmlIndentCloseAlt(a:lnum)
 	endif
@@ -181,7 +181,7 @@
     setlocal ic " ignore case
 
     " [-- special handling for <pre>: no indenting --]
-    if getline(a:lnum) =~ '\c</pre>'
+    if getline(a:lnum) =~# '\c</pre>'
 		\ || 0 < searchpair('\c<pre>', '', '\c</pre>', 'nWb')
 		\ || 0 < searchpair('\c<pre>', '', '\c</pre>', 'nW')
 	" we're in a line with </pre> or inside <pre> ... </pre>
@@ -205,7 +205,7 @@
     if   0 < searchpair(js, '', '</script>', 'nWb')
     \ && 0 < searchpair(js, '', '</script>', 'nW')
 	" we're inside javascript
-	if getline(lnum) !~ js && getline(a:lnum) != '</script>'
+	if getline(lnum) !~# js && getline(a:lnum) != '</script>'
 	    if restore_ic == 0
 	      setlocal noic
 	    endif
@@ -213,7 +213,7 @@
 	endif
     endif
 
-    if getline(lnum) =~ '\c</pre>'
+    if getline(lnum) =~# '\c</pre>'
 	" line before the current line a:lnum contains
 	" a closing </pre>. --> search for line before
 	" starting <pre> to restore the indent.
diff -r 6581d543a54c runtime/indent/idlang.vim
--- a/runtime/indent/idlang.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/idlang.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -32,12 +32,12 @@
    let curind = indent(pnum)
 
    " Indenting of continued lines.
-   if getline(pnum) =~ '\$\s*\(;.*\)\=$'
-      if getline(pnum2) !~ '\$\s*\(;.*\)\=$'
+   if getline(pnum) =~# '\$\s*\(;.*\)\=$'
+      if getline(pnum2) !~# '\$\s*\(;.*\)\=$'
 	 let curind = curind+&sw
       endif
    else
-      if getline(pnum2) =~ '\$\s*\(;.*\)\=$'
+      if getline(pnum2) =~# '\$\s*\(;.*\)\=$'
 	 let curind = curind-&sw
       endif
    endif
diff -r 6581d543a54c runtime/indent/ishd.vim
--- a/runtime/indent/ishd.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/ishd.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -26,7 +26,7 @@
     let this_line = getline(a:lnum)
     let LABELS_OR_PREPROC = '^\s*\(\<\k\+\>:\s*$\|#.*\)'
     let LABELS_OR_PREPROC_EXCEPT = '^\s*\<default\+\>:'
-    if this_line =~ LABELS_OR_PREPROC && this_line !~ LABELS_OR_PREPROC_EXCEPT
+    if this_line =~# LABELS_OR_PREPROC && this_line !~# LABELS_OR_PREPROC_EXCEPT
 	return 0
     endif
 
@@ -36,7 +36,7 @@
     while lnum > 0
 	let lnum = prevnonblank(lnum - 1)
 	let previous_line = getline(lnum)
-	if previous_line !~ LABELS_OR_PREPROC || previous_line =~ LABELS_OR_PREPROC_EXCEPT
+	if previous_line !~# LABELS_OR_PREPROC || previous_line =~# LABELS_OR_PREPROC_EXCEPT
 	    break
 	endif
     endwhile
@@ -49,17 +49,17 @@
     let ind = indent(lnum)
 
     " Add
-    if previous_line =~ '^\s*\<\(function\|begin\|switch\|case\|default\|if.\{-}then\|else\|elseif\|while\|repeat\)\>'
+    if previous_line =~# '^\s*\<\(function\|begin\|switch\|case\|default\|if.\{-}then\|else\|elseif\|while\|repeat\)\>'
 	let ind = ind + &sw
     endif
 
     " Subtract
-    if this_line =~ '^\s*\<endswitch\>'
+    if this_line =~# '^\s*\<endswitch\>'
 	let ind = ind - 2 * &sw
-    elseif this_line =~ '^\s*\<\(begin\|end\|endif\|endwhile\|else\|elseif\|until\)\>'
+    elseif this_line =~# '^\s*\<\(begin\|end\|endif\|endwhile\|else\|elseif\|until\)\>'
 	let ind = ind - &sw
-    elseif this_line =~ '^\s*\<\(case\|default\)\>'
-	if previous_line !~ '^\s*\<switch\>'
+    elseif this_line =~# '^\s*\<\(case\|default\)\>'
+	if previous_line !~# '^\s*\<switch\>'
 	    let ind = ind - &sw
 	endif
     endif
diff -r 6581d543a54c runtime/indent/java.vim
--- a/runtime/indent/java.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/java.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -36,16 +36,16 @@
   let lnum = a:startline
   while lnum > 1
     let lnum = prevnonblank(lnum)
-    if getline(lnum) =~ '\*/\s*$'
-      while getline(lnum) !~ '/\*' && lnum > 1
+    if getline(lnum) =~# '\*/\s*$'
+      while getline(lnum) !~# '/\*' && lnum > 1
         let lnum = lnum - 1
       endwhile
-      if getline(lnum) =~ '^\s*/\*'
+      if getline(lnum) =~# '^\s*/\*'
         let lnum = lnum - 1
       else
         break
       endif
-    elseif getline(lnum) =~ '^\s*//'
+    elseif getline(lnum) =~# '^\s*//'
       let lnum = lnum - 1
     else
       break
@@ -61,7 +61,7 @@
   let theIndent = cindent(v:lnum)
 
   " If we're in the middle of a comment then just trust cindent
-  if getline(v:lnum) =~ '^\s*\*'
+  if getline(v:lnum) =~# '^\s*\*'
     return theIndent
   endif
 
@@ -70,14 +70,14 @@
 
   " If the previous line starts with '@', we should have the same indent as
   " the previous one
-  if getline(lnum) =~ '^\s*@\S\+\s*$'
+  if getline(lnum) =~# '^\s*@\S\+\s*$'
     return indent(lnum)
   endif
 
   let prev = lnum
   while prev > 1
     let next_prev = SkipJavaBlanksAndComments(prev - 1)
-    if getline(next_prev) !~ ',\s*$'
+    if getline(next_prev) !~# ',\s*$'
       break
     endif
     let prev = next_prev
@@ -85,8 +85,8 @@
 
   " Try to align "throws" lines for methods and "extends" and "implements" for
   " classes.
-  if getline(v:lnum) =~ '^\s*\(extends\|implements\)\>'
-        \ && getline(lnum) !~ '^\s*\(extends\|implements\)\>'
+  if getline(v:lnum) =~# '^\s*\(extends\|implements\)\>'
+        \ && getline(lnum) !~# '^\s*\(extends\|implements\)\>'
     let theIndent = theIndent + &sw
   endif
 
@@ -95,7 +95,7 @@
         \ '^\s*\zs\(throws\|implements\|extends\)\>\ze.*,\s*$')
   if strlen(cont_kw) > 0
     let amount = strlen(cont_kw) + 1
-    if getline(lnum) !~ ',\s*$'
+    if getline(lnum) !~# ',\s*$'
       let theIndent = theIndent - (amount + &sw)
       if theIndent < 0
         let theIndent = 0
@@ -106,23 +106,23 @@
         let theIndent = theIndent + &sw
       endif
     endif
-  elseif getline(prev) =~ '^\s*\(throws\|implements\|extends\)\>'
-        \ && (getline(prev) =~ '{\s*$'
-        \  || getline(v:lnum) =~ '^\s*{\s*$')
+  elseif getline(prev) =~# '^\s*\(throws\|implements\|extends\)\>'
+        \ && (getline(prev) =~# '{\s*$'
+        \  || getline(v:lnum) =~# '^\s*{\s*$')
     let theIndent = theIndent - &sw
   endif
 
   " When the line starts with a }, try aligning it with the matching {,
   " skipping over "throws", "extends" and "implements" clauses.
-  if getline(v:lnum) =~ '^\s*}\s*\(//.*\|/\*.*\)\=$'
+  if getline(v:lnum) =~# '^\s*}\s*\(//.*\|/\*.*\)\=$'
     call cursor(v:lnum, 1)
     silent normal %
     let lnum = line('.')
     if lnum < v:lnum
       while lnum > 1
         let next_lnum = SkipJavaBlanksAndComments(lnum - 1)
-        if getline(lnum) !~ '^\s*\(throws\|extends\|implements\)\>'
-              \ && getline(next_lnum) !~ ',\s*$'
+        if getline(lnum) !~# '^\s*\(throws\|extends\|implements\)\>'
+              \ && getline(next_lnum) !~# ',\s*$'
           break
         endif
         let lnum = prevnonblank(next_lnum)
@@ -134,7 +134,7 @@
   " Below a line starting with "}" never indent more.  Needed for a method
   " below a method with an indented "throws" clause.
   let lnum = SkipJavaBlanksAndComments(v:lnum - 1)
-  if getline(lnum) =~ '^\s*}\s*\(//.*\|/\*.*\)\=$' && indent(lnum) < theIndent
+  if getline(lnum) =~# '^\s*}\s*\(//.*\|/\*.*\)\=$' && indent(lnum) < theIndent
     let theIndent = indent(lnum)
   endif
 
diff -r 6581d543a54c runtime/indent/ld.vim
--- a/runtime/indent/ld.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/ld.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -21,11 +21,11 @@
   while lnum > 1
     let lnum = prevnonblank(lnum)
     let line = getline(lnum)
-    if line =~ '\*/'
-      while lnum > 1 && line !~ '/\*'
+    if line =~# '\*/'
+      while lnum > 1 && line !~# '/\*'
         let lnum -= 1
       endwhile
-      if line =~ '^\s*/\*'
+      if line =~# '^\s*/\*'
         let lnum -= 1
       else
         break
@@ -44,7 +44,7 @@
   let pattern = '[{}]'
   let i = match(line, pattern)
   while i != -1
-    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~ 'ld\%(Comment\|String\)'
+    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~# 'ld\%(Comment\|String\)'
       if line[i] == '{'
         let n_open += 1
       elseif line[i] == '}'
@@ -62,9 +62,9 @@
 
 function GetLDIndent()
   let line = getline(v:lnum)
-  if line =~ '^\s*\*'
+  if line =~# '^\s*\*'
     return cindent(v:lnum)
-  elseif line =~ '^\s*}'
+  elseif line =~# '^\s*}'
     return indent(v:lnum) - &sw
   endif
 
@@ -76,8 +76,8 @@
   let ind = indent(pnum) + s:count_braces(pnum, 1) * &sw
 
   let pline = getline(pnum)
-  if pline =~ '}\s*$'
-    let ind -= (s:count_braces(pnum, 0) - (pline =~ '^\s*}' ? 1 : 0)) * &sw
+  if pline =~# '}\s*$'
+    let ind -= (s:count_braces(pnum, 0) - (pline =~# '^\s*}' ? 1 : 0)) * &sw
   endif
 
   return ind
diff -r 6581d543a54c runtime/indent/liquid.vim
--- a/runtime/indent/liquid.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/liquid.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -42,7 +42,7 @@
 function! GetLiquidIndent(...)
   if a:0 && a:1 == '.'
     let v:lnum = line('.')
-  elseif a:0 && a:1 =~ '^\d'
+  elseif a:0 && a:1 =~# '^\d'
     let v:lnum = a:1
   endif
   let vcol = col('.')
diff -r 6581d543a54c runtime/indent/logtalk.vim
--- a/runtime/indent/logtalk.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/logtalk.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -33,28 +33,28 @@
 
 	let ind = indent(pnum)
 	" Previous line was comment -> use previous line's indent
-	if pline =~ '^\s*%'
+	if pline =~# '^\s*%'
 		retu ind
 	endif
 	" Check for entity opening directive on previous line
-	if pline =~ '^\s*:-\s\(object\|protocol\|category\)\ze(.*,$'
+	if pline =~# '^\s*:-\s\(object\|protocol\|category\)\ze(.*,$'
 		let ind = ind + &sw
 	" Check for clause head on previous line
-	elseif pline =~ ':-\s*\(%.*\)\?$'
+	elseif pline =~# ':-\s*\(%.*\)\?$'
 		let ind = ind + &sw
 	" Check for entity closing directive on previous line
-	elseif pline =~ '^\s*:-\send_\(object\|protocol\|category\)\.\(%.*\)\?$'
+	elseif pline =~# '^\s*:-\send_\(object\|protocol\|category\)\.\(%.*\)\?$'
 		let ind = ind - &sw
 	" Check for end of clause on previous line
-	elseif pline =~ '\.\s*\(%.*\)\?$'
+	elseif pline =~# '\.\s*\(%.*\)\?$'
 		let ind = ind - &sw
 	endif
 	" Check for opening conditional on previous line
-	if pline =~ '^\s*\([(;]\|->\)' && pline !~ '\.\s*\(%.*\)\?$' && pline !~ '^.*\([)][,]\s*\(%.*\)\?$\)'
+	if pline =~# '^\s*\([(;]\|->\)' && pline !~# '\.\s*\(%.*\)\?$' && pline !~# '^.*\([)][,]\s*\(%.*\)\?$\)'
 		let ind = ind + &sw
 	endif
 	" Check for closing an unclosed paren, or middle ; or ->
-	if line =~ '^\s*\([);]\|->\)'
+	if line =~# '^\s*\([);]\|->\)'
 		let ind = ind - &sw
 	endif
 	return ind
diff -r 6581d543a54c runtime/indent/lua.vim
--- a/runtime/indent/lua.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/lua.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -47,7 +47,7 @@
   if midx != -1
     " Add 'shiftwidth' if what we found previously is not in a comment and
     " an "end" or "until" is not present on the same line.
-    if synIDattr(synID(prevlnum, midx + 1, 1), "name") != "luaComment" && prevline !~ '\<end\>\|\<until\>'
+    if synIDattr(synID(prevlnum, midx + 1, 1), "name") != "luaComment" && prevline !~# '\<end\>\|\<until\>'
       let ind = ind + &shiftwidth
     endif
   endif
diff -r 6581d543a54c runtime/indent/make.vim
--- a/runtime/indent/make.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/make.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -44,12 +44,12 @@
   let prev_prev_line = prev_prev_lnum != 0 ? getline(prev_prev_lnum) : ""
 
   " TODO: Deal with comments.  In comments, continuations aren't interesting.
-  if prev_line =~ s:continuation_rx
-    if prev_prev_line =~ s:continuation_rx
+  if prev_line =~# s:continuation_rx
+    if prev_prev_line =~# s:continuation_rx
       return indent(prev_lnum)
-    elseif prev_line =~ s:rule_rx
+    elseif prev_line =~# s:rule_rx
       return &sw
-    elseif prev_line =~ s:assignment_rx
+    elseif prev_line =~# s:assignment_rx
       call cursor(prev_lnum, 1)
       if search(s:assignment_rx, 'W') != 0
         return virtcol('.') - 1
@@ -61,32 +61,32 @@
       " TODO: OK, this might be a continued shell command, so perhaps indent
       " properly here?  Leave this out for now, but in the next release this
       " should be using indent/sh.vim somehow.
-      "if prev_line =~ '^\t' " s:rule_command_rx
-      "  if prev_line =~ '^\s\+[@-]\%(if\)\>'
+      "if prev_line =~# '^\t' " s:rule_command_rx
+      "  if prev_line =~# '^\s\+[@-]\%(if\)\>'
       "    return indent(prev_lnum) + 2
       "  endif
       "endif
       return indent(prev_lnum) + &sw
     endif
-  elseif prev_prev_line =~ s:continuation_rx
+  elseif prev_prev_line =~# s:continuation_rx
     let folded_line = s:remove_continuation(prev_prev_line) . ' ' . s:remove_continuation(prev_line)
     let lnum = prev_prev_lnum - 1
     let line = getline(lnum)
-    while line =~ s:continuation_rx
+    while line =~# s:continuation_rx
       let folded_line = s:remove_continuation(line) . ' ' . folded_line
       let lnum -= 1
       let line = getline(lnum)
     endwhile
     let folded_lnum = lnum + 1
-    if folded_line =~ s:rule_rx
-      if getline(v:lnum) =~ s:rule_rx
+    if folded_line =~# s:rule_rx
+      if getline(v:lnum) =~# s:rule_rx
         return 0
       else
         return &ts
       endif
     else
-"    elseif folded_line =~ s:folded_assignment_rx
-      if getline(v:lnum) =~ s:rule_rx
+"    elseif folded_line =~# s:folded_assignment_rx
+      if getline(v:lnum) =~# s:rule_rx
         return 0
       else
         return indent(folded_lnum)
@@ -95,19 +95,19 @@
 "      " TODO: ?
 "      return indent(prev_lnum)
     endif
-  elseif prev_line =~ s:rule_rx
-    if getline(v:lnum) =~ s:rule_rx
+  elseif prev_line =~# s:rule_rx
+    if getline(v:lnum) =~# s:rule_rx
       return 0
     else
       return &ts
     endif
-  elseif prev_line =~ s:conditional_directive_rx
+  elseif prev_line =~# s:conditional_directive_rx
     return &sw
   else
     let line = getline(v:lnum)
-    if line =~ s:just_inserted_rule_rx
+    if line =~# s:just_inserted_rule_rx
       return 0
-    elseif line =~ s:end_conditional_directive_rx
+    elseif line =~# s:end_conditional_directive_rx
       return v:lnum - 1 == 0 ? 0 : indent(v:lnum - 1) - &sw
     else
       return v:lnum - 1 == 0 ? 0 : indent(v:lnum - 1)
diff -r 6581d543a54c runtime/indent/matlab.vim
--- a/runtime/indent/matlab.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/matlab.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -22,13 +22,13 @@
 
 function GetMatlabIndent(lnum)
   " Give up if this line is explicitly joined.
-  if getline(a:lnum - 1) =~ '\\$'
+  if getline(a:lnum - 1) =~# '\\$'
     return -1
   endif
 
   " Search backwards for the first non-empty line.
   let plnum = a:lnum - 1
-  while plnum > 0 && getline(plnum) =~ '^\s*$'
+  while plnum > 0 && getline(plnum) =~# '^\s*$'
     let plnum = plnum - 1
   endwhile
 
@@ -40,9 +40,9 @@
   let curind = indent(plnum)
 
   " If the current line is a stop-block statement...
-  if getline(v:lnum) =~ '^\s*\(end\|else\|elseif\|case\|otherwise\|catch\)\>'
+  if getline(v:lnum) =~# '^\s*\(end\|else\|elseif\|case\|otherwise\|catch\)\>'
     " See if this line does not follow the line right after an openblock
-    if getline(plnum) =~ '^\s*\(for\|if\|else\|elseif\|case\|while\|switch\|try\|otherwise\|catch\)\>'
+    if getline(plnum) =~# '^\s*\(for\|if\|else\|elseif\|case\|while\|switch\|try\|otherwise\|catch\)\>'
     " See if the user has already dedented
     elseif indent(v:lnum) > curind - &sw
       " If not, recommend one dedent
@@ -54,7 +54,7 @@
 "  endif
 
   " If the previous line opened a block
-  elseif getline(plnum) =~ '^\s*\(for\|if\|else\|elseif\|case\|while\|switch\|try\|otherwise\|catch\)\>'
+  elseif getline(plnum) =~# '^\s*\(for\|if\|else\|elseif\|case\|while\|switch\|try\|otherwise\|catch\)\>'
     " See if the user has already indented
     if indent(v:lnum) < curind + &sw
       "If not, recommend indent
diff -r 6581d543a54c runtime/indent/mma.vim
--- a/runtime/indent/mma.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/mma.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -48,24 +48,24 @@
 
     " also, indent only if this line if this line isn't starting a new
     " block... TODO - fix this with indentkeys?
-    if getline(v:lnum-1) =~ '\\\@<!\%(\[[^\]]*\|([^)]*\|{[^}]*\)$' && getline(v:lnum) !~ '\s\+[\[({]'
+    if getline(v:lnum-1) =~# '\\\@<!\%(\[[^\]]*\|([^)]*\|{[^}]*\)$' && getline(v:lnum) !~# '\s\+[\[({]'
         let ind = ind+&sw
     endif
 
     " if this line had unmatched closing block,
     " indent to the matching opening block
-    if getline(v:lnum) =~ '[^[]*]\s*$'
+    if getline(v:lnum) =~# '[^[]*]\s*$'
         " move to the closing bracket
         call search(']','bW')
         " and find it's partner's indent
         let ind = indent(searchpair('\[','',']','bWn'))
     " same for ( blocks
-    elseif getline(v:lnum) =~ '[^(]*)$'
+    elseif getline(v:lnum) =~# '[^(]*)$'
         call search(')','bW')
         let ind = indent(searchpair('(','',')','bWn'))
 
     " and finally, close { blocks if si ain't already set
-    elseif getline(v:lnum) =~ '[^{]*}'
+    elseif getline(v:lnum) =~# '[^{]*}'
         call search('}','bW')
         let ind = indent(searchpair('{','','}','bWn'))
     endif
diff -r 6581d543a54c runtime/indent/mp.vim
--- a/runtime/indent/mp.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/mp.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -63,7 +63,7 @@
 function! MetaNextNonblankNoncomment(pos)
   " Like nextnonblank() but ignore comment lines
   let tmp = nextnonblank(a:pos)
-  while tmp && getline(tmp) =~ '^\s*%'
+  while tmp && getline(tmp) =~# '^\s*%'
     let tmp = nextnonblank(tmp+1)
   endwhile
   return tmp
@@ -72,7 +72,7 @@
 function! MetaPrevNonblankNoncomment(pos)
   " Like prevnonblank() but ignore comment lines
   let tmp = prevnonblank(a:pos)
-  while tmp && getline(tmp) =~ '^\s*%'
+  while tmp && getline(tmp) =~# '^\s*%'
     let tmp = prevnonblank(tmp-1)
   endwhile
   return tmp
@@ -90,7 +90,7 @@
   let cl  = line(".")
   let cc  = col(".")
   let tmp = search(a:pattern, flags)
-  while tmp && synIDattr(synID(line("."), col("."), 1), "name") =~
+  while tmp && synIDattr(synID(line("."), col("."), 1), "name") =~#
         \ 'm[fp]\(Comment\|TeXinsert\|String\)'
     let tmp = search(a:pattern, flags)
   endwhile
@@ -103,7 +103,7 @@
 
 function! GetMetaPostIndent()
   " not indent in comment ???
-  if synIDattr(synID(line("."), col("."), 1), "name") =~
+  if synIDattr(synID(line("."), col("."), 1), "name") =~#
         \ 'm[fp]\(Comment\|TeXinsert\|String\)'
     return -1
   endif
@@ -125,7 +125,7 @@
   let cc = col    (".")
   let cs = getline(".")
   " if it is :beginfig or :endfig use zero indent
-  if  cs =~ '^\s*\(begin\|end\)fig\>'
+  if  cs =~# '^\s*\(begin\|end\)fig\>'
     return 0
   endif
   " }}}
@@ -161,18 +161,18 @@
   " Increase Indent: {{{1
   " if it is an internal/external :for or :if statements {{{2
   let pnn_s = getline(MetaPrevNonblankNoncomment(cl-1))
-  if  pnn_s =~ '\<\(for\|if\)\>.\+:\s*\($\|%\)'
+  if  pnn_s =~# '\<\(for\|if\)\>.\+:\s*\($\|%\)'
     let ind = match(pnn_s, '\<\(for\|if\)\>.\+:\s*\($\|%\)') + &sw
   " }}}
   " if it is a :def, :vardef, :beginfig, :begingroup, :else, :elseif {{{2
-  elseif pnn_s =~ '^\s*\('                       .
+  elseif pnn_s =~# '^\s*\('                       .
         \ '\(var\)\=def\|'                       .
         \ 'begin\(group\|fig\s*(\s*\d\+\s*)\)\|' .
         \ 'else\(if\)\='                         . '\)\>'
     let ind = ind + &sw
   " }}}
   " if it is a broken line {{{2
-  elseif pnn_s !~ end_of_item.'\s*\($\|%\)'
+  elseif pnn_s !~# end_of_item.'\s*\($\|%\)'
     let ind = ind + (2 * &sw)
   endif
   " }}}
@@ -180,7 +180,7 @@
   " Decrease Indent: {{{1
   " if this is :endfor or :enddef statements {{{2
   " this is correct because :def cannot be inside :for
-  if  cs  =~ '\<end\(for\|def\)\=\>'
+  if  cs  =~# '\<end\(for\|def\)\=\>'
     call MetaSearchNoncomment('\<for\>.\+:\s*\($\|%\)' . '\|' .
                             \ '^\s*\(var\)\=def\>',"bW")
     if col(".") > 1
@@ -190,12 +190,12 @@
     endif
   " }}}
   " if this is :fi, :else, :elseif statements {{{2
-  elseif cs =~ '\<\(else\(if\)\=\|fi\)\>'
+  elseif cs =~# '\<\(else\(if\)\=\|fi\)\>'
     call MetaSearchNoncomment('\<if\>.\+:\s*\($\|%\)',"bW")
     let ind = col(".") - 1
   " }}}
   " if this is :endgroup statement {{{2
-  elseif cs =~ '^\s*endgroup\>'
+  elseif cs =~# '^\s*endgroup\>'
     let ind = ind - &sw
   endif
   " }}}
diff -r 6581d543a54c runtime/indent/ocaml.vim
--- a/runtime/indent/ocaml.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/ocaml.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -47,7 +47,7 @@
 function! s:GetLineWithoutFullComment(lnum)
  let lnum = prevnonblank(a:lnum - 1)
  let lline = substitute(getline(lnum), '(\*.*\*)\s*$', '', '')
- while lline =~ '^\s*$' && lnum > 0
+ while lline =~# '^\s*$' && lnum > 0
    let lnum = prevnonblank(lnum - 1)
    let lline = substitute(getline(lnum), '(\*.*\*)\s*$', '', '')
  endwhile
@@ -61,7 +61,7 @@
  while llet > 0
    let old = indent(llet)
    let nb = s:GetLineWithoutFullComment(llet)
-   if getline(nb) =~ a:lim
+   if getline(nb) =~# a:lim
      return old
    endif
    let llet = search(a:pat, 'bW')
@@ -78,7 +78,7 @@
 " Indent 'let'
 function! s:FindLet(pstart, pmid, pend)
  call search(a:pend, 'bW')
- return indent(searchpair(a:pstart, a:pmid, a:pend, 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment" || getline(".") =~ "^\\s*let\\>.*=.*\\<in\\s*$" || getline(prevnonblank(".") - 1) =~ s:beflet'))
+ return indent(searchpair(a:pstart, a:pmid, a:pend, 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment" || getline(".") =~# "^\\s*let\\>.*=.*\\<in\\s*$" || getline(prevnonblank(".") - 1) =~# s:beflet'))
 endfunction
 
 function! GetOCamlIndent()
@@ -94,149 +94,149 @@
  let lline = substitute(getline(lnum), '(\*.*\*)\s*$', '', '')
 
  " Return double 'shiftwidth' after lines matching:
- if lline =~ '^\s*|.*->\s*$'
+ if lline =~# '^\s*|.*->\s*$'
    return ind + &sw + &sw
  endif
 
  let line = getline(v:lnum)
 
  " Indent if current line begins with 'end':
- if line =~ '^\s*end\>'
+ if line =~# '^\s*end\>'
    return s:FindPair(s:module, '','\<end\>')
 
  " Indent if current line begins with 'done' for 'do':
- elseif line =~ '^\s*done\>'
+ elseif line =~# '^\s*done\>'
    return s:FindPair('\<do\>', '','\<done\>')
 
  " Indent if current line begins with '}' or '>}':
- elseif line =~ '^\s*\(\|>\)}'
+ elseif line =~# '^\s*\(\|>\)}'
    return s:FindPair('{', '','}')
 
  " Indent if current line begins with ']', '|]' or '>]':
- elseif line =~ '^\s*\(\||\|>\)\]'
+ elseif line =~# '^\s*\(\||\|>\)\]'
    return s:FindPair('\[', '','\]')
 
  " Indent if current line begins with ')':
- elseif line =~ '^\s*)'
+ elseif line =~# '^\s*)'
    return s:FindPair('(', '',')')
 
  " Indent if current line begins with 'let':
- elseif line =~ '^\s*let\>'
-   if lline !~ s:lim . '\|' . s:letlim . '\|' . s:beflet
+ elseif line =~# '^\s*let\>'
+   if lline !~# s:lim . '\|' . s:letlim . '\|' . s:beflet
      return s:FindLet(s:type, '','\<let\s*$')
    endif
 
  " Indent if current line begins with 'class' or 'type':
- elseif line =~ '^\s*\(class\|type\)\>'
-   if lline !~ s:lim . '\|\<and\s*$\|' . s:letlim
+ elseif line =~# '^\s*\(class\|type\)\>'
+   if lline !~# s:lim . '\|\<and\s*$\|' . s:letlim
      return s:FindLet(s:type, '','\<\(class\|type\)\s*$')
    endif
 
  " Indent for pattern matching:
- elseif line =~ '^\s*|'
-   if lline !~ '^\s*\(|[^\]]\|\(match\|type\|with\)\>\)\|\<\(function\|parser\|private\|with\)\s*$'
+ elseif line =~# '^\s*|'
+   if lline !~# '^\s*\(|[^\]]\|\(match\|type\|with\)\>\)\|\<\(function\|parser\|private\|with\)\s*$'
      call search('|', 'bW')
-     return indent(searchpair('^\s*\(match\|type\)\>\|\<\(function\|parser\|private\|with\)\s*$', '', '^\s*|', 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment" || getline(".") !~ "^\\s*|.*->"'))
+     return indent(searchpair('^\s*\(match\|type\)\>\|\<\(function\|parser\|private\|with\)\s*$', '', '^\s*|', 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment" || getline(".") !~# "^\\s*|.*->"'))
    endif
 
  " Indent if current line begins with ';;':
- elseif line =~ '^\s*;;'
-   if lline !~ ';;\s*$'
+ elseif line =~# '^\s*;;'
+   if lline !~# ';;\s*$'
      return s:GetInd(v:lnum, s:letpat, s:letlim)
    endif
 
  " Indent if current line begins with 'in':
- elseif line =~ '^\s*in\>'
-   if lline !~ '^\s*\(let\|and\)\>'
+ elseif line =~# '^\s*in\>'
+   if lline !~# '^\s*\(let\|and\)\>'
      return s:FindPair('\<let\>', '', '\<in\>')
    endif
 
  " Indent if current line begins with 'else':
- elseif line =~ '^\s*else\>'
-   if lline !~ '^\s*\(if\|then\)\>'
+ elseif line =~# '^\s*else\>'
+   if lline !~# '^\s*\(if\|then\)\>'
      return s:FindPair('\<if\>', '', '\<else\>')
    endif
 
  " Indent if current line begins with 'then':
- elseif line =~ '^\s*then\>'
-   if lline !~ '^\s*\(if\|else\)\>'
+ elseif line =~# '^\s*then\>'
+   if lline !~# '^\s*\(if\|else\)\>'
      return s:FindPair('\<if\>', '', '\<then\>')
    endif
 
  " Indent if current line begins with 'and':
- elseif line =~ '^\s*and\>'
-   if lline !~ '^\s*\(and\|let\|type\)\>\|\<end\s*$'
+ elseif line =~# '^\s*and\>'
+   if lline !~# '^\s*\(and\|let\|type\)\>\|\<end\s*$'
      return ind - &sw
    endif
 
  " Indent if current line begins with 'with':
- elseif line =~ '^\s*with\>'
-   if lline !~ '^\s*\(match\|try\)\>'
+ elseif line =~# '^\s*with\>'
+   if lline !~# '^\s*\(match\|try\)\>'
      return s:FindPair('\<\%(match\|try\)\>', '','\<with\>')
    endif
 
  " Indent if current line begins with 'exception', 'external', 'include' or
  " 'open':
- elseif line =~ '^\s*\(exception\|external\|include\|open\)\>'
-   if lline !~ s:lim . '\|' . s:letlim
+ elseif line =~# '^\s*\(exception\|external\|include\|open\)\>'
+   if lline !~# s:lim . '\|' . s:letlim
      call search(line)
      return indent(search('^\s*\(\(exception\|external\|include\|open\|type\)\>\|val\>.*:\)', 'bW'))
    endif
 
  " Indent if current line begins with 'val':
- elseif line =~ '^\s*val\>'
-   if lline !~ '^\s*\(exception\|external\|include\|open\)\>\|' . s:obj . '\|' . s:letlim
+ elseif line =~# '^\s*val\>'
+   if lline !~# '^\s*\(exception\|external\|include\|open\)\>\|' . s:obj . '\|' . s:letlim
      return indent(search('^\s*\(\(exception\|include\|initializer\|method\|open\|type\|val\)\>\|external\>.*:\)', 'bW'))
    endif
 
  " Indent if current line begins with 'constraint', 'inherit', 'initializer'
  " or 'method':
- elseif line =~ '^\s*\(constraint\|inherit\|initializer\|method\)\>'
-   if lline !~ s:obj
+ elseif line =~# '^\s*\(constraint\|inherit\|initializer\|method\)\>'
+   if lline !~# s:obj
      return indent(search('\<\(object\|object\s*(.*)\)\s*$', 'bW')) + &sw
    endif
 
  endif
 
  " Add a 'shiftwidth' after lines ending with:
- if lline =~ '\(:\|=\|->\|<-\|(\|\[\|{\|{<\|\[|\|\[<\|\<\(begin\|do\|else\|fun\|function\|functor\|if\|initializer\|object\|parser\|private\|sig\|struct\|then\|try\)\|\<object\s*(.*)\)\s*$'
+ if lline =~# '\(:\|=\|->\|<-\|(\|\[\|{\|{<\|\[|\|\[<\|\<\(begin\|do\|else\|fun\|function\|functor\|if\|initializer\|object\|parser\|private\|sig\|struct\|then\|try\)\|\<object\s*(.*)\)\s*$'
    let ind = ind + &sw
 
  " Back to normal indent after lines ending with ';;':
- elseif lline =~ ';;\s*$' && lline !~ '^\s*;;'
+ elseif lline =~# ';;\s*$' && lline !~# '^\s*;;'
    let ind = s:GetInd(v:lnum, s:letpat, s:letlim)
 
  " Back to normal indent after lines ending with 'end':
- elseif lline =~ '\<end\s*$'
+ elseif lline =~# '\<end\s*$'
    let ind = s:FindPair(s:module, '','\<end\>')
 
  " Back to normal indent after lines ending with 'in':
- elseif lline =~ '\<in\s*$' && lline !~ '^\s*in\>'
+ elseif lline =~# '\<in\s*$' && lline !~# '^\s*in\>'
    let ind = s:FindPair('\<let\>', '', '\<in\>')
 
  " Back to normal indent after lines ending with 'done':
- elseif lline =~ '\<done\s*$'
+ elseif lline =~# '\<done\s*$'
    let ind = s:FindPair('\<do\>', '','\<done\>')
 
  " Back to normal indent after lines ending with '}' or '>}':
- elseif lline =~ '\(\|>\)}\s*$'
+ elseif lline =~# '\(\|>\)}\s*$'
    let ind = s:FindPair('{', '','}')
 
  " Back to normal indent after lines ending with ']', '|]' or '>]':
- elseif lline =~ '\(\||\|>\)\]\s*$'
+ elseif lline =~# '\(\||\|>\)\]\s*$'
    let ind = s:FindPair('\[', '','\]')
 
  " Back to normal indent after comments:
- elseif lline =~ '\*)\s*$'
+ elseif lline =~# '\*)\s*$'
    call search('\*)', 'bW')
    let ind = indent(searchpair('(\*', '', '\*)', 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string"'))
 
  " Back to normal indent after lines ending with ')':
- elseif lline =~ ')\s*$'
+ elseif lline =~# ')\s*$'
    let ind = s:FindPair('(', '',')')
 
  " If this is a multiline comment then align '*':
- elseif lline =~ '^\s*(\*' && line =~ '^\s*\*'
+ elseif lline =~# '^\s*(\*' && line =~# '^\s*\*'
    let ind = ind + 1
 
  else
@@ -256,7 +256,7 @@
  endif
 
  " Subtract a 'shiftwidth' after lines matching 'match ... with parser':
- if lline =~ '\<match\>.*\<with\>\s*\<parser\s*$'
+ if lline =~# '\<match\>.*\<with\>\s*\<parser\s*$'
    let ind = ind - &sw
  endif
 
diff -r 6581d543a54c runtime/indent/occam.vim
--- a/runtime/indent/occam.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/occam.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -51,7 +51,7 @@
 
   " Get reference line number
   let linenum = prevnonblank(v:lnum - 1)
-  while linenum > 0 && getline(linenum) =~ s:CommentLine
+  while linenum > 0 && getline(linenum) =~# s:CommentLine
     let linenum = prevnonblank(linenum - 1)
   endwhile
 
@@ -63,7 +63,7 @@
 
   " Get previous line number
   let prevlinenum = prevnonblank(linenum - 1)
-  while prevlinenum > 0 && getline(prevlinenum) =~ s:CommentLine
+  while prevlinenum > 0 && getline(prevlinenum) =~# s:CommentLine
     let prevlinenum = prevnonblank(prevlinenum - 1)
   endwhile
 
@@ -71,15 +71,15 @@
   let prevline = getline(prevlinenum)
 
   " Colon indent
-  if getline(v:lnum) =~ s:ColonStart
+  if getline(v:lnum) =~# s:ColonStart
 
     let found = 0
 
     while found < 1
 
-      if line =~ s:ColonStart
+      if line =~# s:ColonStart
 	let found = found - 1
-      elseif line =~ s:ColonIndent || (line =~ s:ColonNonColonEndIndent && line !~ s:ColonEnd)
+      elseif line =~# s:ColonIndent || (line =~# s:ColonNonColonEndIndent && line !~# s:ColonEnd)
 	let found = found + 1
       endif
 
@@ -112,7 +112,7 @@
     return curindent
   endif
 
-  if getline(v:lnum) =~ '^\s*:'
+  if getline(v:lnum) =~# '^\s*:'
     let colonline = getline(v:lnum)
     let tabstr = ''
     while strlen(tabstr) < &tabstop
@@ -128,9 +128,9 @@
   endif
 
   " Carriage return indenat
-  if line =~ s:FirstLevelIndent || (line =~ s:FirstLevelNonColonEndIndent && line !~ s:ColonEnd)
-	\ || (line !~ s:ColonStart && (prevline =~ s:SecondLevelIndent
-	\ || (prevline =~ s:SecondLevelNonColonEndIndent && prevline !~ s:ColonEnd)))
+  if line =~# s:FirstLevelIndent || (line =~# s:FirstLevelNonColonEndIndent && line !~# s:ColonEnd)
+	\ || (line !~# s:ColonStart && (prevline =~# s:SecondLevelIndent
+	\ || (prevline =~# s:SecondLevelNonColonEndIndent && prevline !~# s:ColonEnd)))
     let curindent = curindent + &shiftwidth
 
     " Restore magic
@@ -140,7 +140,7 @@
   endif
 
   " Commented line
-  if getline(prevnonblank(v:lnum - 1)) =~ s:CommentLine
+  if getline(prevnonblank(v:lnum - 1)) =~# s:CommentLine
 
     " Restore magic
     if !save_magic|setlocal nomagic|endif
@@ -159,7 +159,7 @@
 
     if !found
       let prevlinenum = prevnonblank(prevlinenum - 1)
-      while prevlinenum > 0 && getline(prevlinenum) =~ s:CommentLine
+      while prevlinenum > 0 && getline(prevlinenum) =~# s:CommentLine
 	let prevlinenum = prevnonblank(prevlinenum - 1)
       endwhile
       if prevlinenum == 0
@@ -170,7 +170,7 @@
   endwhile
 
   if prevlinenum > 0
-    if getline(prevlinenum) =~ s:SecondLevelIndent
+    if getline(prevlinenum) =~# s:SecondLevelIndent
       let curindent = curindent + &shiftwidth
     endif
   endif
diff -r 6581d543a54c runtime/indent/pascal.vim
--- a/runtime/indent/pascal.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/pascal.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -62,7 +62,7 @@
 	" SAME INDENT
 
 	" Middle of a three-part comment
-	if this_codeline =~ '^\s*\*'
+	if this_codeline =~# '^\s*\*'
 		return indent( a:line_num - 1)
 	endif
 
@@ -70,23 +70,23 @@
 	" COLUMN 1 ALWAYS
 
 	" Last line of the program
-	if this_codeline =~ '^\s*end\.'
+	if this_codeline =~# '^\s*end\.'
 		return 0
 	endif
 
 	" Compiler directives, allowing "(*" and "{"
-	"if this_codeline =~ '^\s*\({\|(\*\)$\(IFDEF\|IFNDEF\|ELSE\|ENDIF\)'
-	if this_codeline =~ '^\s*\({\|(\*\)\$'
+	"if this_codeline =~# '^\s*\({\|(\*\)$\(IFDEF\|IFNDEF\|ELSE\|ENDIF\)'
+	if this_codeline =~# '^\s*\({\|(\*\)\$'
 		return 0
 	endif
 
 	" section headers
-	if this_codeline =~ '^\s*\(program\|procedure\|function\|type\)\>'
+	if this_codeline =~# '^\s*\(program\|procedure\|function\|type\)\>'
 		return 0
 	endif
 
 	" Subroutine separators, lines ending with "const" or "var"
-	if this_codeline =~ '^\s*\((\*\ _\+\ \*)\|\(const\|var\)\)$'
+	if this_codeline =~# '^\s*\((\*\ _\+\ \*)\|\(const\|var\)\)$'
 		return 0
 	endif
 
@@ -101,20 +101,20 @@
 	" INCREASE INDENT
 
 	" If the PREVIOUS LINE ended in these items, always indent
-	if prev_codeline =~ '\<\(type\|const\|var\)$'
+	if prev_codeline =~# '\<\(type\|const\|var\)$'
 		return indnt + &shiftwidth
 	endif
 
-	if prev_codeline =~ '\<repeat$'
-		if this_codeline !~ '^\s*until\>'
+	if prev_codeline =~# '\<repeat$'
+		if this_codeline !~# '^\s*until\>'
 			return indnt + &shiftwidth
 		else
 			return indnt
 		endif
 	endif
 
-	if prev_codeline =~ '\<\(begin\|record\)$'
-		if this_codeline !~ '^\s*end\>'
+	if prev_codeline =~# '\<\(begin\|record\)$'
+		if this_codeline !~# '^\s*end\>'
 			return indnt + &shiftwidth
 		else
 			return indnt
@@ -123,8 +123,8 @@
 
 	" If the PREVIOUS LINE ended with these items, indent if not
 	" followed by "begin"
-	if prev_codeline =~ '\<\(\|else\|then\|do\)$' || prev_codeline =~ ':$'
-		if this_codeline !~ '^\s*begin\>'
+	if prev_codeline =~# '\<\(\|else\|then\|do\)$' || prev_codeline =~# ':$'
+		if this_codeline !~# '^\s*begin\>'
 			return indnt + &shiftwidth
 		else
 			" If it does start with "begin" then keep the same indent
@@ -136,7 +136,7 @@
 	" Inside a parameter list (i.e. a "(" without a ")"). ???? Considers
 	" only the line before the current one. TODO: Get it working for
 	" parameter lists longer than two lines.
-	if prev_codeline =~ '([^)]\+$'
+	if prev_codeline =~# '([^)]\+$'
 		return indnt + &shiftwidth
 	endif
 
@@ -145,7 +145,7 @@
 
 	" Lines starting with "else", but not following line ending with
 	" "end".
-	if this_codeline =~ '^\s*else\>' && prev_codeline !~ '\<end$'
+	if this_codeline =~# '^\s*else\>' && prev_codeline !~# '\<end$'
 		return indnt - &shiftwidth
 	endif
 
@@ -154,11 +154,11 @@
 	" Previous line didn't end in "begin"
 	let prev2_codeline_num = s:GetPrevNonCommentLineNum( prev_codeline_num )
 	let prev2_codeline = getline( prev2_codeline_num )
-	if prev2_codeline =~ '\<\(then\|else\|do\)$' && prev_codeline !~ '\<begin$'
+	if prev2_codeline =~# '\<\(then\|else\|do\)$' && prev_codeline !~# '\<begin$'
 		" If the next code line after a single statement branch/loop
 		" starts with "end", "except" or "finally", we need an
 		" additional unindentation.
-		if this_codeline =~ '^\s*\(end;\|except\|finally\|\)$'
+		if this_codeline =~# '^\s*\(end;\|except\|finally\|\)$'
 			" Note that we don't return from here.
 			return indnt - &shiftwidth - &shiftwidth
 		endif
@@ -168,7 +168,7 @@
 	" Lines starting with "until" or "end". This rule must be overridden
 	" by the one for "end" after a single-statement branch/loop. In
 	" other words that rule should come before this one.
-	if this_codeline =~ '^\s*\(end\|until\)\>'
+	if this_codeline =~# '^\s*\(end\|until\)\>'
 		return indnt - &shiftwidth
 	endif
 
@@ -177,7 +177,7 @@
 
 	" Most "begin"s will have been handled by now. Any remaining
 	" "begin"s on their own line should go in column 1.
-	if this_codeline =~ '^\s*begin$'
+	if this_codeline =~# '^\s*begin$'
 		return 0
 	endif
 
@@ -192,7 +192,7 @@
 	" COLUMN 1 ALWAYS
 
 	" section headers at start of line.
-	if this_codeline =~ '^\s*\(interface\|implementation\|uses\|unit\)\>'
+	if this_codeline =~# '^\s*\(interface\|implementation\|uses\|unit\)\>'
 		return 0
 	endif
 
@@ -200,7 +200,7 @@
 	" INDENT ONCE
 
 	" If the PREVIOUS LINE ended in these items, always indent.
-	if prev_codeline =~ '^\s*\(unit\|uses\|try\|except\|finally\|private\|protected\|public\|published\)$'
+	if prev_codeline =~# '^\s*\(unit\|uses\|try\|except\|finally\|private\|protected\|public\|published\)$'
 		return indnt + &shiftwidth
 	endif
 
@@ -211,11 +211,11 @@
 
 	" UNINDENT ONCE
 
-	if this_codeline =~ '^\s*\(except\|finally\)$'
+	if this_codeline =~# '^\s*\(except\|finally\)$'
 		return indnt - &shiftwidth
 	endif
 
-	if this_codeline =~ '^\s*\(private\|protected\|public\|published\)$'
+	if this_codeline =~# '^\s*\(private\|protected\|public\|published\)$'
 		return indnt - &shiftwidth
 	endif
 
diff -r 6581d543a54c runtime/indent/perl.vim
--- a/runtime/indent/perl.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/perl.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -48,12 +48,12 @@
     let cline = getline(v:lnum)
 
     " Indent POD markers to column 0
-    if cline =~ '^\s*=\L\@!'
+    if cline =~# '^\s*=\L\@!'
         return 0
     endif
 
     " Don't reindent coments on first column
-    if cline =~ '^#.'
+    if cline =~# '^#.'
         return 0
     endif
 
@@ -64,7 +64,7 @@
     endif
 
     " Don't reindent POD and heredocs
-    if csynid == "perlPOD" || csynid == "perlHereDoc" || csynid =~ "^pod"
+    if csynid == "perlPOD" || csynid == "perlHereDoc" || csynid =~# "^pod"
         return indent(v:lnum)
     endif
 
@@ -72,12 +72,12 @@
     if b:indent_use_syntax
         " Assumes that an end-of-heredoc marker matches \I\i* to avoid
         " confusion with other types of strings
-        if csynid == "perlStringStartEnd" && cline =~ '^\I\i*$'
+        if csynid == "perlStringStartEnd" && cline =~# '^\I\i*$'
             return 0
         endif
     else
         " Without syntax hints, assume that end-of-heredocs markers begin with EO
-        if cline =~ '^\s*EO'
+        if cline =~# '^\s*EO'
             return 0
         endif
     endif
@@ -97,11 +97,11 @@
         let skippin = 2
         while skippin
             let synid = synIDattr(synID(lnum,1,0),"name")
-            if (synid == "perlStringStartEnd" && line =~ '^\I\i*$')
+            if (synid == "perlStringStartEnd" && line =~# '^\I\i*$')
                         \ || (skippin != 2 && synid == "perlPOD")
                         \ || (skippin != 2 && synid == "perlHereDoc")
                         \ || synid == "perlComment"
-                        \ || synid =~ "^pod"
+                        \ || synid =~# "^pod"
                 let lnum = prevnonblank(lnum - 1)
                 if lnum == 0
                     return 0
@@ -114,7 +114,7 @@
             endif
         endwhile
     else
-        if line =~ "^EO"
+        if line =~# "^EO"
             let lnum = search("<<[\"']\\=EO", "bW")
             let line = getline(lnum)
             let ind = indent(lnum)
@@ -132,8 +132,8 @@
             if synid == ""
                         \ || synid == "perlMatchStartEnd"
                         \ || synid == "perlHereDoc"
-                        \ || synid =~ "^perlFiledescStatement"
-                        \ || synid =~ '^perl\(Sub\|Block\)Fold'
+                        \ || synid =~# "^perlFiledescStatement"
+                        \ || synid =~# '^perl\(Sub\|Block\)Fold'
                 let brace = strpart(line, bracepos, 1)
                 if brace == '(' || brace == '{' || brace == '['
                     let ind = ind + &sw
@@ -148,25 +148,25 @@
             let synid = synIDattr(synID(v:lnum, bracepos, 0), "name")
             if synid == ""
                         \ || synid == "perlMatchStartEnd"
-                        \ || synid =~ '^perl\(Sub\|Block\)Fold'
+                        \ || synid =~# '^perl\(Sub\|Block\)Fold'
                 let ind = ind - &sw
             endif
         endif
     else
-        if line =~ '[{\[(]\s*\(#[^)}\]]*\)\=$'
+        if line =~# '[{\[(]\s*\(#[^)}\]]*\)\=$'
             let ind = ind + &sw
         endif
-        if cline =~ '^\s*[)}\]]'
+        if cline =~# '^\s*[)}\]]'
             let ind = ind - &sw
         endif
     endif
 
     " Indent lines that begin with 'or' or 'and'
-    if cline =~ '^\s*\(or\|and\)\>'
-        if line !~ '^\s*\(or\|and\)\>'
+    if cline =~# '^\s*\(or\|and\)\>'
+        if line !~# '^\s*\(or\|and\)\>'
             let ind = ind + &sw
         endif
-    elseif line =~ '^\s*\(or\|and\)\>'
+    elseif line =~# '^\s*\(or\|and\)\>'
         let ind = ind - &sw
     endif
 
diff -r 6581d543a54c runtime/indent/perl6.vim
--- a/runtime/indent/perl6.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/perl6.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -60,12 +60,12 @@
     let cline = getline(v:lnum)
 
     " Indent POD markers to column 0
-    if cline =~ '^\s*=\L\@!'
+    if cline =~# '^\s*=\L\@!'
         return 0
     endif
 
     " Don't reindent coments on first column
-    if cline =~ '^#'
+    if cline =~# '^#'
         return 0
     endif
 
@@ -76,7 +76,7 @@
     endif
 
     " Don't reindent POD and heredocs
-    if csynid =~ "^p6Pod"
+    if csynid =~# "^p6Pod"
         return indent(v:lnum)
     endif
 
@@ -96,7 +96,7 @@
         let skippin = 2
         while skippin
             let synid = synIDattr(synID(lnum,1,0),"name")
-            if (synid =~ "^p6Pod" || synid =~ "p6Comment")
+            if (synid =~# "^p6Pod" || synid =~# "p6Comment")
                 let lnum = prevnonblank(lnum - 1)
                 if lnum == 0
                     return 0
@@ -110,19 +110,19 @@
         endwhile
     endif
 
-        if line =~ '[<«\[{(]\s*\(#[^)}\]»>]*\)\=$'
+        if line =~# '[<«\[{(]\s*\(#[^)}\]»>]*\)\=$'
             let ind = ind + &sw
         endif
-        if cline =~ '^\s*[)}\]»>]'
+        if cline =~# '^\s*[)}\]»>]'
             let ind = ind - &sw
         endif
 
     " Indent lines that begin with 'or' or 'and'
-    if cline =~ '^\s*\(or\|and\)\>'
-        if line !~ '^\s*\(or\|and\)\>'
+    if cline =~# '^\s*\(or\|and\)\>'
+        if line !~# '^\s*\(or\|and\)\>'
             let ind = ind + &sw
         endif
-    elseif line =~ '^\s*\(or\|and\)\>'
+    elseif line =~# '^\s*\(or\|and\)\>'
         let ind = ind - &sw
     endif
 
diff -r 6581d543a54c runtime/indent/php.vim
--- a/runtime/indent/php.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/php.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -137,21 +137,21 @@
 	let lnum = prevnonblank(lnum)
 	let lastline = getline(lnum)
 
-	if b:InPHPcode_and_script && lastline =~ '?>\s*$'
+	if b:InPHPcode_and_script && lastline =~# '?>\s*$'
 	    let lnum = lnum - 1
-	elseif lastline =~ '^\s*?>.*<?\%(php\)\=\s*$'
+	elseif lastline =~# '^\s*?>.*<?\%(php\)\=\s*$'
 	    let lnum = lnum - 1
-	elseif lastline =~ '^\s*\%(//\|#\|/\*.*\*/\s*$\)'
+	elseif lastline =~# '^\s*\%(//\|#\|/\*.*\*/\s*$\)'
 	    let lnum = lnum - 1
-	elseif lastline =~ '\*/\s*$'
+	elseif lastline =~# '\*/\s*$'
 	    call cursor(lnum, 1)
-	    if lastline !~ '^\*/'
+	    if lastline !~# '^\*/'
 		call search('\*/', 'W')
 	    endif
 	    let lnum = searchpair('/\*', '', '\*/', s:searchpairflags, 'Skippmatch2()')
 
 	    let lastline = getline(lnum)
-	    if lastline =~ '^\s*/\*'
+	    if lastline =~# '^\s*/\*'
 		let lnum = lnum - 1
 	    else
 		break
@@ -160,11 +160,11 @@
 
 	elseif lastline =~? '\%(//\s*\|?>.*\)\@<!<?\%(php\)\=\s*$\|^\s*<script\>'
 
-	    while lastline !~ '\(<?.*\)\@<!?>' && lnum > 1
+	    while lastline !~# '\(<?.*\)\@<!?>' && lnum > 1
 		let lnum = lnum - 1
 		let lastline = getline(lnum)
 	    endwhile
-	    if lastline =~ '^\s*?>'
+	    if lastline =~# '^\s*?>'
 		let lnum = lnum - 1
 	    else
 		break
@@ -181,7 +181,7 @@
 	endif
     endwhile
 
-    if lnum==1 && getline(lnum) !~ '<?'
+    if lnum==1 && getline(lnum) !~# '<?'
 	let lnum=0
     endif
 
@@ -198,7 +198,7 @@
 
     let line = getline(".")
 
-   if line =~ '\%(".*\)\@<=/\*\%(.*"\)\@=' || line =~ '\%(\%(//\|#\).*\)\@<=/\*'
+   if line =~# '\%(".*\)\@<=/\*\%(.*"\)\@=' || line =~# '\%(\%(//\|#\).*\)\@<=/\*'
        return 1
    else
        return 0
@@ -235,10 +235,10 @@
 	let s:iftoskip = s:iftoskip + 1
     endif
 
-    if getline(beforeelse) =~ '^\s*}'
+    if getline(beforeelse) =~# '^\s*}'
 	let beforeelse = FindOpenBracket(beforeelse)
 
-	if getline(beforeelse) =~ '^\s*{'
+	if getline(beforeelse) =~# '^\s*{'
 	    let beforeelse = GetLastRealCodeLNum(beforeelse - 1)
 	endif
     endif
@@ -273,10 +273,10 @@
 	return indent(1) - &sw * b:PHP_vintage_case_default_indent
     end
 
-    if getline(test) =~ '^\s*}'
+    if getline(test) =~# '^\s*}'
 	let test = FindOpenBracket(test)
 
-	if getline(test) =~ '^\s*{'
+	if getline(test) =~# '^\s*{'
 	    let test = GetLastRealCodeLNum(GetLastRealCodeLNum(test - 1) - 1)
 	endif
     endif
@@ -307,7 +307,7 @@
 
     let synname = synIDattr(synID(a:lnum, coltotest, 0), "name")
 
-    if synname =~ '^php' || synname=="Delimiter" || synname =~? '^javaScript'
+    if synname =~# '^php' || synname=="Delimiter" || synname =~? '^javaScript'
 	return synname
     else
 	return ""
@@ -392,7 +392,7 @@
 	let b:InPHPcode_checked = 1
 
 	let synname = ""
-	if cline !~ '<?.*?>'
+	if cline !~# '<?.*?>'
 	    let synname = IslinePHP (prevnonblank(v:lnum), "")
 	endif
 
@@ -439,9 +439,9 @@
 	    let b:InPHPcode = 1
 	    let b:InPHPcode_tofind = ""
 	    let b:UserIsTypingComment = 0
-	    if cline =~ '\*/'
+	    if cline =~# '\*/'
 		call cursor(v:lnum, 1)
-		if cline !~ '^\*/'
+		if cline !~# '^\*/'
 		    call search('\*/', 'W')
 		endif
 		let lnum = searchpair('/\*', '', '\*/', s:searchpairflags, 'Skippmatch2()')
@@ -450,7 +450,7 @@
 
 		let b:PHP_LastIndentedWasComment = 0
 
-		if cline =~ '^\s*\*/'
+		if cline =~# '^\s*\*/'
 		    return indent(lnum) + 1
 		else
 		    return indent(lnum)
@@ -465,7 +465,7 @@
 
     if b:InPHPcode
 
-	if !b:InPHPcode_and_script && last_line =~ '\%(<?.*\)\@<!?>\%(.*<?\)\@!' && IslinePHP(lnum, '?>')=~"Delimiter"
+	if !b:InPHPcode_and_script && last_line =~# '\%(<?.*\)\@<!?>\%(.*<?\)\@!' && IslinePHP(lnum, '?>')=~#"Delimiter"
 	    if cline !~? s:PHP_startindenttag
 		let b:InPHPcode = 0
 		let b:InPHPcode_tofind = s:PHP_startindenttag
@@ -477,7 +477,7 @@
 	    let b:InPHPcode = 0
 	    let b:InPHPcode_tofind = substitute( last_line, '^.*<<<''\=\(\a\w*\)''\=$', '^\\s*\1;\\=$', '')
 
-	elseif !UserIsEditing && cline =~ '^\s*/\*\%(.*\*/\)\@!' && getline(v:lnum + 1) !~ '^\s*\*'
+	elseif !UserIsEditing && cline =~# '^\s*/\*\%(.*\*/\)\@!' && getline(v:lnum + 1) !~# '^\s*\*'
 	    let b:InPHPcode = 0
 	    let b:InPHPcode_tofind = '\*/'
 
@@ -493,7 +493,7 @@
     endif
 
     " Indent successive // or # comment the same way the first is {{{
-    if cline =~ '^\s*\%(//\|#\|/\*.*\*/\s*$\)'
+    if cline =~# '^\s*\%(//\|#\|/\*.*\*/\s*$\)'
 	if b:PHP_LastIndentedWasComment == 1
 	    return indent(real_PHP_lastindented)
 	endif
@@ -505,8 +505,8 @@
     " Indent multiline /* comments correctly {{{
 
     if b:PHP_InsideMultilineComment || b:UserIsTypingComment
-	if cline =~ '^\s*\*\%(\/\)\@!'
-	    if last_line =~ '^\s*/\*'
+	if cline =~# '^\s*\*\%(\/\)\@!'
+	    if last_line =~# '^\s*/\*'
 		return indent(lnum) + 1
 	    else
 		return indent(lnum)
@@ -516,8 +516,8 @@
 	endif
     endif
 
-    if !b:PHP_InsideMultilineComment && cline =~ '^\s*/\*' && cline !~ '\*/\s*$'
-	if getline(v:lnum + 1) !~ '^\s*\*'
+    if !b:PHP_InsideMultilineComment && cline =~# '^\s*/\*' && cline !~# '\*/\s*$'
+	if getline(v:lnum + 1) !~# '^\s*\*'
 	    return -1
 	endif
 	let b:PHP_InsideMultilineComment = 1
@@ -525,11 +525,11 @@
 
 
     " Things always indented at col 1 (PHP delimiter: <?, ?>, Heredoc end) {{{
-    if cline =~# '^\s*<?' && cline !~ '?>' && b:PHP_outdentphpescape
+    if cline =~# '^\s*<?' && cline !~# '?>' && b:PHP_outdentphpescape
 	return 0
     endif
 
-    if	cline =~ '^\s*?>' && cline !~# '<?' && b:PHP_outdentphpescape
+    if	cline =~# '^\s*?>' && cline !~# '<?' && b:PHP_outdentphpescape
 	return 0
     endif
 
@@ -554,22 +554,22 @@
     endif
 
 
-    if cline =~ '^\s*}\%(}}\)\@!'
+    if cline =~# '^\s*}\%(}}\)\@!'
 	let ind = indent(FindOpenBracket(v:lnum))
 	let b:PHP_CurrentIndentLevel = b:PHP_default_indenting
 	return ind
     endif
 
-    if cline =~ '^\s*\*/'
+    if cline =~# '^\s*\*/'
 	call cursor(v:lnum, 1)
-	if cline !~ '^\*/'
+	if cline !~# '^\*/'
 	    call search('\*/', 'W')
 	endif
 	let lnum = searchpair('/\*', '', '\*/', s:searchpairflags, 'Skippmatch2()')
 
 	let b:PHP_CurrentIndentLevel = b:PHP_default_indenting
 
-	if cline =~ '^\s*\*/'
+	if cline =~# '^\s*\*/'
 	    return indent(lnum) + 1
 	else
 	    return indent(lnum)
@@ -577,10 +577,10 @@
     endif
 
 
-    if last_line =~ '[;}]'.endline && last_line !~ '^)' && last_line !~# s:defaultORcase
+    if last_line =~# '[;}]'.endline && last_line !~# '^)' && last_line !~# s:defaultORcase
 	if ind==b:PHP_default_indenting
 	    return b:PHP_default_indenting
-	elseif b:PHP_indentinghuge && ind==b:PHP_CurrentIndentLevel && cline !~# '^\s*\%(else\|\%(case\|default\).*:\|[})];\=\)' && last_line !~# '^\s*\%(\%(}\s*\)\=else\)' && getline(GetLastRealCodeLNum(lnum - 1))=~';'.endline
+	elseif b:PHP_indentinghuge && ind==b:PHP_CurrentIndentLevel && cline !~# '^\s*\%(else\|\%(case\|default\).*:\|[})];\=\)' && last_line !~# '^\s*\%(\%(}\s*\)\=else\)' && getline(GetLastRealCodeLNum(lnum - 1))=~#';'.endline
 	    return b:PHP_CurrentIndentLevel
 	endif
     endif
@@ -596,13 +596,13 @@
 	return indent(FindTheIfOfAnElse(v:lnum, 1))
     elseif cline =~# s:defaultORcase
 	return FindTheSwitchIndent(v:lnum) + &sw * b:PHP_vintage_case_default_indent
-    elseif cline =~ '^\s*)\=\s*{'
+    elseif cline =~# '^\s*)\=\s*{'
 	let previous_line = last_line
 	let last_line_num = lnum
 
 	while last_line_num > 1
 
-	    if previous_line =~ '^\s*\%(' . s:blockstart . '\|\%([a-zA-Z]\s*\)*function\)'
+	    if previous_line =~# '^\s*\%(' . s:blockstart . '\|\%([a-zA-Z]\s*\)*function\)'
 
 		let ind = indent(last_line_num)
 
@@ -617,20 +617,20 @@
 	    let previous_line = getline(last_line_num)
 	endwhile
 
-    elseif last_line =~# unstated && cline !~ '^\s*);\='.endline
+    elseif last_line =~# unstated && cline !~# '^\s*);\='.endline
 	let ind = ind + &sw
 	return ind
 
-    elseif (ind != b:PHP_default_indenting || last_line =~ '^)' ) && last_line =~ terminated
+    elseif (ind != b:PHP_default_indenting || last_line =~# '^)' ) && last_line =~# terminated
 	let previous_line = last_line
 	let last_line_num = lnum
 	let LastLineClosed = 1
 
 	while 1
-	    if previous_line =~ '^\s*}'
+	    if previous_line =~# '^\s*}'
 		let last_line_num = FindOpenBracket(last_line_num)
 
-		if getline(last_line_num) =~ '^\s*{'
+		if getline(last_line_num) =~# '^\s*{'
 		    let last_line_num = GetLastRealCodeLNum(last_line_num - 1)
 		endif
 
@@ -685,7 +685,7 @@
 
 
     if ind == b:PHP_default_indenting
-	if last_line =~ terminated
+	if last_line =~# terminated
 	    let LastLineClosed = 1
 	endif
     endif
@@ -693,7 +693,7 @@
     if !LastLineClosed
 
 
-	if last_line =~# '[{(]'.endline || last_line =~? '\h\w*\s*(.*,$' && AntepenultimateLine !~ '[,(]'.endline
+	if last_line =~# '[{(]'.endline || last_line =~? '\h\w*\s*(.*,$' && AntepenultimateLine !~# '[,(]'.endline
 
 	    if !b:PHP_BracesAtCodeLevel || last_line !~# '^\s*{'
 		let ind = ind + &sw
@@ -705,7 +705,7 @@
 		return ind
 	    endif
 
-	elseif last_line =~ '\S\+\s*),'.endline
+	elseif last_line =~# '\S\+\s*),'.endline
 	    call cursor(lnum, 1)
 	    call search('),'.endline, 'W')
 	    let openedparent = searchpair('(', '', ')', 'bW', 'Skippmatch()')
@@ -713,18 +713,18 @@
 		let ind = indent(openedparent)
 	    endif
 	
-	elseif last_line =~ '^\s*'.s:blockstart
+	elseif last_line =~# '^\s*'.s:blockstart
 	    let ind = ind + &sw
 
 
 
-	elseif AntepenultimateLine =~ '\%(;\%(\s*?>\)\=\|<<<''\=\a\w*''\=$\|^\s*}\|{\)'.endline . '\|' . s:defaultORcase
+	elseif AntepenultimateLine =~# '\%(;\%(\s*?>\)\=\|<<<''\=\a\w*''\=$\|^\s*}\|{\)'.endline . '\|' . s:defaultORcase
 	    let ind = ind + &sw
 	endif
 
     endif
 
-    if cline =~  '^\s*);\='
+    if cline =~#  '^\s*);\='
 	let ind = ind - &sw
     endif
 
diff -r 6581d543a54c runtime/indent/postscr.vim
--- a/runtime/indent/postscr.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/postscr.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -24,7 +24,7 @@
   let lnum = a:lnum - 1
   while lnum != 0
     let lnum = prevnonblank(lnum)
-    if getline(lnum) !~ '^\s*%.*$'
+    if getline(lnum) !~# '^\s*%.*$'
       break
     endif
     let lnum = lnum - 1
@@ -40,20 +40,20 @@
   let pline = getline(lnum)
 
   " Indent for dicts, arrays, and saves with possible trailing comment
-  if pline =~ '\(begin\|<<\|g\=save\|{\|[\)\s*\(%.*\)\=$'
+  if pline =~# '\(begin\|<<\|g\=save\|{\|[\)\s*\(%.*\)\=$'
     let ind = ind + &sw
   endif
 
   " Remove indent for popped dicts, and restores.
-  if pline =~ '\(end\|g\=restore\)\s*$'
+  if pline =~# '\(end\|g\=restore\)\s*$'
     let ind = ind - &sw
 
   " Else handle immediate dedents of dicts, restores, and arrays.
-  elseif getline(a:lnum) =~ '\(end\|>>\|g\=restore\|}\|]\)'
+  elseif getline(a:lnum) =~# '\(end\|>>\|g\=restore\|}\|]\)'
     let ind = ind - &sw
 
   " Else handle DSC comments - always start of line.
-  elseif getline(a:lnum) =~ '^\s*%%'
+  elseif getline(a:lnum) =~# '^\s*%%'
     let ind = 0
   endif
 
diff -r 6581d543a54c runtime/indent/prolog.vim
--- a/runtime/indent/prolog.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/prolog.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -36,22 +36,22 @@
 
     let ind = indent(pnum)
     " Previous line was comment -> use previous line's indent
-    if pline =~ '^\s*%'
+    if pline =~# '^\s*%'
 	retu ind
     endif
     " Check for clause head on previous line
-    if pline =~ ':-\s*\(%.*\)\?$'
+    if pline =~# ':-\s*\(%.*\)\?$'
 	let ind = ind + &sw
     " Check for end of clause on previous line
-    elseif pline =~ '\.\s*\(%.*\)\?$'
+    elseif pline =~# '\.\s*\(%.*\)\?$'
 	let ind = ind - &sw
     endif
     " Check for opening conditional on previous line
-    if pline =~ '^\s*\([(;]\|->\)'
+    if pline =~# '^\s*\([(;]\|->\)'
 	let ind = ind + &sw
     endif
     " Check for closing an unclosed paren, or middle ; or ->
-    if line =~ '^\s*\([);]\|->\)'
+    if line =~# '^\s*\([);]\|->\)'
 	let ind = ind - &sw
     endif
     return ind
diff -r 6581d543a54c runtime/indent/python.vim
--- a/runtime/indent/python.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/python.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -32,8 +32,8 @@
 
   " If this line is explicitly joined: If the previous line was also joined,
   " line it up with that one, otherwise add two 'shiftwidth'
-  if getline(a:lnum - 1) =~ '\\$'
-    if a:lnum > 1 && getline(a:lnum - 2) =~ '\\$'
+  if getline(a:lnum - 1) =~# '\\$'
+    if a:lnum > 1 && getline(a:lnum - 2) =~# '\\$'
       return indent(a:lnum - 1)
     endif
     return indent(a:lnum - 1) + (exists("g:pyindent_continue") ? eval(g:pyindent_continue) : (&sw * 2))
@@ -41,7 +41,7 @@
 
   " If the start of the line is in a string don't change the indent.
   if has('syntax_items')
-	\ && synIDattr(synID(a:lnum, 1, 1), "name") =~ "String$"
+	\ && synIDattr(synID(a:lnum, 1, 1), "name") =~# "String$"
     return -1
   endif
 
@@ -61,7 +61,7 @@
   let parlnum = searchpair('(\|{\|\[', '', ')\|}\|\]', 'nbW',
 	  \ "line('.') < " . (plnum - s:maxoff) . " ? dummy :"
 	  \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
-	  \ . " =~ '\\(Comment\\|String\\)$'")
+	  \ . " =~# '\\(Comment\\|String\\)$'")
   if parlnum > 0
     let plindent = indent(parlnum)
     let plnumstart = parlnum
@@ -80,14 +80,14 @@
   let p = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
 	  \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
 	  \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
-	  \ . " =~ '\\(Comment\\|String\\)$'")
+	  \ . " =~# '\\(Comment\\|String\\)$'")
   if p > 0
     if p == plnum
       " When the start is inside parenthesis, only indent one 'shiftwidth'.
       let pp = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
 	  \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
 	  \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
-	  \ . " =~ '\\(Comment\\|String\\)$'")
+	  \ . " =~# '\\(Comment\\|String\\)$'")
       if pp > 0
 	return indent(plnum) + (exists("g:pyindent_nested_paren") ? eval(g:pyindent_nested_paren) : &sw)
       endif
@@ -108,12 +108,12 @@
     " If the last character in the line is a comment, do a binary search for
     " the start of the comment.  synID() is slow, a linear search would take
     " too long on a long line.
-    if synIDattr(synID(plnum, pline_len, 1), "name") =~ "Comment$"
+    if synIDattr(synID(plnum, pline_len, 1), "name") =~# "Comment$"
       let min = 1
       let max = pline_len
       while min < max
 	let col = (min + max) / 2
-	if synIDattr(synID(plnum, col, 1), "name") =~ "Comment$"
+	if synIDattr(synID(plnum, col, 1), "name") =~# "Comment$"
 	  let max = col
 	else
 	  let min = col + 1
@@ -133,12 +133,12 @@
   endif
 
   " If the previous line ended with a colon, indent this line
-  if pline =~ ':\s*$'
+  if pline =~# ':\s*$'
     return plindent + &sw
   endif
 
   " If the previous line was a stop-execution statement...
-  if getline(plnum) =~ '^\s*\(break\|continue\|raise\|return\|pass\)\>'
+  if getline(plnum) =~# '^\s*\(break\|continue\|raise\|return\|pass\)\>'
     " See if the user has already dedented
     if indent(a:lnum) > indent(plnum) - &sw
       " If not, recommend one dedent
@@ -149,10 +149,10 @@
   endif
 
   " If the current line begins with a keyword that lines up with "try"
-  if getline(a:lnum) =~ '^\s*\(except\|finally\)\>'
+  if getline(a:lnum) =~# '^\s*\(except\|finally\)\>'
     let lnum = a:lnum - 1
     while lnum >= 1
-      if getline(lnum) =~ '^\s*\(try\|except\)\>'
+      if getline(lnum) =~# '^\s*\(try\|except\)\>'
 	let ind = indent(lnum)
 	if ind >= indent(a:lnum)
 	  return -1	" indent is already less than this
@@ -165,10 +165,10 @@
   endif
 
   " If the current line begins with a header keyword, dedent
-  if getline(a:lnum) =~ '^\s*\(elif\|else\)\>'
+  if getline(a:lnum) =~# '^\s*\(elif\|else\)\>'
 
     " Unless the previous line was a one-liner
-    if getline(plnumstart) =~ '^\s*\(for\|if\|try\)\>'
+    if getline(plnumstart) =~# '^\s*\(for\|if\|try\)\>'
       return plindent
     endif
 
diff -r 6581d543a54c runtime/indent/r.vim
--- a/runtime/indent/r.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/r.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -147,7 +147,7 @@
     while i > 0
         let line2 = substitute(line, '\<else\>', "xxx", "g")
         let elsenr += strlen(line) - strlen(line2)
-        if line =~ '.*\s*if\s*()' || line =~ '.*\s*if\s*()'
+        if line =~# '.*\s*if\s*()' || line =~# '.*\s*if\s*()'
             let elsenr -= 1
             if elsenr == 0
                 let ifhere = i
@@ -191,7 +191,7 @@
 function s:Get_prev_line(lineno)
     let lnum = a:lineno - 1
     let data = getline( lnum )
-    while lnum > 0 && (data =~ '^\s*#' || data =~ '^\s*$')
+    while lnum > 0 && (data =~# '^\s*#' || data =~# '^\s*$')
         let lnum = lnum - 1
         let data = getline( lnum )
     endwhile
@@ -213,12 +213,12 @@
     let clnum = line(".")    " current line
 
     let cline = getline(clnum)
-    if cline =~ '^\s*#'
+    if cline =~# '^\s*#'
         if g:r_indent_ess_comments == 1
-            if cline =~ '^\s*###'
+            if cline =~# '^\s*###'
                 return 0
             endif
-            if cline !~ '^\s*##'
+            if cline !~# '^\s*##'
                 return g:r_indent_comment_column
             endif
         endif
@@ -226,11 +226,11 @@
 
     let cline = SanitizeRLine(cline)
 
-    if cline =~ '^\s*}' || cline =~ '^\s*}\s*)$'
+    if cline =~# '^\s*}' || cline =~# '^\s*}\s*)$'
         let indline = s:Get_matching_brace(clnum, '{', '}', 1)
         if indline > 0 && indline != clnum
             let iline = SanitizeRLine(getline(indline))
-            if s:Get_paren_balance(iline, "(", ")") == 0 || iline =~ '(\s*{$'
+            if s:Get_paren_balance(iline, "(", ")") == 0 || iline =~# '(\s*{$'
                 return indent(indline)
             else
                 let indline = s:Get_matching_brace(indline, '(', ')', 1)
@@ -249,26 +249,26 @@
     let line = SanitizeRLine(getline(lnum))
 
     if &filetype == "rhelp"
-        if cline =~ '^\\dontshow{' || cline =~ '^\\dontrun{' || cline =~ '^\\donttest{' || cline =~ '^\\testonly{'
+        if cline =~# '^\\dontshow{' || cline =~# '^\\dontrun{' || cline =~# '^\\donttest{' || cline =~# '^\\testonly{'
             return 0
         endif
-        if line =~ '^\\examples{' || line =~ '^\\usage{' || line =~ '^\\dontshow{' || line =~ '^\\dontrun{' || line =~ '^\\donttest{' || line =~ '^\\testonly{'
+        if line =~# '^\\examples{' || line =~# '^\\usage{' || line =~# '^\\dontshow{' || line =~# '^\\dontrun{' || line =~# '^\\donttest{' || line =~# '^\\testonly{'
             return 0
         endif
-        if line =~ '^\\method{.*}{.*}(.*'
+        if line =~# '^\\method{.*}{.*}(.*'
             let line = substitute(line, '^\\method{\(.*\)}{.*}', '\1', "")
         endif
     endif
 
-    if cline =~ '^\s*{'
-        if g:r_indent_ess_compatible && line =~ ')$'
+    if cline =~# '^\s*{'
+        if g:r_indent_ess_compatible && line =~# ')$'
             let nlnum = lnum
             let nline = line
             while s:Get_paren_balance(nline, '(', ')') < 0
                 let nlnum = s:Get_prev_line(nlnum)
                 let nline = SanitizeRLine(getline(nlnum)) . nline
             endwhile
-            if nline =~ '^\s*function\s*(' && indent(nlnum) == &sw
+            if nline =~# '^\s*function\s*(' && indent(nlnum) == &sw
                 return 0
             endif
         endif
@@ -278,7 +278,7 @@
     endif
 
     " line is an incomplete command:
-    if line =~ '\<\(if\|while\|for\|function\)\s*()$' || line =~ '\<else$' || line =~ '<-$'
+    if line =~# '\<\(if\|while\|for\|function\)\s*()$' || line =~# '\<else$' || line =~# '<-$'
         return indent(lnum) + &sw
     endif
 
@@ -286,7 +286,7 @@
 
     let pb = s:Get_paren_balance(line, '(', ')')
 
-    if line =~ '^\s*{$' || line =~ '(\s*{' || (pb == 0 && (line =~ '{$' || line =~ '(\s*{$'))
+    if line =~# '^\s*{$' || line =~# '(\s*{' || (pb == 0 && (line =~# '{$' || line =~# '(\s*{$'))
         return indent(lnum) + &sw
     endif
 
@@ -295,7 +295,7 @@
     let s:curtabstop = repeat(' ', &tabstop)
     if g:r_indent_align_args == 1
 
-        if pb == 0 && bb == 0 && (line =~ '.*[,&|\-\*+<>]$' || cline =~ '^\s*[,&|\-\*+<>]')
+        if pb == 0 && bb == 0 && (line =~# '.*[,&|\-\*+<>]$' || cline =~# '^\s*[,&|\-\*+<>]')
             return indent(lnum)
         endif
 
@@ -308,7 +308,7 @@
             return ind
         endif
 
-        if pb < 0 && line =~ '.*[,&|\-\*+<>]$'
+        if pb < 0 && line =~# '.*[,&|\-\*+<>]$'
             let lnum = s:Get_prev_line(lnum)
             while pb < 1 && lnum > 0
                 let line = SanitizeRLine(getline(lnum))
@@ -339,10 +339,10 @@
     endif
 
     let post_block = 0
-    if line =~ '}$'
+    if line =~# '}$'
         let lnum = s:Get_matching_brace(lnum, '{', '}', 0)
         let line = SanitizeRLine(getline(lnum))
-        if lnum > 0 && line =~ '^\s*{'
+        if lnum > 0 && line =~# '^\s*{'
             let lnum = s:Get_prev_line(lnum)
             let line = SanitizeRLine(getline(lnum))
         endif
@@ -351,7 +351,7 @@
     endif
 
     let post_fun = 0
-    if pb < 0 && line !~ ')\s*[,&|\-\*+<>]$'
+    if pb < 0 && line !~# ')\s*[,&|\-\*+<>]$'
         let post_fun = 1
         while pb < 0 && lnum > 0
             let lnum -= 1
@@ -359,27 +359,27 @@
             let pb += s:Get_paren_balance(linepiece, "(", ")")
             let line = linepiece . line
         endwhile
-        if line =~ '{$' && post_block == 0
+        if line =~# '{$' && post_block == 0
             return indent(lnum) + &sw
         endif
 
         " Now we can do some tests again
-        if cline =~ '^\s*{'
+        if cline =~# '^\s*{'
             return indent(lnum)
         endif
         if post_block == 0
             let newl = SanitizeRLine(line)
-            if newl =~ '\<\(if\|while\|for\|function\)\s*()$' || newl =~ '\<else$' || newl =~ '<-$'
+            if newl =~# '\<\(if\|while\|for\|function\)\s*()$' || newl =~# '\<else$' || newl =~# '<-$'
                 return indent(lnum) + &sw
             endif
         endif
     endif
 
-    if cline =~ '^\s*else'
-        if line =~ '<-\s*if\s*()'
+    if cline =~# '^\s*else'
+        if line =~# '<-\s*if\s*()'
             return indent(lnum) + &sw
         else
-            if line =~ '\<if\s*()'
+            if line =~# '\<if\s*()'
                 return indent(lnum)
             else
                 return indent(lnum) - &sw
@@ -387,7 +387,7 @@
         endif
     endif
 
-    if bb < 0 && line =~ '.*]'
+    if bb < 0 && line =~# '.*]'
         while bb < 0 && lnum > 0
             let lnum -= 1
             let linepiece = SanitizeRLine(getline(lnum))
@@ -402,32 +402,32 @@
     if plnum > 0
         let pline = SanitizeRLine(getline(plnum))
         let ppost_block = 0
-        if pline =~ '}$'
+        if pline =~# '}$'
             let ppost_block = 1
             let plnum = s:Get_matching_brace(plnum, '{', '}', 0)
             let pline = SanitizeRLine(getline(plnum))
-            if pline =~ '^\s*{$' && plnum > 0
+            if pline =~# '^\s*{$' && plnum > 0
                 let plnum = s:Get_prev_line(plnum)
                 let pline = SanitizeRLine(getline(plnum))
             endif
         endif
 
-        if pline =~ 'else$'
+        if pline =~# 'else$'
             let ppost_else = 1
             let plnum = s:Get_matching_if(plnum, 0)
             let pline = SanitizeRLine(getline(plnum))
         endif
 
-        if pline =~ '^\s*else\s*if\s*('
+        if pline =~# '^\s*else\s*if\s*('
             let pplnum = s:Get_prev_line(plnum)
             let ppline = SanitizeRLine(getline(pplnum))
-            while ppline =~ '^\s*else\s*if\s*(' || ppline =~ '^\s*if\s*()\s*\S$'
+            while ppline =~# '^\s*else\s*if\s*(' || ppline =~# '^\s*if\s*()\s*\S$'
                 let plnum = pplnum
                 let pline = ppline
                 let pplnum = s:Get_prev_line(plnum)
                 let ppline = SanitizeRLine(getline(pplnum))
             endwhile
-            while ppline =~ '\<\(if\|while\|for\|function\)\s*()$' || ppline =~ '\<else$' || ppline =~ '<-$'
+            while ppline =~# '\<\(if\|while\|for\|function\)\s*()$' || ppline =~# '\<else$' || ppline =~# '<-$'
                 let plnum = pplnum
                 let pline = ppline
                 let pplnum = s:Get_prev_line(plnum)
@@ -436,7 +436,7 @@
         endif
 
         let ppb = s:Get_paren_balance(pline, '(', ')')
-        if ppb < 0 && (pline =~ ')\s*{$' || pline =~ ')$')
+        if ppb < 0 && (pline =~# ')\s*{$' || pline =~# ')$')
             while ppb < 0 && plnum > 0
                 let plnum -= 1
                 let linepiece = SanitizeRLine(getline(plnum))
@@ -460,7 +460,7 @@
         return ind
     endif
 
-    if ind == pind || (ind == (pind  + &sw) && pline =~ '{$' && ppost_else == 0)
+    if ind == pind || (ind == (pind  + &sw) && pline =~# '{$' && ppost_else == 0)
         return ind
     endif
 
@@ -473,14 +473,14 @@
         let pline = getline(plnum)
         let ppb = s:Get_paren_balance(pline, '(', ')')
         let pbb = s:Get_paren_balance(pline, '[', ']')
-        while pline =~ '^\s*else'
+        while pline =~# '^\s*else'
             let plnum = s:Get_matching_if(plnum, 1)
             let pline = getline(plnum)
             let ppb = s:Get_paren_balance(pline, '(', ')')
             let pbb = s:Get_paren_balance(pline, '[', ']')
         endwhile
         let pind = indent(plnum)
-        if ind == (pind  + &sw) && pline =~ '{$'
+        if ind == (pind  + &sw) && pline =~# '{$'
             return ind
         endif
     endwhile
diff -r 6581d543a54c runtime/indent/readline.vim
--- a/runtime/indent/readline.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/readline.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -24,11 +24,11 @@
 
   let ind = indent(lnum)
 
-  if getline(lnum) =~ '^\s*$\(if\|else\)\>'
+  if getline(lnum) =~# '^\s*$\(if\|else\)\>'
     let ind = ind + &sw
   endif
 
-  if getline(v:lnum) =~ '^\s*$\(else\|endif\)\>'
+  if getline(v:lnum) =~# '^\s*$\(else\|endif\)\>'
     let ind = ind - &sw
   endif
 
diff -r 6581d543a54c runtime/indent/rst.vim
--- a/runtime/indent/rst.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/rst.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -28,9 +28,9 @@
   let ind = indent(lnum)
   let line = getline(lnum)
 
-  if line =~ s:itemization_pattern
+  if line =~# s:itemization_pattern
     let ind += 2
-  elseif line =~ s:enumeration_pattern
+  elseif line =~# s:enumeration_pattern
     let ind += matchend(line, s:enumeration_pattern)
   endif
 
@@ -38,19 +38,19 @@
 
   " Indent :FIELD: lines.  Don’t match if there is no text after the field or
   " if the text ends with a sent-ender.
-   if line =~ '^:.\+:\s\{-1,\}\S.\+[^.!?:]$'
+   if line =~# '^:.\+:\s\{-1,\}\S.\+[^.!?:]$'
      return matchend(line, '^:.\{-1,}:\s\+')
    endif
 
-  if line =~ '^\s*$'
+  if line =~# '^\s*$'
     execute lnum
     call search('^\s*\%([-*+]\s\|\%(\d\+\|#\)\.\s\|\.\.\|$\)', 'bW')
     let line = getline('.')
-    if line =~ s:itemization_pattern
+    if line =~# s:itemization_pattern
       let ind -= 2
-    elseif line =~ s:enumeration_pattern
+    elseif line =~# s:enumeration_pattern
       let ind -= matchend(line, s:enumeration_pattern)
-    elseif line =~ '^\s*\.\.'
+    elseif line =~# '^\s*\.\.'
       let ind -= 3
     endif
   endif
diff -r 6581d543a54c runtime/indent/ruby.vim
--- a/runtime/indent/ruby.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/ruby.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -47,7 +47,7 @@
 
 " Expression used to check whether we should skip a match with searchpair().
 let s:skip_expr =
-      \ "synIDattr(synID(line('.'),col('.'),1),'name') =~ '".s:syng_strcom."'"
+      \ "synIDattr(synID(line('.'),col('.'),1),'name') =~# '".s:syng_strcom."'"
 
 " Regex used for words that, at the start of a line, add a level of indent.
 let s:ruby_indent_keywords = '^\s*\zs\<\%(module\|class\|def\|if\|for' .
@@ -78,7 +78,7 @@
 " Expression used for searchpair() call for finding match for 'end' keyword.
 let s:end_skip_expr = s:skip_expr .
       \ ' || (expand("<cword>") == "do"' .
-      \ ' && getline(".") =~ "^\\s*\\<\\(while\\|until\\|for\\)\\>")'
+      \ ' && getline(".") =~# "^\\s*\\<\\(while\\|until\\|for\\)\\>")'
 
 " Regex that defines continuation lines, not including (, {, or [.
 let s:continuation_regex = '\%([\\*+/.,:]\|\%(<%\)\@<![=-]\|\W[|&?]\|||\|&&\)\s*\%(#.*\)\=$'
@@ -97,17 +97,17 @@
 
 " Check if the character at lnum:col is inside a string, comment, or is ascii.
 function s:IsInStringOrComment(lnum, col)
-  return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_strcom
+  return synIDattr(synID(a:lnum, a:col, 1), 'name') =~# s:syng_strcom
 endfunction
 
 " Check if the character at lnum:col is inside a string.
 function s:IsInString(lnum, col)
-  return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_string
+  return synIDattr(synID(a:lnum, a:col, 1), 'name') =~# s:syng_string
 endfunction
 
 " Check if the character at lnum:col is inside a string or documentation.
 function s:IsInStringOrDocumentation(lnum, col)
-  return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_stringdoc
+  return synIDattr(synID(a:lnum, a:col, 1), 'name') =~# s:syng_stringdoc
 endfunction
 
 " Find line above 'lnum' that isn't empty, in a comment, or in a string.
@@ -118,15 +118,15 @@
     " Go in and out of blocks comments as necessary.
     " If the line isn't empty (with opt. comment) or in a string, end search.
     let line = getline(lnum)
-    if line =~ '^=begin$'
+    if line =~# '^=begin$'
       if in_block
 	let in_block = 0
       else
 	break
       endif
-    elseif !in_block && line =~ '^=end$'
+    elseif !in_block && line =~# '^=end$'
       let in_block = 1
-    elseif !in_block && line !~ '^\s*#.*$' && !(s:IsInStringOrComment(lnum, 1)
+    elseif !in_block && line !~# '^\s*#.*$' && !(s:IsInStringOrComment(lnum, 1)
 	  \ && s:IsInStringOrComment(lnum, strlen(line)))
       break
     endif
@@ -238,8 +238,8 @@
     if searchpair(s:end_start_regex, s:end_middle_regex, s:end_end_regex, 'bW',
 	    \ s:end_skip_expr) > 0
       let line = getline('.')
-      if strpart(line, 0, col('.') - 1) =~ '=\s*$' &&
-       \ strpart(line, col('.') - 1, 2) !~ 'do'
+      if strpart(line, 0, col('.') - 1) =~# '=\s*$' &&
+       \ strpart(line, col('.') - 1, 2) !~# 'do'
 	let ind = virtcol('.') - 1
       else
 	let ind = indent('.')
@@ -260,7 +260,7 @@
   let lnum = s:PrevNonBlankNonString(v:lnum - 1)
 
   " If the line is empty and inside a string, use the previous line.
-  if line =~ '^\s*$' && lnum != prevnonblank(v:lnum - 1)
+  if line =~# '^\s*$' && lnum != prevnonblank(v:lnum - 1)
     return indent(prevnonblank(v:lnum))
   endif
 
@@ -280,7 +280,7 @@
 
   " If the previous line contained an opening bracket, and we are still in it,
   " add indent depending on the bracket type.
-  if line =~ '[[({]'
+  if line =~# '[[({]'
     let counts = s:LineHasOpeningBrackets(lnum)
     if counts[0] == '1' && searchpair('(', '', ')', 'bW', s:skip_expr) > 0
       if col('.') + 1 == col('$')
diff -r 6581d543a54c runtime/indent/sass.vim
--- a/runtime/indent/sass.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/sass.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -27,9 +27,9 @@
   let line = substitute(line,'^\s\+','','')
   let indent = indent(lnum)
   let cindent = indent(v:lnum)
-  if line !~ s:property && cline =~ s:property
+  if line !~# s:property && cline =~# s:property
     return indent + &sw
-  "elseif line =~ s:property && cline !~ s:property
+  "elseif line =~# s:property && cline !~# s:property
     "return indent - &sw
   else
     return -1
diff -r 6581d543a54c runtime/indent/sdl.vim
--- a/runtime/indent/sdl.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/sdl.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -35,10 +35,10 @@
   let virtuality = '^\s*\(\(virtual\|redefined\|finalized\)\s\+\)\=\s*'
 
   " Add a single space to comments which use asterisks
-  if getline(lnum) =~ '^\s*\*'
+  if getline(lnum) =~# '^\s*\*'
     let ind = ind - 1
   endif
-  if getline(v:lnum) =~ '^\s*\*'
+  if getline(v:lnum) =~# '^\s*\*'
     let ind = ind + 1
   endif
 
diff -r 6581d543a54c runtime/indent/sh.vim
--- a/runtime/indent/sh.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/sh.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -53,16 +53,16 @@
 
   let ind = indent(lnum)
   let line = getline(lnum)
-  if line =~ '^\s*\%(if\|then\|do\|else\|elif\|case\|while\|until\|for\|select\)\>'
-    if line !~ '\<\%(fi\|esac\|done\)\>\s*\%(#.*\)\=$'
+  if line =~# '^\s*\%(if\|then\|do\|else\|elif\|case\|while\|until\|for\|select\)\>'
+    if line !~# '\<\%(fi\|esac\|done\)\>\s*\%(#.*\)\=$'
       let ind += s:indent_value('default')
     endif
   elseif s:is_case_label(line, pnum)
     if !s:is_case_ended(line)
       let ind += s:indent_value('case-statements')
     endif
-  elseif line =~ '^\s*\<\k\+\>\s*()\s*{' || line =~ '^\s*{'
-    if line !~ '}\s*\%(#.*\)\=$'
+  elseif line =~# '^\s*\<\k\+\>\s*()\s*{' || line =~# '^\s*{'
+    if line !~# '}\s*\%(#.*\)\=$'
       let ind += s:indent_value('default')
     endif
   elseif s:is_continuation_line(line)
@@ -75,9 +75,9 @@
 
   let pine = line
   let line = getline(v:lnum)
-  if line =~ '^\s*\%(then\|do\|else\|elif\|fi\|done\)\>' || line =~ '^\s*}'
+  if line =~# '^\s*\%(then\|do\|else\|elif\|fi\|done\)\>' || line =~# '^\s*}'
     let ind -= s:indent_value('default')
-  elseif line =~ '^\s*esac\>'
+  elseif line =~# '^\s*esac\>'
     let ind -= (s:is_case_label(pine, lnum) && s:is_case_ended(pine) ?
              \ 0 : s:indent_value('case-statements')) +
              \ s:indent_value('case-labels')
@@ -98,7 +98,7 @@
 endfunction
 
 function! s:is_continuation_line(line)
-  return a:line =~ '\%(\%(^\|[^\\]\)\\\|&&\|||\)$'
+  return a:line =~# '\%(\%(^\|[^\\]\)\\\|&&\|||\)$'
 endfunction
 
 function! s:find_continued_lnum(lnum)
@@ -110,7 +110,7 @@
 endfunction
 
 function! s:is_case_label(line, pnum)
-  if a:line !~ '^\s*(\=.*)'
+  if a:line !~# '^\s*(\=.*)'
     return 0
   endif
 
@@ -143,15 +143,15 @@
 endfunction
 
 function! s:is_case(line)
-  return a:line =~ '^\s*case\>'
+  return a:line =~# '^\s*case\>'
 endfunction
 
 function! s:is_case_break(line)
-  return a:line =~ '^\s*;[;&]'
+  return a:line =~# '^\s*;[;&]'
 endfunction
 
 function! s:is_case_ended(line)
-  return s:is_case_break(a:line) || a:line =~ ';[;&]\s*\%(#.*\)\=$'
+  return s:is_case_break(a:line) || a:line =~# ';[;&]\s*\%(#.*\)\=$'
 endfunction
 
 let &cpo = s:cpo_save
diff -r 6581d543a54c runtime/indent/sml.vim
--- a/runtime/indent/sml.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/sml.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -50,7 +50,7 @@
 " Skipping pattern, for comments
 function! s:SkipPattern(lnum, pat)
   let def = prevnonblank(a:lnum - 1)
-  while def > 0 && getline(def) =~ a:pat
+  while def > 0 && getline(def) =~# a:pat
     let def = prevnonblank(def - 1)
   endwhile
   return def
@@ -63,7 +63,7 @@
   while llet > 0
     let old = indent(llet)
     let nb = s:SkipPattern(llet, '^\s*(\*.*\*)\s*$')
-    if getline(nb) =~ a:lim
+    if getline(nb) =~# a:lim
       return old
     endif
     let llet = search(a:pat, 'bW')
@@ -88,7 +88,7 @@
 "  return indent(searchpair(a:pstart, a:pmid, a:pend, 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"'))
   let lno = searchpair(a:pstart, a:pmid, a:pend, 'bW', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"')
   let moduleLine = getline(lno)
-  if lno == -1 || moduleLine =~ '^\s*\(fun\|structure\|signature\)\>'
+  if lno == -1 || moduleLine =~# '^\s*\(fun\|structure\|signature\)\>'
 	return indent(lno)
   else
 	return col(".") - 1
@@ -98,7 +98,7 @@
 " Indent 'let'
 "function! s:FindLet(pstart, pmid, pend)
 "  call search(a:pend, 'bW')
-"  return indent(searchpair(a:pstart, a:pmid, a:pend, 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment" || getline(".") =~ "^\\s*let\\>.*=.*\\<in\\s*$" || getline(prevnonblank(".") - 1) =~ "^\\s*let\\>.*=\\s*$\\|" . s:beflet'))
+"  return indent(searchpair(a:pstart, a:pmid, a:pend, 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment" || getline(".") =~# "^\\s*let\\>.*=.*\\<in\\s*$" || getline(prevnonblank(".") - 1) =~# "^\\s*let\\>.*=\\s*$\\|" . s:beflet'))
 "endfunction
 
 function! GetSMLIndent()
@@ -114,44 +114,44 @@
   let lline = getline(lnum)
 
 	" Return double 'shiftwidth' after lines matching:
-	if lline =~ '^\s*|.*=>\s*$'
+	if lline =~# '^\s*|.*=>\s*$'
 		return ind + &sw + &sw
-	elseif lline =~ '^\s*val\>.*=\s*$'
+	elseif lline =~# '^\s*val\>.*=\s*$'
 		return ind + &sw
 	endif
 
   let line = getline(v:lnum)
 
 	" Indent lines starting with 'end' to matching module
-	if line =~ '^\s*end\>'
+	if line =~# '^\s*end\>'
 		return s:FindLet(s:module, '', '\<end\>')
 
 	" Match 'else' with 'if'
-	elseif line =~ '^\s*else\>'
-	  	if lline !~ '^\s*\(if\|else\|then\)\>'
+	elseif line =~# '^\s*else\>'
+	  	if lline !~# '^\s*\(if\|else\|then\)\>'
 				return s:FindPair('\<if\>', '', '\<then\>')
 	  	else
 		  return ind
 		endif
 
 	" Match 'then' with 'if'
-	elseif line =~ '^\s*then\>'
-  	if lline !~ '^\s*\(if\|else\|then\)\>'
+	elseif line =~# '^\s*then\>'
+  	if lline !~# '^\s*\(if\|else\|then\)\>'
 		  return s:FindPair('\<if\>', '', '\<then\>')
 	else
 	  return ind
 	endif
 
 	" Indent if current line begins with ']'
-	elseif line =~ '^\s*\]'
+	elseif line =~# '^\s*\]'
 		return s:FindPair('\[','','\]')
 
   " Indent current line starting with 'in' to last matching 'let'
-	elseif line =~ '^\s*in\>'
+	elseif line =~# '^\s*in\>'
 		let ind = s:FindLet('\<let\>','','\<in\>')
 
 	" Indent from last matching module if line matches:
-	elseif line =~ '^\s*\(fun\|val\|open\|structure\|and\|datatype\|type\|exception\)\>'
+	elseif line =~# '^\s*\(fun\|val\|open\|structure\|and\|datatype\|type\|exception\)\>'
 		cursor(lnum,1)
   		let lastModule = indent(searchpair(s:module, '', '\<end\>', 'bWn', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"'))
 		if lastModule == -1
@@ -161,19 +161,19 @@
 		endif
 
 	" Indent lines starting with '|' from matching 'case', 'handle'
-	elseif line =~ '^\s*|'
+	elseif line =~# '^\s*|'
 		" cursor(lnum,1)
 		let lastSwitch = search('\<\(case\|handle\|fun\|datatype\)\>','bW')
 		let switchLine = getline(lastSwitch)
 		let switchLineIndent = indent(lastSwitch)
-		if lline =~ '^\s*|'
+		if lline =~# '^\s*|'
 		  return ind
 		endif
-		if switchLine =~ '\<case\>'
+		if switchLine =~# '\<case\>'
 			return col(".") + 2
-		elseif switchLine =~ '\<handle\>'
+		elseif switchLine =~# '\<handle\>'
 			return switchLineIndent + &sw
-		elseif switchLine =~ '\<datatype\>'
+		elseif switchLine =~# '\<datatype\>'
 			call search('=')
 			return col(".") - 1
 		else
@@ -183,29 +183,29 @@
 
   " Indent if last line ends with 'sig', 'struct', 'let', 'then', 'else',
   " 'in'
-  elseif lline =~ '\<\(sig\|struct\|let\|in\|then\|else\)\s*$'
+  elseif lline =~# '\<\(sig\|struct\|let\|in\|then\|else\)\s*$'
 		let ind = ind + &sw
 
   " Indent if last line ends with 'of', align from 'case'
-  elseif lline =~ '\<\(of\)\s*$'
+  elseif lline =~# '\<\(of\)\s*$'
 		call search('\<case\>',"bW")
 		let ind = col(".")+4
 
 	" Indent if current line starts with 'of'
-  elseif line =~ '^\s*of\>'
+  elseif line =~# '^\s*of\>'
 		call search('\<case\>',"bW")
 		let ind = col(".")+1
 
 
 	" Indent if last line starts with 'fun', 'case', 'fn'
-	elseif lline =~ '^\s*\(fun\|fn\|case\)\>'
+	elseif lline =~# '^\s*\(fun\|fn\|case\)\>'
 		let ind = ind + &sw
 
 	endif
 
 	" Don't indent 'let' if last line started with 'fun', 'fn'
-	if line =~ '^\s*let\>'
-		if lline =~ '^\s*\(fun\|fn\)'
+	if line =~# '^\s*let\>'
+		if lline =~# '^\s*\(fun\|fn\)'
 			let ind = ind - &sw
 		endif
   endif
diff -r 6581d543a54c runtime/indent/sqlanywhere.vim
--- a/runtime/indent/sqlanywhere.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/sqlanywhere.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -72,11 +72,11 @@
     let l = a:line
     let rp = substitute(l, '[^)]', '', 'g')
 
-    if a:paran_to_check =~ ')'
+    if a:paran_to_check =~# ')'
         " echom 'CountUnbalancedParan ) returning: ' .
         " \ (strlen(rp) - strlen(lp))
         return (strlen(rp) - strlen(lp))
-    elseif a:paran_to_check =~ '('
+    elseif a:paran_to_check =~# '('
         " echom 'CountUnbalancedParan ( returning: ' .
         " \ (strlen(lp) - strlen(rp))
         return (strlen(lp) - strlen(rp))
@@ -106,7 +106,7 @@
         endif
         let vircol      = virtcol(".")
 
-        " if getline(".") =~ '^)'
+        " if getline(".") =~# '^)'
         let matching_paran = searchpair('(', '', ')', 'bW',
                     \ 's:IsColComment(line("."), col("."))')
 
@@ -250,7 +250,7 @@
         endif
 
         if s:IsLineComment(prevlnum) == 1
-            if getline(v:lnum) =~ '^\s*\*'
+            if getline(v:lnum) =~# '^\s*\*'
                 let ind = s:ModuloIndent(indent(prevlnum))
                 return ind + 1
             endif
@@ -260,13 +260,13 @@
             " But only if the next line is blank.  This would be true if
             " the user is typing, but it would not be true if the user
             " is reindenting the file
-            if getline(v:lnum) =~ '^\s*$'
+            if getline(v:lnum) =~# '^\s*$'
                 return -1
             endif
         endif
 
     "     let prevline = getline(prevlnum)
-    "     if prevline !~ '^\s*$'
+    "     if prevline !~# '^\s*$'
     "         " echom 'previous non blank - break: ' . prevline
     "         break
     "     endif
@@ -290,13 +290,13 @@
         " Move indent in
         let ind = ind + &sw
         " echom 'prevl - SQLBlockStart - indent ' . ind . '  line: ' . prevline
-    elseif prevline =~ '[()]'
-        if prevline =~ '('
+    elseif prevline =~# '[()]'
+        if prevline =~# '('
             let num_unmatched_left = s:CountUnbalancedParan( prevline, '(' )
         else
             let num_unmatched_left = 0
         endif
-        if prevline =~ ')'
+        if prevline =~# ')'
             let num_unmatched_right  = s:CountUnbalancedParan( prevline, ')' )
         else
             let num_unmatched_right  = 0
@@ -314,7 +314,7 @@
             let ignore = s:CheckToIgnoreRightParan( prevlnum, num_unmatched_right )
             " echom 'prevl - ) unbalanced - CTIRP - ignore: ' . ignore
 
-            if prevline =~ '^\s*)'
+            if prevline =~# '^\s*)'
                 let ignore = ignore + 1
                 " echom 'prevl - begins ) unbalanced ignore: ' . ignore
             endif
@@ -351,9 +351,9 @@
         " if stmt_starter =~? 'case'
         "    let ind = ind - &sw
         " endif
-        " elseif line =~ '^\s*)\s*;\?\s*$'
-        " elseif line =~ '^\s*)'
-    elseif line =~ '^\s*)'
+        " elseif line =~# '^\s*)\s*;\?\s*$'
+        " elseif line =~# '^\s*)'
+    elseif line =~# '^\s*)'
         let num_unmatched_right  = s:CountUnbalancedParan( line, ')' )
         let ignore = s:CheckToIgnoreRightParan( v:lnum, num_unmatched_right )
         " If the line ends in a ), then reduce the indent
@@ -367,9 +367,9 @@
         " AND  c2 = 3 ) THEN
         " let num_unmatched_right  = s:CountUnbalancedParan( line, ')' )
         " if num_unmatched_right > 0
-        " elseif strpart( line, strlen(line)-1, 1 ) =~ ')'
+        " elseif strpart( line, strlen(line)-1, 1 ) =~# ')'
         " let ind = ind - &sw
-        if line =~ '^\s*)'
+        if line =~# '^\s*)'
             " let ignore = ignore + 1
             " echom 'curr - begins ) unbalanced ignore: ' . ignore
         endif
diff -r 6581d543a54c runtime/indent/tcl.vim
--- a/runtime/indent/tcl.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/tcl.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -20,7 +20,7 @@
   let lnum = prevnonblank(a:lnum)
   while lnum > 0
     let line = getline(lnum)
-    if line !~ '^\s*\(#\|$\)'
+    if line !~# '^\s*\(#\|$\)'
       break
     endif
     let lnum = prevnonblank(lnum - 1)
@@ -35,7 +35,7 @@
   let pattern = '[{}]'
   let i = match(line, pattern)
   while i != -1
-    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~ 'tcl\%(Comment\|String\)'
+    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~# 'tcl\%(Comment\|String\)'
       if line[i] == '{'
         let n_open += 1
       elseif line[i] == '}'
@@ -53,9 +53,9 @@
 
 function GetTclIndent()
   let line = getline(v:lnum)
-  if line =~ '^\s*\*'
+  if line =~# '^\s*\*'
     return cindent(v:lnum)
-  elseif line =~ '^\s*}'
+  elseif line =~# '^\s*}'
     return indent(v:lnum) - &sw
   endif
 
@@ -67,8 +67,8 @@
   let ind = indent(pnum) + s:count_braces(pnum, 1) * &sw
 
   let pline = getline(pnum)
-  if pline =~ '}\s*$'
-    let ind -= (s:count_braces(pnum, 0) - (pline =~ '^\s*}' ? 1 : 0)) * &sw
+  if pline =~# '}\s*$'
+    let ind -= (s:count_braces(pnum, 0) - (pline =~# '^\s*}' ? 1 : 0)) * &sw
   endif
 
   return ind
diff -r 6581d543a54c runtime/indent/tcsh.vim
--- a/runtime/indent/tcsh.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/tcsh.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -31,17 +31,17 @@
     " OR line ends with case <str>:, default:, else, then or \
     let ind = indent(lnum)
     let line = getline(lnum)
-    if line =~ '\v^\s*%(while|foreach)>|^\s*%(case\s.*:|default:|else)\s*$|%(<then|\\)$'
+    if line =~# '\v^\s*%(while|foreach)>|^\s*%(case\s.*:|default:|else)\s*$|%(<then|\\)$'
 	let ind = ind + &sw
     endif
 
-    if line =~ '\v^\s*breaksw>'
+    if line =~# '\v^\s*breaksw>'
 	let ind = ind - &sw
     endif
 
     " Subtract indent if current line has on end, endif, case commands
     let line = getline(v:lnum)
-    if line =~ '\v^\s*%(else|end|endif)\s*$'
+    if line =~# '\v^\s*%(else|end|endif)\s*$'
 	let ind = ind - &sw
     endif
 
diff -r 6581d543a54c runtime/indent/tex.vim
--- a/runtime/indent/tex.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/tex.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -163,7 +163,7 @@
     let lnum = prevnonblank(v:lnum - 1)
 
     " Comment line is not what we need.
-    while lnum != 0 && getline(lnum) =~ '^\s*%'
+    while lnum != 0 && getline(lnum) =~# '^\s*%'
         let lnum = prevnonblank(lnum - 1)
     endwhile
 
@@ -187,12 +187,12 @@
     " You want to align with "&"
     if g:tex_indent_and
         " Align only when current line start with "&"
-        if line =~ '&.*\\\\' && cline =~ '^\s*&'
+        if line =~# '&.*\\\\' && cline =~# '^\s*&'
             return indent(v:lnum) + stridx(line, "&") - stridx(cline, "&")
         endif
 
         " set line & lnum to the line which doesn't contain "&"
-        while lnum != 0 && (stridx(line, "&") != -1 || line =~ '^\s*%')
+        while lnum != 0 && (stridx(line, "&") != -1 || line =~# '^\s*%')
             let lnum = prevnonblank(lnum - 1)
             let line = getline(lnum)
         endwhile
@@ -206,32 +206,32 @@
     let ind = indent(lnum)
 
     " New code for comment: retain the indent of current line
-    if cline =~ '^\s*%'
+    if cline =~# '^\s*%'
         return indent(v:lnum)
     endif
 
     " Add a 'shiftwidth' after beginning of environments.
     " Don't add it for \begin{document} and \begin{verbatim}
-    ""if line =~ '^\s*\\begin{\(.*\)}'  && line !~ 'verbatim' 
+    ""if line =~# '^\s*\\begin{\(.*\)}'  && line !~# 'verbatim' 
     " LH modification : \begin does not always start a line
     " ZYC modification : \end after \begin won't cause wrong indent anymore
-    if line =~ '\\begin{.*}' && line !~ g:tex_noindent_env
+    if line =~# '\\begin{.*}' && line !~# g:tex_noindent_env
         let ind = ind + &sw
 
         if g:tex_indent_items
             " Add another sw for item-environments
-            if line =~ g:tex_itemize_env
+            if line =~# g:tex_itemize_env
                 let ind = ind + &sw
             endif
         endif
     endif
 
     " Subtract a 'shiftwidth' when an environment ends
-    if cline =~ '\\end{.*}' && cline !~ g:tex_noindent_env
+    if cline =~# '\\end{.*}' && cline !~# g:tex_noindent_env
 
         if g:tex_indent_items
             " Remove another sw for item-environments
-            if cline =~ g:tex_itemize_env
+            if cline =~# g:tex_itemize_env
                 let ind = ind - &sw
             endif
         endif
@@ -276,12 +276,12 @@
     if g:tex_indent_items
 
         " '\item' or '\bibitem' itself:
-        if cline =~ g:tex_items
+        if cline =~# g:tex_items
             let ind = ind - &sw
         endif
 
         " lines following to '\item' are intented once again:
-        if line =~ g:tex_items
+        if line =~# g:tex_items
             let ind = ind + &sw
         endif
 
diff -r 6581d543a54c runtime/indent/tf.vim
--- a/runtime/indent/tf.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/tf.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -33,36 +33,36 @@
 
 	" No indentation if the previous line didn't end with "\":
 	" (Could be annoying, but it lets you know if you made a mistake.)
-	if line !~ '\\$'
+	if line !~# '\\$'
 		return 0
 	endif
 
-	if line =~ '\(/def.*\\\|/for.*\(%;\s*\)\@\<!\\\)$'
+	if line =~# '\(/def.*\\\|/for.*\(%;\s*\)\@\<!\\\)$'
 		let ind = ind + &sw
-	elseif line =~ '\(/if\|/else\|/then\)'
-		if line !~ '/endif'
+	elseif line =~# '\(/if\|/else\|/then\)'
+		if line !~# '/endif'
 			let ind = ind + &sw
 		endif
-	elseif line =~ '/while'
-		if line !~ '/done'
+	elseif line =~# '/while'
+		if line !~# '/done'
 			let ind = ind + &sw
 		endif
 	endif
 
 	let line = getline(v:lnum)
 
-	if line =~ '\(/else\|/endif\|/then\)'
-		if line !~ '/if'
+	if line =~# '\(/else\|/endif\|/then\)'
+		if line !~# '/if'
 			let ind = ind - &sw
 		endif
-	elseif line =~ '/done'
-		if line !~ '/while'
+	elseif line =~# '/done'
+		if line !~# '/while'
 			let ind = ind - &sw
 		endif
 	endif
 
 	" Comments at the beginning of a line:
-	if line =~ '^\s*;'
+	if line =~# '^\s*;'
 		let ind = 0
 	endif
 
diff -r 6581d543a54c runtime/indent/tilde.vim
--- a/runtime/indent/tilde.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/tilde.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -24,11 +24,11 @@
 		return 0
 	endif
 
-	if getline(v:lnum) =~ '^\s*\~\(endif\|else\|elseif\|end\)\>'
+	if getline(v:lnum) =~# '^\s*\~\(endif\|else\|elseif\|end\)\>'
 		return indent(v:lnum) - &sw
 	endif
 
-	if getline(plnum) =~ '^\s*\~\(if\|foreach\|foreach_row\|xml_loop\|file_loop\|file_write\|file_append\|imap_loopsections\|imap_index\|imap_list\|ldap_search\|post_loopall\|post_loop\|file_loop\|sql_loop_num\|sql_dbmsselect\|search\|sql_loop\|post\|for\|function_define\|silent\|while\|setvalbig\|mail_create\|systempipe\|mail_send\|dual\|elseif\|else\)\>'
+	if getline(plnum) =~# '^\s*\~\(if\|foreach\|foreach_row\|xml_loop\|file_loop\|file_write\|file_append\|imap_loopsections\|imap_index\|imap_list\|ldap_search\|post_loopall\|post_loop\|file_loop\|sql_loop_num\|sql_dbmsselect\|search\|sql_loop\|post\|for\|function_define\|silent\|while\|setvalbig\|mail_create\|systempipe\|mail_send\|dual\|elseif\|else\)\>'
 		return indent(plnum) + &sw
 	else
 		return -1
diff -r 6581d543a54c runtime/indent/treetop.vim
--- a/runtime/indent/treetop.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/treetop.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -25,12 +25,12 @@
   let ind = indent(pnum)
   let line = getline(pnum)
 
-  if line =~ '^\s*\%(grammar\|module\|rule\)\>'
+  if line =~# '^\s*\%(grammar\|module\|rule\)\>'
     let ind += &sw
   endif
 
   let line = getline(v:lnum)
-  if line =~ '^\s*end\>'
+  if line =~# '^\s*end\>'
     let ind -= &sw
   end
 
diff -r 6581d543a54c runtime/indent/verilog.vim
--- a/runtime/indent/verilog.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/verilog.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -75,26 +75,26 @@
 
   " Indent accoding to last line
   " End of multiple-line comment
-  if last_line =~ '\*/\s*$' && last_line !~ '/\*.\{-}\*/'
+  if last_line =~# '\*/\s*$' && last_line !~# '/\*.\{-}\*/'
     let ind = ind - offset_comment1
     if vverb
       echo vverb_str "De-indent after a multiple-line comment."
     endif
 
   " Indent after if/else/for/case/always/initial/specify/fork blocks
-  elseif last_line =~ '`\@<!\<\(if\|else\)\>' ||
-    \ last_line =~ '^\s*\<\(for\|case\%[[zx]]\)\>' ||
-    \ last_line =~ '^\s*\<\(always\|initial\)\>' ||
-    \ last_line =~ '^\s*\<\(specify\|fork\)\>'
-    if last_line !~ '\(;\|\<end\>\)\s*' . vlog_comment . '*$' ||
-      \ last_line =~ '\(//\|/\*\).*\(;\|\<end\>\)\s*' . vlog_comment . '*$'
+  elseif last_line =~# '`\@<!\<\(if\|else\)\>' ||
+    \ last_line =~# '^\s*\<\(for\|case\%[[zx]]\)\>' ||
+    \ last_line =~# '^\s*\<\(always\|initial\)\>' ||
+    \ last_line =~# '^\s*\<\(specify\|fork\)\>'
+    if last_line !~# '\(;\|\<end\>\)\s*' . vlog_comment . '*$' ||
+      \ last_line =~# '\(//\|/\*\).*\(;\|\<end\>\)\s*' . vlog_comment . '*$'
       let ind = ind + offset
       if vverb | echo vverb_str "Indent after a block statement." | endif
     endif
   " Indent after function/task blocks
-  elseif last_line =~ '^\s*\<\(function\|task\)\>'
-    if last_line !~ '\<end\>\s*' . vlog_comment . '*$' ||
-      \ last_line =~ '\(//\|/\*\).*\(;\|\<end\>\)\s*' . vlog_comment . '*$'
+  elseif last_line =~# '^\s*\<\(function\|task\)\>'
+    if last_line !~# '\<end\>\s*' . vlog_comment . '*$' ||
+      \ last_line =~# '\(//\|/\*\).*\(;\|\<end\>\)\s*' . vlog_comment . '*$'
       let ind = ind + offset
       if vverb
 	echo vverb_str "Indent after function/task block statement."
@@ -102,13 +102,13 @@
     endif
 
   " Indent after module/function/task/specify/fork blocks
-  elseif last_line =~ '^\s*\<module\>'
+  elseif last_line =~# '^\s*\<module\>'
     let ind = ind + indent_modules
     if vverb && indent_modules
       echo vverb_str "Indent after module statement."
     endif
-    if last_line =~ '[(,]\s*' . vlog_comment . '*$' &&
-      \ last_line !~ '\(//\|/\*\).*[(,]\s*' . vlog_comment . '*$'
+    if last_line =~# '[(,]\s*' . vlog_comment . '*$' &&
+      \ last_line !~# '\(//\|/\*\).*[(,]\s*' . vlog_comment . '*$'
       let ind = ind + offset
       if vverb
 	echo vverb_str "Indent after a multiple-line module statement."
@@ -116,23 +116,23 @@
     endif
 
   " Indent after a 'begin' statement
-  elseif last_line =~ '\(\<begin\>\)\(\s*:\s*\w\+\)*' . vlog_comment . '*$' &&
-    \ last_line !~ '\(//\|/\*\).*\(\<begin\>\)' &&
-    \ ( last_line2 !~ vlog_openstat . '\s*' . vlog_comment . '*$' ||
-    \ last_line2 =~ '^\s*[^=!]\+\s*:\s*' . vlog_comment . '*$' )
+  elseif last_line =~# '\(\<begin\>\)\(\s*:\s*\w\+\)*' . vlog_comment . '*$' &&
+    \ last_line !~# '\(//\|/\*\).*\(\<begin\>\)' &&
+    \ ( last_line2 !~# vlog_openstat . '\s*' . vlog_comment . '*$' ||
+    \ last_line2 =~# '^\s*[^=!]\+\s*:\s*' . vlog_comment . '*$' )
     let ind = ind + offset
     if vverb | echo vverb_str "Indent after begin statement." | endif
 
   " De-indent for the end of one-line block
-  elseif ( last_line !~ '\<begin\>' ||
-    \ last_line =~ '\(//\|/\*\).*\<begin\>' ) &&
-    \ last_line2 =~ '\<\(`\@<!if\|`\@<!else\|for\|always\|initial\)\>.*' .
+  elseif ( last_line !~# '\<begin\>' ||
+    \ last_line =~# '\(//\|/\*\).*\<begin\>' ) &&
+    \ last_line2 =~# '\<\(`\@<!if\|`\@<!else\|for\|always\|initial\)\>.*' .
       \ vlog_comment . '*$' &&
-    \ last_line2 !~
+    \ last_line2 !~#
       \ '\(//\|/\*\).*\<\(`\@<!if\|`\@<!else\|for\|always\|initial\)\>' &&
-    \ last_line2 !~ vlog_openstat . '\s*' . vlog_comment . '*$' &&
-    \ ( last_line2 !~ '\<begin\>' ||
-    \ last_line2 =~ '\(//\|/\*\).*\<begin\>' )
+    \ last_line2 !~# vlog_openstat . '\s*' . vlog_comment . '*$' &&
+    \ ( last_line2 !~# '\<begin\>' ||
+    \ last_line2 =~# '\(//\|/\*\).*\<begin\>' )
     let ind = ind - offset
     if vverb
       echo vverb_str "De-indent after the end of one-line statement."
@@ -141,26 +141,26 @@
     " Multiple-line statement (including case statement)
     " Open statement
     "   Ident the first open line
-    elseif  last_line =~ vlog_openstat . '\s*' . vlog_comment . '*$' &&
-      \ last_line !~ '\(//\|/\*\).*' . vlog_openstat . '\s*$' &&
-      \ last_line2 !~ vlog_openstat . '\s*' . vlog_comment . '*$'
+    elseif  last_line =~# vlog_openstat . '\s*' . vlog_comment . '*$' &&
+      \ last_line !~# '\(//\|/\*\).*' . vlog_openstat . '\s*$' &&
+      \ last_line2 !~# vlog_openstat . '\s*' . vlog_comment . '*$'
       let ind = ind + offset
       if vverb | echo vverb_str "Indent after an open statement." | endif
 
     " Close statement
     "   De-indent for an optional close parenthesis and a semicolon, and only
     "   if there exists precedent non-whitespace char
-    elseif last_line =~ ')*\s*;\s*' . vlog_comment . '*$' &&
-      \ last_line !~ '^\s*)*\s*;\s*' . vlog_comment . '*$' &&
-      \ last_line !~ '\(//\|/\*\).*\S)*\s*;\s*' . vlog_comment . '*$' &&
-      \ ( last_line2 =~ vlog_openstat . '\s*' . vlog_comment . '*$' &&
-      \ last_line2 !~ ';\s*//.*$') &&
-      \ last_line2 !~ '^\s*' . vlog_comment . '$'
+    elseif last_line =~# ')*\s*;\s*' . vlog_comment . '*$' &&
+      \ last_line !~# '^\s*)*\s*;\s*' . vlog_comment . '*$' &&
+      \ last_line !~# '\(//\|/\*\).*\S)*\s*;\s*' . vlog_comment . '*$' &&
+      \ ( last_line2 =~# vlog_openstat . '\s*' . vlog_comment . '*$' &&
+      \ last_line2 !~# ';\s*//.*$') &&
+      \ last_line2 !~# '^\s*' . vlog_comment . '$'
       let ind = ind - offset
       if vverb | echo vverb_str "De-indent after a close statement." | endif
 
   " `ifdef and `else
-  elseif last_line =~ '^\s*`\<\(ifdef\|else\)\>'
+  elseif last_line =~# '^\s*`\<\(ifdef\|else\)\>'
     let ind = ind + offset
     if vverb
       echo vverb_str "Indent after a `ifdef or `else statement."
@@ -172,24 +172,24 @@
 
   " De-indent on the end of the block
   " join/end/endcase/endfunction/endtask/endspecify
-  if curr_line =~ '^\s*\<\(join\|end\|endcase\)\>' ||
-    \ curr_line =~ '^\s*\<\(endfunction\|endtask\|endspecify\)\>'
+  if curr_line =~# '^\s*\<\(join\|end\|endcase\)\>' ||
+    \ curr_line =~# '^\s*\<\(endfunction\|endtask\|endspecify\)\>'
     let ind = ind - offset
     if vverb | echo vverb_str "De-indent the end of a block." | endif
-  elseif curr_line =~ '^\s*\<endmodule\>'
+  elseif curr_line =~# '^\s*\<endmodule\>'
     let ind = ind - indent_modules
     if vverb && indent_modules
       echo vverb_str "De-indent the end of a module."
     endif
 
   " De-indent on a stand-alone 'begin'
-  elseif curr_line =~ '^\s*\<begin\>'
-    if last_line !~ '^\s*\<\(function\|task\|specify\|module\)\>' &&
-      \ last_line !~ '^\s*\()*\s*;\|)\+\)\s*' . vlog_comment . '*$' &&
-      \ ( last_line =~
+  elseif curr_line =~# '^\s*\<begin\>'
+    if last_line !~# '^\s*\<\(function\|task\|specify\|module\)\>' &&
+      \ last_line !~# '^\s*\()*\s*;\|)\+\)\s*' . vlog_comment . '*$' &&
+      \ ( last_line =~#
 	\ '\<\(`\@<!if\|`\@<!else\|for\|case\%[[zx]]\|always\|initial\)\>' ||
-      \ last_line =~ ')\s*' . vlog_comment . '*$' ||
-      \ last_line =~ vlog_openstat . '\s*' . vlog_comment . '*$' )
+      \ last_line =~# ')\s*' . vlog_comment . '*$' ||
+      \ last_line =~# vlog_openstat . '\s*' . vlog_comment . '*$' )
       let ind = ind - offset
       if vverb
 	echo vverb_str "De-indent a stand alone begin statement."
@@ -197,17 +197,17 @@
     endif
 
   " De-indent after the end of multiple-line statement
-  elseif curr_line =~ '^\s*)' &&
-    \ ( last_line =~ vlog_openstat . '\s*' . vlog_comment . '*$' ||
-    \ last_line !~ vlog_openstat . '\s*' . vlog_comment . '*$' &&
-    \ last_line2 =~ vlog_openstat . '\s*' . vlog_comment . '*$' )
+  elseif curr_line =~# '^\s*)' &&
+    \ ( last_line =~# vlog_openstat . '\s*' . vlog_comment . '*$' ||
+    \ last_line !~# vlog_openstat . '\s*' . vlog_comment . '*$' &&
+    \ last_line2 =~# vlog_openstat . '\s*' . vlog_comment . '*$' )
     let ind = ind - offset
     if vverb
       echo vverb_str "De-indent the end of a multiple statement."
     endif
 
   " De-indent `else and `endif
-  elseif curr_line =~ '^\s*`\<\(else\|endif\)\>'
+  elseif curr_line =~# '^\s*`\<\(else\|endif\)\>'
     let ind = ind - offset
     if vverb | echo vverb_str "De-indent `else and `endif statement." | endif
 
diff -r 6581d543a54c runtime/indent/vhdl.vim
--- a/runtime/indent/vhdl.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/vhdl.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -50,7 +50,7 @@
   " find previous line that is not a comment
   let prevn = prevnonblank(curn - 1)
   let prevs = getline(prevn)
-  while prevn > 0 && prevs =~ '^\s*--'
+  while prevn > 0 && prevs =~# '^\s*--'
     let prevn = prevnonblank(prevn - 1)
     let prevs = getline(prevn)
   endwhile
@@ -75,16 +75,16 @@
   " indent:   previous line's comment position, otherwise follow next non-comment line if possible
   " keyword:  "--"
   " where:    start of current line
-  if curs =~ '^\s*--'
+  if curs =~# '^\s*--'
     let pn = curn - 1
     let ps = getline(pn)
-    if curs =~ '^\s*--\s' && ps =~ '--'
+    if curs =~# '^\s*--\s' && ps =~# '--'
       return indent(pn) + stridx(substitute(ps, '^\s*', '', ''), '--')
     else
       " find nextnonblank line that is not a comment
       let nn = nextnonblank(curn + 1)
       let ns = getline(nn)
-      while nn > 0 && ns =~ '^\s*--'
+      while nn > 0 && ns =~# '^\s*--'
         let nn = nextnonblank(nn + 1)
         let ns = getline(nn)
       endwhile
@@ -100,13 +100,13 @@
   " find following previous non-comment line
   let pn = prevnonblank(prevn - 1)
   let ps = getline(pn)
-  while pn > 0 && ps =~ '^\s*--'
+  while pn > 0 && ps =~# '^\s*--'
     let pn = prevnonblank(pn - 1)
     let ps = getline(pn)
   endwhile
-  if (curs =~ '^\s*)' || curs =~? '^\s*\%(\<\%(procedure\|generic\|map\|port\)\>.*\)\@<!\w\+\s*\w*\s*\%(=>\s*\S\+\|:[^=]\@=\s*\%(\%(in\|out\|inout\|buffer\|linkage\)\>\|\w\+\s\+:=\)\)') && (prevs =~? s:NC.'\<\%(procedure\s\+\S\+\|generic\|map\|port\)\s*(\%(\s*\w\)\=' || (ps =~? s:NC.'\<\%(procedure\|generic\|map\|port\)'.s:ES && prevs =~ '^\s*('))
+  if (curs =~# '^\s*)' || curs =~? '^\s*\%(\<\%(procedure\|generic\|map\|port\)\>.*\)\@<!\w\+\s*\w*\s*\%(=>\s*\S\+\|:[^=]\@=\s*\%(\%(in\|out\|inout\|buffer\|linkage\)\>\|\w\+\s\+:=\)\)') && (prevs =~? s:NC.'\<\%(procedure\s\+\S\+\|generic\|map\|port\)\s*(\%(\s*\w\)\=' || (ps =~? s:NC.'\<\%(procedure\|generic\|map\|port\)'.s:ES && prevs =~# '^\s*('))
     " align closing ")" with opening "("
-    if curs =~ '^\s*)'
+    if curs =~# '^\s*)'
       return ind2 + stridx(prevs_noi, '(')
     endif
     let m = matchend(prevs_noi, '(\s*\ze\w')
@@ -145,9 +145,9 @@
   let m = 0
   if prevs =~? '^\s*end\s\+\%(record\|units\)\>'
     let m = 3
-  elseif prevs =~ '^\s*)'
+  elseif prevs =~# '^\s*)'
     let m = 1
-  elseif prevs =~ s:NC.'\%(<=.*\)\@<!;'.s:ES || (curs !~ '^\s*)' && prevs =~ s:NC.'=>.*'.s:NC.')'.s:ES)
+  elseif prevs =~# s:NC.'\%(<=.*\)\@<!;'.s:ES || (curs !~# '^\s*)' && prevs =~# s:NC.'=>.*'.s:NC.')'.s:ES)
     let m = 2
   endif
 
@@ -156,7 +156,7 @@
     let ps = getline(pn)
     while pn > 0
       let t = indent(pn)
-      if ps !~ '^\s*--' && (t < ind || (t == ind && m == 3))
+      if ps !~# '^\s*--' && (t < ind || (t == ind && m == 3))
         " make sure one of these is true
         " keywords: variable + "<=" without ";" ending
         " where:    start of previous non-comment line
@@ -165,7 +165,7 @@
         " keyword:  "("
         " where:    start of previous non-comment line
         if m < 3 && ps !~? '^\s*\S\+\s*<=[^;]*'.s:ES
-          if ps =~? s:NC.'\<\%(procedure\|generic\|map\|port\)\>' || ps =~ '^\s*('
+          if ps =~? s:NC.'\<\%(procedure\|generic\|map\|port\)\>' || ps =~# '^\s*('
             let ind = t
           endif
           break
@@ -175,7 +175,7 @@
           " find following previous non-comment line
           let ppn = prevnonblank(pn - 1)
           let pps = getline(ppn)
-          while ppn > 0 && pps =~ '^\s*--'
+          while ppn > 0 && pps =~# '^\s*--'
             let ppn = prevnonblank(ppn - 1)
             let pps = getline(ppn)
           endwhile
@@ -213,7 +213,7 @@
 
     let pn = prevnonblank(curn - 1)
     let ps = getline(pn)
-    while pn > 0 && (ps =~ '^\s*--' || ps !~? s2)
+    while pn > 0 && (ps =~# '^\s*--' || ps !~? s2)
       let pn = prevnonblank(pn - 1)
       let ps = getline(pn)
 
@@ -355,7 +355,7 @@
     let pn = prevn
     let ps = getline(pn)
     while pn > 0
-      if ps !~ '^\s*--'
+      if ps !~# '^\s*--'
         "indent:   -2sw
         "keywords: "end" + "case"
         "where:    start of previous non-comment line
@@ -391,7 +391,7 @@
   " indent:   -sw
   " keyword:  ")"
   " where:    start of current line
-  if curs =~ '^\s*)'
+  if curs =~# '^\s*)'
     return ind - &sw
   endif
 
diff -r 6581d543a54c runtime/indent/vim.vim
--- a/runtime/indent/vim.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/vim.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -27,8 +27,8 @@
 
   " If the current line doesn't start with '\' and below a line that starts
   " with '\', use the indent of the line above it.
-  if getline(v:lnum) !~ '^\s*\\'
-    while lnum > 0 && getline(lnum) =~ '^\s*\\'
+  if getline(v:lnum) !~# '^\s*\\'
+    while lnum > 0 && getline(lnum) =~# '^\s*\\'
       let lnum = lnum - 1
     endwhile
   endif
@@ -42,13 +42,13 @@
   " and :else.  Add it three times for a line that starts with '\' after
   " a line that doesn't (or g:vim_indent_cont if it exists).
   let ind = indent(lnum)
-  if getline(v:lnum) =~ '^\s*\\' && v:lnum > 1 && getline(lnum) !~ '^\s*\\'
+  if getline(v:lnum) =~# '^\s*\\' && v:lnum > 1 && getline(lnum) !~# '^\s*\\'
     if exists("g:vim_indent_cont")
       let ind = ind + g:vim_indent_cont
     else
       let ind = ind + &sw * 3
     endif
-  elseif getline(lnum) =~ '^\s*aug\%[roup]' && getline(lnum) !~ '^\s*aug\%[roup]\s*!\=\s\+END'
+  elseif getline(lnum) =~# '^\s*aug\%[roup]' && getline(lnum) !~# '^\s*aug\%[roup]\s*!\=\s\+END'
     let ind = ind + &sw
   else
     let line = getline(lnum)
@@ -56,7 +56,7 @@
     if i >= 0
       let ind += &sw
       if strpart(line, i, 1) == '|' && has('syntax_items')
-            \ && synIDattr(synID(lnum, i, 1), "name") =~ '\(Comment\|String\)$'
+            \ && synIDattr(synID(lnum, i, 1), "name") =~# '\(Comment\|String\)$'
         let ind -= &sw
       endif
     endif
@@ -67,8 +67,8 @@
   " And when syntax HL is enabled avoid a match inside a string.
   let line = getline(lnum)
   let i = match(line, '[^\\]|\s*\(ene\@!\)')
-  if i > 0 && line !~ '^\s*au\%[tocmd]'
-    if !has('syntax_items') || synIDattr(synID(lnum, i + 2, 1), "name") !~ '\(Comment\|String\)$'
+  if i > 0 && line !~# '^\s*au\%[tocmd]'
+    if !has('syntax_items') || synIDattr(synID(lnum, i + 2, 1), "name") !~# '\(Comment\|String\)$'
       let ind = ind - &sw
     endif
   endif
@@ -76,7 +76,7 @@
 
   " Subtract a 'shiftwidth' on a :endif, :endwhile, :catch, :finally, :endtry,
   " :endfun, :else and :augroup END.
-  if getline(v:lnum) =~ '^\s*\(ene\@!\|cat\|fina\|el\|aug\%[roup]\s*!\=\s\+END\)'
+  if getline(v:lnum) =~# '^\s*\(ene\@!\|cat\|fina\|el\|aug\%[roup]\s*!\=\s\+END\)'
     let ind = ind - &sw
   endif
 
diff -r 6581d543a54c runtime/indent/xinetd.vim
--- a/runtime/indent/xinetd.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/xinetd.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -25,7 +25,7 @@
   let pattern = '[{}]'
   let i = match(line, pattern)
   while i != -1
-    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~ 'ld\%(Comment\|String\)'
+    if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~# 'ld\%(Comment\|String\)'
       if line[i] == '{'
         let n_open += 1
       elseif line[i] == '}'
diff -r 6581d543a54c runtime/indent/xml.vim
--- a/runtime/indent/xml.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/xml.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -52,10 +52,10 @@
     if '' != &syntax
 	let syn1 = synIDattr(synID(a:lnum, 1, 1), 'name')
 	let syn2 = synIDattr(synID(a:lnum, strlen(getline(a:lnum)) - 1, 1), 'name')
-	if '' != syn1 && syn1 !~ 'xml' && '' != syn2 && syn2 !~ 'xml'
+	if '' != syn1 && syn1 !~# 'xml' && '' != syn2 && syn2 !~# 'xml'
 	    " don't indent pure non-xml code
 	    return 0
-	elseif syn1 =~ '^xmlComment' && syn2 =~ '^xmlComment'
+	elseif syn1 =~# '^xmlComment' && syn2 =~# '^xmlComment'
 	    " indent comments specially
 	    return -1
 	endif
diff -r 6581d543a54c runtime/indent/yacc.vim
--- a/runtime/indent/yacc.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/yacc.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -29,9 +29,9 @@
 
   if line == ''
     let ind = 0
-  elseif line =~ '^\w\+\s*:'
+  elseif line =~# '^\w\+\s*:'
     let ind = ind + matchend(line, '^\w\+\s*')
-  elseif line =~ '^\s*;'
+  elseif line =~# '^\s*;'
     let ind = 0
   else
     let ind = indent(v:lnum)
diff -r 6581d543a54c runtime/indent/zimbu.vim
--- a/runtime/indent/zimbu.vim	Thu Aug 02 21:47:59 2012 +0200
+++ b/runtime/indent/zimbu.vim	Fri Aug 03 02:12:34 2012 +0400
@@ -46,7 +46,7 @@
   let parlnum = searchpair('(\|{\|\[', '', ')\|}\|\]', 'nbW',
 	  \ "line('.') < " . (prevLnum - s:maxoff) . " ? dummy :"
 	  \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
-	  \ . " =~ '\\(Comment\\|String\\|Char\\)$'")
+	  \ . " =~# '\\(Comment\\|String\\|Char\\)$'")
   if parlnum > 0
     let plindent = indent(parlnum)
     let plnumstart = parlnum
@@ -65,14 +65,14 @@
   let p = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
 	  \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
 	  \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
-	  \ . " =~ '\\(Comment\\|String\\|Char\\)$'")
+	  \ . " =~# '\\(Comment\\|String\\|Char\\)$'")
   if p > 0
     if p == prevLnum
       " When the start is inside parenthesis, only indent one 'shiftwidth'.
       let pp = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
 	  \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
 	  \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
-	  \ . " =~ '\\(Comment\\|String\\|Char\\)$'")
+	  \ . " =~# '\\(Comment\\|String\\|Char\\)$'")
       if pp > 0
 	return indent(prevLnum) + &sw
       endif
@@ -89,8 +89,8 @@
 
   " If this line is not a comment and the previous one is then move the
   " previous line further back.
-  if thisline !~ '^\s*#'
-    while prevline =~ '^\s*#'
+  if thisline !~# '^\s*#'
+    while prevline =~# '^\s*#'
       let prevLnum = prevnonblank(prevLnum - 1)
       if prevLnum == 0
 	" Only comment lines before this, no indent
@@ -101,20 +101,20 @@
     endwhile
   endif
 
-  if prevline =~ '^\s*\(IF\|\|ELSEIF\|ELSE\|GENERATE_IF\|\|GENERATE_ELSEIF\|GENERATE_ELSE\|WHILE\|REPEAT\|TRY\|CATCH\|FINALLY\|FOR\|DO\|SWITCH\|CASE\|DEFAULT\|FUNC\|VIRTUAL\|ABSTRACT\|DEFINE\|REPLACE\|FINAL\|PROC\|MAIN\|NEW\|ENUM\|CLASS\|BITS\|MODULE\|SHARED\)\>'
+  if prevline =~# '^\s*\(IF\|\|ELSEIF\|ELSE\|GENERATE_IF\|\|GENERATE_ELSEIF\|GENERATE_ELSE\|WHILE\|REPEAT\|TRY\|CATCH\|FINALLY\|FOR\|DO\|SWITCH\|CASE\|DEFAULT\|FUNC\|VIRTUAL\|ABSTRACT\|DEFINE\|REPLACE\|FINAL\|PROC\|MAIN\|NEW\|ENUM\|CLASS\|BITS\|MODULE\|SHARED\)\>'
     let plindent += &sw
   endif
-  if thisline =~ '^\s*\(}\|ELSEIF\>\|ELSE\>\|CATCH\|FINALLY\|GENERATE_ELSEIF\>\|GENERATE_ELSE\>\|UNTIL\>\)'
+  if thisline =~# '^\s*\(}\|ELSEIF\>\|ELSE\>\|CATCH\|FINALLY\|GENERATE_ELSEIF\>\|GENERATE_ELSE\>\|UNTIL\>\)'
     let plindent -= &sw
   endif
-  if thisline =~ '^\s*\(CASE\>\|DEFAULT\>\)' && prevline !~ '^\s*SWITCH\>'
+  if thisline =~# '^\s*\(CASE\>\|DEFAULT\>\)' && prevline !~# '^\s*SWITCH\>'
     let plindent -= &sw
   endif
 
   " line up continued comment that started after some code
   "   String something   # comment comment
   "                      # comment
-  if a:lnum == prevLnum + 1 && thisline =~ '^\s*#' && prevline !~ '^\s*#'
+  if a:lnum == prevLnum + 1 && thisline =~# '^\s*#' && prevline !~# '^\s*#'
     let n = match(prevline, '#')
     if n > 1
       let plindent = n