xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
<root> / data / man / vifm.1 (46f32dbcc54c950246c2d0e1c8204f8ea0699af2) (241KiB) (mode 100644) [raw]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860
.TH VIFM 1 "2 May 2024" "vifm 0.13"
.\" ---------------------------------------------------------------------------
.SH NAME
.\" ---------------------------------------------------------------------------
vifm \- vi file manager
.\" ---------------------------------------------------------------------------
.SH SYNOPSIS
.\" ---------------------------------------------------------------------------
vifm [OPTION]...
.br
vifm [OPTION]... path
.br
vifm [OPTION]... path path
.\" ---------------------------------------------------------------------------
.SH DESCRIPTION
.\" ---------------------------------------------------------------------------
Vifm is an ncurses based file manager with vi like keybindings.  If you use vi,
vifm gives you complete keyboard control over your files without having to learn
a new set of commands.
.\" ---------------------------------------------------------------------------
.SH OPTIONS
.\" ---------------------------------------------------------------------------
vifm starts in the current directory unless it is given a different directory
on the command line or 'vifminfo' option includes "savedirs" (in which case
last visited directories are used as defaults).
.TP
.BI -
Read list of files from standard input stream and compose custom view out of
them (see "Custom views" section).  Current working directory is used as a base
for relative paths.
.TP
.BI <path>
Starts Vifm in the specified path.
.TP
.BI "<path> <path>"
Starts Vifm in the specified paths.
.LP
Specifying two directories triggers split view even when vifm was in single-view
mode on finishing previous run.  To suppress this behaviour :only command can be
put in the vifmrc file.
.LP
When only one path argument is found on command-line, the left/top pane is
automatically set as the current view.
.LP
Paths to files are also allowed in case you want vifm to start with some
archive opened.
.TP
.BI "\-\-select <path>"
Open parent directory of the given path and select specified file in it.
.TP
.BI \-f
Makes vifm instead of opening files write selection to $VIFM/vimfiles and quit.
.TP
.BI "\-\-choose-files <path>|\-"
Sets output file to write selection into on exit instead of opening files.
"\-" means standard output.  Use empty value to disable it.
.TP
.BI "\-\-choose-dir <path>|\-"
Sets output file to write last visited directory into on exit.  "\-" means
standard output.  Use empty value to disable it.
.TP
.BI "\-\-delimiter <delimiter>"
Sets separator for list of file paths written out by vifm.  Empty value means
null character.  Default is new line character.
.TP
.BI "\-\-on\-choose <command>"
Sets command to be executed on selected files instead of opening them.  The
command may use any of macros described in "Command macros" section below.  The
command is executed once for whole selection.
.TP
.BI "\-\-plugins\-dir <path>"
Additional plugins directory (can appear multiple times).  The last one
added has the highest priority.
.TP
.BI "\-\-logging[=<startup log path>]"
Log some operational details to $XDG_DATA_HOME/vifm/log or $VIFM/log.  If
the optional startup log path is specified and permissions allow to open
it for writing, then logging of early initialization (before configuration
directories are determined) is put there.
.TP
.BI \-\-server\-list
List available server names and exit.
.TP
.BI "\-\-server\-name <name>"
Name of target or this instance (sequential numbers are appended on name
conflict).
.TP
.BI "\-\-remote"
Sends the rest of the command line to another instance of vifm, \-\-server\-name
is treated just like any other argument and should precede \-\-remote on the
command line.  When there is no server, quits silently.  There is no limit on
how many arguments can be processed.  One can combine \-\-remote with \-c
<command> or +<command> to execute commands in already running instance of vifm.
See also "Client\-Server" section below.
.TP
.BI "\-\-remote-expr"
passes expression to vifm server and prints result.  See also "Client\-Server"
section below.
.TP
.BI "\-c <command> or +<command>"
Run command-line mode <command> on startup.  Commands in such arguments are
executed in the order they appear in command line.  Commands with spaces or
special symbols must be enclosed in double or single quotes or all special
symbols should be escaped (the exact syntax strongly depends on shell).  "+"
argument is equivalent to "$" and thus picks last item of of the view.
.TP
.BI "\-\-help, \-h"
Show a brief command summary and exit vifm.
.TP
.BI "\-\-version, \-v"
Show version information and quit.
.TP
.BI \-\-no\-configs
Skip reading vifmrc and vifminfo.

.LP
See "Startup" section below for the explanations on $VIFM.
.br
.\" ---------------------------------------------------------------------------
.SH General keys
.\" ---------------------------------------------------------------------------
.TP
.BI "Ctrl-C or Escape"
cancel most operations (see "Cancellation" section below), clear all selected
files.
.TP
.BI Ctrl-L
clear and redraw the screen.  Can also reload file list in appropriate
modes (like normal and visual).
.\" ---------------------------------------------------------------------------
.SH Basic Movement
.\" ---------------------------------------------------------------------------
The basic vi key bindings are used to move through the files and pop-up windows.
.TP
.BI "k, gk, or Ctrl-P"
move cursor up one line.
.TP
.BI "j, gj or Ctrl-N"
move cursor down one line.
.TP
.BI h
when 'lsview' is off move up one directory (moves to parent directory node in
tree view), otherwise move left one file.
.TP
.BI l
when 'lsview' is off move into a directory or launch a file, otherwise move
right one file.  See "Selection" section below.
.TP
.BI gg
move to the first line of the file list.
.TP
.BI G
move to the last line in the file list.
.TP
.BI gh
go up one directory regardless of view representation (regular, ls-like).  Also
can be used to leave custom views including tree view.
.TP
.BI "gl or Enter"
enter directory or launch a file.  See "Selection" section below.
.TP
.BI H
move to the first file in the window.
.TP
.BI M
move to the file in the middle of the window.
.TP
.BI L
move to the last file in the window.
.TP
.BI "Ctrl-F or Page Down"
move forward one page.
.TP
.BI "Ctrl-B or Page Up"
move back one page.
.TP
.BI Ctrl-D
jump back one half page.
.TP
.BI Ctrl-U
jump forward one half page.
.TP
.BI n%
move to the file that is n percent from the top of the list (for example 25%).
.TP
.BI "0 or ^"
move cursor to the first column.  See 'lsview' option description.
.TP
.BI $
move cursor to the last column.  See 'lsview' option description.
.TP
.BI Space
switch file lists.
.TP
.BI gt
switch to the next tab (wrapping around).
.TP
.BI {n}gt
switch to the tab number {n} (wrapping around).
.TP
.BI gT
switch to the previous tab (wrapping around).
.TP
.BI {n}gT
switch to {n}-th previous tab.
.\" ---------------------------------------------------------------------------
.SH Movement with Count
.\" ---------------------------------------------------------------------------
.TP
Most movement commands also accept a count, 12j would move down 12 files.
.TP
.BI [count]%
move to percent of the file list.
.TP
.BI [count]j
move down [count] files.
.TP
.BI [count]k
move up [count] files.
.TP
.BI "[count]G or [count]gg"
move to list position [count].
.TP
.BI [count]h
go up [count] directories.
.\" ---------------------------------------------------------------------------
.SH Scrolling panes
.\" ---------------------------------------------------------------------------
.TP
.BI zt
redraw pane with file in top of list.
.TP
.BI zz
redraw pane with file in center of list.
.TP
.BI zb
redraw pane with file in bottom of list.
.TP
.BI Ctrl-E
scroll pane one line down or column right (in transposed ls-like view).
.TP
.BI Ctrl-Y
scroll pane one line up or column left (in transposed ls-like view).
.\" ---------------------------------------------------------------------------
.SH Pane manipulation
.\" ---------------------------------------------------------------------------
Second character can be entered with or without Control key.
.TP
.BI "Ctrl-W H"
move the pane to the far left.
.TP
.BI "Ctrl-W J"
move the pane to the very bottom.
.TP
.BI "Ctrl-W K"
move the pane to the very top.
.TP
.BI "Ctrl-W L"
move the pane to the far right.

.TP
.BI "Ctrl-W h"
switch to the left pane.
.TP
.BI "Ctrl-W j"
switch to the pane below.
.TP
.BI "Ctrl-W k"
switch to the pane above.
.TP
.BI "Ctrl-W l"
switch to the right pane.

.TP
.BI "Ctrl-W b"
switch to bottom-right window.
.TP
.BI "Ctrl-W t"
switch to top-left window.

.TP
.BI "Ctrl-W p"
switch to previous window.
.TP
.BI "Ctrl-W w"
switch to other pane.

.TP
.BI "Ctrl-W o"
leave only one pane.
.TP
.BI "Ctrl-W s"
split window horizontally.
.TP
.BI "Ctrl-W v"
split window vertically.

.TP
.BI "Ctrl-W x"
exchange panes.
.TP
.BI "Ctrl-W z"
quit preview pane or view modes.

.TP
.BI "Ctrl-W \-"
decrease size of the view by count.
.TP
.BI "Ctrl-W +"
increase size of the view by count.
.TP
.BI "Ctrl-W <"
decrease size of the view by count.
.TP
.BI "Ctrl-W >"
increase size of the view by count.

.TP
.BI "Ctrl-W |"
set current view size to count.
.TP
.BI "Ctrl-W _"
set current view size to count.
.TP
.BI "Ctrl-W ="
make size of two views equal.
.LP
For Ctrl-W +, Ctrl-W \-, Ctrl-W <, Ctrl-W >, Ctrl-W | and Ctrl-W _ commands
count can be given before and/or after Ctrl-W.  The resulting count
is a multiplication of those two.  So "2 Ctrl-W 2 \-" decreases
window size by 4 lines or columns.

Ctrl-W | and Ctrl-W _ maximise current view by default.
.\" ---------------------------------------------------------------------------
.SH Marks
.\" ---------------------------------------------------------------------------
.TP
Marks are set the same way as they are in vi.
.LP
You can use these characters for marks [a\-z][A\-Z][0\-9].
.TP
.BI m[a\-z][A\-Z][0\-9]
set a mark for the file at the current cursor position.
.TP
.BI '[a\-z][A\-Z][0\-9]
navigate to the file set for the mark.

.LP
There are also several special marks that can't be set manually:
.RS 2
.IP \- 2
\(aq (single quote) \- previously visited directory of the view, thus hitting
\(aq\(aq allows switching between two last locations
.IP \- 2
< \- the first file of the last visually selected block
.IP \- 2
> \- the last file of the last visually selected block
.RE
.\" ---------------------------------------------------------------------------
.SH Searching
.\" ---------------------------------------------------------------------------
.TP
.BI "/regular expression pattern"
search for files matching regular expression in forward direction and advance
cursor to next match.
.TP
.BI "/"
perform forward search with top item of search pattern history.
.TP
.BI "?regular expression pattern"
search for files matching regular expression in backward direction and advance
cursor to previous match.
.TP
.BI "?"
perform backward search with top item of search pattern history.
.TP
Trailing slash for directories is taken into account, so /\\/ searches for \
directories and symbolic links to directories.  At the moment // works too, \
but this can change in the future, so consider escaping the slash if not \
typing pattern by hand.
.TP
Matches are automatically selected if 'hlsearch' is set.  Enabling 'incsearch' \
makes search interactive.  'ignorecase' and 'smartcase' options affect case \
sensitivity of search queries as well as local filter and other things \
detailed in the description of 'caseoptions'.

.TP
.BI [count]n
go to the next file matching last search pattern.  Takes last search direction
into account.
.TP
.BI [count]N
go to the previous file matching last search pattern.  Takes last search
direction into account.
.TP
If 'hlsearch' option is set, hitting n/N to perform search and go to the first \
matching item resets current selection in normal mode.  It is not the case if \
search was already performed on files in the directory, thus selection is not \
reset after clearing selection with escape key and hitting n/N key again.
.LP
See also "Regular expressions" section.

.TP
.BI [count]f[character]
search forward for file with [character] as first character in name.  Search
wraps around the end of the list.
.TP
.BI [count]F[character]
search backward for file with [character] as first character in name.  Search
wraps around the end of the list.
.TP
.BI [count];
find the next match of f or F.
.TP
.BI [count],
find the previous match of f or F.
.LP
Note: f, F, ; and , wrap around list beginning and end when they are used
alone and they don't wrap when they are used as selectors.
.\" ---------------------------------------------------------------------------
.SH File Filters
.\" ---------------------------------------------------------------------------
There are three basic file filters:
.RS 2
.IP \- 2
dot files filter (does not affect "." and ".." special directories, whose
appearance is controlled by the 'dotdirs' option), see 'dotfiles' option;
.IP \- 2
permanent filter;
.IP \- 2
local filter (see description of the "=" normal mode command).
.RE

Permanent filter essentially allows defining a group of files names which are
not desirable to be seen by default, like temporary or backup files, which
might be created alongside normal ones.  Just like you don't usually need to
see hidden dot files (files starting with a dot).  Local filter on the other
hand is for temporary immediate filtering of file list at hand, to get rid of
uninterested files in the view or to make it possible to use % range in a
:command.

For the purposes of more deterministic editing permanent filter is split
into two parts:
.RS 2
.IP \- 2
one edited explicitly via :filter command;
.IP \- 2
another one which is edited implicitly via zf shortcut.
.RE

Files are tested against both parts and a match counts if at least one
of the parts matched.

.TP
Each file list has its own copy of each filter.
.TP
Filtered files are not checked in / search or :commands.
.TP
Files and directories are filtered separately.  This is done by appending \
a slash to a directory name before testing whether it matches the filter. \
Examples:

.EX
.LP
  " filter directories which names end with '.files'
  :filter /^.*\\.files\\/$/

  " filter files which names end with '.d'
  :filter {*.d}

  " filter files and directories which names end with '.o'
  :filter /^.*\\.o\\/?$/
.EE

See also "Regular expressions" and "Patterns" sections.

The basic Vim folding key bindings are used for managing filters.

.TP
.BI za
toggle visibility of dot files.
.TP
.BI zo
show dot files.
.TP
.BI zm
hide dot files.
.TP
.BI zf
add selected files to permanent filter.
.TP
.BI zO
reset permanent filter.
.TP
.BI zR
save and reset all filters.
.TP
.BI zr
clear local filter.
.TP
.BI zM
restore all filters (undoes last zR).
.TP
.BI zd
exclude selection or current file from a custom view.  Does nothing for regular
view.  For tree view excluding directory excludes that sub-tree.  For compare
views zd hides group of adjacent identical files, count can be specified as 1 to
exclude just single file or selected items instead.  Files excluded this way are
not counted as filtered out and can't be returned unless view is reloaded.
.TP
.BI "=regular expression pattern"
filter out files that don't match regular expression.  Whether view is updated
as regular expression is changed depends on the value of the 'incsearch' option.
This kind of filter is automatically reset when directory is changed.
.\" ---------------------------------------------------------------------------
.SH Tree-related Keys
.\" ---------------------------------------------------------------------------
While some of the keys make sense outside of tree-view, they are most useful
in trees.
.TP
.BI [z
go to first sibling of current entry.
.TP
.BI ]z
go to last sibling of current entry.
.TP
.BI zj
go to next directory sibling of current entry or do nothing.
.TP
.BI zk
go to previous directory sibling of current entry or do nothing.
.TP
.BI zx
toggle fold under the cursor or parent entry of the current file if cursor
is not on a directory.
.\" ---------------------------------------------------------------------------
.SH Other Normal Mode Keys
.\" ---------------------------------------------------------------------------
.TP
.BI [count]:
enter command line mode.  [count] generates range.
.TP
.BI q:
open external editor to prompt for command-line command.  See
"Command line editing" section for details.
.TP
.BI q/
open external editor to prompt for search pattern to be searched in forward
direction.  See "Command line editing" section for details.
.TP
.BI q?
open external editor to prompt for search pattern to be searched in backward
direction.  See "Command line editing" section for details.
.TP
.BI q=
open external editor to prompt for filter pattern.  See "Command line editing"
section for details.  Unlike other q{x} commands this one doesn't work in Visual
mode.
.TP
.BI "[count]!! and [count]!<selector>"
enter command line mode with entered ! command.  [count] modifies range.
.TP
.BI Ctrl-O
go backwards through directory history of current view.  Nonexistent directories
are automatically skipped.
.TP
.BI Ctrl-I
if 'cpoptions' contains "t" flag, <tab> and <c-i> switch active pane just like
<space> does, otherwise it goes forward through directory history of current
view.  Nonexistent directories are automatically skipped.
.TP
.BI Ctrl-G
show a dialog with detailed information about current file.  See
"Menus and dialogs" section for controls.
.TP
.BI "Shift-Tab"
enter view mode (works only after activating view pane with :view command).
.TP
.BI ga
calculate directory size.  Uses cached directory sizes when possible for better
performance.  As a special case calculating size of ".." entry results in
calculation of size of current directory.
.TP
.BI gA
like ga, but force update.  Ignores old values of directory sizes.
.LP
If file under cursor is selected, each selected item is processed, otherwise
only current file is updated.
.TP
.BI gf
find link destination (like l with 'followlinks' off, but also finds
directories).  On Windows additionally follows .lnk-files.
.TP
.BI gF
Same as gf, but resolves final path of the chain of symbolic links.
.TP
.BI gr
only for MS-Windows
.br
same as l key, but tries to run program with administrative privileges.
.TP
.BI av
go into visual mode for updating current selection, any existing selection
is preserved.
.TP
.BI gv
go into visual mode restoring last selection.
.TP
.BI [reg]gs
if register is present, then all files listed in that register that are
visible in current view are selected.

When no register is specified, restore the last selection saved for this
view (similar to what gv does for visual mode selection).  When you
leave a directory, its saved selection is remembered for that path and
visiting the directory again restores it.  Selection for up to 10 distinct
file-system locations are remembered.
.TP
.BI gu<selector>
make names of selected files lowercase.
.TP
.BI "[count]guu and [count]gugu"
make names of [count] files starting from the current one lowercase.  Without
[count] only current file is affected.
.TP
.BI gU<selector>
make names of selected files uppercase.
.TP
.BI "[count]gUU and [count]gUgU"
make names of [count] files starting from the current one uppercase.  Without
[count] only current file is affected.
.TP
.BI e
explore file in the current pane.
.TP
.BI i
handle file (even if it's an executable and 'runexec' option is set).
.TP
.BI cw
change word is used to rename a file or files.  If multiple files are selected,
behaves as :rename command run without arguments.
.TP
.BI cW
change WORD is used to change only name of file (without extension).
.TP
.BI cl
change link target.  If multiple files are selected, an editor is spawn
to edit paths.
.TP
.BI co
only for *nix
.br
change file owner.
.TP
.BI cg
only for *nix
.br
change file group.
.TP
.BI [count]cp
change file attributes (permission on *nix and properties on Windows).  If
[count] is specified, it's treated as numerical argument for non-recursive
`chmod` command (of the form [0-7]{3,4}).  See "Menus and dialogs" section for
controls.
.TP
.BI [count]C
clone file [count] times.
.TP
.BI "[count]dd"
move files to trash directory if 'trash' option is set,
otherwise delete them permanently.  See "Trash directory" section below.

When "s" is present in 'cpoptions', operates on selected
files or, in the absence of selection, the current one.  When the flag
isn't set, always operates on the current file only.
.TP
.BI "d[count]<selector>"
like dd, but accepts motions/selectors.
.TP
.BI "[count]DD or D[count]<selector>"
like dd and d<selector>, but always omits trash directory (even
when 'trash' option is set).  Affected by "s" flag in 'cpoptions'.
.TP
.BI "[count]Y or [count]yy"
yank files.

When "s" is present in 'cpoptions', operates on selected
files or, in the absence of selection, the current one.  When the flag
isn't set, always operates on the current file only.
.TP
.BI "y[count]<selector>"
yank files specified by motion/selector.
.TP
.BI p
copy yanked files to the current directory or move the files to the current
directory if they were deleted with dd or :d[elete] or if the files were yanked
from trash directory.  See "Trash directory" section below.
.TP
.BI P
move the last yanked files.  The advantage of using P instead of d followed by
p is that P moves files only once.  This isn't important in case you're moving
files in the same file system where your home directory is, but using P to
move files on some other file system (or file systems, in case you want to move
files from fs1 to fs2 and your home is on fs3) can save your time.
.TP
.BI al
put symbolic links with absolute paths.
.TP
.BI rl
put symbolic links with relative paths.
.TP
.BI t
select or unselect (tag) the current file.
.TP
.BI u
undo last change.
.TP
.BI Ctrl-R
redo last change.
.TP
.BI dp
in compare view of "ofboth grouppaths" kind makes corresponding entries
of the other pane equal to the current one.  If at least one file is
selected, the command processes selection, otherwise current file.
.br
The semantics is as follows:
 \- nothing is done for identical entries
 \- if file is missing in current view, its pair gets removed
 \- if file is missing or differs in other view, it's replaced
 \- file pairs are defined by matching relative paths
.br
File removal obeys 'trash' option.  When the option is enabled, the operation
can be undone/redone (although results won't be visible automatically).
.br
Unlike in Vim, this operation is performed on a single line rather than
a set of adjacent changes.
.TP
.BI do
same as dp, but applies changes in the opposite direction.
.TP
.BI "v or V"
enter visual mode, clears current selection.
.TP
.BI [count]Ctrl-A
increment first number in file name by [count] (1 by default).
.TP
.BI [count]Ctrl-X
decrement first number in file name by [count] (1 by default).
.TP
.BI ZQ
same as :quit!.
.TP
.BI ZZ
same as :quit.
.TP
.BI .
repeat last command-line command (not normal mode command) of this run (does
nothing right after startup or :restart command).  The command doesn't depend on
command-line history and can be used with completely disabled history.
.TP
.BI (
go to previous group.  Groups are defined by primary sorting key.  For name and
iname members of each group have same first letter, for all other sorting keys
vifm uses size, uid, ...
.TP
.BI )
go to next group.  See ( key description above.
.TP
.BI {
speeds up navigation to closest previous entry of the opposite type by
moving to the first file backwards when cursor is on a directory and
to the first directory backwards when cursor is on a file.  This is
essentially a special case of ( that is locked on "dirs".
.TP
.BI }
same as {, but in forward direction.
.TP
.BI [c
go to previous mismatched entry in directory comparison view or do nothing.
.TP
.BI ]c
go to next mismatched entry in directory comparison view or do nothing.
.TP
.BI [d
go to previous directory entry or do nothing.
.TP
.BI ]d
go to next directory entry or do nothing.
.TP
.BI [r
same as :siblprev.
.TP
.BI ]r
same as :siblnext.
.TP
.BI [R
same as :siblprev!.
.TP
.BI ]R
same as :siblnext!.
.TP
.BI [s
go to previous selected entry or do nothing.
.TP
.BI ]s
go to next selected entry or do nothing.
.\" ---------------------------------------------------------------------------
.SH Using Count
.\" ---------------------------------------------------------------------------
.TP
You can use count with commands like yy.
.TP
.BI [count]yy
yank count files starting from current cursor position downward.
.TP
Or you can use count with motions passed to y, d or D.
.TP
.BI d[count]j
delete (count + 1) files starting from current cursor position downward.
.\" ---------------------------------------------------------------------------
.SH Registers
.\" ---------------------------------------------------------------------------
.LP
vifm supports multiple registers for temporary storing list of yanked or
deleted files.

Registers should be specified by hitting double quote key followed by a
register name.  Count is specified after register name.  By default commands use
unnamed register, which has double quote as its name.

Though all commands accept registers, most of commands ignores them (for example
H or Ctrl-U).  Other commands can fill register or append new files to it.

Presently vifm supports ", _, a-z and A-Z characters as register names.

As mentioned above " is unnamed register and has special meaning of the default
register.  Every time when you use named registers (a-z and A-Z) unnamed
register is updated to contain same list of files as the last used register.

_ is black hole register.  It can be used for writing, but its list is always
empty.

Registers with names from a to z and from A to Z are named ones.  Lowercase
registers are cleared before adding new files, while uppercase aren't and should
be used to append new files to the existing file list of appropriate lowercase
register (A for a, B for b, ...).

Registers can be changed on :empty command if they contain files under trash
directory (see "Trash directory" section below).

Registers do not contain one file more than once.

Example:
.EX

  "a2yy

.EE
.br
puts names of two files to register a (and to the unnamed register),
.EX

  "Ad

.EE
.br
removes one file and append its name to register a (and to the unnamed
register),
.EX

  p or "ap or "Ap

.EE
.br
inserts previously yanked and deleted files into current directory.
.\" ---------------------------------------------------------------------------
.SH Selectors
.\" ---------------------------------------------------------------------------
.TP
y, d, D, !, gu and gU commands accept selectors.  You can combine them with \
any of selectors below to quickly remove or yank several files.
.LP
Most of selectors are like vi motions: j, k, gg, G, H, L, M, %, f, F, ;, \
comma, ', ^, 0 and $.  But there are some additional ones.
.TP
.BI a
all files in current view.
.TP
.BI s
selected files.
.TP
.BI S
all files except selected.
.LP
Examples:
.RS 2
.IP \- 2
dj \- delete file under cursor and one below;
.IP \- 2
d2j \- delete file under cursor and two below;
.IP \- 2
y6gg \- yank all files from cursor position to 6th file in the list.
.RE

When you pass a count to whole command and its selector they are multiplied. So:
.RS 2
.IP \- 2
2d2j \- delete file under cursor and four below;
.IP \- 2
2dj \- delete file under cursor and two below;
.IP \- 2
2y6gg \- yank all files from cursor position to 12th file in the list.
.RE
.\" ---------------------------------------------------------------------------
.SH Visual Mode
.\" ---------------------------------------------------------------------------
Visual mode has two generic operating submodes:
.RS 2
.IP \- 2
plain selection as it is in Vim;
.IP \- 2
selection editing submode.
.RE

Both modes select files in range from cursor position at which visual mode was
entered to current cursor position (let's call it "selection region").  Each of
two borders can be adjusted by swapping them via "o" or "O" keys and updating
cursor position with regular cursor motion keys.  Obviously, once initial cursor
position is altered this way, real start position becomes unavailable.

Plain Vim-like visual mode starts with cleared selection, which is not restored
on rejecting selection ("Escape", "Ctrl-C", "v", "V").  Contrary to it,
selection editing doesn't clear previously selected files and restores them
after reject.  Accepting selection by performing an operation on selected
items (e.g. yanking them via "y") moves cursor to the top of current selection
region (not to the top most selected file of the view).

In turn, selection editing supports three types of editing (look at status bar
to know which one is currently active):
.RS 2
.IP \- 2
append \- amend selection by selecting elements in selection region;
.IP \- 2
remove \- amend selection by deselecting elements in selection region;
.IP \- 2
invert \- amend selection by inverting selection of elements in selection \
region.
.RE

No matter how you activate selection editing it starts in "append".  One can
switch type of operation (in the order given above) via "Ctrl-G" key.

Almost all normal mode keys work in visual mode, but instead of accepting
selectors they operate on selected items.
.TP
.BI Enter
save selection and go back to normal mode not moving cursor.
.TP
.BI av
leave visual mode if in amending mode (restores previous selection), otherwise
switch to amending selection mode.
.TP
.BI gv
restore previous visual selection.
.TP
.BI "v, V, Ctrl-C or Escape"
leave visual mode if not in amending mode, otherwise switch to normal visual
selection.
.TP
.BI Ctrl-G
switch type of amending by round robin scheme: append \-> remove \-> invert.
.TP
.BI :
enter command line mode.  Selection is cleared on leaving the mode.
.TP
.BI o
switch active selection bound.
.TP
.BI O
switch active selection bound.
.TP
.BI "gu, u"
make names of selected files lowercase.
.TP
.BI "gU, U"
make names of selected files uppercase.
.TP
.BI cl
change target of symbolic link(s).
.TP
.BI cw
same as running :rename command without arguments.
.\" ---------------------------------------------------------------------------
.SH View Mode
.\" ---------------------------------------------------------------------------
This mode tries to imitate the less program.  List of builtin shortcuts can be
found below.  Shortcuts can be customized using :qmap, :qnoremap and :qunmap
command-line commands.
.TP
.BI "Shift-Tab, Tab, q, Q, ZZ"
return to normal mode.
.TP
.BI "[count]e, [count]Ctrl-E, [count]j, [count]Ctrl-N, [count]Enter"
scroll forward one line (or [count] lines).
.TP
.BI "[count]y, [count]Ctrl-Y, [count]k, [count]Ctrl-K, [count]Ctrl-P"
scroll backward one line (or [count] lines).
.TP
.BI "[count]f, [count]Ctrl-F, [count]Ctrl-V, [count]Space"
scroll forward one window (or [count] lines).
.TP
.BI "[count]b, [count]Ctrl-B, [count]Alt-V"
scroll backward one window (or [count] lines).
.TP
.BI [count]z
scroll forward one window (and set window to [count]).
.TP
.BI [count]w
scroll backward one window (and set window to [count]).
.TP
.BI [count]Alt-Space
scroll forward one window, but don't stop at end-of-file.
.TP
.BI "[count]d, [count]Ctrl-D"
scroll forward one half-window (and set half-window to [count]).
.TP
.BI "[count]u, [count]Ctrl-U"
scroll backward one half-window (and set half-window to [count]).
.TP
.BI "r, Ctrl-R, Ctrl-L"
repaint screen.
.TP
.BI R
reload view preserving scroll position.
.TP
.BI F
toggle automatic forwarding.  Roughly equivalent to periodic file reload and
scrolling to the bottom.  The behaviour is similar to `tail \-F` or F key in
less.
.TP
.BI a
switch to the next viewer.  Does nothing for preview constructed via %q macro.
.TP
.BI A
switch to the previous viewer.  Does nothing for preview constructed via
%q macro.
.TP
.BI i
toggle raw mode (ignoring of defined viewers).  Does nothing for preview
constructed via %q macro.
.TP
.BI [count]/pattern
search forward for ([count]\(hyth) matching line.
.TP
.BI [count]?pattern
search backward for ([count]\(hyth) matching line.
.TP
.BI [count]n
repeat previous search (for [count]\(hyth occurrence).
.TP
.BI [count]N
repeat previous search in reverse direction (for [count]\(hyth occurrence).
.TP
.BI "[count]g, [count]<, [count]Alt-<"
scroll to the first line of the file (or line [count]).
.TP
.BI "[count]G, [count]>, [count]Alt->"
scroll to the last line of the file (or line [count]).
.TP
.BI "[count]p, [count]%"
scroll to the beginning of the file (or N percent into file).
.TP
.BI v
invoke an editor to edit the current file being viewed.  The command for editing
is taken from the 'vicmd' or 'vixcmd' option value and extended with middle line
number prepended by a plus sign and name of the current file.
.LP
All "Ctrl-W x" keys work the same was as in Normal mode.  Active mode is
automatically changed on navigating among windows.  When less-like mode
activated on file preview is left using one by "Ctrl-W x" keys, its state is
stored until another file is displayed using preview (it's possible to leave the
mode, hide preview pane, do something else, then get back to the file and show
preview pane again with previously stored state in it).
.\" ---------------------------------------------------------------------------
.SH Command line Mode
.\" ---------------------------------------------------------------------------
These keys are available in all submodes of the command line mode: command,
search, prompt and filtering.
.LP
Down, Up, Left, Right, Home, End and Delete are extended keys and they are not
available if vifm is compiled with \-\-disable\-extended\-keys option.
.TP
.BI "Esc, Ctrl-C"
leave command line mode, cancels input.  Cancelled input is saved into
appropriate history and can be recalled later.
.TP
.BI "Ctrl-M, Enter"
execute command and leave command line mode.
.TP
.BI "Ctrl-I, Tab"
complete command or its argument on editing of a :command, complete file
names in file name prompts, move cursor onto the next search match in
file search prompt (including in navigation) when 'incsearch' is set.
.TP
.BI Shift-Tab
complete in reverse order or move cursor onto the previous file search match.
.TP
.BI Ctrl-_
stop completion and restore original input.
.TP
.BI "Ctrl-B, Left"
move cursor to the left.
.TP
.BI "Ctrl-F, Right"
move cursor to the right.
.TP
.BI "Ctrl-A, Home"
go to line beginning.
.TP
.BI "Ctrl-E, End"
go to line end.
.TP
.BI Alt-B
go to the beginning of previous word.
.TP
.BI Alt-F
go to the end of next word.
.TP
.BI Ctrl-U
remove characters from cursor position till the beginning of line.
.TP
.BI Ctrl-K
remove characters from cursor position till the end of line.
.TP
.BI "Ctrl-H, Backspace"
remove character before the cursor.
.TP
.BI "Ctrl-D, Delete"
remove character under the cursor.
.TP
.BI Ctrl-W
remove characters from cursor position till the beginning of previous word.
.TP
.BI Alt-D
remove characters from cursor position till the beginning of next word.
.TP
.BI Ctrl-T
swap the order of current and previous character and move cursor forward or, if
cursor past the end of line, swap the order of two last characters in the line.
.TP
.BI Alt-.
insert last part of previous command to current cursor position.  Each next call
will insert last part of older command.
.TP
.BI Ctrl-G
edit command-line content in external editor.  See "Command line editing"
section for details.
.TP
.BI Ctrl-N
recall more recent command-line from history.
.TP
.BI Ctrl-P
recall older command-line from history.
.TP
.BI Up
recall more recent command-line from history, that begins as the current
command-line.
.TP
.BI Down
recall older command-line from history, that begins as the current command-line.
.TP
.BI Ctrl-]
trigger abbreviation expansion.
.TP
.BI "Ctrl-R ="
insert result of evaluating an expression.  Expression is to be entered
via nested command-line prompt (where this key does nothing).  Expansion of an
erroneous expression is empty.
.\" ---------------------------------------------------------------------------
.SH Fast navigation
.\" ---------------------------------------------------------------------------
In order to streamline navigation through directory tree, you can enter a
special form of command-line mode from search or local filter prompt.  Once
activated, pressing Enter opens currently selected directory and clears the
prompt in anticipation of the next component of the path.  If entry under the
cursor is a file, it is opened and the mode is finished.

This behaviour is embedded in a command-line mode, but doesn't update input
histories nor expands abbreviations and redefines some of the mode's mappings
for the purpose of faster navigation through the file system rather than
command-line editing.  When on, prompt gets "nav" prefix.

You can enable this behaviour on search by default via a mapping like:
.EX

    nnoremap / /<c-y>

.EE
.TP
.BI Ctrl-Y
enter navigation mode.  Works only for search and local filter started
from a normal mode and only when 'incsearch' is set ('wrapscan' is also nice to
have set for search).
.TP
.BI Ctrl-Y
return to a regular command-line mode.
.TP
.BI "Enter, Right"
either enter a directory under the cursor without leaving the mode and
clear the prompt or leave the mode for files.  If 'navoptions'
specifies "open:all" a file under the cursor is opened after leaving the
mode.
.TP
.BI "Ctrl-O, Left"
go to parent directory.
.TP
.BI "Ctrl-J"
leave the mode without undoing cursor position or filter state.
.TP
.BI "Ctrl-N, Down"
move view cursor down.
.TP
.BI "Ctrl-P, Up"
move view cursor up.
.TP
.BI "Page Down"
scroll view down.
.TP
.BI "Page Up"
scroll view up.
.TP
.BI Home
move view cursor to the first item.
.TP
.BI End
move view cursor to the last item.
.\" ---------------------------------------------------------------------------
.SH Pasting special values
.\" ---------------------------------------------------------------------------
The shortcuts listed below insert specified values into current cursor
position.  Last key of every shortcut references value that it inserts:
  \- c \- [c]urrent file
  \- d \- [d]irectory path
  \- e \- [e]xtension of a file name
  \- r \- [r]oot part of a file name
  \- t \- [t]ail part of directory path

  \- a \- [a]utomatic filter
  \- m \- [m]anual filter
  \- = \- local filter, which is bound to "=" in normal mode

Values related to filelist in current pane are available through Ctrl-X
prefix, while values from the other pane have doubled Ctrl-X key as their
prefix (doubled Ctrl-X is presumably easier to type than uppercase
letters; it's still easy to remap the keys to correspond to names of
similar macros).
.TP
.BI "Ctrl-X c"
name of the current file of the active pane.
.TP
.BI "Ctrl-X d"
path to the current directory of the active pane.
.TP
.BI "Ctrl-X e"
extension of the current file of the active pane.
.TP
.BI "Ctrl-X r"
name root of current file of the active pane.
.TP
.BI "Ctrl-X t"
the last component of path to the current directory of the active pane.
.TP
.BI "Ctrl-X Ctrl-X c"
name of the current file of the inactive pane.
.TP
.BI "Ctrl-X Ctrl-X d"
path to the current directory of the inactive pane.
.TP
.BI "Ctrl-X Ctrl-X e"
extension of the current file of the inactive pane.
.TP
.BI "Ctrl-X Ctrl-X r"
name root of current file of the inactive pane.
.TP
.BI "Ctrl-X Ctrl-X t"
the last component of path to the current directory of the inactive pane.

.TP
.BI "Ctrl-X a"
value of implicit permanent filter (old name "automatic") of the active pane.
.TP
.BI "Ctrl-X m"
value of explicit permanent filter (old name "manual") of the active pane.
.TP
.BI "Ctrl-X ="
value of local filter of the active pane.

.TP
.BI "Ctrl-X /"
last pattern from search history.
.\" ---------------------------------------------------------------------------
.SH Command line editing
.\" ---------------------------------------------------------------------------
vifm provides a facility to edit several kinds of data, that is usually edited
in command-line mode, in external editor (using command specified by
\(aqvicmd\(aq or 'vixcmd' option).  This has at least two advantages
over built-in command-line mode:
  \- one can use full power of Vim to edit text;
  \- finding and reusing history entries becomes possible.

The facility is supported by four input submodes of the command-line:
  \- command;
  \- forward search;
  \- backward search;
  \- file rename (see description of cw and cW normal mode keys).

Editing command-line using external editor is activated by the Ctrl-G
shortcut.  It's also possible to do almost the same from Normal and Visual
modes using q:, q/ and q? commands.

Temporary file created for the purpose of editing the line has the following
structure:
.RS 2
.IP 1. 3
First line, which is either empty or contains text already entered in
command-line.
.IP 2. 3
2nd and all other lines with history items starting with the most recent one.
Altering this lines in any way won't change history items stored by vifm.
.RE

After editing application is finished the first line of the file is taken as
the result of operation, when the application returns zero exit code.  If the
application returns an error (see :cquit command in Vim), all the edits made to
the file are ignored, but the initial value of the first line is saved in
appropriate history.
.\" ---------------------------------------------------------------------------
.SH More Mode
.\" ---------------------------------------------------------------------------
This is the mode that appears when status bar content is so big that it
doesn't fit on the screen.  One can identify the mode by "\-\- More \-\-"
message at the bottom.

The following keys are handled in this mode:

.TP
.BI "Enter, Ctrl-J, j or Down"
scroll one line down.
.TP
.BI "Backspace, k or Up"
scroll one line up.

.TP
.BI d
scroll one page (half of a screen) down.
.TP
.BI u
scroll one page (half of a screen) up.

.TP
.BI "Space, f or PageDown"
scroll down a screen.
.TP
.BI "b or PageUp"
scroll up a screen.

.TP
.BI G
scroll to the bottom.
.TP
.BI g
scroll to the top.

.TP
.BI "q, Escape or Ctrl-C"
quit the mode.
.TP
.BI :
switch to command-line mode.
.\" ---------------------------------------------------------------------------
.SH Commands
.\" ---------------------------------------------------------------------------
Commands are executed with :command_name<Enter>

Commented out lines should start with the double quote symbol ("), which may be
preceded by whitespace characters intermixed with colons.  Inline comments can
be added at the end of the line after double quote symbol, only last line of a
multi-line command can contain such comment.  Not all commands support inline
comments as their syntax conflicts with names of registers and fields where
double quotes are allowed.

Most of the commands have two forms: complete and the short one.
Example:
.EX

  :noh[lsearch]

.EE
This means the complete command is nohlsearch, and the short one is noh.

Most of command-line commands completely reset selection in the current view.
However, there are several exceptions:
.RS 2
.IP \- 2
`:invert s` most likely leaves some files selected;
.IP \- 2
:view command;
.IP \- 2
:normal command (when it doesn't leave command-line mode);
.IP \- 2
:if and :else commands don't affect selection on successful execution.
.RE

\(aq|\(aq can be used to separate commands, so you can give multiple commands in one
line.  If you want to use '|' in an argument, precede it with '\\'.

These commands see '|' as part of their arguments even when it's escaped:

    :[range]!
    :amap
    :anoremap
    :autocmd
    :cabbrev
    :cmap
    :cnoreabbrev
    :cnoremap
    :command
    :dmap
    :dnoremap
    :filetype
    :fileviewer
    :filextype
    :keepsel
    :map
    :mmap
    :mnoremap
    :nmap
    :nnoremap
    :noremap
    :normal
    :qmap
    :qnoremap
    :vmap
    :vnoremap
    :wincmd
    :windo
    :winrun

To be able to use another command after one of these, wrap it with the :execute
command.  An example:
.EX

  if filetype('.') == 'reg' | execute '!!echo regular file' | endif
.EE
.TP
.BI :[count]
.TP
.BI :number
move to the file number.
.br
:12 would move to the 12th file in the list.
.br
:0 move to the top of the list.
.br
:$ move to the bottom of the list.
.TP
.BI :[count]command
The only builtin :[count]command are :[count]d[elete] and :[count]y[ank].
.TP
.BI :d3
would delete three files starting at the current file position moving down.
.TP
.BI :3d
would delete one file at the third line in the list.
.TP
.BI ":command [args]"
.TP
.BI :[range]!program
execute command via shell.  Accepts macros.
.TP
.BI ":[range]!command &"
.LP
same as above, but the command is run in the background using vifm's means.

Programs that write to stderr create error dialogs showing errors of the
command.

Note the space before ampersand symbol, if you omit it, command
will be run in the background using job control of your shell.

Accepts macros.
.TP
.BI "                                         :!!"
.TP
.BI ":[range]!!command"
same as :!, but pauses before returning.
.TP
.BI :!!
repeat the last command.
.TP
.BI "                                         :alink"
.TP
.BI :[range]alink[!?]
create absolute symbolic links to files in directory of inactive view.  With "?"
prompts for destination file names in an editor.  "!" forces overwrite.
.TP
.BI ":[range]alink[!] path"
create absolute symbolic links to files in directory specified by the path
(absolute or relative to directory of inactive view).
.TP
.BI ":[range]alink[!] name1 name2..."
create absolute symbolic links of files in directory of other view giving each
next link a corresponding name from the argument list.
.TP
.BI ":[range]alink[!?] -skip ..."
see "\-skip parameter" section below.
.TP
.BI "                                         :apropos"
.TP
.BI ":apropos keyword..."
create a menu of items returned by the apropos command.  Selecting an item in
the menu opens corresponding man page.  By default the command relies on the
external "apropos" utility, which can be customized by altering value of
the 'aproposprg' option.  See "Menus and dialogs" section for controls.
.TP
.BI "                                         :autocmd"
.TP
.BI ":au[tocmd] {event} {pat} {cmd}"
register autocommand for the {event}, which can be:
  \- DirEnter \- triggered after directory is changed
.br
Event name is case insensitive.

{pat} is a comma-separated list of modified globs patterns, which can
contain tilde or environment variables.  All paths use slash ('/') as
directory separator.  The pattern can start with a '!', which negates it.
Patterns that do not contain slashes are matched against the last item of
the path only (e.g. "dir" in "/path/dir").  Literal comma can be entered by
doubling it.  Two modifications to globs matching are as follows:
  \- *  \- never matches a slash (i.e., can signify single directory level)
  \- ** \- matches any character (i.e., can match path of arbitrary depth)

{cmd} is a :command or several of them separated with '|'.

Examples of patterns:
  \- conf.d      \- matches conf.d directory anywhere
  \- *.d         \- matches directories ending with ".d" anywhere
  \- **.git      \- matches something.git, but not .git anywhere
  \- **/.git/**  \- matches /path/.git/objects, but not /path/.git
  \- **/.git/**/ \- matches /path/.git/ only (because of trailing slash)
  \- /etc/*      \- matches /etc/conf.d/, /etc/X11, but not /etc/X11/fs
  \- /etc/**/*.d \- matches /etc/conf.d, /etc/X11/conf.d, etc.
  \- /etc/**/*   \- matches /etc/ itself and any file below it
  \- /etc/**/**  \- matches /etc/ itself and any file below it
.TP
.BI ":au[tocmd] [{event}] [{pat}]"
list those autocommands that match given event-pattern combination.
.br
{event} and {pat} can be omitted to list all autocommands.  To list any
autocommands for specific pattern one can use * placeholder in place of
{event}.
.TP
.BI ":au[tocmd]! [{event}] [{pat}]"
remove autocommands that match given event-pattern combination.  Syntax
is the same as for listing above.
.TP
.BI :apropos
repeat last :apropos command.
.TP
.BI "                                         :bmark"
.TP
.BI ":bmark tag1 [tag2 [tag3...]]"
bookmark current directory with specified tags.
.TP
.BI ":bmark! path tag1 [tag2 [tag3...]]"
same as :bmark, but allows bookmarking specific path instead of current
directory.  This is for use in vifmrc and for bookmarking files.

Path can contain macros that expand to single path (%c, %C, %d, %D) or
those that can expand to multiple paths, but contain only one (%f, %F,
%rx).  The latter is done for convenience on using the command
interactively.  Complex macros that include spaces (e.g. "%c:gs/ /_")
should be escaped.
.TP
.BI "                                         :bmarks"
.TP
.BI :bmarks
display all bookmarks in a menu.
.TP
.BI ":bmarks [tag1 [tag2...]]"
display menu of bookmarks that include all of the specified tags.  See "Menus
and dialogs" section for controls.
.TP
.BI "                                         :bmgo"
.TP
.BI ":bmgo [tag1 [tag2...]]"
when there are more than one match acts exactly like :bmarks, otherwise
navigates to single match immediately (and fails if there is no match).
.TP
.BI "                                         :cabbrev"
.TP
.BI ":ca[bbrev]"
display menu of command-line mode abbreviations.  See "Menus and dialogs"
section for controls.
.TP
.BI ":ca[bbrev] lhs-prefix"
display command-line mode abbreviations which left-hand side starts with
specified prefix.
.TP
.BI ":ca[bbrev] lhs rhs"
register new or overwrites existing abbreviation for command-line mode.  rhs
can contain spaces and any special sequences accepted in rhs of mappings (see
"Mappings" section below).  Abbreviations are expanded non-recursively.
.TP
.BI "                                         :chistory"
.TP
.BI ":chi[story]"
display menu of saved menus.  See "Menus and dialogs" section for controls,
also see "Menus history" section.
.TP
.BI "                                         :cnoreabbrev"
.TP
.BI ":cnorea[bbrev]"
display menu of command-line mode abbreviations.  See "Menus and dialogs"
section for controls.
.TP
.BI ":cnorea[bbrev] lhs-prefix"
display command-line mode abbreviations which left-hand side starts with
specified prefix.
.TP
.BI ":cnorea[bbrev] lhs rhs"
same as :cabbrev, but mappings in rhs are ignored during expansion.
.TP
.BI "                                         :cd"
.TP
.BI ":cd or :cd ~ or :cd $HOME"
change to home directory.
.TP
.BI ":cd \-"
go to the last visited directory.
.TP
.BI ":cd ~/dir"
change directory to ~/dir.
.TP
.BI ":cd /curr/dir /other/dir"
change directory of the current pane to /curr/dir and directory of the other
pane to /other/dir.  Relative paths are assumed to be relative to directory of
current view.  Command won't fail if one of directories is invalid.  All forms
of the command accept macros.
.TP
.BI ":cd! /dir"
same as :cd /dir /dir.
.TP
.BI "                                         :cds"
.TP
.BI ":cds[!] pattern string"
navigate to path obtained by substituting first match in current path.
Arguments can include slashes, but starting first argument with a
separator will activate below form of the command.  Specifying "!"
changes directory of both panes.
.LP
Available flags:
.RS 2
.IP \- 2
i \- ignore case (the 'ignorecase' and 'smartcase' options are not used)
.IP \- 2
I \- don't ignore case (the 'ignorecase' and 'smartcase' options are not used)
.RE
.TP
.BI ":cds[!]/pattern/string/[flags]"
same as above, but with :substitute-like syntax.  Other punctuation
characters can be used as separators.
.TP
.BI "                                         :change"
.TP
.BI :c[hange]
show a dialog to alter properties of files.
.TP
.BI "                                         :chmod"
.TP
.BI :[range]chmod
.br
display file attributes (permission on *nix and properties on Windows) change
dialog.
.TP
.BI ":[range]chmod[!] arg..."
only for *nix
.br
change permissions for files.  See `man 1 chmod` for arg format.  "!" means set
permissions recursively.
.TP
.BI "                                         :chown"
.TP
.BI :[range]chown
only for *nix
.br
same as co key in normal mode.
.TP
.BI ":[range]chown [user][:][group]"
only for *nix
.br
change owner and/or group of files.  Operates on directories recursively.
.TP
.BI "                                         :clone"
.TP
.BI :[range]clone[!?]
clones files in current directory.  With "?" vifm will open vi to edit
file names.  "!" forces overwrite.  Macros are expanded.
.TP
.BI ":[range]clone[!] path"
clones files to directory specified with the path (absolute or relative to
current directory).  "!" forces overwrite.  Macros are expanded.
.TP
.BI ":[range]clone[!] name1 name2..."
clones files in current directory giving each next clone a corresponding name
from the argument list.  "!" forces overwrite.  Macros are expanded.
.TP
.BI "                                         :colorscheme"
.TP
.BI :colo[rscheme]?
print current color scheme name on the status bar.
.TP
.BI :colo[rscheme]
display a menu with a list of available color schemes.  You can choose primary
color scheme here.  It is used for view if no directory specific colorscheme
fits current path.  It's also used to set border color (except view titles) and
colors in menus and dialogs.  See "Menus and dialogs" section for controls.
.TP
.BI ":colo[rscheme] color_scheme_name"
change primary color scheme to color_scheme_name.  In case of errors (e.g. some
colors are not supported by terminal) either nothing is changed or color scheme
is reset to builtin colors to ensure that TUI is left in a usable state.
.TP
.BI ":colo[rscheme] color_scheme_name directory"
associate directory with the color scheme.  The directory argument can be either
absolute or relative path when :colorscheme command is executed from command
line, but mandatory should be an absolute path when the command is executed in
scripts loaded at startup (until vifm is completely loaded).
.TP
.BI ":colo[rscheme] color_scheme_name color_scheme_name..."
loads the first color scheme in the order given that exists and is supported
by the terminal.  If none matches, current one remains unchanged.  For example:
.EX

  " use a separate color scheme for panes which are inside FUSE mounts
  execute 'colorscheme in-fuse' &fusehome
.EE
.TP
.BI "                                         :comclear"
.TP
.BI :comc[lear]
remove all user defined commands.
.TP
.BI "                                         :command"
.TP
.BI :com[mand]
display a menu of user commands.  See "Menus and dialogs" section for controls.
.TP
.BI ":com[mand] prefix"
display user defined commands that start with the prefix.
.TP
.BI ":com[mand] name action[ &]"
set or redefine a user command.
.br
Use :com[mand]! to overwrite a previously set command of the same name.
Builtin commands can't be redefined.
.br
User commands must start with an upper or lower case letter.
Command name can't contain special symbols except for a single trailing
\(aq?' or '!'.  Numbers are allowed provided that they don't cause parsing
ambiguity (no command name prefix that precedes a digit can match an
existing command unless it has a digit in the same place), for example:
.EX
  " good
  :command mp3 command
  " good
  :command mp4 command
  :command mp3! command
  :command mp4? command
  " bad
  :command mp command
  :command mp44 command
  " good
  :command mp4c command
.EE

.br
User commands are run in a shell by default (see below for syntax of other
options).  To run a command in the background you must mark it as a background
command by adding " &" after the command's action (e.g., `:com rm rm %f &`).
.br
User commands of all kinds have macros expanded in them.  See "Command macros"
section for more information.
.TP
.BI ":com[mand] name /pattern"
set search pattern.
.TP
.BI ":com[mand] name =pattern"
set local filter value.
.TP
.BI ":com[mand] name filter{:filter args}"
set file name filter (see :filter command description).  For example:
.EX

  " display only audio files
  :command onlyaudio filter/.+\.\\(mp3|wav|mp3|flac|ogg|m4a|wma|ape\\)$/i
  " display everything except audio files
  :command noaudio filter!/.+\.\\(mp3|wav|mp3|flac|ogg|m4a|wma|ape\\)$/i
.EE
.TP
.BI ":com[mand] name :commands"
set kind of an alias for internal commands (like in a shell).  Passes range
given to alias to an aliased command, so running :%cp after
  :command cp :copy %a
.br
equals
  :%copy
.TP
.BI "                                         :compare"
.TP
.BI ":compare [byname | bysize | bycontents |"
.BI "   listall | listunique | listdups |"
.br
.BI "   ofboth | ofone |"
.br
.BI "   groupids | grouppaths |"
.br
.BI "   skipempty | withicase | withrcase |"
.br
.BI "   showidentical | showdifferent | showuniqueleft | showuniqueright]..."
.br
compare files in one or two views according to the arguments.  The default
is "bycontents listall ofboth grouppaths showidentical showdifferent
showuniqueleft showuniqueright".  See "Compare views" section below
for details.  Diff structure is incompatible with alternative representations,
so values of 'lsview' and 'millerview' options are ignored.
.TP
.BI ":compare! (showidentical | showdifferent | showuniqueleft |"
.BI "    showuniqueright)..."
this invocation form works only when compare view is active and results in
redoing of the previous :compare with toggled state of the passed in
options.
.TP
.BI "                                         :copen"
.TP
.BI ":cope[n]"
reopens the last visible menu that has navigation to files by default, if any.
See also "Menus history" section.
.TP
.BI "                                         :copy"
.TP
.BI ":[range]co[py][!?][ &]"
copy files to directory of other view.  With "?" prompts for destination file
names in an editor.  "!" forces overwrite.
.TP
.BI ":[range]co[py][!] path[ &]"
copy files to directory specified with the path (absolute or relative to
directory of other view).  "!" forces overwrite.
.TP
.BI ":[range]co[py][!] name1 name2...[ &]"
copy files to directory of other view giving each next file a corresponding name
from the argument list.  "!" forces overwrite.
.TP
.BI ":[range]co[py][!?] -skip ...[ &]"
see "\-skip parameter" section below.
.TP
.BI "                                         :cquit"
.TP
.BI ":cq[uit][!]"
same as :quit, but also aborts directory choosing via \-\-choose\-dir (empties
output file) and returns non-zero exit code.
.TP
.BI "                                         :cunabbrev"
.TP
.BI ":cuna[bbrev] lhs"
unregister command-line mode abbreviation by its lhs.
.TP
.BI ":cuna[bbrev] rhs"
unregister command-line mode abbreviation by its rhs, so that abbreviation
could be removed even after expansion.
.TP
.BI "                                         :delbmarks"
.TP
.BI :delbmarks
remove bookmarks from current directory.
.TP
.BI ":delbmarks tag1 [tag2 [tag3...]]"
remove set of bookmarks that include all of the specified tags.
.TP
.BI :delbmarks!
remove all bookmarks.
.TP
.BI ":delbmarks! path1 [path2 [path3...]]"
remove bookmarks of listed paths.
.TP
.BI "                                         :delcommand"
.TP
.BI ":delc[ommand] user_command"
remove user defined command named user_command.
.TP
.BI "                                         :delete"
.TP
.BI ":[range]d[elete][!][ &]"
delete selected file or files.  "!" means complete removal (omitting trash).
.TP
.BI ":[range]d[elete][!] [reg] [count][ &]"
delete selected or [count] files to the reg register.  "!" means complete
removal (omitting trash).
.TP
.BI "                                         :delmarks"
.TP
.BI :delm[arks]!
delete all marks.
.TP
.BI ":delm[arks] marks ..."
delete specified marks, each argument is treated as a set of marks.
.TP
.BI "                                         :delsession"
.TP
.BI :delsession
delete specified session if it was stored previously.  Deleting current
session doesn't detach it.
.TP
.BI "                                         :display"
.TP
.BI :di[splay]
display menu with registers content.
.TP
.BI ":di[splay] list ..."
display the contents of the numbered and named registers that are mentioned in
list (for example "az to display "", "a and "z content).
.TP
.BI "                                         :dirs"
.TP
.BI :dirs
display directory stack in a menu.  See "Menus and dialogs" section for
controls.
.TP
.BI "                                         :echo"
.TP
.BI ":ec[ho] [<expr>...]"
evaluate each argument as an expression and output them separated with a space.
See help on :let command for a definition of <expr>.
.TP
.BI "                                         :edit"
.TP
.BI ":[range]e[dit] [file...]"
open selected or passed file(s) in editor.  Macros and environment variables are
expanded.
.TP
.BI "                                         :else"
.TP
.BI :el[se]
execute commands until next matching :endif if all other conditions didn't
match.  See also help on :if and :endif commands.
.TP
.BI "                                         :elseif"
.TP
.BI ":elsei[f] {expr1}"
execute commands until next matching :elseif, :else or :endif if conditions of
previous :if and :elseif branches were evaluated to zero.  See also help on :if
and :endif commands.
.TP
.BI "                                         :empty"
.TP
.BI :empty
permanently remove files from all existing non-empty trash directories (see
"Trash directory" section below).  Trash directories which are specified via %r
and/or %u also get deleted completely.  Also remove all operations from undolist
that have no sense after :empty and remove all records about files located
inside directories from all registers.  Removal is performed as background task
with undetermined amount of work and can be checked via :jobs menu.
.TP
.BI "                                         :endif"
.TP
.BI :en[dif]
end conditional block.  See also help on :if and :else commands.
.TP
.BI "                                         :execute"
.TP
.BI ":exe[cute] [<expr>...]"
evaluate each argument as an expression and join results separated by a space to
get a single string which is then executed as a command-line command.  See help
on :let command for a definition of <expr>.
.TP
.BI "                                         :exit"
.TP
.BI :exi[t][!]
same as :quit.
.TP
.BI "                                         :file"
.TP
.BI ":f[ile][ &]"
display menu of programs set for the file type of the current file.  " &" forces
running associated program in background.  See "Menus and dialogs" section for
controls.
.TP
.BI ":f[ile] arg[ &]"
run associated command that begins with the arg skipping opening menu.  " &"
forces running associated program in background.
.TP
.BI "                                         :filetype"
.TP
.BI ":filet[ype] pattern-list [{descr}]def_prog[ &],[{descr}]prog2[ &],..."
associate given program list to each of the patterns.  Associated
program (command) is used by handlers of l and Enter keys (and also in
the :file menu).  If you need to insert comma into command just double it
(",,").  Space followed by an ampersand as two last characters of a command
means running of the command in the background.  Optional description can be
given to each command to ease understanding of what command will do in the
:file menu.  Vifm will try the rest of the programs for an association when
the default isn't found.  When program entry doesn't contain any of vifm
macros, name of current file is appended as if program entry ended with %c
macro on *nix and %"c on Windows.  On Windows path to executables containing
spaces can (and should be for correct work with such paths) be double quoted.
See "Patterns" section below for pattern definition and "Selection" section for
how selection is handled.  See also "Automatic FUSE mounts" section below.
Example for zip archives and several actions:

.EX
  filetype *.zip,*.jar,*.war,*.ear
         \\ {Mount with fuse-zip}
         \\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
         \\ {View contents}
         \\ zip \-sf %c | less,
         \\ {Extract here}
         \\ tar \-xf %c,
.EE

Note that on OS X when `open` is used to call an app, vifm is unable to
check whether that app is actually available.  So if automatic skipping
of programs that aren't there is desirable, `open` should be replaced
with an actual command.
.TP
.BI ":filet[ype] filename"
list (in menu mode) currently registered patterns that match specified file
name.  Same as ":filextype filename".
.TP
.BI "                                         :filextype"
.TP
.BI ":filex[type] pattern-list [{ description }] def_program,program2,..."
same as :filetype, but this command is ignored if not running in X.
In X :filextype is equal to :filetype.  See "Patterns" section below for pattern
definition and "Selection" section for how selection is handled.  See
also "Automatic FUSE mounts" section below.

For example, consider the following settings (the order might seem strange,
but it's for the demonstration purpose):

.EX
  filetype *.html,*.htm
          \\ {View in lynx}
          \\ lynx
  filextype *.html,*.htm
          \\ {Open with dwb}
          \\ dwb %f %i &,
  filetype *.html,*.htm
          \\ {View in links}
          \\ links
  filextype *.html,*.htm
          \\ {Open with firefox}
          \\ firefox %f &,
          \\ {Open with uzbl}
          \\ uzbl-browser %f %i &,
.EE

If you're using vifm inside a terminal emulator that is running in graphical
environment (when X is used on *nix; always on Windows), vifm attempts to run
application in this order:

1. lynx
.br
2. dwb
.br
3. links
.br
4. firefox
.br
5. uzbl

If there is no graphical environment (checked by presence of non-empty $DISPLAY
or $WAYLAND_DISPLAY environment variable on *nix; never happens on Windows), the
list will look like:

1. lynx
.br
2. links

Just as if all :filextype commands were not there.

The purpose of such differentiation is to allow comfortable use of vifm
with same settings in desktop environment/through remote connection (SSH)/\
in native console.

Note that on OS X $DISPLAY isn't defined unless you define it, so
:filextype should be used only if you set $DISPLAY in some way.
.TP
.BI ":filext[ype] filename"
list (in menu mode) currently registered patterns that match specified file
name.  Same as ":filetype filename".
.TP
.BI "                                         :fileviewer"
.TP
.BI ":filev[iewer] pattern-list command1,command2,..."
register specified list of commands as viewers for each of the patterns.
Viewer is a command which output is captured and displayed in one of the panes
of vifm after pressing "e" or running :view command.  When the command doesn't
contain any of vifm macros, name of current file is appended as if command
ended with %c macro.  Comma escaping and missing commands processing rules as
for :filetype apply to this command.  See "Patterns" section below for pattern
definition.  Supports Lua handlers.

Example for zip archives:
.EX

  fileviewer *.zip,*.jar,*.war,*.ear zip \-sf %c, echo "No zip to preview:"
.EE
.TP
.BI ":filev[iewer] filename"
list (in menu mode) currently registered patterns that match specified filename.
.TP
.BI "                                         :filter"
.TP
.BI ":filter[!] {pattern}"
filter files matching the pattern out of directory listings.  '!' controls state
of filter inversion after updating filter value (see also 'cpoptions'
description).  Filter is matched case sensitively on *nix and case insensitively
on Windows.  See "File Filters" and "Patterns" sections.

Example:
.EX

  " filter all files ending in .o from the filelist.
  :filter /\.o$/
.EE

.TP
.BI ":filter[!] {empty-pattern}"
same as above, but use last search pattern as pattern value.

Example:
.EX

  :filter //I
.EE

.TP
.BI ":filter"
reset filter (set it to an empty string) and show all files.
.TP
.BI ":filter!"
same as :invert.
.TP
.BI :filter?
show information on local, name and auto filters.
.TP
.BI "                                         :find"
.TP
.BI ":[range]fin[d] pattern"
display results of find command in the menu.  Searches among selected files if
any.  Accepts macros.  By default the command relies on the external "find"
utility, which can be customized by altering value of the 'findprg' option.
.TP
.BI ":[range]fin[d] \-opt..."
same as :find above, but user defines all find arguments.  Searches among
selected files if any.
.TP
.BI ":[range]fin[d] path \-opt..."
same as :find above, but user defines all find arguments.  Ignores selection and
range.
.TP
.BI :[range]fin[d]
repeat last :find command.
.TP
.BI "                                         :finish"
.TP
.BI :fini[sh]
stop sourcing a script. Can only be used in a vifm script file. This is a quick
way to skip the rest of the file.
.TP
.BI "                                         :goto"
.TP
.BI :go[to]
change directory if necessary and put specified path under the cursor.
The path should be existing non-root path.  Macros and environment
variables are expanded.
.TP
.BI "                                         :grep"
.TP
.BI ":[range]gr[ep][!] pattern"
will show results of grep command in the menu.  Add "!" to request inversion of
search (look for lines that do not match pattern).  Searches among selected
files if any and no range given.  Ignores binary files by default.  By default
the command relies on the external "grep" utility, which can be customized by
altering value of the 'grepprg' option.
.TP
.BI ":[range]gr[ep][!] \-opt..."
same as :grep above, but user defines all grep arguments, which are not escaped.
Searches among selected files if any.
.TP
.BI :[range]gr[ep][!]
repeat last :grep command.  "!" of this command inverts "!" in repeated
command.
.TP
.BI "                                         :help"
.TP
.BI :h[elp]
show the help file.
.TP
.BI ":h[elp] argument"
is the same as using ':h argument' in vim.  Use vifm\-<something> to get help
on vifm (tab completion works).  This form of the command doesn't work when
\(aqvimhelp\(aq option is off.
.TP
.BI "                                         :hideui"
.TP
.BI :hideui
hide interface to show previous commands' output.
.TP
.BI "                                         :highlight"
.TP
.BI :hi[ghlight]
display information about all highlight groups active at the moment.
.TP
.BI ":hi[ghlight] clear"
reset all highlighting to builtin defaults and removed all filename-specific
rules.
.TP
.BI ":hi[ghlight] clear ( {pat1,pat2,...} | /regexp/ )"
remove specified rule.
.TP
.BI ":hi[ghlight] ( group\-name | column:name | {pat1,pat2,...} | /regexp/ )"
display information on given highlight group or file name pattern of color
scheme used in the active view.
.TP
.BI ":hi[ghlight] \
( group\-name | column:name | {pat1,pat2,...} | /regexp/[iI] ) cterm=style \
| ctermfg=color | ctermbg=color | gui=style | guifg=color | guibg=color"
set style (cterm, gui), foreground (ctermfg, guifg) and/or background (ctermbg,
guibg) parameters of highlight group or file name pattern for color scheme used
in the active view.
.LP
Group names, style values and color names are case insensitive.  Note that this
doesn't include column names as that would make builtin and custom columns
indistinguishable.
.LP
Available group-name values:
 \- Win \- color of all windows (views, dialogs, menus) and default color for \
their content (e.g. regular files in views)
 \- AuxWin \- color of auxiliary areas of windows
 \- OtherWin \- color of inactive pane
 \- Border \- color of vertical parts of the border
 \- TabLine \- tab line color (for 'tabscope' set to "global")
 \- TabLineSel \- color of the tip of selected tab (regardless of 'tabscope')
 \- TopLine \- top line color of the other pane
 \- TopLineSel \- top line color of the current pane
 \- CmdLine \- the command line/status bar color
 \- ErrorMsg \- color of error messages in the status bar
 \- StatusLine \- color of the line above the status bar
 \- JobLine \- color of job line that appears above the status line
 \- WildMenu \- color of the wild menu items
 \- SuggestBox \- color of key suggestion box
 \- CurrLine \- line at cursor position in active view
 \- OtherLine \- line at cursor position in inactive view
 \- OddLine \- color of every second entry line in a pane
 \- LineNr \- line number column of views
 \- Selected \- color of selected files
 \- Directory \- color of directories
 \- Link \- color of symbolic links in the views
 \- BrokenLink \- color of broken symbolic links
 \- HardLink \- color of regular files with more than one hard link
 \- Socket \- color of sockets
 \- Device \- color of block and character devices
 \- Executable \- color of executable files
 \- Fifo \- color of fifo pipes
 \- CmpMismatch \- color of mismatched files in side-by-side comparison by path
 \- CmpUnmatched \- comparison file entry that has no pair in the other pane
 \- CmpBlank \- entry placeholder in a compare view, paired with CmpUnmatched
 \- User1..User20 \- 20 colors which can be used via %* 'statusline' macro

Column names match names of columns of |vifm-'viewcolumns'| option, which in
turn are based on values of |vifm-'sort'| and custom columns added from Lua.
Regardless of the source, columns are specified as "column:{name}", for
example:
.EX

  highlight column:fileext ctermfg=red
.EE

Available style values (some of them can be combined):
 \- bold
 \- underline
 \- reverse or inverse
 \- standout
 \- italic (on unsupported systems becomes reverse)
 \- combine \- add attributes of current group to attributes of the parent in \
group hierarchy (see below) instead of replacing them
 \- none

Available colors:
 \- \-1 or default or none \- default or transparent
 \- black   and lightblack
 \- red     and lightred
 \- green   and lightgreen
 \- yellow  and lightyellow
 \- blue    and lightblue
 \- magenta and lightmagenta
 \- cyan    and lightcyan
 \- white   and lightwhite
 \- 0-255 \- corresponding colors from 256-color palette (for ctermfg and \
ctermbg)
 \- #rrggbb \- direct ("gui", "true", 24-bit) color in hex-notation, each of \
the three compontents are in the range 0x00 to 0xff (for guifg and guibg)

Light versions of colors are regular colors with bold attribute set
automatically in terminals that have less than 16 colors.  So order of arguments
of :highlight command is important and it's better to put "cterm" in front of
others to prevent it from overwriting attributes set by "ctermfg" or "ctermbg"
arguments.

For convenience of color scheme authors xterm-like names for 256 color palette
is also supported.  The mapping is taken from
http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim
.br
Duplicated entries were altered by adding an underscore followed by numerical
suffix.

  0 Black                  86 Aquamarine1           172 Orange3
  1 Red                    87 DarkSlateGray2        173 LightSalmon3_2
  2 Green                  88 DarkRed_2             174 LightPink3
  3 Yellow                 89 DeepPink4_2           175 Pink3
  4 Blue                   90 DarkMagenta           176 Plum3
  5 Magenta                91 DarkMagenta_2         177 Violet
  6 Cyan                   92 DarkViolet            178 Gold3_2
  7 White                  93 Purple                179 LightGoldenrod3
  8 LightBlack             94 Orange4_2             180 Tan
  9 LightRed               95 LightPink4            181 MistyRose3
 10 LightGreen             96 Plum4                 182 Thistle3
 11 LightYellow            97 MediumPurple3         183 Plum2
 12 LightBlue              98 MediumPurple3_2       184 Yellow3_2
 13 LightMagenta           99 SlateBlue1            185 Khaki3
 14 LightCyan             100 Yellow4               186 LightGoldenrod2
 15 LightWhite            101 Wheat4                187 LightYellow3
 16 Grey0                 102 Grey53                188 Grey84
 17 NavyBlue              103 LightSlateGrey        189 LightSteelBlue1
 18 DarkBlue              104 MediumPurple          190 Yellow2
 19 Blue3                 105 LightSlateBlue        191 DarkOliveGreen1
 20 Blue3_2               106 Yellow4_2             192 DarkOliveGreen1_2
 21 Blue1                 107 DarkOliveGreen3       193 DarkSeaGreen1_2
 22 DarkGreen             108 DarkSeaGreen          194 Honeydew2
 23 DeepSkyBlue4          109 LightSkyBlue3         195 LightCyan1
 24 DeepSkyBlue4_2        110 LightSkyBlue3_2       196 Red1
 25 DeepSkyBlue4_3        111 SkyBlue2              197 DeepPink2
 26 DodgerBlue3           112 Chartreuse2_2         198 DeepPink1
 27 DodgerBlue2           113 DarkOliveGreen3_2     199 DeepPink1_2
 28 Green4                114 PaleGreen3_2          200 Magenta2_2
 29 SpringGreen4          115 DarkSeaGreen3         201 Magenta1
 30 Turquoise4            116 DarkSlateGray3        202 OrangeRed1
 31 DeepSkyBlue3          117 SkyBlue1              203 IndianRed1
 32 DeepSkyBlue3_2        118 Chartreuse1           204 IndianRed1_2
 33 DodgerBlue1           119 LightGreen_2          205 HotPink
 34 Green3                120 LightGreen_3          206 HotPink_2
 35 SpringGreen3          121 PaleGreen1            207 MediumOrchid1_2
 36 DarkCyan              122 Aquamarine1_2         208 DarkOrange
 37 LightSeaGreen         123 DarkSlateGray1        209 Salmon1
 38 DeepSkyBlue2          124 Red3                  210 LightCoral
 39 DeepSkyBlue1          125 DeepPink4_3           211 PaleVioletRed1
 40 Green3_2              126 MediumVioletRed       212 Orchid2
 41 SpringGreen3_2        127 Magenta3              213 Orchid1
 42 SpringGreen2          128 DarkViolet_2          214 Orange1
 43 Cyan3                 129 Purple_2              215 SandyBrown
 44 DarkTurquoise         130 DarkOrange3           216 LightSalmon1
 45 Turquoise2            131 IndianRed             217 LightPink1
 46 Green1                132 HotPink3              218 Pink1
 47 SpringGreen2_2        133 MediumOrchid3         219 Plum1
 48 SpringGreen1          134 MediumOrchid          220 Gold1
 49 MediumSpringGreen     135 MediumPurple2         221 LightGoldenrod2_2
 50 Cyan2                 136 DarkGoldenrod         222 LightGoldenrod2_3
 51 Cyan1                 137 LightSalmon3          223 NavajoWhite1
 52 DarkRed               138 RosyBrown             224 MistyRose1
 53 DeepPink4             139 Grey63                225 Thistle1
 54 Purple4               140 MediumPurple2_2       226 Yellow1
 55 Purple4_2             141 MediumPurple1         227 LightGoldenrod1
 56 Purple3               142 Gold3                 228 Khaki1
 57 BlueViolet            143 DarkKhaki             229 Wheat1
 58 Orange4               144 NavajoWhite3          230 Cornsilk1
 59 Grey37                145 Grey69                231 Grey100
 60 MediumPurple4         146 LightSteelBlue3       232 Grey3
 61 SlateBlue3            147 LightSteelBlue        233 Grey7
 62 SlateBlue3_2          148 Yellow3               234 Grey11
 63 RoyalBlue1            149 DarkOliveGreen3_3     235 Grey15
 64 Chartreuse4           150 DarkSeaGreen3_2       236 Grey19
 65 DarkSeaGreen4         151 DarkSeaGreen2         237 Grey23
 66 PaleTurquoise4        152 LightCyan3            238 Grey27
 67 SteelBlue             153 LightSkyBlue1         239 Grey30
 68 SteelBlue3            154 GreenYellow           240 Grey35
 69 CornflowerBlue        155 DarkOliveGreen2       241 Grey39
 70 Chartreuse3           156 PaleGreen1_2          242 Grey42
 71 DarkSeaGreen4_2       157 DarkSeaGreen2_2       243 Grey46
 72 CadetBlue             158 DarkSeaGreen1         244 Grey50
 73 CadetBlue_2           159 PaleTurquoise1        245 Grey54
 74 SkyBlue3              160 Red3_2                246 Grey58
 75 SteelBlue1            161 DeepPink3             247 Grey62
 76 Chartreuse3_2         162 DeepPink3_2           248 Grey66
 77 PaleGreen3            163 Magenta3_2            249 Grey70
 78 SeaGreen3             164 Magenta3_3            250 Grey74
 79 Aquamarine3           165 Magenta2              251 Grey78
 80 MediumTurquoise       166 DarkOrange3_2         252 Grey82
 81 SteelBlue1_2          167 IndianRed_2           253 Grey85
 82 Chartreuse2           168 HotPink3_2            254 Grey89
 83 SeaGreen2             169 HotPink2              255 Grey93
 84 SeaGreen1             170 Orchid
 85 SeaGreen1_2           171 MediumOrchid1

There are two colors (foreground and background) and only one bold attribute.
Thus single bold attribute affects both colors when "reverse" attribute is used
in vifm run inside terminal emulator.  At the same time linux native console can
handle boldness of foreground and background colors independently, but for
consistency with terminal emulators this is available only implicitly by using
light versions of colors.  This behaviour might be changed in the future.

Although vifm supports 256 colors in a sense they are supported by UI drawing
library, whether you will be able to use all of them highly depends on your
terminal.  To set up terminal properly, make sure that $TERM in the
environment you run vifm is set to name of 256-color terminal (on *nixes it can
also be set via X resources), e.g. xterm-256color.  One can find list of
available terminal names by listing /usr/lib/terminfo/.  Number of colors
supported by terminal with current settings can be checked via "tput colors"
command.

In order to use 24-bit colors one needs a terminal that supports them,
corresponding terminfo record (probably ends in "\-direct" like in
"xterm-direct") and $TERM pointing to it.  When vifm detects direct color
support "cterm*" values are ignored for groups which have at least one of
"gui*" values set, otherwise they are used after translating via a builtin
palette.

Here is the hierarchy of highlight groups, which you need to know for using
transparency:
  JobLine
  SuggestBox
  StatusLine
    WildMenu
    User1..User20
  Border
  CmdLine
    ErrorMsg
  Win
    OtherWin
      AuxWin
        OddLine
          Column highlights
            File name specific highlights
              Directory
              Link
              BrokenLink
              HardLink
              Socket
              Device
              Fifo
              Executable
                CmpMismatch
                CmpUnmatched
                CmpBlank
                  Selected
                    CurrLine
                      LineNr (in active pane)
                    OtherLine
                      LineNr (in inactive pane)
  TopLine
    TopLineSel
      TabLineSel (for pane tabs)
        User1..User20
  TabLine
    TabLineSel
      User1..User20

"none" means default terminal color for highlight groups at the first level of
the hierarchy and transparency for all others.

Here file name specific highlights mean those configured via globs ({}) or
regular expressions (//).  At most one of them is applied per file entry, namely
the first that matches file name, hence order of :highlight commands might be
important in certain cases.
.TP
.BI "                                         :history"
.TP
.BI :his[tory]
display a menu with list of visited directories.  See "Menus and dialogs"
section for controls.
.TP
.BI ":his[tory] x"
x can be:
.br
  d[ir]     or . show directory history.
.br
  c[md]     or : show command line history.
.br
  s[earch]  or / show search history and search forward on l key.
.br
  f[search] or / show search history and search forward on l key.
.br
  b[search] or ? show search history and search backward on l key.
.br
  i[nput]   or @ show prompt history (e.g. on one file renaming).
.br
  fi[lter]  or = show local filter history (see description of the "=" normal
mode command).
.br
  e[xprreg]      show expression register history (see description of Ctrl+R =
in command-line mode).
.br
  mc[md]         show command-line history of menus.
.br
See "Menus and dialogs" section for controls.
.TP
.BI "                                         :histnext"
.TP
.BI :histnext
same as <c-i>.  The main use case for this command is to work around the common
pain point of <tab> and <c-i> being the same ASCII character: one could alter
the terminal emulator settings to emit, for example, the `F1` keycode when
Ctrl-I is pressed, then `:noremap <f1> :histnext<cr>` in vifm, add "t" flag to
the 'cpoptions', and thus have both <c-i> and <tab> working as expected.
.TP
.BI "                                         :histprev"
.TP
.BI :histprev
same as <c-o>.
.TP
.BI "                                         :if"
.TP
.BI ":if {expr1}"
start conditional block.  Commands are executed until next matching :elseif,
:else or :endif command if {expr1} evaluates to non-zero, otherwise they are
ignored.  See also help on :else and :endif commands.

Example:
.EX

  if $TERM == 'screen.linux'
      highlight CurrLine ctermfg=lightwhite ctermbg=lightblack
  elseif $TERM == 'tmux'
      highlight CurrLine cterm=reverse ctermfg=black ctermbg=white
  else
      highlight CurrLine cterm=bold,reverse ctermfg=black ctermbg=white
  endif
.EE
.TP
.BI "                                         :invert"
.TP
.BI ":invert [f]"
invert file name filter.
.TP
.BI ":invert? [f]"
show current filter state.
.TP
.BI ":invert s"
invert selection.
.TP
.BI ":invert o"
invert sorting order of the primary sorting key.
.TP
.BI ":invert? o"
show sorting order of the primary sorting key.
.TP
.BI "                                         :jobs"
.TP
.BI :jobs
display menu of current backgrounded processes.  See "Menus and dialogs" section
for controls.
.TP
.BI "                                         :keepsel"
.TP
.BI ":keepsel [command...]"
preserve selection during some :command by default.  Note that this
doesn't save and restore selection to preserve it no matter what, but
precludes its clearing at the end of a command and thus won't help if
selection is cleared explicitly during operation.

Example:
.EX

  :keepsel view
.EE
.TP
.BI "                                         :let"
.TP
.BI ":let $ENV_VAR = <expr>"
set an environment variable.  Warning: setting environment variable to an empty
string on Windows removes it.
.TP
.BI ":let $ENV_VAR .= <expr>"
append value to environment variable.
.TP
.BI ":let &[l:|g:]opt = <expr>"
sets option value.
.TP
.BI ":let &[l:|g:]opt .= <expr>"
append value to string option.
.TP
.BI ":let &[l:|g:]opt += <expr>"
increasing option value, adding sub-values.
.TP
.BI ":let &[l:|g:]opt \-= <expr>"
decreasing option value, removing sub-values.
.TP
Where <expr> could be a single-quoted string, double-quoted string, an \
environment variable, function call or a concatanation of any of them in any \
order using the '.' operator.  Any whitespace is ignored.
.TP
.BI "                                         :locate"
.TP
.BI ":locate filename"
use "locate" command to create a menu of filenames.
Selecting a file from the menu will reload the current file list in vifm
to show the selected file.  By default the command relies on the external
"locate" utility (it's assumed that its database is already built), which can be
customized by altering value of the 'locateprg' option.  See "Menus and dialogs"
section for controls.
.TP
.BI :locate
repeat last :locate command.
.TP
.BI "                                         :ls"
.TP
.BI :ls
lists windows of active terminal multiplexer (only when terminal multiplexer is
used).  This is achieved by issuing proper command for active terminal
multiplexer, thus the list is not handled by vifm.
.TP
.BI "                                         :lstrash"
.TP
.BI :lstrash
display a menu with list of files in trash.  Each element of the list is
original path of a deleted file, thus the list can contain duplicates.  See
"Menus and dialogs" section for controls.
.TP
.BI "                                         :mark"
.TP
.BI ":[range]ma[rk][?] x [/full/path] [filename]"
Set mark x (a\-zA\-Z0\-9) at /full/path and filename.  By default current
directory is being used.  If no filename was given and /full/path is current
directory then last file in [range] is used.  Using of macros is allowed.
Question mark will stop command from overwriting existing marks.
.TP
.BI "                                         :marks"
.TP
.BI :marks
create a pop-up menu of marks.  See "Menus and dialogs" section for controls.
.TP
.BI ":marks list ..."
display the contents of the marks that are mentioned in list.
.TP
.BI "                                         :media"
.TP
.BI :media
only for *nix
.br
display media management menu.  See "Menus and dialogs" section for controls.
See also 'mediaprg' option.
.TP
.BI "                                         :messages"
.TP
.BI ":mes[sages]"
shows previously given messages (up to 50).
.TP
.BI "                                         :mkdir"
.TP
.BI ":[line]mkdir[!] dir ..."
create directories at specified paths.  The [line] can be used to pick node in
a tree-view.  "!" means make parent directories as needed.  Macros are expanded.
.TP
.BI "                                         :move"
.TP
.BI ":[range]m[ove][!?][ &]"
move files to directory of other view.  With "?" prompts for destination
file names in an editor.  "!" forces overwrite.
.TP
.BI ":[range]m[ove][!] path[ &]"
move files to directory specified with the path (absolute or relative to
directory of other view).  "!" forces overwrite.
.TP
.BI ":[range]m[ove][!] name1 name2...[ &]"
move files to directory of other view giving each next file a
corresponding name from the argument list.  "!" forces overwrite.
.TP
.BI ":[range]m[ove][!?] -skip ...[ &]"
see "\-skip parameter" section below.
.TP
.BI "                                         :nohlsearch"
.TP
.BI :noh[lsearch]
clear selection in current pane.
.TP
.BI "                                         :normal"
.TP
.BI ":norm[al][!] commands"
execute normal mode commands.  If "!" is used, user defined mappings are
ignored.  Unfinished last command is aborted as if <esc> or <c-c> was
typed.  A ":" should be completed as well.  Commands can't start with a
space, so put a count of 1 (one) before it.
.TP
.BI "                                         :only"
.TP
.BI :on[ly]
switch to a one window view.
.TP
.BI "                                         :plugin"
.TP
.BI ":plugin load"
loads all plugins.  To be used in configuration file to manually load
plugins at an earlier point.  The plugins can be loaded only once,
additional calls will do nothing.
.TP
.TP
.BI ":plugin blacklist {plugin}"
adds {plugin} to the list of plugins to be ignored.
.TP
.BI ":plugin whitelist {plugin}"
adds {plugin} to the list of plugins to be loaded while ignoring all other
plugins.  This list should normally be empty.
.TP
.BI "                                         :plugins"
.TP
.BI :plugins
open plugins menu.  See "Menus and dialogs" section for controls.
.TP
.BI "                                         :popd"
.TP
.BI :popd
remove pane directories from stack.
.TP
.BI "                                         :pushd"
.TP
.BI ":pushd[!] /curr/dir [/other/dir]"
add pane directories to stack and process arguments like :cd command.
.TP
.BI :pushd
exchange the top two items of the directory stack.
.TP
.BI "                                         :put"
.TP
.BI ":[line]pu[t][!] [reg] [ &]"
put files from specified register (" by default) into current directory.
The [line] can be used to pick node in a tree-view.  "!" moves files
"!" moves files from their original location instead of copying them.
During this operation no confirmation dialogs will be shown, all checks
are performed beforehand.
.TP
.BI "                                         :pwd"
.TP
.BI :pw[d]
show the present working directory.
.TP
.BI "                                         :qall"
.TP
.BI :qa[ll][!]
exit vifm (add ! to skip saving changes and checking for active backgrounded
commands).
.TP
.BI "                                         :quit"
.TP
.BI :q[uit][!]
if there is more than one tab, close the current one, otherwise exit
vifm (add ! to skip saving state and checking for active backgrounded
commands).
.TP
.BI "                                         :redraw"
.TP
.BI :redr[aw]
redraw the screen immediately.
.TP
.BI "                                         :regedit"
.TP
.BI ":rege[dit] [{reg}]"
edit register contents using external editor. If {reg} is
omitted, unnamed register will be edited by default.
Edited paths are normalized (no extra `.`, `..`, `/`, etc.) and all
relative paths are treated as starting in the directory of the current
view.
.TP
.BI "                                         :registers"
.TP
.BI :reg[isters]
display menu with registers content.
.TP
.BI ":reg[isters] list ..."
display the contents of the numbered and named registers that are mentioned in
list (for example "az to display "", "a and "z content).
.TP
.BI "                                         :regular"
.TP
.BI :regular
.TP
switch to regular view leaving custom view.
.BI "                                         :rename"
.TP
.BI :[range]rename[!]
rename files by editing their names in an editor.  "!" renames files
recursively in subdirectories.  See "External Renaming" section.
.TP
.BI ":[range]rename name1 name2..."
rename each of selected files to a corresponding name.
.TP
.BI "                                         :restart"
.TP
.BI :restart
free a lot of things (histories, commands, etc.), reread vifminfo,
vifmrc and session files and run startup commands passed in the argument list,
thus losing all unsaved changes (e.g. recent history or keys mapped after
starting this instance).  Session that wasn't yet stored gets reset.

While many things get reset, some basic UI state and current locations are
preserved, including tabs.
.TP
.BI ":restart full"
variation of :restart that makes no attempt to preserve anything.
.TP
.BI "                                         :restore"
.TP
.BI :[range]restore
restore file from trash directory, doesn't work outside one of trash
directories.  See "Trash directory" section below.
.TP
.BI "                                         :rlink"
.TP
.BI :[range]rlink[!?]
create relative symbolic links to files in directory of other view.  With
"?" prompts for destination file names in an editor. "!" forces overwrite.
.TP
.BI ":[range]rlink[!] path"
create relative symbolic links of files in directory specified with the
path (absolute or relative to directory of other view).  "!" forces
overwrite.
.TP
.BI ":[range]rlink[!] name1 name2..."
create relative symbolic links of files in directory of other view giving
each next link a corresponding name from the argument list.  "!" forces
overwrite.
.TP
.BI ":[range]rlink[!?] -skip ...[ &]"
see "\-skip parameter" section below.
.TP
.BI "                                         :screen"
.TP
.BI :screen
toggle whether to use the terminal multiplexer or not.
.br
A terminal multiplexer uses pseudo terminals to allow multiple windows to be
used in the console or in a single xterm.  Starting vifm from terminal
multiplexer with appropriate support turned on will cause vifm to open a new
terminal multiplexer window for each new file edited or program launched from
vifm.
.br
This requires screen version 3.9.9 or newer for the screen \-X argument or tmux
(1.8 version or newer is recommended).
.TP
.BI :screen!
enable integration with terminal multiplexers.
.TP
.BI :screen?
display whether integration with terminal multiplexers is enabled.
.LP
Note: the command is called screen for historical reasons (when tmux wasn't yet
supported) and might be changed in future releases, or get an alias.
.TP
.BI "                                         :select"
.TP
.BI ":[range]select"
select files in the given range (current file if no range is given).
.TP
.BI ":select {pattern}"
select files that match specified pattern.  Possible {pattern} forms are
described in "Patterns" section below.  Trailing slash for directories is taken
into account, so `:select! */ | invert s` selects only files.
.TP
.BI ":select //[iI]"
same as item above, but reuses last search pattern.
.TP
.BI ":select !{external command}"
select files from the list supplied by external command.  Files are matched by
full paths, relative paths are converted to absolute ones beforehand.
.TP
.BI ":[range]select! [{pattern}]"
same as above, but resets previously selected items before proceeding.
.TP
.BI "                                         :session"
.TP
.BI :session?
print name of the current session.
.TP
.BI :session
detach current session without saving it.  Resets v:session.
.TP
.BI ":session name"
create or load and switch to a session with the specified name.  Name
can't contain slashes.  Session active at the moment is saved before the
switch.  Session is also automatically saved when quiting the application in
usual ways.  Sets v:session.
.TP
.BI ":session -"
switch to a previous session if it still exists (wasn't removed or
detached from without saving).
.TP
.BI "                                         :set"
.TP
.BI :se[t]
display all options that differ from their default value.
.TP
.BI ":se[t] all"
display all options.
.TP
.BI ":se[t] opt1=val1 opt2='val2' opt3=""val3"" ..."
sets given options.  For local options both values are set.
.br
You can use following syntax:
 \- for all options \- option, option? and option&
 \- for boolean options \- nooption, invoption and option!
 \- for integer options \- option=x, option+=x and option\-=x
 \- for string options \- option=x and option+=x
 \- for string list options \- option=x, option+=x, option\-=x and option^=x
 \- for enumeration options \- option=x, option+=x and option\-=x
 \- for set options \- option=x, option+=x, option\-=x and option^=x
 \- for charset options \- option=x, option+=x, option\-=x and option^=x

the meaning:
 \- option \- turn option on (for boolean) or print its value (for all others)
 \- nooption \- turn option off
 \- invoption \- invert option state
 \- option! \- invert option state
 \- option? \- print option value
 \- option& \- reset option to its default value
 \- option=x or option:x \- set option to x
 \- option+=x \- add/append x to option
 \- option\-=x \- remove (or subtract) x from option
 \- option^=x \- toggle x presence among values of the option

Option name can be prepended and appended by any number of whitespace
characters.
.TP
.BI "                                         :setglobal"
.TP
.BI :setg[lobal]
display all global options that differ from their default value.
.TP
.BI ":setg[lobal] all"
display all global options.
.TP
.BI ":setg[lobal] opt1=val1 opt2='val2' opt3=""val3"" ..."
same as :set, but changes/prints only global options or global values of local
options.  Changes to the latter might be not visible until directory is changed.
.TP
.BI "                                         :setlocal"
.TP
.BI :setl[ocal]
display all local options that differ from their default value.
.TP
.BI ":setl[ocal] all"
display all local options.
.TP
.BI ":setl[ocal] opt1=val1 opt2='val2' opt3=""val3"" ..."
same as :set, but changes/prints only local values of local options.
.TP
.BI "                                         :shell"
.TP
.BI :sh[ell][!]
start a shell in current directory.  "!" suppresses spawning dedicated
window of terminal multiplexer for a shell.  To make vifm adaptive to
environment it uses $SHELL if it's defined, otherwise 'shell' value is used.

.TP
.BI "                                         :siblnext"
.TP
.BI :[count]siblnext[!]

change directory to [count]th next sibling directory after current path using
value of global sort option of current pane.  "!" enables wrapping.

For example, say, you're at /boot and root listing starts like this:

    bin/
    boot/
    dev/
    ...

Issuing :siblnext will navigate to /dev.

.TP
.BI "                                         :siblprev"
.TP
.BI :[count]siblprev[!]
same as :siblnext, but in the opposite direction.
.TP
.BI "                                         :sort"
.TP
.BI :sor[t]
display dialog with different sorting methods, where one can select the primary
sorting key.  When 'viewcolumns' options is empty and 'lsview' is off, changing
primary sorting key will also affect view look (in particular the second column
of the view will be changed).  See "Menus and dialogs" section for controls.
.TP
.BI "                                         :source"
.TP
.BI ":so[urce] file"
read command-line commands from the file.
.TP
.BI "                                         :split"
.TP
.BI :sp[lit]
switch to a two window horizontal view.
.TP
.BI :sp[lit]!
toggle horizontal window splitting.
.TP
.BI ":sp[lit] path"
splits the window horizontally to show both file directories.  Also changes
other pane to path (absolute or relative to current directory of active pane).
.TP
.BI "                                         :stop"
.TP
.BI :st[op]
suspend vifm (same as pressing Ctrl-Z).  Does nothing if this instance isn't
running in a shell.  The command exists to allow mapping to the action of
Ctrl-Z.
.TP
.BI "                                         :substitute"
.TP
.BI :[range]s[ubstitute]/pattern/string/[flags]
for each file in range replace a match of pattern with string.
.LP
String can contain \\0...\\9 to link to capture groups (\\0 \- all match, \\1 \-
first group, etc.).

Pattern is stored in search history.

Available flags:
.RS 2
.IP \- 2
i \- ignore case (the 'ignorecase' and 'smartcase' options are not used)
.IP \- 2
I \- don't ignore case (the 'ignorecase' and 'smartcase' options are not used)
.IP \- 2
g \- substitute all matches in each file name (each g toggles this)
.RE
.TP
.BI :[range]s[ubstitute]/pattern
substitute pattern with an empty string.
.TP
.BI :[range]s[ubstitute]//string/[flags]
use last pattern from search history.
.TP
.BI :[range]s[ubstitute]
repeat previous substitution command.
.TP
.BI "                                         :sync"
.TP
.BI ":sync [relative path]"
change the other pane to the current pane directory or to some path relative
to the current directory.  Using macros is allowed.
.TP
.BI ":sync!"
change the other pane to the current pane directory and synchronize cursor
position.  If current pane displays custom list of files, position before
entering it is used (current one might not make any sense).

.TP
.BI ":sync! [location | cursorpos | localopts | filters | filelist | tree | all]..."
change enumerated properties of the other pane to match corresponding properties
of the current pane.  Arguments have the following meanings:
.RS
.RS 2
.IP \- 2
location \- current directory of the pane;
.IP \- 2
cursorpos \- cursor position (doesn't make sense without "location");
.IP \- 2
localopts \- all local options;
.IP \- 2
filters \- all filters;
.IP \- 2
filelist \- list of files for custom view (implies "location");
.IP \- 2
tree \- tree structure for tree view (implies "location");
.IP \- 2
all \- all of the above.
.RE
.RE
.TP
.BI "                                         :tabclose"
.TP
.BI ":tabc[lose]"
close current tab, unless it's the only one open at current scope.
.TP
.BI "                                         :tabmove"
.TP
.BI ":tabm[ove] [N]"
without the argument or with `$` as the argument, current tab becomes
the last tab.  With the argument, current tab is moved after the tab
with the specified number.  Argument of `0` moves current tab to the
first position.
.TP
.BI "                                         :tabname"
.TP
.BI ":tabname [name]"
set, update or reset (when no argument is provided) name of the current tab.
.TP
.BI "                                         :tabnew"
.TP
.BI ":tabnew [path]"
create new tab.  Accepts optional path for the new tab.  Macros and environment
variables are expanded.
.TP
.BI "                                         :tabnext"
.TP
.BI ":tabn[ext]"
switch to the next tab (wrapping around).
.TP
.BI ":tabn[ext] {n}"
go to the tab number {n}.  Tab numeration starts with 1.
.TP
.BI "                                         :tabonly"
.TP
.BI ":tabo[nly]"
close all tabs but the current one.  Closes pane tabs only at the active side.
.TP
.BI "                                         :tabprevious"
.TP
.BI ":tabp[revious]"
switch to the previous tab (wrapping around).
.TP
.BI ":tabp[revious] {n}"
go to the {n}-th previous tab.  Note that :tabnext handles its argument
differently.
.TP
.BI "                                         :touch"
.TP
.BI ":[line]touch file..."
create files at specified paths.  Aborts on errors.  Doesn't update time of
existing files.  The [line] can be used to pick node in a tree-view.  Macros are
expanded.
.TP
.BI "                                         :tr"
.TP
.BI :[range]tr/pattern/string/
for each file in range transliterate the characters which appear in pattern to
the corresponding character in string.  When string is shorter than pattern,
it's padded with its last character.
.TP
.BI "                                         :trashes"
.TP
.BI :trashes
lists all valid trash directories in a menu.  Only non-empty and writable trash
directories are shown.  This is exactly the list of directories that are cleared
when :empty command is executed.
.TP
.BI :trashes?
same as :trashes, but also displays size of each trash directory.
.TP
.BI "                                         :tree"
.TP
.BI :tree
turn pane into tree view with current directory as its root.  The tree view is
implemented on top of a custom view, but is automatically kept in sync with
file system state and considers all the filters.  Thus the structure corresponds
to what one would see on visiting the directories manually.  As a special case
for trees built out of custom view file-system tracking isn't performed.

To leave tree view go up from its root or use gh at any level of the tree.  Any
command that changes directory will also do, in particular, `:cd ..`.

Tree structure is incompatible with alternative representations, so values
of 'lsview' and 'millerview' options are ignored.

The "depth" argument specifies nesting level on which loading of
subdirectories won't happen (they will be folded).  Values start at 1.
.TP
.BI :tree!
toggle current view in and out of tree mode.
.TP
.BI "                                         :undolist"
.TP
.BI :undol[ist]
display list of latest changes.  Use "!" to see actual commands.  See "Menus and
dialogs" section for controls.
.TP
.BI "                                         :unlet"
.TP
.BI ":unl[et][!] $ENV_VAR1 $ENV_VAR2 ..."
remove environment variables. Add ! to omit displaying of warnings about
nonexistent variables.
.TP
.BI "                                         :unselect"
.TP
.BI ":[range]unselect"
unselect files in the given range (current file if no range is given).
.TP
.BI ":unselect {pattern}"
unselect files that match specified pattern.  Possible {pattern} forms are
described in "Patterns" section below.  Trailing slash for directories is taken
into account, so `:unselect */` unselects directories.
.TP
.BI ":unselect !{external command}"
unselect files from the list supplied by external command.  Files are matched by
full paths, relative paths are converted to absolute ones beforehand.
.TP
.BI ":unselect //[iI]"
same as item above, but reuses last search pattern.
.TP
.BI "                                         :version"
.TP
.BI :ve[rsion]
show menu with version information.
.TP
.BI "                                         :vifm"
.TP
.BI :vifm
same as :version.
.TP
.BI "                                         :view"
.TP
.BI :vie[w]
toggle on and off the quick file view (preview of file's contents).  See
also 'quickview' option.
.TP
.BI :vie[w]!
turn on quick file view if it's off.
.TP
.BI "                                         :volumes"
.TP
.BI :volumes
only for MS-Windows
.br
display menu with volume list.  Hitting l (or Enter) key opens appropriate
volume in the current pane.  See "Menus and dialogs" section for controls.
.TP
.BI "                                         :vsplit"
.TP
.BI :vs[plit]
switch to a two window vertical view.
.TP
.BI :vs[plit]!
toggle window vertical splitting.
.TP
.BI ":vs[plit] path"
split the window vertically to show both file directories.  And changes other
pane to path (absolute or relative to current directory of active pane).
.TP
.BI "                                         :wincmd"
.TP
.BI ":[count]winc[md] {arg}"
same as running Ctrl-W [count] {arg}.
.TP
.BI "                                         :windo"
.TP
.BI ":windo [command...]"
execute command for each pane (same as :winrun % command).
.TP
.BI "                                         :winrun"
.TP
.BI ":winrun type [command...]"
execute command for pane(s), which is determined by type argument:
  \- ^ \- top-left pane
  \- $ \- bottom-right pane
  \- % \- all panes
  \- . \- current pane
  \- , \- other pane
.TP
.BI "                                         :write"
.TP
.BI :w[rite]
write current state to vifminfo and session files (if a session is active).
.TP
.BI "                                         :wq"
.TP
.BI :wq[!]
same as :quit, but ! disables only the check of backgrounded commands,
while state of the application is always written.
.BI "                                         :wqall"
.TP
.BI :wqa[ll][!]
same as :qall, but ! disables only the check of backgrounded commands,
while state of the application is always written.
.TP
.BI "                                         :xall"
.TP
.BI ":xa[ll][!]"
same as :qall.
.TP
.BI "                                         :xit"
.TP
.BI ":x[it][!]"
same as :quit.
.TP
.BI "                                         :yank"
.TP
.BI ":[range]y[ank] [reg] [count]"
will yank files to the reg register.
.TP
.BI "                                         :map lhs rhs"
.TP
.BI ":map lhs rhs"
map lhs key sequence to rhs in normal and visual modes.
.TP
.BI ":map! lhs rhs"
map lhs key sequence to rhs in command line mode.

.TP
.BI "                                 :amap :cmap :dmap :mmap :nmap :qmap :vmap"
.TP
.BI ":amap lhs rhs"
map lhs to rhs in navigation mode.
.TP
.BI ":cm[ap] lhs rhs"
map lhs to rhs in command line mode.
.TP
.BI ":dm[ap] lhs rhs"
map lhs to rhs in dialog modes.
.TP
.BI ":mm[ap] lhs rhs"
map lhs to rhs in menu mode.
.TP
.BI ":nm[ap] lhs rhs"
map lhs to rhs in normal mode.
.TP
.BI ":qm[ap] lhs rhs"
map lhs to rhs in view mode.
.TP
.BI ":vm[ap] lhs rhs"
map lhs to rhs in visual mode.

.TP
.BI "                                         :*map"
.TP
.BI :amap
list all maps in navigation mode.
.TP
.BI :cm[ap]
list all maps in command line mode.
.TP
.BI :dm[ap]
list all maps in dialog modes.
.TP
.BI :mm[ap]
list all maps in menu mode.
.TP
.BI :nm[ap]
list all maps in normal mode.
.TP
.BI :qm[ap]
list all maps in view mode.
.TP
.BI :vm[ap]
list all maps in visual mode.
.TP
.BI "                                         :*map beginning"
.TP
.BI ":amap beginning"
list all maps in navigation mode that start with the beginning.
.TP
.BI ":cm[ap] beginning"
list all maps in command line mode that start with the beginning.
.TP
.BI ":dm[ap] beginning"
list all maps in dialog modes that start with the beginning.
.TP
.BI ":mm[ap] beginning"
list all maps in menu mode that start with the beginning.
.TP
.BI ":nm[ap] beginning"
list all maps in normal mode that start with the beginning.
.TP
.BI ":qm[ap] beginning"
list all maps in view mode that start with the beginning.
.TP
.BI ":vm[ap] beginning"
list all maps in visual mode that start with the beginning.
.TP
.BI "                                         :noremap"
.TP
.BI ":no[remap] lhs rhs"
map the key sequence lhs to rhs for normal and visual modes, but don't expand
user mappings in rhs.
.TP
.BI ":no[remap]! lhs rhs"
map the key sequence lhs to rhs for command line mode, but don't expand user
mappings in rhs.
.TP
.BI "     :anoremap :cnoremap :dnoremap :mnoremap :nnoremap :qnoremap :vnoremap"
.TP
.BI ":anoremap lhs rhs"
map the key sequence lhs to rhs for navigation mode, but don't expand user
mappings in rhs.
.TP
.BI ":cno[remap] lhs rhs"
map the key sequence lhs to rhs for command line mode, but don't expand user
mappings in rhs.
.TP
.BI ":dn[oremap] lhs rhs"
map the key sequence lhs to rhs for dialog modes, but don't expand user mappings
in rhs.
.TP
.BI ":mn[oremap] lhs rhs"
map the key sequence lhs to rhs for menu mode, but don't expand user mappings in
rhs.
.TP
.BI ":nn[oremap] lhs rhs"
map the key sequence lhs to rhs for normal mode, but don't expand user mappings
in rhs.
.TP
.BI ":qn[oremap] lhs rhs"
map the key sequence lhs to rhs for view mode, but don't expand user mappings in
rhs.
.TP
.BI ":vn[oremap] lhs rhs"
map the key sequence lhs to rhs for visual mode, but don't expand user mappings
in rhs.
.TP
.BI "                                         :unmap"
.TP
.BI ":unm[ap] lhs"
remove user mapping of lhs from normal and visual modes.
.TP
.BI ":unm[ap]! lhs"
remove user mapping of lhs from command line mode.
.TP
.BI "                   :aunmap :cunmap :dunmap :munmap :nunmap :qunmap :vunmap"
.TP
.BI ":aunmap lhs"
remove user mapping of lhs from navigation mode.
.TP
.BI ":cu[nmap] lhs"
remove user mapping of lhs from command line mode.
.TP
.BI ":du[nmap] lhs"
remove user mapping of lhs from dialog modes.
.TP
.BI ":mu[nmap] lhs"
remove user mapping of lhs from menu mode.
.TP
.BI ":nun[map] lhs"
remove user mapping of lhs from normal mode.
.TP
.BI ":qun[map] lhs"
remove user mapping of lhs from view mode.
.TP
.BI ":vu[nmap] lhs"
remove user mapping of lhs from visual mode.
.\" ---------------------------------------------------------------------------
.SH Ranges
.\" ---------------------------------------------------------------------------
The ranges implemented include:
  2,3 \- from second to third file in the list (including it)
  % \- the entire directory.
  . \- the current position in the filelist.
  $ \- the end of the filelist.
  't \- the mark position t.

Examples:
.EX

  :%delete

.EE
would delete all files in the directory.
.EX

  :2,4delete

.EE
would delete the files in the list positions 2 through 4.
.EX

  :.,$delete

.EE
would delete the files from the current position to the end of the filelist.
.EX

  :3delete4

.EE
would delete the files in the list positions 3, 4, 5, 6.

If a backward range is given :4,2delete \- an query message is given and
user can chose what to do next.

The builtin commands that accept a range are :d[elete] and :y[ank].
.\" ---------------------------------------------------------------------------
.SH :command parameters
.\" ---------------------------------------------------------------------------
Some of the command-line commands accept parameters in the form of
`\-paramname`.  Arguments of such commands can be split into two groups:
parameters and positional arguments.  Items from the two groups cannot be
interleaved and parameters always come first.  List of parameters is
terminated implicitly by the first argument that doesn't start with a
dash ("-") or explicitly via "--" separator (needs to be a separate
argument), which is just discarded.  These strict rules allow arbitrary
positional arguments, such as file names that start with a dash.

.TP
.BI "\-skip parameter"
This parameter makes :copy, :move, :alink and :rlink automatically skip source
files that already exist at the destination rather than refusing to perform the
operation.
.\" ---------------------------------------------------------------------------
.SH Command macros
.\" ---------------------------------------------------------------------------
The command macros may be used in user commands.
.TP
.BI %a
User arguments.  When user arguments contain macros, they are expanded before
performing substitution of %a.
.TP
.BI "%c %""c"
The current file under the cursor.
.TP
.BI "%C %""C"
The current file under the cursor in the other directory.
.TP
.BI "%f %""f"
All of the selected files or the current file, but see "Selection" section
below.
.TP
.BI "%F %""F"
Same as %f, %"f, but for the inactive pane.
.TP
.BI "%l %""l"
List of selected files.  Unlike %f from above, this is only for
explicit selection (i.e., not via a range) and is empty if no
files are selected.
.TP
.BI "%L %""L"
Same as %l, %"l, but for the inactive pane.
.TP
.BI "%b %""b"
Same as %f %F.
.TP
.BI "%d %""d"
Full path to current directory.
.TP
.BI "%D %""D"
Full path to other file list directory.
.TP
.BI "%rx %""rx"
Full paths to files in the register {x}.
In case of invalid symbol in place of {x}, it's processed with the rest of the
line and default register is used.
.TP
.BI %m
Show command output in a menu.
.TP
.BI %M
Same as %m, but l (or Enter) key is handled like for :locate and :find commands.
.TP
.BI %u
Process command output as list of paths and compose custom view out of it.
.TP
.BI %U
Same as %u, but implies less list updates inside vifm, which is absence of
sorting at the moment.
.TP
.BI %Iu
Same as %u, but gives up terminal before running external command.
.TP
.BI %IU
Same as %U, but gives up terminal before running external command.
.TP
.BI %S
Show command output in the status bar.
.TP
.BI %q
Redirect command output to quick view, which is activated if disabled.
.TP
.BI %s
Execute command in horizontally split window of active terminal multiplexer
(ignored if not running inside one).
.TP
.BI %v
Same as %s, but splits vertically.
.TP
.BI %n
Forbid use of terminal multiplexer to run the command.
.TP
.BI %N
Do not detach viewer from terminal session (keeps `/dev/tty`
available) or process group (keeps the command in the set of
foreground clients of the terminal).  This flag is a workaround
for rare commands/terminals which might need a working TTY for
:fileviewer command to operate correctly and has no effect
otherwise.
.TP
.BI %i
Run in background and suppress error dialogs, but collect
errors internally for viewing via :jobs menu.
.TP
.BI %Pl
Pipe list of files to standard input of a command.
.TP
.BI %Pz
Same as %Pl, but separates paths by null ('\\0') character.
.TP
.BI %pc
Marks the end of the main command and the beginning of the clear command for
graphical preview, which is invoked on closing preview of a file.
.TP
.BI %pd
Marks a preview command as one that directly communicates with the terminal.
Beware that this is for things like sixel which are self-contained sequences
that depend only on current cursor position, using this with anything else is
likely to mangle terminal state.
.TP
.BI %pu
Uncached preview.  Intended to be used for commands that just send file path
somewhere for preview.
.LP
The following dimensions and coordinates are in characters:
.TP
.BI %px
x coordinate of top-left corner of preview area.
.TP
.BI %py
y coordinate of top-left corner of preview area.
.TP
.BI %pw
width of preview area.
.TP
.BI %ph
height of preview area.

.LP
Use %% if you need to put a percent sign in your command.

Note that %i, %Iu, %IU, %m, %M, %n, %q, %s, %S, %u, %U and %v macros are
mutually exclusive.  Only the last one of them in the command will take
effect.

Note that %Pl and %Pz are mutually exclusive.  Only the last one of them in
the command will take effect.

Note that a previewer with both %px and %py is considered to be a graphical
previewer, a previewr with %pd is considered a pass through previewer, the
rest are treated as text.

You can use file name modifiers after %c, %C, %f, %F, %b, %d and %D macros.
Supported modifiers are:
.RS 2
.IP \- 2
:p           \- full path
.IP \- 2
:u           \- UNC name of path (e.g. "\\\\server" in "\\\\server\\share"), Windows only.  Expands to current computer name for not UNC paths.
.IP \- 2
:~           \- relative to the home directory
.IP \- 2
:.           \- relative to current directory
.IP \- 2
:h           \- head of the file name
.IP \- 2
:t           \- tail of the file name
.IP \- 2
:r           \- root of the file name (without last extension)
.IP \- 2
:e           \- extension of the file name (last one)
.IP \- 2
:s?pat?sub?  \- substitute the first occurrence of pat with sub.  You can use any character for '?', but it must not occur in pat or sub.
.IP \- 2
:gs?pat?sub? \- like :s, but substitutes all occurrences of pat with sub.
.RE

See ':h filename\-modifiers' in Vim's documentation for the detailed
description.

Using %x means expand corresponding macro escaping all characters that have
special meaning.  And %"x means using of double quotes and escape only backslash
and double quote characters, which is more useful on Windows systems.

Position and quantity (if there is any) of %m, %M, %S or %s macros in the
command is unimportant.  All their occurrences are removed from the resulting
command.

%c and %f macros are expanded to file names only, when %C and %F are expanded
to full paths.  %f and %F follow this in %b too.
.TP
.BI ":com move mv %f %D"
set the :move command to move all of the files selected in the current directory
to the other directory.
.TP
The %a macro is replaced with any arguments given to an alias command.  All \
arguments are considered optional.
:com lsl !!ls \-l %a \- set the lsl command to execute ls \-l with or without an
argument.
.TP
.BI ":lsl<Enter>"
will list the directory contents of the current directory.
.TP
.BI ":lsl filename<Enter>"
will list only the given filename.
.TP
The macros can also be used in directly executing commands.  ":!mv %f %D" \
would move the current directory selected files to the other directory.
.TP
Appending & to the end of a command causes it to be executed in the \
background.  Typically you want to run two kinds of external commands in the \
background:
.RS 2
.IP \- 2
GUI applications that doesn't fork thus block vifm (:!sxiv %f &);
.IP \- 2
console tools that do not work with terminal (:!mv %f %D &).
.RE
.TP
You don't want to run terminal commands, which require terminal input or \
output something in background because they will mess up vifm's TUI.  Anyway, \
if you did run such a command, you can use Ctrl-L key to update vifm's TUI.
.TP
Rewriting the example command with macros given above with backgrounding:
.EX
.EE
.LP
%m, %M, %s, %S, %u and %U macros cannot be combined with background mark (" &")
as it doesn't make much sense.
.\" ---------------------------------------------------------------------------
.SH Command backgrounding
.\" ---------------------------------------------------------------------------
Copy and move operation can take a lot of time to proceed.  That's why vifm
supports backgrounding of this two operations.  To run :copy, :move or :delete
command in the background just add " &" at the end of a command.

For each background operation a new thread is created.  Job cancellation can
be requested in the :jobs menu via dd shortcut.

You can see if command is still running in the :jobs menu.  Backgrounded
commands have progress instead of process id at the line beginning.

Background operations cannot be undone.
.\" ---------------------------------------------------------------------------
.SH Cancellation
.\" ---------------------------------------------------------------------------
Note that cancellation works somewhat different on Windows platform due to
different mechanism of break signal propagation.  One also might need to use
Ctrl-Break shortcut instead of Ctrl-C.

There are two types of operations that can be cancelled:
.RS 2
.IP \- 2
file system operations;
.IP \- 2
mounting with FUSE (but not unmounting as it can cause loss of data);
.IP \- 2
calls of external applications.
.RE

Note that vifm never terminates applications, it sends SIGINT signal and lets
the application quit normally.

When one of set of operations is cancelled (e.g. copying of 5th file of 10
files), further operations are cancelled too.  In this case undo history will
contain only actually performed operations.

Cancelled operations are indicated by "(cancelled)" suffix appended to
information message on status bar.

.B File system operations

Currently the following commands can be cancelled: :alink, :chmod, :chown,
:clone, :copy, :delete, :mkdir, :move, :restore, :rlink, :touch.  File
putting (on p/P key) can be cancelled as well.  It's not hard to see that these
are mainly long-running operations.

Cancelling commands when they are repeated for undo/redo operations is allowed
for convenience, but is not recommended as further undo/redo operations might
get blocked by side-effects of partially cancelled group of operations.

These commands can't be cancelled: :empty, :rename, :substitute, :tr.

.B Mounting with FUSE

It's not considered to be an error, so only notification on the status bar is
shown.

.B External application calls

Each of this operations can be cancelled: :apropos, :find, :grep, :locate.
.\" ---------------------------------------------------------------------------
.SH Selection
.\" ---------------------------------------------------------------------------
If there is a selection, it's stashed before proceeding further unless file
under the cursor is part of that selection.  This means that when macros are
expanded for :filetype or :filextype programs, `%f` and `%F`
become equivalent to `%c` and `%C` respectively if current file is not selected.
So you run selection by running one of selected files, otherwise you're running
a single file even if there are other selected entries.

When running a selection it must not include broken symbolic links, has to be
consistent and set of file handlers must be compatible.  Consistency means
that selection contains either only directories (including links to them) or
only files, but not their mix.

Compatibility is a more sophisticated check, but it's defined in a natural way
so that you get what you'd expect.  The following properties of selection are
taken into account while checking it for compatibility and deciding how to
handle it:

.RS 2
.IP 1. 3
If there any files for which handler isn't defined, then all files are opened
using 'vicmd' or 'vixcmd'.

.IP 2. 3
If all handlers match the following criteria:
 - backgrounded
 - include `%c` and/or `%C`
 - include neither `%f` nor `%F`
.br
then each file is executed independently of the rest.

.IP 3. 3
If all handlers are equal, the common handler is executed.  This handler might
ignore selection and process only file under the cursor.

.IP 4. 3
Otherwise, an error is reported, because handlers differ and they don't support
parallel execution.
.RE
.\" ---------------------------------------------------------------------------
.SH Patterns
.\" ---------------------------------------------------------------------------
:highlight, :filetype, :filextype, :fileviewer commands and 'classify' option
support globs, regular expressions and mime types to match file names or their
paths.  Directory paths get an implicit trailing slash on matching against a
pattern, keep that in mind for globs or regular expressions that end with `$`.

There are six possible ways to write a single pattern:
.RS 2
.IP 1. 3
[!]{comma-separated-name-globs}
.IP 2. 3
[!]{{comma-separated-path-globs}}
.IP 3. 3
[!]/name-regular-expression/[iI]
.IP 4. 3
[!]//path-regular-expression//[iI]
.IP 5. 3
[!]<comma-separated-mime-type-globs>
.IP 6. 3
undecorated-pattern
.RE

First five forms can include leading exclamation mark that negates pattern
matching.

The last form is implicitly refers to one of others.  :highlight does not accept
undecorated form, while :filetype, :filextype, :fileviewer, :select, :unselect
and 'classify' treat it as list of name globs.

Path patterns receive absolute path of the file that includes its name
component as well.

To combine several patterns (AND them), make sure you're using one of the first
five forms and write patterns one after another, like this:
.EX
  <text/plain>{*.vifm}
.EE
Mind that if you make a mistake the whole string will be treated as the sixth
form.

:filetype, :filextype and :fileviewer commands accept comma-separated list of
patterns instead of a single pattern, thus effectively handling OR operation on
them:
.EX
  <text/plain>{*.vifm},<application/pdf>{*.pdf}
.EE
Forms that accept comma-separated lists of patterns also process them as
lists of alternatives.

.B Patterns with regular expressions

Regular expression patterns are case insensitive by default, see description
of commands, which might override default behaviour.

Flags of regular expressions mean the following:
  - "i" makes filter case insensitive;
  - "I" makes filter case sensitive.
They can be repeated multiple times, but the later one takes precedence (e.g.
"iiiI" is equivalent to "I" and "IiIi" is the same as "i").

There are no implicit `^` or `$`, so make sure to specify them explicitly if
the pattern should match the whole name or path.

.B Patterns with globs

"Globs" section below provides short overview of globs and some important points
that one needs to know about them.

.B Patterns with mime-types

Mime type matching is essentially globs matching applied to mime type of a file
instead of its name/path.  Note: mime types aren't detected on Windows.

.B Examples

Associate `evince` to PDF-files only inside `/home/user/downloads/` directory
(excluding its subdirectories):
.EX

  :filextype //^/home/user/downloads/[^/]*\.pdf$// evince %f

.EE
.\" ---------------------------------------------------------------------------
.SH Regular expressions
.\" ---------------------------------------------------------------------------
All regular expressions are modern/extended.  See `man 7 regex` for more
details on what's supported.

The following special sequences are additionally parsed:
 - `\\c` forces matching ignoring case of letters
 - `\\C` forces matching respecting case of letters

`\\c` and `\\C` have the highest priority in determining whether case is
matched or not and exist to override 'ignorecase', 'smartcase' and
`i`/`I` flags when necessary.

If multiple sequences are present, the one which appears later takes
precedence.

Note that unlike in Vim character classes are affected by settings and
sequences that control case sensitivity in regular expressions.
.\" ---------------------------------------------------------------------------
.SH Globs
.\" ---------------------------------------------------------------------------
Globs are always case insensitive as it makes sense in general case.

`*`, `?`, `[` and `]` are treated as special symbols in the pattern.  E.g.
.EX

  :filetype * less %c

.EE
matches all files.  One can use character classes for escaping, so
.EX

  :filetype [*] less %c

.EE
matches only one file name, the one which contains only asterisk symbol.

`*` means any number of any characters (possibly an empty substring), with one
exception: asterisk at the pattern beginning doesn't match dot in the first
position.  E.g.
.EX

  :fileviewer *.zip,*.jar zip \-sf %c

.EE
associates using of `zip` program to preview all files with `zip` or `jar`
extensions as listing of their content, but `.file.zip` won't be matched.

`?` means any character at this position.  E.g.
.EX

  :fileviewer ?.out file %c

.EE
calls `file` tool for all files which have exactly one character before their
extension (e.g. a.out, b.out).

Square brackets designate character class, which means that whole character
class matches against any of characters listed in it.  For example
.EX

  :fileviewer *.[ch] highlight \-O xterm256 \-s dante \-\-syntax c %c

.EE
makes vifm call `highlight` program to colorize source and header files in C
language for a 256-color terminal.  Equal command would be
.EX

  :fileviewer *.c,*.h highlight \-O xterm256 \-s dante \-\-syntax c %c

.EE

Inside square brackets `^` or `!` can be used for symbol class negation and
the `\-` symbol to set a range.  `^` and `!` should appear right after the
opening square bracket.  For example
.EX

  :filetype *.[!d]/ inspect_dir

.EE
associates `inspect_dir` as additional handler for all directories that have one
character extension unless it's "d" letter.  And
.EX

  :filetype [0-9].jpg sxiv

.EE
associates `sxiv` picture viewer only for JPEG-files that contain single digit
in their name.

If you need to include literal comma, which normally separates multiple
globs, double it.
.\" ---------------------------------------------------------------------------
.SH :set options
.\" ---------------------------------------------------------------------------
.TP
.BI "Local options"
These are kind of options that are local to a specific view.  So you can set
ascending sorting order for left pane and descending order for right pane.

In addition to being local to views, each such option also has two values:
.RS
.RS 2
.IP \- 2
local to current directory (value associated with current location);
.IP \- 2
global to current directory (value associated with the pane).
.RE
.RE

.RS
The idea is that current directory can be made a temporary exception to regular
configuration of the view, until directory change.  Use :setlocal for that.
:setglobal changes view value not affecting settings until directory change.
:set applies changes immediately to all values.
.RE

.TP
.BI 'aproposprg'
type: string
.br
default: "apropos %a"
.br
Specifies format for an external command to be invoked by the :apropos command.
The format supports expanding of macros, specific for a particular *prg option,
and %% sequence for inserting percent sign literally.  This option should
include the %a macro to specify placement of arguments passed to the :apropos
command.  If the macro is not used, it will be implicitly added after a space to
the value of this option.
.TP
.BI 'autocd'
type: boolean
.br
default: false
.br
When enabled unknown command-line commands are interpreted as implicit
invocation of :cd with one argument and no escaping.  Tilde is
expanded, but not macros or environment variables.
.TP
.BI 'autochpos'
type: boolean
.br
default: true
.br
When disabled vifm will set cursor to the first line in the view after :cd and
:pushd commands instead of saved cursor position.  Disabling this will also
make vifm clear information about cursor position in the view history on :cd
and :pushd commands (and on startup if 'autochpos' is disabled in the vifmrc).
l key in the ":history ." and ":trashes" menus are treated like :cd command.
This option also affects marks so that navigating to a mark doesn't restore
cursor position.

When this option is enabled, more fine grained control over cursor position is
available via 'histcursor' option.
.TP
.BI "'columns' 'co'"
type: integer
.br
default: terminal width on startup
.br
Terminal width in characters.
.TP
.BI "'caseoptions'"
type: charset
.br
default: ""
.br
This option gives additional control over case sensitivity by allowing
overriding default behaviour to either always be case sensitive or
always be case insensitive.  Possible values form pairs of lower and
upper case letters that configure specific aspect of behaviour:
  p - always ignore case of paths during completion.
  P - always match case of paths during completion.
  g - always ignore case of characters for f/F/;/,.
  G - always match case of characters for f/F/;/,.

At most one item of each pair takes affect, if both or more are present, only
the last one matters.  When none of pair's elements are present, the behaviour
is default (depends on operating system for path completion and on values
of 'ignorecase' and 'smartcase' options for file navigation).
.TP
.BI "'cdpath' 'cd'"
type: string list
.br
default: value of $CDPATH with commas instead of colons
.br
Specifies locations to check on changing directory with relative path that
doesn't start with "./" or "../".  When non-empty, current directory is
examined after directories listed in the option.

This option doesn't affect completion of :cd command.

Example:
.EX

  set cdpath=~

.EE
This way ":cd bin" will switch to "~/bin" even if directory named "bin" exists
in current directory, while ":cd ./bin" command will ignore value of 'cdpath'.
.TP
.BI 'chaselinks'
type: boolean
.br
default: false
.br
When enabled path of view is always resolved to real path (with all symbolic
links expanded).
.TP
.BI 'classify'
type: string list
.br
default: ":dir:/"
.br
Specifies file name prefixes and suffixes depending on file type or name (mind
that directory names have an implicit trailing slash).  The format is either
of:
  - [{prefix}]:{filetype}:[{suffix}]
  - [{prefix}]::{pattern}::[{suffix}]
.br
Possible {pattern} forms are described in "Patterns" section above.

Priority rules:
  - file name patterns have priority over type patterns
  - file name patterns are matched in left-to-right order of their appearance \
in this option

Either {prefix} or {suffix} or both can be omitted (which is the default for
all unspecified file types), this means empty {prefix} and/or {suffix}.
{prefix} and {suffix} should consist of at most eight characters.  Elements
are separated by commas.  Neither prefixes nor suffixes are part of file names,
so they don't affect commands which operate on file names in any way.  Comma
(',') character can be inserted by doubling it.  List of file type names can be
found in the description of filetype() function.
.TP
.BI "'confirm' 'cf'"
type: set
.br
default: delete,permdelete
.br
Defines which operations require confirmation:
.br
 \- delete     \- moving files to trash (on d or :delete);
.br
 \- permdelete \- permanent deletion of files (on D or :delete! command or on
undo/redo operation).
.TP
.BI "'cpoptions' 'cpo'"
type: charset
.br
default: "fst"
.br
Contains a sequence of single-character flags.  Each flag enables behaviour of
older versions of vifm.  Flags:
.br
 \- f \- when included, running :filter command results in not inverted
(matching files are filtered out) and :filter! in inverted (matching files are
left) filter, when omitted, meaning of the exclamation mark changes to the
opposite;
.br
 \- s \- when included, yy, Y, dd and DD normal mode commands act
on selection if there is any, otherwise they operate on the current file;
when omitted, those commands always operate on the current file;
.br
 \- t \- when included, <tab> (thus <c-i>) behave as <space> and switches \
active pane, otherwise <tab> and <c-i> go forward in the view history.  It's
possible to make both <tab> and <c-i> to work as expected by setting up the
terminal to emit a custom sequence when <c-i> is pressed; see :histnext for
details.
.TP
.BI 'cvoptions'
type: set
.br
default:
.br
Specifies whether entering/leaving custom views triggers events that normally
happen on entering/leaving directories:
 \- autocmds    \- trigger autocommands on entering/leaving custom views;
 \- localopts   \- reset local options on entering/leaving custom views;
 \- localfilter \- reset local filter on entering/leaving custom views.
.TP
.BI 'deleteprg'
type: string
.br
default: ""
.br
Specifies program to run on files that are permanently removed.  When empty,
files are removed as usual, otherwise this command is invoked on each file by
appending its name.  If the command doesn't remove files, they will remain on
the file system.
.TP
.BI 'dirsize'
type: enumeration
.br
default: size
.br
Controls how size of directories is displayed in file views.  The following
values are possible:
 \- size   \- size of directory (i.e., size used to store list of files)
 \- nitems \- number of entries in the directory (excluding . and ..)

Size obtained via ga/gA overwrites this setting so seeing count of files and
occasionally size of directories is possible.
.TP
.BI 'dotdirs'
type: set
.br
default: nonrootparent,treeleafsparent
.br
Controls displaying of dot directories.  The following values are possible:
 \- rootparent      \- show "../" in root directory of file system
 \- nonrootparent   \- show "../" in non-root directories of file system
 \- treeleafsparent \- show "../" in empty directories of tree view

Note that empty directories always contain "../" entry regardless of value of
this option.  "../" disappears at the moment at least one file is created.
.TP
.BI 'dotfiles'
type: boolean
.br
default: false
.br
Whether dot files are shown in the view.  Can be controlled with z* bindings.
.TP
.BI 'fastrun'
type: boolean
.br
default: false
.br
With this option turned on you can run partially entered commands with
unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>).
.TP
.BI "'fillchars' 'fcs'"
type: string list
.br
default: ""
.br
Sets characters used to fill borders.

  item         default    used for
  hborder:c    ''         middle horizontal border
  millersep:c  ''         separator of miller columns
  vborder:c    ' '        left, middle and right vertical borders

An empty string for millersep or vborder is equivalent to a space.

An empty string for hborder omits the horizontal border.

Example:

.EX
  set fillchars=vborder:".",hborder:"",millersep:"|"
.EE
.TP
.BI 'findprg'
type: string
.br
default: "find %s %a \-print , \-type d \\( ! \-readable \-o ! \-executable \\) \-prune"
.br
Specifies format for an external command to be invoked by the :find
command.  The format supports expansion of macros specific for this particular
option and %% sequence for inserting percent sign literally.  The macros are:

  macro   value/meaning
   %s     literal arguments of :find or
          list of paths to search in

   %A     empty or
          literal arguments of :find
   %a     empty or
          literal arguments of :find or
          predicate followed by escaped arguments of :find
   %p     empty or
          literal arguments of :find or
          escaped arguments (parameters) of :find

   %u     redirect output to custom view instead of showing a menu
   %U     redirect output to unsorted custom view instead of showing a menu

Predicate in %a is "\-name" on *nix and "\-iname" on Windows.

If both %u and %U are specified, %U is chosen.

Some macros can be added implicitly:
 - if %s isn't present, it's appended
 - if neither of %a, %A and %p is present, %a is appended
 - if neither of %s, %a, %A and %p is present, %s and %a are appended in this \
order

The macros slightly change their meaning depending on format of :find's
arguments:
 - if the first argument points to an existing directory, %s is assigned all \
arguments while %a, %A and %p are left empty
 - otherwise:
    - %s is assigned a dot (".") meaning current directory or list of \
selected file names, if any
    - %a, %A and %p are assigned literal arguments when first argument starts \
with a dash ("-"), otherwise %a gets an escaped version of the arguments \
with a predicate and %p contains escaped version of the arguments

Starting with Windows Server 2003 a `where` command is available.  One can
configure vifm to use it in the following way:
.EX

    set findprg="where /R %s %A"

.EE
As the syntax of this command is rather limited, one can't use :find
command with selection of more than one item because the command ignores all
directory paths except for the last one.

When using find port on Windows, another option is to setup 'findprg' like
this:
.EX

    set findprg="find %s %a"

.EE
.TP
.BI 'followlinks'
type: boolean
.br
default: true
.br
Follow links on l or Enter.  That is navigate to destination file instead of
treating the link as if it were target file.  Doesn't affects links to
directories, which are always entered (use gf key for directories).
.TP
.BI 'fusehome'
type: string
.br
default: "($XDG_DATA_HOME/vifm | $VIFM)/fuse/"
.br
Directory to be used as a root dir for FUSE mounts.  Value of the option can
contain environment variables (in form "$envname"), which will be expanded
(prepend it with a slash to prevent expansion).  The value should expand to an
absolute path.

If you change this option, vifm won't remount anything.  It affects future
mounts only.  See "Automatic FUSE mounts" section below for more information.
.TP
.BI "'gdefault' 'gd'"
type: boolean
.br
default: false
.br
When on, 'g' flag is on for :substitute by default.
.TP
.BI 'grepprg'
type: string
.br
default: "grep \-n \-H \-I \-r %i %a %s"
.br
Specifies format for an external command to be invoked by the :grep command.
The format supports expanding of macros, specific for a particular *prg option,
and %% sequence for inserting percent sign literally.  This option should
include the %i macro to specify placement of "\-v" string when inversion of
results is requested, %a or %A macro to specify placement of arguments passed to
the :grep command and the %s macro to specify placement of list of files to
search in.  If some of the macros are not used, they will be implicitly added
after a space to the value of the 'grepprg' option in the following order: %i,
%a, %s.  Note that when neither %a nor %A are specified, it's %a which is added
implicitly.

Optional %u or %U macro could be used (if both specified %U is chosen) to force
redirection to custom or unsorted custom view respectively.

See 'findprg' option for description of difference between %a and %A.

Example of setup to use ack (http://beyondgrep.com/) instead of grep:
.EX

  set grepprg='ack \-H \-r %i %a %s'

.EE
or The Silver Searcher (https://github.com/ggreer/the_silver_searcher):
.EX

  set grepprg='ag \-\-line-numbers %i %a %s'

.EE

.TP
.BI 'histcursor'
type: set
.br
default: startup,dirmark,direnter
.br
Defines situations when cursor should be moved according to directory
history:
 \- startup  \- on loading file lists during startup
 \- dirmark  \- after navigating to a mark that doesn't specify file
 \- direnter \- on opening directory from a file list

This option has no effect when 'autochpos' is disabled.

Note that the list is not exhaustive and there are other situations when cursor
is positioned automatically.
.TP
.BI "'history' 'hi'"
type: integer
.br
default: 15
.br
Maximum number of stored items in all histories.
.TP
.BI vifm-'hloptions'
type: string list
.br
default: "filehi:onerow"
.br
Configures behaviour of highlighting.

  item        default
  filehi:str  onerow

The "filehi" item specifies which columns of the view get colored according to
file type and its name:
 - path    - highlight columns that display file path, name, root or extension
 - onerow  - same as "path" and also highlight all columns of the current line
 - allrows - highlight all columns of each row
.TP
.BI "'hlsearch' 'hls'"
type: boolean
.br
default: true
.br
Automatically select files that are search matches.
.TP
.BI 'iec'
type: boolean
.br
default: false
.br
Use KiB, MiB, ... suffixes instead of K, M, ... when printing size in
human-friendly format.
.TP
.BI "'ignorecase' 'ic'"
type: boolean
.br
default: false
.br
Ignore case in search patterns (:substitute, / and ? commands), local filter
(but not the rest of filters) and other things detailed in the description
of 'caseoptions'.
.TP
.BI "'incsearch' 'is'"
type: boolean
.br
default: false
.br
When this option is set, search and view update for local filter is be
performed starting from initial cursor position each time search pattern is
changed.
.TP
.BI 'iooptions'
type: set
.br
default: datasync
.br
Controls details of file operations.  The following values are available:
 \- datasync \- periodically synchronize writes on copying files when\
 'syscalls' is set.
              (This makes copying last as long as it takes to actually write
              data to the medium, which is slower than you might expect;
              however, this also prevents system hanging due to filling memory
              with file-system cache.)
 \- fastfilecloning \- perform fast file cloning (copy-on-write), when \
available (available on Linux and btrfs file system).
.TP
.BI "'laststatus' 'ls'"
type: boolean
.br
default: true
.br
Controls if status bar is visible.
.TP
.BI 'lines'
type: integer
.br
default: terminal height on startup
.br
Terminal height in lines.
.TP
.BI 'locateprg'
type: string
.br
default: "locate %a"
.br
Specifies format for an external command to be invoked by the :locate command.
The format supports expanding of macros, specific for a particular *prg option,
and %% sequence for inserting percent sign literally.  This option should
include the %a macro to specify placement of arguments passed to the :locate
command.  If the macro is not used, it will be implicitly added after a space to
the value of this option.

Optional %u or %U macro could be used (if both specified %U is chosen) to force
redirection to custom or unsorted custom view respectively.
.TP
.BI 'mediaprg'
type: string
.br
default: path to bundled script that supports udevil, udisks and udisks2
         (using udisks2 requires python with dbus module installed)
         OS X: path points to a python script that uses diskutil
.br
{only for *nix}
.br
Specifies command to be used to manage media devices.  Used by :media command.

The command can be passed the following parameters:
 - list           -- list media
 - mount {device} -- mount a device
 - unmount {path} -- unmount given mount point

The output of `list` subcommand is parsed in search of lines that start with
one of the following prefixes:
 - device=      - specifies device path (e.g., "/dev/sde")
 - label=       - specifies optional device label (e.g., "Memory card")
 - info=        - specifies arbitrary text to display next to device (by
                  default "[label]" is used, if label is provided)
 - mount-point= - specifies a mount point (can be absent or appear more than
once)

All other lines are ignored.  Each `device=` starts a new section describing a
device which should include two other possible prefixes.

`list` subcommand is assumed to always succeed, while exit code of `mount` and
`unmount` is taken into account to determine whether operation was performed
successfully.
.TP
.BI 'lsoptions'
type: string list
.br
default: ""
.br
scope: local
.br

Configures ls-like view.

  item          used for
  columncount   fixed number of columns to display or 0
  transposed    filling view grid by columns rather than by lines

.TP
.BI 'lsview'
type: boolean
.br
default: false
.br
scope: local
.br
When this option is set, directory view will be displayed in multiple columns
with file names similar to output of `ls \-x` command.  See "ls-like view"
section below for format description.  This option has no effect if 'millerview'
is on.
.TP
.BI 'milleroptions'
type: string list
.br
default: "lsize:1,csize:1,rsize:1,rpreview:dirs"
.br
scope: local
.br

Configures miller view.

  item          default  used for
  lsize:num     0        left column
  csize:num     1        center column (can't be disabled)
  rsize:num     0        right column
  rpreview:str  dirs     right column

*size specifies ratios of columns.  Each ratio is in the range from
0 to 100 and values are adjusted to fit the limits.  Zero disables a
column, but central (main) column can't be disabled.

rpreview specifies what file-system objects should be previewed in the right
column and takes three values: dirs (only directories), files (only files) or
all.  Neither value enables preview of parent directory ("..").

Example of two-column mode which is useful in combination with :view command:
.EX

  set milleroptions=lsize:1,csize:2
.EE

.TP
.BI 'millerview'
type: boolean
.br
default: false
.br
scope: local
.br
When this option is set, directory view will be displayed in multiple
cascading columns.  Ignores 'lsview'.
.TP
.BI 'mintimeoutlen'
type: integer
.br
default: 150
.br
The fracture of 'timeoutlen' in milliseconds that is waited between subsequent
input polls, which affects various asynchronous operations (detecting changes
made by external applications, monitoring background jobs, redrawing UI).  There
are no strict guarantees, however the higher this value is, the less is CPU load
in idle mode.
.TP
.BI "'mouse'"
type: charset
.br
default: ""
.br

Contains a sequence of single-character flags:
 - a - all supported modes (a shorthand for all the rest and future additions)
 - c - command-line mode (includes navigation mode)
 - m - menu mode
 - n - normal mode
 - q - view mode
 - v - visual mode
.TP
.BI 'navoptions'
type: string list
.br
default: "open:dirs"
.br

Configures behaviour of navigation mode.

  item      default
  open:str  dirs

The "open" item specifies what file-system objects should be opened on
Enter and can take two values: dirs (only directories) or all.
.TP
.BI "'number' 'nu'"
type: boolean
.br
default: false
.br
scope: local
.br
Print line number in front of each file name when 'lsview' option is turned off.
Use 'numberwidth' to control width of line number.  Also see 'relativenumber'.
.TP
.BI "'numberwidth' 'nuw'"
type: integer
.br
default: 4
.br
scope: local
.br
Minimal number of characters for line number field.
.TP
.BI "'previewoptions'"
type: string list
.br
default: "graphicsdelay:50000"
.br

Tweaks how previewing is done (in quick view, miller view's column and
view mode).

  item               default  meaning
  graphicsdelay:num  0        delay before drawing graphics (microseconds)
  hardgraphicsclear  unset    redraw screen to get rid of graphics
  maxtreedepth:num   0        max number of levels in preview tree
  toptreestats       unset    show file counts before the tree

graphicsdelay is needed if terminal requires some timeout before it can
draw graphics (otherwise it gets lost).

hardgraphicsclear seems to be necessary to get rid of sixel graphics in some
terminals, where it otherwise lingers.  This can cause flicker on the screen
due to erasure followed by redrawing.

0 for maxtreedepth means "unlimited", 1 will only show selected directory, 2
adds its children, and so forth.

Default value is used when item is missing from the option.
.TP
.BI "'previewprg'"
type: string
.br
default: ""
.br
scope: local
.br

External command to be used instead of preview programs configured via
:fileviewer command.

Example:

.EX
  " always show git log in preview of files inside some repository
  au DirEnter '~/git\-repo/**/*' setl previewprg='git log \-\-color \-\- %c 2>&1'
.EE
.TP
.BI 'quickview'
type: boolean
.br
default: false
.br
Whether quick view (:view) is currently active or not.
.TP
.BI "'relativenumber' 'rnu'"
type: boolean
.br
default: false
.br
scope: local
.br
Print relative line number in front of each file name when 'lsview' option is
turned off.  Use 'numberwidth' to control width of line number.  Various
combinations of 'number' and 'relativenumber' lead to such results:

                        nonumber               number

    norelativenumber   | first                |   1 first
                       | second               |   2 second
                       | third                |   3 third

      relativenumber   |   1 first            |   1 first
                       |   0 second           |2    second
                       |   1 third            |   1 third

.TP
.BI "'rulerformat' 'ruf'"
type: string
.br
default: "%l/%S "
.br
Determines the content of the ruler.  Its minimal width is 13 characters and
it's right aligned.  Following macros are supported:
.br
 %=  \- separation point between left and right aligned halves of the line
.br
 %l  \- file number
.br
 %L  \- total number of files in view (including filtered out ones)
.br
 %x  \- number of files excluded by filters
.br
 %0\- \- old name for %x macro
.br
 %P  \- percentage through file list (All, Top, xx% or Bot), always 3 in length
.br
 %S  \- number of displayed files
.br
 %=  \- separation point between left and right align items
.br
 %%  \- literal percent sign
.br
 %[  \- designates beginning of an optional block
.br
 %]  \- designates end of an optional block
.br

Percent sign can be followed by optional minimum field width.  Add '\-' before
minimum field width if you want field to be right aligned.

Optional blocks are ignored unless at least one macro inside of them is
expanded to a non-empty value.

Example:

.EX
  set rulerformat='%2l-%S%[ +%x%]'
.EE
.TP
.BI 'runexec'
type: boolean
.br
default: false
.br
Run executable file on Enter, l or Right Arrow key.  Behaviour of the last two
depends on the value of the 'lsview' option.
.TP
.BI "'scrollbind' 'scb'"
type: boolean
.br
default: false
.br
When this option is set, vifm will try to keep difference of scrolling positions
of two windows constant.
.TP
.BI "'scrolloff' 'so'"
type: integer
.br
default: 0
.br
Minimal number of screen lines to keep above and below the cursor.  If you
want cursor line to always be in the middle of the view (except at the
beginning or end of the file list), set this option to some large value
(e.g. 999).
.TP
.BI "'sessionoptions' 'ssop'"
sessionoptions ssop
.br
type: set
.br
default: tui,state,tabs,savedirs,dhistory
.br
An equivalent of 'vifminfo' for sessions, uses the same values.  When
both options include the same value, data from session file has higher
priority (data from vifminfo isn't necessarily completely discarded,
instead it's merged with the state of a session the same way state of
multiple instances is merged on exit).
.TP
.BI "'shell' 'sh'"
type: string
.br
default: $SHELL or "/bin/sh" or "cmd" (on MS-Windows)
.br
Full path to the shell to use to run external commands.  On *nix a shell
argument can be supplied.
.TP
.BI "'shellcmdflag' 'shcf'"
type: string
.br
default: "\-c" or "/C" (for cmd.exe on MS-Windows)
.br
Command-line option used to pass a command to 'shell'.  It's used in contexts
where command comes from the user.

Note that using this option to force interactive mode of the shell is most
likely a BAD IDEA.  In general interactive host and interactive child shell
can't share the same terminal session.  You can't even run such a shell in
background.  Consider writing a wrapper for your shell that preloads aliases
and commands without making the shell interactive and ending up using it in
a way it was not meant to be used.

Note that this option is ignored when 'shell' is set to PowerShell due
to the internal use of `\-encodedCommand`.
.TP
.BI "'shortmess' 'shm'"
type: charset
.br
default: "p"
.br
Contains a sequence of single-character flags.  Each flag enables shortening
of some message displayed by vifm in the TUI.  Flags:
.br
 - L \- display only last directory in tab line instead of full path.
.br
 - M \- shorten titles in windows of terminal multiplexers created by vifm \
down to file name instead of using full path.
.br
 - T \- truncate status bar messages in the middle if they are too long to fit \
on the command line.  "..." will appear in the middle.
.br
 - p \- use tilde shortening in view titles.

.TP
.BI "'showtabline' 'stal'"
type: enumeration
.br
default: multiple
.br
Specifies when tab line should be displayed.  Possible values:
 - never    - never display tab line
 - multiple - show tab line only when there are at least two tabs
 - always   - display tab line always

Alternatively 0, 1 and 2 Vim-like values  are also accepted and correspond to
"never", "multiple" and "always" respectively.
.TP
.TP
.BI 'sizefmt'
type: string list
.br
default: "units:iec"
.br
Configures the way size is formatted in human-friendly way.

    item          value         meaning
    units:        iec           Use 1024 byte units (K or KiB, etc.).
                                See 'iec' option.
                  si            Use 1000 byte units (KB, etc.).
    precision:    i > 0         How many fraction digits to consider.
                  {not set}     Precision of 1 for integer part < 10,
                                0 otherwise (provides old behaviour).
    space         {present}     Insert space before unit symbols.
                                This is the default.
    nospace       {present}     Do not insert space before unit symbols.

Numbers are rounded from zero.  Trailing zeros are dropped.

Example:
.EX

  set sizefmt=units:iec,precision:2,nospace
.EE

.TP
.BI 'slowfs'
type: string list
.br
default: ""
.br
only for *nix
.br
A list of mounter fs name beginnings (first column in /etc/mtab or
/proc/mounts) or paths prefixes for fs/directories that work too slow for
you.  This option can be used to stop vifm from making some requests to
particular kinds of file systems that can slow down file browsing.
Currently this means don't check if directory has changed, skip check if
target of symbolic links exists, assume that link target located on slow fs
to be a directory (allows entering directories and navigating to files via gf).
If you set the option to "*", it means all the systems are considered slow
(useful for cygwin, where all the checks might render vifm very slow if there
are network mounts).

Example for autofs root /mnt/autofs:
.EX

  set slowfs+=/mnt/autofs
.EE
.TP
.BI "'smartcase' 'scs'"
type: boolean
.br
default: false
.br
Overrides the ignorecase option if a pattern contains at least one
upper case character.  Only used when 'ignorecase' option is enabled.
.TP
.BI 'sort'
type: string list
.br
default: +name on *nix and +iname on Windows
.br
scope: local
.br
Sets list of sorting keys (first item is primary key, second is secondary key,
etc.):
   [+\-]ext     \- extension of files and directories
   [+\-]fileext \- extension of files only
   [+\-]name    \- name (including extension)
   [+\-]iname   \- name (including extension, ignores case)
   [+\-]type    \- file type (dir/reg/exe/link/char/block/sock/fifo)
   [+\-]dir     \- directory grouping (directory < file)
   [+\-]gid     \- group id (*nix only)
   [+\-]gname   \- group name (*nix only)
   [+\-]mode    \- file type derived from its mode (*nix only)
   [+\-]perms   \- permissions string (*nix only)
   [+\-]uid     \- owner id (*nix only)
   [+\-]uname   \- owner name (*nix only)
   [+\-]nlinks  \- number of hard links (*nix only)
   [+\-]inode   \- inode number (*nix only)
   [+\-]size    \- size
   [+\-]nitems  \- number of items in a directory (zero for files)
   [+\-]groups  \- groups extracted via regexps from 'sortgroups'
   [+\-]target  \- symbolic link target (empty for other file types)
   [+\-]atime   \- time accessed (e.g., read, executed)
   [+\-]ctime   \- time changed (changes in metadata, like mode)
   [+\-]mtime   \- time modified (when file contents is changed)

Note: look for st_atime, st_ctime and st_mtime in "man 2 stat" for more
information on time keys.

\(aq+\(aq means ascending sort for this key, and '\-' means descending sort.

"dir" key is somewhat similar in this regard but it's added implicitly:
when "dir" is not specified, sorting behaves as if it was the first key in
the list.  That's why if one wants sorting algorithm to mix directories and
files, "dir" should be appended to sorting option, for example like this:
.EX

  set sort+=dir

.EE
or
.EX

  set sort=-size,dir
.EE

Value of the option is checked to include dir key and default sorting
key (name on *nix, iname on Windows).  Here is what happens if one of them is
missing:
.RS
.RS 2
.IP \- 2
type key is added at the beginning;
.IP \- 2
default key is added at the end;
.RE
.RE

.RS
all other keys are left untouched (at most they are moved).

This option also changes view columns according to primary sorting key set,
unless 'viewcolumns' option is not empty.
.RE
.TP
.BI 'sortnumbers'
type: boolean
.br
default: false
.br
scope: local
.br
Natural sort of (version) numbers within text.
.TP
.BI 'sortgroups'
type: string
.br
default: ""
.br
scope: local
.br
Sets comma-separated list of regular expressions for group type of sorting.
Double the comma to insert it literally.

The regular expressions are used to extract substrings of file names to serve
as keys for sorting.  It is essentially a way to ignore uninteresting parts
of file names during sorting by name.

Each expression should contain at least one group or its value will be
considered to be always empty.  Also, only the first match of regular
expression is processed.

The first group divides list of files into sub-groups, each of which is then
sorted by substrings extracted using second regular expression and so on
recursively.

Example:
.EX
  set sortgroups=-(todo|done).*
.EE
this would group files with "\-done" in their names and files with "\-todo"
separately.  On ascending sorting, group containing "\-done" would appear
before the other one.
.TP
.BI 'sortorder'
type: enumeration
.br
default: ascending
.br
Sets sort order for primary key: ascending, descending.
.TP
.BI "'statusline' 'stl'"
type: string
.br
default: ""
.br
Determines the content of the status line (the line right above command-line).
Empty string means use same format like in previous versions.  Following macros
are supported:
.RS
.IP \- 2
%N \- line break (increases height of the status line accordingly), ignores
%[ %] blocks
.IP \- 2
%t \- file name (considering value of the 'classify' option)
.IP \- 2
%T - symbolic link target (empty for other filetypes)
.IP \- 2
%f - file name relative to current directory (considers 'classify')
.IP \- 2
%A \- file attributes (permissions on *nix or properties on Windows)
.IP \- 2
%o \- file permissions in octal form on *nix (nothing on Windows)
.IP \- 2
%u \- user name or uid (if it cannot be resolved)
.IP \- 2
%g \- group name or gid (if it cannot be resolved)
.IP \- 2
%s \- file size in human readable format
.IP \- 2
%E \- size of selected files in human readable format, same as %s when no
files are selected, except that it will never show size of ../ in visual mode,
since it cannot be selected
.IP \- 2
%d \- file modification date (uses 'timefmt' option)
.IP \- 2
%D \- path of the other pane for single-pane layout
.IP \- 2
%a - amount of free space available on current FS
.IP \- 2
%c - size of current FS
.IP \- 2
%z - short tips/tricks/hints that chosen randomly after one minute period
.IP \- 2
%{<expr>} - evaluate arbitrary vifm expression '<expr>', e.g. '&sort'
.IP \- 2
%* - resets or applies one of User1..User20 highlight groups; reset happens
when width field is 0 or not specified, one of the groups gets picked
when width field is in the range from 1 to 20
.IP \- 2
all 'rulerformat' macros
.RE

.RS
Percent sign can be followed by optional minimum field width.  Add '\-' before
minimum field width if you want field to be right aligned.

On Windows file properties include the following flags (upper case means flag is
on):
.br
 A \- archive
.br
 H \- hidden
.br
 I \- content isn't indexed
.br
 R \- readonly
.br
 S \- system
.br
 C \- compressed
.br
 D \- directory
.br
 E \- encrypted
.br
 P \- reparse point (e.g. symbolic link)
.br
 Z \- sparse file
.RE

.RS
Example without colors:

.EX
  set statusline="  %t%= %A %10u:%\-7g %15s %20d %{&sort} "
.EE

Example with colors:

.EX
 highlight User1 ctermbg=yellow
 highlight User2 ctermbg=blue ctermfg=white cterm=bold
 set statusline="%1* %-26t %2* %= %1* %A %2* %7u:%-7g %1* %-5s %2* %d "
.EE
.RE

.TP
.BI 'suggestoptions'
type: string list
.br
default:
.br
Controls when, for what and how suggestions are displayed.  The following
values are available:
 - normal          - in normal mode;
 - visual          - in visual mode;
 - view            - in view mode;
 - otherpane       - use other pane to display suggestions, when available;
 - delay[:num]     - display suggestions after a small delay (to do not annoy \
if you just want to type a fast shortcut consisting of multiple keys), num \
specifies the delay in ms (500 by default), 'timeoutlen' at most;
 - keys            - include shortcuts (commands and selectors);
 - foldsubkeys     - fold multiple keys with common prefix;
 - marks           - include marks;
 - registers[:num] - include registers, at most num files (5 by default).
.TP
.BI 'syncregs'
type: string
.br
default: ""
.br
Specifies identifier of group of instances that share registers among each
other.  When several instances of vifm have this option set to identical
value, they automatically synchronize contents of their registers on
operations which use them.
.TP
.BI 'syscalls'
type: boolean
.br
default: false
.br
When disabled, vifm will rely on external applications to perform file-system
operations, otherwise system calls are used instead (much faster and supports
progress tracking).  The option should eventually be removed.  Mostly *nix-like
systems are affected.
.TP
.BI 'tablabel'
type: string
.br
default: ""
.br
When non-empty and 'tabline' isn't set, determines format of the main
part of a single tab's label.

When empty, tab label is set to either tab name for named tabs or to view
title (usually current path) for unnamed tabs.

The following macros can appear in the format (see below for what a flag is):
.RS
.IP \- 2
%C       \- flag of a current tab
.IP \- 2
%N       \- number of the tab
.IP \- 2
%T       \- flag of a tree mode
.IP \- 2
%c       \- description of a custom view
.IP \- 2
%n       \- name of the tab
.IP \- 2
%p       \- path of the view (handles filename modifiers)
.IP \- 2
%t       \- title of the view (affected by 'shortmess' flags)
.IP \- 2
%%       \- literal percent sign
.IP \- 2
%[       \- designates beginning of an optional block
.IP \- 2
%]       \- designates end of an optional block
.IP \- 2
%*, %0*  \- resets highlighting
.IP \- 2
%1*-%20* \- applies one of User1..User20 highlight groups
.RE

.RS
In global tabs the view in bullets above refers to currently active view of that
tab.

Flag macros are a special kind of macros that always expand to an empty value
and are meant to be used inside optional blocks to control their visibility.

Optional blocks are ignored unless at least one macro inside of them is
expanded to a non-empty value or is a set flag macro.

.EX
  " %[(%n)%]        -- optional name of the tab
  " %[              -- optional description of the view
  "   %[%T{tree}%]  -- mark of tree mode
  "   %[{%c}%]      -- description of custom view
  "   @             -- just an extra separator before the path
  ' %]
  " %p:t            -- tail part of view's location
  set tablabel=%[(%n)%]%[%[%T{tree}%]%[{%c}%]@%]%p:t
.EE
.RE
.TP
.BI "'tabline' 'tal'"
type: string
.br
default: ""
.br
When non-empty, determines format of the tab line.  Note that mouse clicks
won't be handled when this option is non-empty.

The following macros can appear in the format:
.RS
.IP \- 2
%*, %0*  \- resets highlighting
.IP \- 2
%1*-%20* \- applies one of User1..User20 highlight groups
.RE
.TP
.BI 'tabprefix'
type: string
.br
default: "[%N:"
.br
Determines prefix of a tab's label.  Formatting is done as for 'tablabel'
option.
.TP
.BI 'tabscope'
type: enumeration
.br
default: global
.br
Picks style of tabs, which defines what a single tab contains.  Possible values:
 - global - tab describes complete UI of two views and how they are arranged
 - pane   - tab is located "inside" a pane and manages it and quick view
.TP
.BI "'tabstop' 'ts'"
type: integer
.br
default: value from curses library
.br
Number of spaces that a Tab in the file counts for.
.TP
.BI 'tabsuffix'
type: string
.br
default: "]"
.br
Determines suffix of a tab's label.  Formatting is done as for 'tablabel'
option.
.TP
.BI 'timefmt'
type: string
.br
default: "%m/%d %H:%M"
.br
Format of time in file list.  See "man 1 date" or "man 3 strftime" for details.
.TP
.BI "'timeoutlen' 'tm'"
type: integer
.br
default: 1000
.br
The time in milliseconds that is waited for a mapped key in case of already
typed key sequence is ambiguous.
.TP
.BI 'title'
type: boolean
.br
default: true when title can be restored, false otherwise
.br
When enabled, title of the terminal or terminal multiplexer's window is
updated according to current location.  Because not all terminals support
setting title, this works only if `$TERM` value matches one of the following
conditions:
 - equals "xterm" or starts with "xterm-"
 - equals "rxvt" or starts with "rxvt-"
 - equals "screen" or starts with "screen-"
 - equals "aterm"
 - equals "Eterm"
.TP
.BI 'trash'
type: boolean
.br
default: true
.br
Use trash directory.  See "Trash directory" section below.
.TP
.BI 'trashdir'
type: string
.br
default:
  on *nix:
    "%r/.vifm-Trash-%u,$XDG_DATA_HOME/vifm/Trash,%r/.vifm-Trash"
    or
    "%r/.vifm-Trash-%u,$VIFM/Trash,%r/.vifm-Trash"
  on Windows:
    "%r/.vifm-Trash,$XDG_DATA_HOME/vifm/Trash"
    or
    "%r/.vifm-Trash,$VIFM/vifm/Trash"
.br
List of trash directory path specifications, separated with commas.
Each list item either defines an absolute path to trash directory or a path
relative to a mount point root when list element starts with "%r/".
Value of the option can contain environment variables (of form "$envname"),
which will be expanded (prepend $ with a slash to prevent expansion).
Environment variables are expanded when the option is set.

On *nix, if element ends with "%u", the mark is replaced with real user ID and
permissions are set so that only that owner is able to use it.
.br
.B Note
that even this setup is not completely secure when combined with "%r/" and it's
overall safer to keep files in home directory, but that implies cost of copying
files between partitions.

When new file gets cut (deleted) vifm traverses each element of the option in
the order of their appearance and uses first trash directory that it was able
to create or that is already writable.

Default value tries to use trash directory per mount point and falls back to
trash common trash directory on failure.

Will attempt to create the directory if it does not exist.  See
"Trash directory" section below.
.TP
.BI "'tuioptions' 'to'"
type: charset
.br
default: "psv"
.br
Each flag configures some aspect of TUI appearance.  The flags are:
.br
p \- when included:
  * file list inside a pane gets additional single character padding on left \
and right sides;
  * quick view and view mode get single character padding.
.br
s \- when included, left and right borders (side borders, hence "s" character)
are visible.
.br
u \- use Unicode characters in the TUI (Unicode ellipsis instead of "...").
.br
v \- vary width of vertical middle border to equalize view sizes.

Each pane title contains the path of the listed directory.  If too large, the
path is truncated on the left for the active pane and on the right for the other
pane.  This can be modified with:

l \- truncation is always on the left.
.br
r \- truncation is always on the right.
.TP
.BI "'undolevels' 'ul'"
type: integer
.br
default: 100
.br
Maximum number of changes that can be undone.  Note that here single file
operation is used as a unit, not operation, i.e. deletion of 101 files will
exceed default limit.
.TP
.BI 'vicmd'
type: string
.br
default: "vim"
.br
Command used to edit files in various contexts.  Ampersand sign at the end
(regardless whether it's preceded by space or not) means backgrounding of
command.

Background flag is ignored in certain context where vifm waits for the editor
to finish.  Such contexts include any command that spawns editor to change
list of file names or a command, with :rename being one example.
`\-f` is also appended to prevent forking in such cases, so the command needs
to handle the flag.

Additionally `+{num}` and `+'call cursor()'` arguments are used to position
cursor when location is known.
.TP
.BI 'viewcolumns'
type: string
.br
default: ""
.br
scope: local
.br
Format string containing list of columns in the view.  When this option is
empty, view columns to show are chosen automatically using sorting keys
(see 'sort') as a base.  Value of this option is ignored if 'lsview' is set.
See "Column view" section below for format description.

An example of setting the options for both panes (note :windo command):
.EX

  windo set viewcolumns=-{name}..,6{size},11{perms}
.EE
.TP
.BI 'vixcmd'
type: string
.br
default: value of 'vicmd'
.br
Same as 'vicmd', but takes precedence over it when running inside a
graphical environment.
.TP
.BI 'vifminfo'
type: set
.br
default: bookmarks,bmarks
.br
Controls what will be saved in the $VIFM/vifminfo file.

   bmarks    \- named bookmarks (see :bmark command)
   bookmarks \- marks, except for special ones like '< and '>
   cs        \- primary color scheme
   dirstack  \- directory stack (overwrites previous stack, unless stack of
               current instance is empty)
   registers \- registers content
   savedirs  \- last visited directory
   state     \- file name and dot filters and terminal multiplexers integration
               state
   tabs      \- global or pane tabs
   tui       \- state of the user interface (sorting, number of windows, quick
               view state, active view)

   chistory  \- command line history
   dhistory  \- directory history
   ehistory  \- expression register history (see description of Ctrl+R =
               in command-line mode)
   fhistory  \- history of local filter (see description of the "=" normal mode
               command)
   mchistory \- command line history of menus
   phistory  \- prompt history
   shistory  \- search history (/ and ? commands)

   commands  \- user defined commands (see :command description) (obsolete)
   filetypes \- associated programs and viewers (obsolete)
   options   \- all options that can be set with the :set command (obsolete)
.TP
.BI 'vimhelp'
type: boolean
.br
default: false
.br
Use vim help format.
.TP
.BI "'wildmenu' 'wmnu'"
type: boolean
.br
default: false
.br
Controls whether possible matches of completion will be shown above the command
line.
.TP
.BI 'wildstyle'
type: enumeration
.br
default: bar
.br
Picks presentation style of wild menu.  Possible values:
 - bar   - one-line with left-to-right cursor
 - popup - multi-line with top-to-bottom cursor
.TP
.BI 'wordchars'
type: string list
.br
default: "1-8,14-31,33-255" (that is all non-whitespace characters)
.br
Specifies which characters in command-line mode should be considered as part
of a word.  Value of the option is comma-separated list of ranges.  If both
endpoints of a range match, single endpoint is enough (e.g. "a" = "a-a").
Both endpoints are inclusive.  There are two accepted forms: character
representing itself or number encoding character according to ASCII table.
In case of ambiguous characters (dash, comma, digit) use numeric form.
Accepted characters are in the range from 0 to 255.  Any Unicode character
with code greater than 255 is considered to be part of a word.

The option affects Alt-D, Alt-B and Alt-F, but not Ctrl-W.  This is
intentionally to allow two use cases:

 \- Moving by WORDS and deletion by words.
 \- Moving by words and deletion by WORDS.

To get the latter use the following mapping:
.EX

  cnoremap <c-w> <a-b><a-d>

.EE
Also used for abbreviations.
.TP
.BI 'wrap'
type: boolean
.br
default: true
.br
Controls whether to wrap text in quick view.
.TP
.BI "'wrapscan' 'ws'"
type: boolean
.br
default: true
.br
Searches wrap around end of the list.
.\" ---------------------------------------------------------------------------
.SH Mappings
.\" ---------------------------------------------------------------------------
A user mapping like `nnoremap lhs rhs` defines a substitution of the
left-hand-side (LHS) with the right-hand-side (RHS) in the input stream.  A
regular mapping (without "nore" in :command's name) expands recognized
sequences in the RHS, while "*noremap" mapping always interprets RHS as if no
user mappings were defined and each key has its builtin meaning.  In most cases
you want to use noremap variant and if your RHS includes LHS, only noremap
variant will work because recursion in a mapping is not allowed.

In order to define a mapping determine in which mode you want to activate it
and use an appropriate "*noremap" :command (e.g., :nnoremap for a
normal mode mapping).  RHS doesn't have to limit itself to the mode in which
the mapping was started and can span multiple modes.

.B Map arguments

LHS of mappings can be preceded by arguments which take the form of special
sequences:
.TP
.BI <silent>
Postpone UI updates until RHS is completely processed.
.TP
.BI <wait>
In case of builtin mapping causing conflict for a user-defined mapping
(e.g., `t` builtin to a partially typed `ta` user-defined mapping), ignore
the builtin mapping and wait for input indefinitely as opposed to
default behaviour of triggering the builtin mapping after a delay defined
by 'timeoutlen'.  Example:

.EX
  nnoremap <wait> tw :set wrap!<cr>
  nnoremap <wait> tn :set number!<cr>
  nnoremap <wait> tr :set relativenumber!<cr>
.EE
.LP

.B Special sequences

Since it's not easy to enter special characters there are several special
sequences that can be used in place of them.  They are:
.TP
.BI <cr>
Enter key.
.TP
.BI <esc>
Escape key.
.TP
.BI <space>
Space key.
.TP
.BI <lt>
Less-than character (<).
.TP
.BI <nop>
provides a way to disable a mapping (by mapping it to <nop>).
.TP
.BI <bs>
Backspace key (see key conflict description below).
.TP
.BI "<tab> <s-tab>"
Tabulation and Shift+Tabulation keys.
.TP
.BI "<home> <end>"
Home/End.
.TP
.BI "<left> <right> <up> <down>"
Arrow keys.
.TP
.BI "<pageup> <pagedown>"
PageUp/PageDown.
.TP
.BI "<del> <delete>"
Delete key.  <del> and <delete> mean different codes, but <delete> is more
common.
.TP
.BI "<insert>"
Insert key.
.TP
.BI "<s-home> <s-end>"
.RE
.BI "<s-left> <s-right> <s-up> <s-down>"
.br
.BI "<s-pageup> <s-pagedown>"
.br
.BI "<s-delete> <s-insert>"
.RS 8
Shift + one of the keys from above, if terminal and its terminfo supports it.
.RE
.TP
.BI "<c-a>,<c-b>,...,<c-z>,<c-[>,<c-\>,<c-]>,<c-^>,<c-_>"
Control + some key (see key conflict description below).
.TP
.BI "<c-@>" "" " {only for *nix}"
.br
Control + Space.
.TP
.BI "<a-a>,<a-b>,...,<a-z>"
.RE
.BI "<m-a>,<m-b>,...,<m-z>"
.br
.BI "<a-0>,<a-1>,...,<a-9>" "" " {only for *nix}"
.br
.BI "<m-0>,<m-1>,...,<m-9>" "" " {only for *nix}"
.RS 8
Alt + some key.
.RE
.TP
.BI "<a-s-a>,<a-s-b>,...,<a-s-z>" "" " {only for *nix}"
.RE
.BI "<s-a-a>,<s-a-b>,...,<s-a-z>" "" " {only for *nix}"
.br
.BI "<m-s-a>,<m-s-b>,...,<m-s-z>" "" " {only for *nix}"
.br
.BI "<s-m-a>,<s-m-b>,...,<s-m-z>" "" " {only for *nix}"
.RS 8
Alt + Shift + some key.
.RE
.TP
.BI "<a-c-a>,<a-c-b>,...,<a-c-z>" "" " {only for *nix}"
.RE
.BI "<m-c-a>,<m-c-b>,...,<m-c-z>" "" " {only for *nix}"
.RS 8
Alt + Ctrl + some key.
.RE
.TP
.BI "<f0> \- <f63>"
functional keys.  These also correspond to keys like <c-f1> and can be
used in their place.
.TP
.BI "<c-f1> \- <c-f12>"
.br
functional keys with Control key pressed.
.TP
.BI "<a-f1> \- <a-f12>, <m-f1> \- <m-f12>"
.br
functional keys with Alt key pressed.
.TP
.BI "<s-f1> \- <s-f12>"
.br
functional keys with Shift key pressed.
.LP
Note that whether and how functional keys work might depend on the terminal
and corresponding terminfo record.
.LP
Note that due to the way terminals process their input, several keyboard keys
might be mapped to single key code, for example:
.RS 2
.IP \- 2
<cr> and <c-m>;
.IP \- 2
<tab> and <c-i>;
.IP \- 2
<c-h> and <bs> and <del>;
.IP \- 2
etc.
.RE

Most of the time they are defined consistently and don't cause surprises, but
<c-h> and <bs> are treated differently in different environments (although they
match each other all the time), that's why they correspond to different keys
in vifm.  As a consequence, if you map <c-h> or <bs> be sure to repeat the
mapping with the other one so that it works in all environments.
Alternatively, provide your mapping in one form and add one of the following:

.EX
  " if mappings with <c-h> in the LHS work
  map <c-h> <bs>
  " if mappings with <bs> in the LHS work
  map <bs> <c-h>
.EE

Also sometimes neither of them might work and it's <del> key which corresponds
to your backspace (don't mind the name).

.B Whitespace

vifm removes whitespace characters at the beginning and end of commands.
That's why you may want to use <space> at the end of rhs in mappings.  For
example:

.EX
  cmap <f1> man<space>
.EE

will put "man " in line when you hit the <f1> key in the command line mode.
.\" ---------------------------------------------------------------------------
.SH Expression syntax
.\" ---------------------------------------------------------------------------
Supported expressions is a subset of what VimL provides.

Expression syntax summary, from least to most significant:

expr1      expr2
           expr2 || expr2 ..       logical OR

expr2      expr3
           expr3 && expr3 ..       logical AND

expr3      expr4
           expr4 == expr4          equal
           expr4 != expr4          not equal
           expr4 >  expr4          greater than
           expr4 >= expr4          greater than or equal
           expr4 <  expr4          smaller than
           expr4 <= expr4          smaller than or equal

expr4      expr5
           expr5 + expr5 ..        number addition
           expr5 - expr5 ..        number subtraction

expr5      expr6
           expr6 . expr6 ..        string concatenation

expr6      expr7
           \- expr6                 unary minus
           + expr6                 unary plus
           ! expr6                 logical NOT

expr7      number                  number constant
           "string"                string constant, \\ is special
           'string'                string constant, ' is doubled
           &option                 option value
           $VAR                    environment variable
           v:var                   builtin variable
           function(expr1, ...)    function call
           (expr1)                 nested expression

".." indicates that the operations in this level can be concatenated.

expr1
.br
-----
.br
expr2 || expr2

Arguments are converted to numbers before evaluation.

Result is non-zero if at least one of arguments is non-zero.

It's right associative and with short-circuiting, so sub-expressions are
evaluated from left to right until result of whole expression is determined
(i.e., until first non-zero) or end of the expression.

expr2
.br
-----
.br
expr3 && expr3

Arguments are converted to numbers before evaluation.

Result is non-zero only if both arguments are non-zero.

It's right associative and with short-circuiting, so sub-expressions are
evaluated from left to right until result of whole expression is determined
(i.e., until first zero) or end of the expression.

expr3
.br
-----
.br
expr4 {cmp} expr4

Compare two expr4 expressions, resulting in a 0 if it evaluates to false or 1
if it evaluates to true.

equal                   ==
.br
not equal               !=
.br
greater than            >
.br
greater than or equal   >=
.br
smaller than            <
.br
smaller than or equal   <=

Examples:

.EX
  'a' ==  'a'         == 1
  'a' >   'b'         == 1
  'a' ==  'b'         == 0
  '2' >   'b'         == 0
   2  >   'b'         == 1
   2  >   '1b'        == 1
   2  >   '9b'        == 0
  \-1  == \-'1'         == 1
   0  ==  '\-\-1'       == 1
.EE

expr4
.br
-----
.br
expr5 + expr5 ..     number addition
expr5 - expr5 ..     number subtraction

Examples:

.EX
  1 + 3 - 3          == 1
  1 + '2'            == 3
.EE

expr5
.br
-----
.br
expr6 . expr6 ..     string concatenation

Examples:

.EX
  'a' . 'b'           == 'ab'
  'aaa' . '' . 'c'    == 'aaac'
.EE

expr6
.br
-----
.br

\- expr6              unary minus
.br
+ expr6              unary plus
.br
! expr6              logical NOT

For '\-' the sign of the number is changed.
.br
For '+' the number is unchanged.
.br
For '!' non-zero becomes zero, zero becomes one.

A String will be converted to a Number first.

These operations can be repeated and mixed.  Examples:

.EX
   \-\-9                == 9
  \-\-\-9                == \-9
   \-+9                == 9
   !\-9                == 0
   !''                == 1
  !'x'                == 0
   !!9                == 1
.EE

expr7
.br
-----
.br

number               number constant
.br
-----
.br

Decimal number.  Examples:

.EX
  0                   == 0
  0000                == 0
  01                  == 1
  123                 == 123
  10000               == 10000
.EE

string
.br
------
.br
"string"             string constant

Note that double quotes are used.

A string constant accepts these special characters:
.br
  \\b      backspace <bs>
.br
  \\e      escape <esc>
.br
  \\n      newline
.br
  \\r      return <cr>
.br
  \\t      tab <tab>
.br
  \\\\      backslash
.br
  \\"      double quote
.br

Examples:

.EX
  "\\"Hello,\\tWorld!\\""
  "Hi,\\nthere!"
.EE

literal-string
.br
--------------
.br
\(aqstring\(aq             string constant

Note that single quotes are used.

This string is taken as it is.  No backslashes are removed or have a special
meaning.  The only exception is that two quotes stand for one quote.

Examples:

.EX
  'All\\slashes\\are\\saved.'
  'This string contains doubled single quotes ''here'''
.EE

option
.br
------
.br
&option               option value (local one is preferred, if exists)
&g:option             global option value
&l:option             local option value

Examples:

.EX
  echo 'Terminal size: '.&columns.'x'.&lines
  if &columns > 100
.EE

Any valid option name can be used here (note that "all" in ":set all" is a
pseudo option).  See ":set options" section above.

environment variable
.br
--------------------
.br
$VAR                  environment variable

The String value of any environment variable.  When it is not defined, the
result is an empty string.

Examples:

.EX
  'This is my $PATH env: ' . $PATH
  'vifmrc at ' . $MYVIFMRC . ' is used.'
.EE

builtin variable
.br
--------------------
.br
v:var                 builtin variable

Information exposed by vifm for use in scripting.

.B "v:count"
.br
  count passed to : command, 0 by default.  Can be used in mappings to pass\
the count to a different command.
.br
.B "v:count1"
.br
  same as v:count, but 1 by default.
.br
.B "v:jobcount"
.br
  number of active jobs (as can be seen in the :jobs menu).
.br
.B "v:session"
.br
  name of the current session or empty string.
.br
.B "v:servername"
.br
  See below.

function call
.br
-------------
.br
function(expr1, ...)  function call

See "Functions" section below.

Examples:

.EX
  "'" . filetype('.') . "'"
  filetype('.') == 'reg'
.EE

expression nesting
.br
------------------
.br
(expr1)               nested expression

Groups any other expression of arbitrary complexity enforcing order in which
operators are applied.

.\" ---------------------------------------------------------------------------
.SH Functions
.\" ---------------------------------------------------------------------------
USAGE                 RESULT      DESCRIPTION

chooseopt({opt})      String      Queries choose parameters passed on startup.
.br
escape({string}, {chars})
                      String      Returns {string} after escaping {chars} in it.
.br
executable({expr})    Integer     Checks whether {expr} command available.
.br
expand({expr})        String      Expands special keywords in {expr}.
.br
extcached({cache}, {path}, {extcmd})
                      String      Caches output of {extcmd} per {cache} and
                                  {path} combination.
.br
filereadable({path})  Integer     Checks whether {expr} points to a
                                  non-directory that can be read.
.br
filetype({fnum} [, {resolve}])
                      String      Returns file type from position.
.br
fnameescape({expr})   String      Escapes {expr} for use in a :command.
.br
getpanetype()         String      Returns type of current pane.
.br
has({property})       Integer     Checks whether instance has {property}.
.br
input({prompt} [, {initial} [, {completion}]])
.br
                      String      Prompts user for an input on command-line.
.br
layoutis({type})      Integer     Checks whether layout is of type {type}.
.br
paneisat({loc})       Integer     Checks whether current pane is at {loc}.
.br
system({command})     String      Executes shell command and returns its output.
.br
tabpagenr([{arg}])    Integer     Returns number of current or last tab.
.br
term({command})       String      Like system(), but for interactive commands.

.BI chooseopt({opt})

Retrieves values of options related to file choosing.  {opt} can be one of:
    files      returns argument of \-\-choose-files or empty string
    dir        returns argument of \-\-choose-dir or empty string
    cmd        returns argument of \-\-on-choose or empty string
    delimiter  returns argument of \-\-delimiter or the default one (\\n)

.BI escape({string}, {chars})

Escapes all occurrences of {chars} in the {string} by prepending slash (`\`) to
them.  Note that the slash itself is not escaped unless it appears in {chars}.

.BI executable({expr})

If {expr} is absolute or relative path, checks whether path destination exists
and refers to an executable, otherwise checks whether command named {expr} is
present in directories listed in $PATH.  Checks for various executable
extensions on Windows.  Returns boolean value describing result of the check.

Example:

.EX
  " use custom default viewer script if it's available and installed
  " in predefined system directory, otherwise try to find it elsewhere
  if executable('/usr/local/bin/defviewer')
      fileview * /usr/local/bin/defviewer %c
  else
      if executable('defviewer')
          fileview * defviewer %c
      endif
  endif
.EE

.BI expand({expr})

Expands environment variables and macros in {expr} (in this order).  Returns
a string.  See "Command macros" section above.
.br

Examples:

.EX
  " percent sign
  :echo expand('%%')
  " the last part of directory name of the other pane
  :echo expand('%D:t')
  " $PATH environment variable (same as `:echo $PATH`)
  :echo expand('$PATH')
  " full path to the current file with backslashes
  :echo expand('%c:p:gs!/!\\!')
.EE

.BI "extcached({cache}, {path}, {extcmd})"

Caches value of {extcmd} external command automatically updating it as
necessary based on monitoring change date of a {path}.  The cache is
invalidated when file or its meta-data is updated.  A single path can have
multiple caches associated with it.

{path} value is normalized, but symbolic links in it aren't resolved.

Example:

.EX
  " display number and size of blocks actually used by a file or directory
  set statusline+=" Uses: %{ extcached('uses',
                                     \\ expand('%c'),
                                     \\ expand('stat \-\-format=%%bx%%B %c')) }"
.EE

.BI filereadable({path})

Checks whether {path} exists and refers to a non-directory entry and its
permissions allow reading.  Returns boolean value describing result of the
check.

.BI "filetype({fnum} [, {resolve}])"

The result is a string, which represents file type and is one of the list:
    exe     executables
    reg     regular files
    link    symbolic links
    broken  broken symbolic links (appears only when resolving)
    dir     directories
    char    character devices
    block   block devices
    fifo    pipes
    sock    *nix domain sockets
    ?       unknown file type (should not normally happen) or
            non-file (pseudo-entries in compare view)

The result can also be an empty string in case of invalid argument.

Parameter {fnum} can have following values:
    \- '.' to get type of file under the cursor in the active pane
    \- numerical value base 1 to get type of file on specified line number

Optional parameter {resolve} is treated as a boolean and specifies whether
symbolic links should be resolved.

.BI fnameescape({expr})

Escapes parameter to make it suitable for use as an argument of a :command.
List of escaped characters includes %, which is doubled.

Usage example:

.EX
  " navigate to most recently modified file in current directory
  execute 'goto' fnameescape(system('ls \-t | head \-1'))
.EE

.BI getpanetype()

Retrieves string describing type of current pane.  Possible return values:
    regular      regular file listing of some directory
    custom       custom file list (%u)
    very-custom  very custom file list (%U)
    tree         tree view
    compare      compare view

.BI has({property})

Allows examining internal parameters from scripts to e.g. figure out
environment in which application is running.  Returns 1 if property is
true/present, otherwise 0 is returned.  Currently the following properties
are supported (anything else will yield 0):
    unix  runs in *nix-like environment (including Cygwin)
    win   runs on Windows
    #*    whether particular Lua handler exists
.br

Usage example:

.EX
  " skip user/group on Windows
  if !has('win')
      let $RIGHTS = '%10u:%-7g '
  endif

  execute 'set' 'statusline="  %t%= %A '.$RIGHTS.'%15E %20d  "'
.EE

.BI "input({prompt} [, {initial} [, {completion}]])"

Creates a command-line prompt to obtain user's input.  Initial value can
be supplied as an optional second parameter, otherwise empty string is used.

Optional third parameter specifies kind of completion, which can be one of:
    dir   paths to directories
    file  paths to files and directories
    ""    (empty string, default) no completion

Note that behaviour differs from Vim where executing a mapping like
.EX
  nnoremap j :echo input('text: ')<cr>input
.EE
leaves you in a prompt mode with "input" typed in.  Vifm will wait for leaving
the prompt and then continue executing the mapping.

Usage example:

.EX
  nnoremap ,m : let $DIR_NAME = input('mkdir: ', '', 'dir')
             \\| if $DIR_NAME != ''
             \\|     execute 'mkdir' fnameescape($DIR_NAME)
             \\| endif<cr>
.EE

.BI layoutis({type})

Checks whether current interface layout is {type} or not, where {type} can be:
    only    single-pane mode
    split   double-pane mode (either vertical or horizontal split)
    vsplit  vertical split (left and right panes)
    hsplit  horizontal split (top and bottom panes)
.br

Usage example:

.EX
  " automatically split vertically before enabling preview
  :nnoremap w :if layoutis('only') | vsplit | endif | view!<cr>
.EE

.BI paneisat({loc})

Checks whether position of active pane in current layout matches one of the
following locations:
    top     pane reaches top border
    bottom  pane reaches bottom border
    left    pane reaches left border
    right   pane reaches right border
.br

.BI system({command})

Runs the command in shell and returns its output (joined standard output and
standard error streams).  All trailing newline characters are stripped to
allow easy appending to command output.  Ctrl-C should interrupt the command.

Use this function to consume output of external commands that don't require
user interaction and term() for interactive commands that make use of terminal
and are capable of handling stream redirection.

Usage example:

.EX
  " command to enter .git/ directory of git-repository (when ran inside one)
  command! cdgit :execute 'cd' fnameescape(system('git rev-parse \-\-git-dir'))
.EE

.BI tabpagenr([{arg}])

When called without arguments returns number of current tab page base one.

When called with "$" as an argument returns number of the last tab page base
one, which is the same as number of tabs.

.BI term({command})

Same as system() function, but user interface is shutdown during the execution
of the command, which makes sure that external interactive applications won't
affect the way terminal is used by vifm.

Usage example:

.EX
  " command to change directory by picking it via fzf
  command! fzfcd :execute 'cd'
                        \\ fnameescape(term('find \-type d | fzf 2> /dev/tty'))
.EE
.\" ---------------------------------------------------------------------------
.SH Menus and dialogs
.\" ---------------------------------------------------------------------------
When navigating to some path from a menu there is a difference in the end
location depending on whether the path has a trailing slash.  Files normally
don't have trailing slashes so "file/" won't work.  In case of directories
there are two options: navigate to a directory or inside of it.  To allow both
use cases, the first action is taken for "dir" and the second one for "dir/".

.B Menu commands

.BI :range
navigate to a menu line.
.TP
.BI "                                         :chistory"
.TP
.BI :chi[story]
display menu of saved menus.  See "Menus and dialogs" section for controls,
also see "Menus history" section.
.TP
.BI "                                         :colder"
.TP
.BI :col[der]
load an older navigation menu if there is one.
See also "Menus history" section.
.TP
.BI "                                         :cnewer"
.TP
.BI :cnew[er]
load a newer navigation menu if there is one.
See also "Menus history" section.
.TP
.BI "                                         :find"
.TP
.BI :fin[d]
the behaviour matches that of non-menu :find except that no range is
accepted.  If active view contained selection before entering menu mode,
the command takes it into account.
.TP
.BI "                                         :grep"
.TP
.BI :gr[ep]
the behaviour matches that of non-menu :grep except that no range is
accepted.  If active view contained selection before entering menu mode,
the command takes it into account.
.LP
.B :exi[t][!]
.br
.B :q[uit][!]
.br
.B :x[it][!]
.RS
leave the menu mode.
.RE
.TP
.BI :noh[lsearch]
reset search match highlighting.
.TP
.BI ":w[rite] {path}"
write all menu lines into the file specified by {path}.
.LP
.B Common keys of all menus and dialogs

.TP
.B "j, Ctrl-N"
move the cursor down.
.TP
.B "k, Ctrl-P"
move the cursor up.
.TP
.B "Enter"
select and usually close menu/dialog.
.TP
.B "Ctrl-L"
redraw menu/dialog.
.br
.LP
.B Escape, Ctrl-C
.br
.B ZZ, ZQ
.br
.B q
.RS
close menu/dialog.
.RE

.TP
.B Common keys of all menus
.LP
.B "Ctrl-B, Ctrl-F"
.br
.B "Ctrl-D, Ctrl-U"
.br
.B "Ctrl-E, Ctrl-Y"
.br
.B "/, ?"
.br
.B "n, N"
.br
.B "[count]G, [count]gg"
.br
.B "H, M, L"
.br
.B "zb, zt, zz"
.RS
these keys have the same meaning as in normal mode.
.RE

.TP
.B zh
scroll menu items [count] characters to the right.
.TP
.B zl
scroll menu items [count] characters to the left.
.TP
.B zH
scroll menu items half the screen width to the right.
.TP
.B zL
scroll menu items half the screen width to the left.
.LP

.TP
.B :
enter command line mode for menus.
.TP
.B b
interpret content of the menu as a list of paths and use it to create custom
view in place of the previously active pane.  See "Custom views" section below.
.TP
.B B
same as above, but create an unsorted view.
.TP
.B v
load menu content into quickfix list of an editor (Vim compatible by
assumption) or, if the list doesn't have separators after file names (colons),
open each line as a file name.

.LP
.B Navigation menus

.br
This applies to the following menus:
 - :bmarks, :bmgo
 - :find
 - :grep
 - :locate
 - user menu with navigation (%M macro)

.TP
.B gf
navigate previously active view to currently selected item.  Leaves menu
mode except for :grep menu.  Pressing Enter or l has the same effect.
.TP
.B e
open selected path in an editor, stays in menu mode.
.TP
.B c
leave menu preserving file selection and insert file name after :! in
command-line mode.  Does nothing in :bmarks and :bmgo.
.LP
Note that each of these menus can have additional keys, see below.

.B History menus (:history *)
.br
.B ==========================

.TP
.B Command-line history menu
.TP
.B "Enter, l"
execute the item as a command-line command, search query or local filter.
.TP
.B c
leave the menu preserving file selection and insert the item into the
command-line of appropriate kind.

.LP
.B Directory history menu
.TP
.B "Enter, l"
navigate into the selected directory.

.TP
.B Menu commands history menu
.TP
.B "Enter, l"
execute command without leaving the menu.
.TP
.B c
insert menu item into command-line for editing.

.LP
.B Other menus
.br
.B ===========

.B Apropos (:apropos) menu
.TP
.B "Enter, l"
run man on a given topic.  Menu won't be closed automatically to allow
viewing several pages one by one.

.LP
.B Bookmarks (:bmarks, :bmgo) menu
.TP
.B "Enter, l"
navigate to the selected bookmark.
.TP
.B dd
remove bookmark under the cursor.
.LP
See above for "gf" and "e" keys.

.B Command-line mode abbreviations (:cabbrev) menu
.TP
.B dd
remove abbreviation under the cursor.

.LP
.B Color scheme (:colorscheme) menu
.TP
.B "Enter, l"
apply selected colorscheme as if ":colorscheme <name>" was executed on the
command-line.

.LP
.B Commands (:command) menu
.TP
.B "Enter, l"
execute the command with empty arguments (%a macro).
.TP
.B dd
remove command under the cursor.
.TP
.B c
leave menu preserving file selection and insert right-hand side of selected
command into the command-line.

.LP
.B Directory stack (:dirs) menu
.TP
.B "Enter, l"
rotate the stack to put selected directory pair at the top.

.LP
.B File (:file) menu
.LP
Commands from vifmrc or typed on the command-line are displayed above an empty
line if it's present.  All commands below the empty line come from .desktop
files.

Commands detected as available have "[present]" to the left of them.

.TP
.B "Enter, l"
run selected command (regardless whether it was detected to be present or not).
.TP
.B c
leave menu preserving file selection and insert command after :! in the
command-line mode.

.LP
.B Grep (:grep) menu
.TP
.B "Enter, l"
open file in an editor set by 'vicmd' at given line number.  Menu won't be
closed automatically to allow viewing more than one result.

.LP
See above for "gf", "e" and "c" keys.

.B Jobs (:jobs) menu
.TP
.B dd
request cancellation of job under the cursor.  The job won't be removed
from the list, but marked as being cancelled (if cancellation was
successfully requested).  A message will pop up if the job has already
stopped.  Note that on Windows cancelling external programs like this might
not work, because their parent shell doesn't have any windows.
.TP
.B e
display errors of selected job if any were collected.  They are
displayed in a new menu, but you can return to jobs menu by pressing h.
.TP
.B r
reload the list of jobs.

.LP
.B Marks (:marks) menu
.TP
.B "Enter, l"
navigate to selected mark.
.TP
.B dd
remove mark under the cursor.

.LP
.B Media (:media) menu
.TP
.B "Enter, l"
behaviour is different for different kinds of lines:
 - mount an unmounted device
 - navigate to the first mount point of a mounted device
 - navigate to a mount point
 - do nothing for "not mounted" or an empty line
.TP
.B r
reload the list.
.TP
.B m
mount/unmount device (cursor should be positioned on lines under device
information).
.TP
.B [
put cursor on the previous device.
.TP
.B ]
put cursor on the next device.

.LP
.B Menus history (:chistory) menu
.TP
.B "Enter, l"
load selected menu.

.LP
.B Plugins (:plugins) menu
.TP
.B e
display log messages of selected plugin if any were collected.  They are
displayed in a new menu, but you can return to plugins menu by pressing h.
.TP
.B gf
navigate previously active view to the location of selected plugin.
Leaves the menu mode.

.LP
.B Trash (:lstrash) menu
.TP
.B r
restore a file from the trash to its original location.
.TP
.B dd
delete file under the cursor.

.LP
.B Trashes (:trashes) menu
.TP
.B "Enter, l"
navigate into current trash directory.
.TP
.B dd
start emptying selected trash in background.

.LP
.B Undolist (:undolist) menu
.TP
.B r
reset undo position to group under the cursor.

.LP
.B User menu without navigation (%m macro)
.TP
.B c
leave menu preserving file selection and insert whole line after :! in
command-line mode.

.LP
.B Volumes (:volumes) menu
.br
only for MS-Windows
.TP
.B "Enter, l"
navigate into the root of the selected drive.

.LP
.B Dialog-specific operations
.br
.B ==========================

.B Attributes (permissions or properties) dialog
.TP
.B "h, Space"
check/uncheck.
.TP
.B q
close the dialog.
.TP
.B r
(*nix only) (un)set all read bits.
.TP
.B w
(*nix only) (un)set all write bits.
.TP
.B x
(*nix only) (un)set all execute bits.
.TP
.B s
(*nix only) (un)set all special (SetUID, SetGID, Sticky) bits.
.TP
.B e
(*nix only) (un)set recursion (for directories only).

.LP
Possible item states:
.IP \- 2
* \- checked flag.
.IP \- 2
X \- selected files have inconsistent value of this flag.
.IP \- 2
d (*nix only) \- (only for execute flags) means u\-x+X, g\-x+X or o\-x+X \
argument for the chmod program.  If you're not on OS X and want to remove \
execute permission bit from all files, but preserve it for directories, set \
all execute flags to 'd' and check \(aqSet Recursively\(aq flag.
.LP

.B Fileinfo (Ctrl-G) dialog
.TP
.B "Enter, q"
close the dialog.

.LP
.B Sort (:sort) dialog
.TP
.B "h, Space"
switch ascending/descending order.
.TP
.B q
close the dialog.

.LP
There is also a shortcut per sorting key (drawn on the dialog).

.\" ---------------------------------------------------------------------------
.SH Menus history
.\" ---------------------------------------------------------------------------
Menus are often used to present results of operations (like finding or grepping
files).  Once closed they can be recreated by repeating a command, but it
might be inconvenient (require changing directory, finding the command and
possibly finding position in a menu) and time consuming to re-run the
operation.  To make referring to older menus possible, vifm stores up to 10
last such menus and provides means for recalling them using familiar set of
Vim commands.

As already hinted above, this doesn't apply to every menu because things like
:version or :commands rely solely on internal data and don't
need to be saved.  Only menus that are derived from external sources and
support navigation (like via gf) are remembered.

.B Navigating through history

Re-opening the last viewed menu of relevant type is done by running
:copen command.  Once opened :colder can be used to view older
menus and :cnewer to view newer ones.

Closing a menu after moving through the history remembers the position such
that running :copen again will open the last viewed menu and allow to
continue exploring history in both directions.

The history always contains menus sorted from oldest to newest.  After opening
more than 10 menus the oldest one is likely to be forgotten.  It's not
guaranteed to happen because after viewing an older menu new entry replaces
all more recent ones.  As an example, assume the history looks like this:

.EX
 1. :find 1
 2. :find 2
    ...
 8. :find 8 (current element)
 9. :find 9
10. :find 10
.EE

Running `:find 11` results in:

.EX
 1. :find 1
 2. :find 2
    ...
 8. :find 8
 9. :find 11 (current element)
10. None
.EE

For convenience, :colder and :cnewer can be used any time
you're in a menu, not just after :copen.  :cnewer will work only if
current menu can't be saved and you've moved back in menus history before.
Behaviour of :colder is like this:
 - if current menu can be stashed, behave as :quit, :copen, :colder \
sequence (current menu is stashed the same way as described above)
 - if current menu can't be stashed, behave as :quit, :copen sequence

.B Viewing history

In order to avoid enumerating menus looking for the matching one,
:chistory command can be used to get an overview of saved menus, maybe search
for one and then open it.  The command is also available in menu mode.

.B Related topics

Commands: :chistory, :copen
Menu commands: :chistory, :colder, :cnewer
.\" ---------------------------------------------------------------------------
.SH Custom views
.\" ---------------------------------------------------------------------------
.B Definition

Normally file views contain list of files from a single directory, but
sometimes it's useful to populate them with list of files that do not belong
to the same directory, which is what custom views are for.

.B Presentation

Custom views are still related to directory they were in before custom list
was loaded.  Path to that directory (original directory) can be seen in the
title of a custom view.

Files in same directory have to be named differently, this doesn't hold for
custom views thus seeing just file names might be rather confusing.  In order
to give an idea where files come from and when possible, relative paths to
original directory of the view is displayed, otherwise full path is used
instead.

Custom views normally don't contain any inexistent files.

.B Navigation

Custom views have some differences related to navigation in regular views.

gf - acts similar to gf on symbolic links and navigates to the file at its real
     location.

h - go to the closest parent node in the tree view; otherwise, return to the
    original directory.

gh - return to the original directory.

Opening ".." entry also causes return to the original directory.

.B History

Custom list exists only while it's visible, once left one can't return to it,
so there is no appearances of it in any history.

.B Filters

Only local filter affects content of the view.  This is intentional,
presumably if one loads list, precisely that list should be displayed (except
for inexistent paths, which are ignored).

.B Search

Although directory names are visible in listing, they are not searchable.  Only
file names are taken into account (might be changed in future, searching whole
lines seems quite reasonable).

.B Sorting

Contrary to search sorting by name works on whole visible part of file path.

.B Highlight

Whole file name is highlighted as one entity, even if there are directory
elements.

.B Updates

Reloads can occur, though they are not automatic due to files being scattered
among different places.  On a reload, inexistent files are removed and meta-data
of all other files is updated.

Once custom view forgets about the file, it won't add it back even if it's
created again.  So not seeing file previously affected by an operation, which
was undone is normal.

.B Operations

All operations that add files are forbidden for custom views.  For example,
moving/copying/putting files into a custom view doesn't work, because it doesn't
make much sense.

On the other hand, operations that use files of a custom view as a source
(e.g. yanking, copying, moving file from custom view, deletion) and operations
that modify names are all allowed.
.\" ---------------------------------------------------------------------------
.SH Compare views
.\" ---------------------------------------------------------------------------
.B Kinds

:compare can produce four different results depending on arguments:
 \- single compare view (ofone and either listall or listdups);
 \- single custom view (ofone and listunique);
 \- two compare views (ofboth and either listall or listdups);
 \- two custom views (ofboth and listunique).

The first two display files of one file system tree.  Here duplicates are
files that have at least one copy in the same tree.  The other two kinds of
operation compare two trees, in which duplicates are files that are found in
both trees.

Lists of unique files are presented in custom views because there is no file
grouping to preserve as all file ids are guaranteed to be distinct.

.B Creation

Arguments passed to :compare form seven categories each with its own
prefix and is responsible for particular property of operation.

Which files to compare:
 \- ofboth \- compares files of two panes against each other;
 \- ofone  \- compares files of the same directory.

How files are compared:
 \- byname     \- by their name only;
 \- bysize     \- only by their size;
 \- bycontents \- by data they contain (combination of size and hash of \
small chunk of contents is used as first approximation, so don't worry too \
much about large files; non-regular files like pipes are assumed to be empty).

Which files to display:
 \- listall    \- all files;
 \- listunique \- unique files only;
 \- listdups   \- only duplicated files.

How results are grouped (has no effect if "ofone" specified):
 \- groupids   \- files considered identical are always adjacent in output;
 \- grouppaths \- file system ordering is preferred (this also enables \
displaying identically named files as mismatches).

Which files to omit:
 \- skipempty \- ignore empty files.

Comparison tweaks:
 \- withicase \- ignore case when comparing file names/paths;
 \- withrcase \- respect case when comparing file names/paths.

Which results to show (has no effect for single pane comparison):
 \- showidentical   \- toggle showing of identical files;
 \- showdifferent   \- toggle showing of different files;
 \- showuniqueleft  \- toggle showing of unique top/left files;
 \- showuniqueright \- toggle showing of unique bottom/right files.

Each argument can appear multiple times, the rightmost one of the group is
considered.  Arguments alter default behaviour instead of substituting it.

When neither "withicase" nor "withrcase" is specified, case depends on the
running operating system and the file system on which the files are located.

.B Examples

The defaults corresponds to probably the most common use case of comparing
files in two trees with grouping by paths, so the following are equivalent:

.EX
  :compare
  :compare bycontents grouppaths
  :compare bycontents listall ofboth grouppaths
  :compare showidentical showdifferent showuniqueleft showuniqueright
.EE

Another use case is to find duplicates in the current sub-tree:

.EX
  :compare listdups ofone
.EE

The following command lists files that are unique to each pane:

.EX
  :compare listunique
.EE

.B Look

The view can't switch to ls-like view as it's unable to display diff-like
data.

Comparison views have second column displaying id of the file, files with same
id are considered to be equal.  The view columns configuration is predefined.

The status bar displays only the initial result of the comparison and can be
out of date.

.B Behaviour

When two views are being compared against each other the following changes to
the regular behaviour apply:
 \- views are scrolled synchronously (as if 'scrollbind' was set);
 \- views' cursors are synchronized;
 \- local filtering is disabled (its results wouldn't be meaningful);
 \- zd excludes groups of adjacent identical files, 1zd gives usual behaviour;
 \- sorting is permanently disabled (ordering is fixed);
 \- removed files hide their counter pairs;
 \- exiting one of the views terminates the other immediately;
 \- renaming files isn't blocked, but isn't taken into account and might \
require regeneration of comparison;
 \- entries which indicate absence of equivalent file have empty names and can \
be matched as such;
 \- when unique files of both views are listed custom views can be empty, this \
absence of unique files is stated clearly.

One compare view has similar properties (those that are applicable for single
pane).

Files are gathered in this way:
 \- recursively starting at current location of the view;
 \- dot files are excluded if view hides them at the moment of comparison, file
name filters are obeyed as well so you end up comparing what you see;
 \- directories are not taken into account;
 \- symbolic links to directories are ignored.
.\" ---------------------------------------------------------------------------
.SH Startup
.\" ---------------------------------------------------------------------------
On startup vifm determines several variables that are used during execution.
They are determined in the order they appear below.

On *nix systems $HOME is normally present and used as is.
On Windows systems vifm tries to find correct home directory in the following
order:
 \- $HOME variable;
 \- $USERPROFILE variable (on Windows only);
 \- a combination of $HOMEDRIVE and $HOMEPATH variables (on Windows only).

vifm tries to find correct configuration directory by checking the following
places:
 \- $VIFM variable;
 \- parent directory of the executable file (on Windows only);
 \- $HOME/.vifm directory;
 \- $APPDATA/Vifm directory (on Windows only);
 \- $XDG_CONFIG_HOME/vifm directory;
 \- $HOME/.config/vifm directory.

vifm tries to find correct configuration file by checking the following places:
 \- $MYVIFMRC variable;
 \- vifmrc in parent directory of the executable file (on Windows only);
 \- $VIFM/vifmrc file.
.\" ---------------------------------------------------------------------------
.SH Configure
.\" ---------------------------------------------------------------------------
See "Startup" section above for the explanations on $VIFM and $MYVIFMRC.

The vifmrc file contains commands that will be executed on vifm startup.  There
are two such files: global and local.  Global one is at
{prefix}/etc/vifm/vifmrc, see $MYVIFMRC variable description for the search
algorithm used to find local vifmrc.  Global vifmrc is loaded before the local
one, so that the later one can redefine anything configured globally.

Use vifmrc to set settings, mappings, filetypes etc.  To use multi line commands
precede each next line with a slash (whitespace before slash is ignored, but all
spaces at the end of the lines are saved).  For example:

.EX
  set
      \\smartcase
.EE

equals "setsmartcase".  When

.EX
  set<space here>
      \\ smartcase
.EE

equals "set  smartcase".

The $VIFM/vifminfo file contains generic state of the application.  You can
control what is stored in vifminfo by setting \(aqvifminfo\(aq option.
Vifm always writes this file on exit unless 'vifminfo' option is empty.  Marks,
bookmarks, commands, histories, filetypes, fileviewers and registers in the
file are merged with vifm configuration (which has bigger priority).

Generally, runtime configuration has bigger priority during merging, but there
are some exceptions:
.RS 2
.IP \- 2
directory stack stored in the file is not overwritten unless something is
changed in vifm instance that performs merge;
.IP \- 2
each mark or bookmark is marked with a timestamp, so that newer value is not
overwritten by older one, thus no matter from where it comes, the newer one
wins;
.IP \- 2
all histories are marked with timestamps on storing, this means that last
instance to quit puts its elements on top of the list;
.IP \- 2
tabs are merged only if both current instance and stored state contain
exactly one tab of any kind.
.RE

The $VIFM/scripts directory can contain shell scripts.  vifm modifies
its PATH environment variable to let user run those scripts without specifying
full path.  All subdirectories of the $VIFM/scripts will be added to PATH too.
Script in a subdirectory overlaps script with the same name in all its parent
directories.

The $VIFM/colors/ and {prefix}/etc/vifm/colors/ directories contain color
schemes.  Available color schemes are searched in that order, so on name
conflict the one in $VIFM/colors/ wins.

Each color scheme should have ".vifm" extension.  This wasn't the case before
and for this reason the following rules apply during lookup:
.RS 2
.IP \- 2
if there is no file with .vifm extension, all regular files are listed;
.IP \- 2
otherwise only files with .vifm extension are listed (with the extension
being truncated).
.RE
.\" ---------------------------------------------------------------------------
.SH Sessions
.\" ---------------------------------------------------------------------------
Sessions provide a way to have multiple persistent runtime configurations.
Think of them as second-level vifminfo files in addition to the
first-level one used by all sessions.  In other words, they aren't a
replacement for vifminfo file that exists without sessions, but an addition to
it.  One can empty 'vifminfo' option and rely solely on sessions, but in
practice one might want to share some state among instances in different
sessions or have an "out-of-sessions" state for tasks that don't deserve a
session of their own.

This leads to a two-level structure where data in session files has higher
priority than data in vifminfo files (where this makes sense) following the
same rules that merging of vifminfo file obeys.  In addition to that, history
items from session files are never ordered before history items from vifminfo
file.

.B Format

Sessions have the format of vifminfo files, they do not consist of sequence
of command-line commands and are not meant to be sourced via :source
command.

.B Storage and naming

`$VIFM/sessions/` directory serves as a storage for sessions.  Consequently
names should be valid filenames.  The structure of the storage is flat meaning
that there are no subdirectories, that's why names of sessions can't contain
slashes.

.B Usage model

Contrary to Vim, vifm automates basic management of sessions.  You can start,
switch, stop or delete a session using builtin means.

Current session is saved at the same time vifminfo is saved (on normal exits
or explicitly on :write command) and right before switching to another
session.  To avoid saving in those cases use :session command to detach
(without saving) from a session before proceeding.

.B Related topics

Commands: :session, :delsession
.br
Options: 'sessionoptions'
.br
Variables: v:session
.RE
.\" ---------------------------------------------------------------------------
.SH Automatic FUSE mounts
.\" ---------------------------------------------------------------------------
vifm has a builtin support of automated FUSE file system mounts.  It is \
implemented using file associations mechanism.  To enable automated mounts, \
one needs to use a specially formatted program line in filetype or \
filextype commands.  These use special macros, which differ from \
macros in commands unrelated to FUSE.  Currently three formats are supported:

1) FUSE_MOUNT
This format should be used in case when all information needed for mounting \
all files of a particular type is the same.  E.g. mounting of tar files \
don't require any file specific options.

Format line:
  FUSE_MOUNT|mounter %SOURCE_FILE %DESTINATION_DIR [%FOREGROUND]

Example filetype command:

.EX
  :filetype FUSE_MOUNT|fuse\-zip %SOURCE_FILE %DESTINATION_DIR
.EE

2) FUSE_MOUNT2
This format allows one to use specially formatted files to perform mounting \
and is useful for mounting remotes, for example remote file systems over ftp \
or ssh.

Format line:
  FUSE_MOUNT2|mounter %PARAM %DESTINATION_DIR [%FOREGROUND]

Example filetype command:

.EX
  :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR
.EE

Example file content:

.EX
  root@127.0.0.1:/
.EE

3) FUSE_MOUNT3

This format is equivalent to FUSE_MOUNT, but omits unmounting.  It \
is useful for cases, when unmounting isn't needed, like when using AVFS.

Example :filetype command:

.EX
  :filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz,*.deb
       \\ {Mount with avfs}
       \\ FUSE_MOUNT3|mount-avfs %DESTINATION_DIR %SOURCE_FILE
.EE

Example `mount-avfs` helper script:

.EX
  #!/bin/sh

  dest=$1
  file=$2

  rmdir "$dest"
  ln \-s "$HOME/.avfs$file#/" "$dest"
.EE

All % macros are expanded by vifm at runtime and have the following meaning:
  \- %SOURCE_FILE is replaced by full path to selected file;
  \- %DESTINATION_DIR is replaced by full path to mount directory, which is \
created by vifm basing on the value of 'fusehome' option;
  \- %PARAM value is filled from the first line of file (whole line), though \
in the future it can be changed to whole file content;
  \- %FOREGROUND means that you want to run mount command as a regular \
command (required to be able to provide input for communication with mounter \
in interactive way).

%FOREGROUND is an optional macro.  Other macros are not mandatory, but mount \
commands likely won't work without them.

%CLEAR is obsolete name of %FOREGROUND, which is still supported, but might be \
removed in future.  Its use is discouraged.

Unlike macros elsewhere, these are recognized only if they appear at the end
of a command or are followed by a space.  There is no way to escape % either.
These are historical limitations, which might be addressed in the future.

The mounted FUSE file systems will be automatically unmounted in two cases:
.RS 2
.IP \- 2
when vifm quits (with ZZ, :q, etc. or when killed by signal);
.IP \- 2
when you explicitly leave mount point going up to its parent directory (with \
h, Enter on "../" or ":cd ..") and other pane is not in the same directory or \
its child directories.
.RE
.\" ---------------------------------------------------------------------------
.SH View look
.\" ---------------------------------------------------------------------------
vifm supports displaying of file list view in two different ways:
.RS 2
.IP \- 2
in a table mode, when multiple columns can be set using 'viewcolumns' option
(see "Column view" section below for details);
.IP \- 2
in a multicolumn list manner which looks almost like `ls \-x` command output
(see "ls-like view" section below for details).
.RE

The look is local for each view and can be chosen by changing value of the
\(aqlsview\(aq boolean option.

Depending on view look some of keys change their meaning to allow more natural
cursor moving.  This concerns mainly h, j, k, l and other similar navigation
keys.

Also some of options can be ignored if they don't affect view displaying in
selected look.  For example value of 'viewcolumns' when 'lsview' is set.
.\" ---------------------------------------------------------------------------
.SH ls-like view
.\" ---------------------------------------------------------------------------
When this view look is enabled by setting 'lsview' option on, vifm will display
files in multiple columns.  Number of columns depends on the length of the
longest file name present in current directory of the view.  Whole file list is
automatically reflowed on directory change, terminal or view resize.

View looks close to output of `ls \-x` command, so files are listed left to
right in rows.

In this mode file manipulation commands (e.g. d) don't work line-wise like they
do in Vim, since such operations would be uncommon for file manipulation
tasks.  Thus, for example, dd will remove only current file.

By default the view is filled by lines, 'lsoptions' can be used to get filling
by columns.

Note that tree-view and compare view inhibit ls-like view.
.\" ---------------------------------------------------------------------------
.SH Column view
.\" ---------------------------------------------------------------------------
View columns are described by a comma-separated list of column descriptions,
each of which has the following format
    [ '\-' | '*' ] [ fw ( [ '.' tw ] | '%' ) ] '{' type | literal '}' '.'{0,3}
.br
where fw stands for full width, tw stands for text width, bar is logical or,
square brackets denote optional parts and curly braces define range of
repetitions for a symbol that precedes them.

So it basically consists of four parts:
 1. Optional alignment specifier
 2. Optional width specifier
 3. Mandatory column name
 4. Optional cropping specifier

.B Alignment specifier

It's an optional minus or asterisk sign as the first symbol of the string.

Specifies type of text alignment within a column.  Three types are supported:
.IP \- 2
left align

.EX
  set viewcolumns=\-{name}
.EE
.IP \- 2
right align (default)

.EX
  set viewcolumns={name}
.EE
.IP \- 2
middle align

It's like left alignment, but when the text is bigger than the column, it
is cut in the middle (so the start and the end of the field are always visible).

.EX
  set viewcolumns=^{name}
.EE
.IP \- 2
dynamic align

It's like left alignment, but when the text is bigger than the column, the
alignment is made at the right (so the part of the field is always visible).

.EX
  set viewcolumns=*{name}
.EE
.LP
.B Width specifier

It's a number followed by a percent sign, two numbers (second one should be
less than or equal to the first one) separated with a dot or a single number.

Specifies column width and its units. There are three size types:
.IP \- 2
absolute size \- column width is specified in characters

.EX
  set viewcolumns=\-100{name},20.15{ext}
.EE

results in two columns with lengths of 100 and 20 and a reserved space of five \
characters on the left of second column.
.IP \- 2
relative (percent) size \- column width is specified in percents of view width

.EX
  set viewcolumns=\-80%{name},15%{ext},5%{mtime}
.EE

results in three columns with lengths of 80/100, 15/100 and 5/100 of view width.
.IP \- 2
auto size (default) \- column width is automatically determined

.EX
  set viewcolumns=\-{name},{ext},{mtime}
.EE

results in three columns with length of one third of view width. There is no \
size adjustment to content, since it will slow down rendering.
.LP
Columns of different sizing types can be freely mixed in one view. Though
sometimes some of columns can be seen partly or be completely invisible if
there is not enough space to display them.
.LP
.B Column contents

This is usually a sorting key surrounded with curly braces, e.g.

.EX
  {name},{ext},{mtime}
.EE

{name} and {iname} types are the same and are both present for consistency
with \(aqsort\(aq option.

The following column types don't have corresponding sorting keys:
.RS 2
.IP \- 2
{root}     \- display name without extension (as a complement for {ext})
.IP \- 2
{fileroot} \- display name without extension for anything except for \
directories and symbolic links to directories (as a complement for {fileext})
.RE

Empty curly braces ({}) are replaced with the default secondary column for
primary sort key.  So after the next command view will be displayed almost as
if 'viewcolumns' was empty, but adding ellipsis for long file names:

.EX
  set viewcolumns=\-{name}..,6{}.
.EE

The last kind of column value is a string literal.  The literal is used as a
column value for every row.  The syntax is "{#literal}", examples:

.EX
  " double-character pseudo-padding on both sides
  set viewcolumns='2{#},*{name}..,{},2{#}'
  " pseudo-border between columns
  set viewcolumns='*{name}..,{#|},6{}'
  " pseudo-border with padding between columns
  set viewcolumns='*{name}..,{# | },6{}'
.EE

This can be used to draw column separators.  Mind that for convenience
literals have different defaults: truncation and automatically determined
absolute size, which is what you usually want for them.  Make sure to quote or
escape spaces, vertical bars and other special symbols when using them as part
of literals.
.LP
.B Cropping specifier

It's from one to three dots after closing curly brace in column format.

Specifies type of text truncation if it doesn't fit in the column.  Currently
three types are supported:
.RS 2
.IP \- 2
truncation \- text is truncated

.EX
  set viewcolumns=\-{name}.
.EE

results in truncation of names that are too long too fit in the view.
.IP \- 2
adding of ellipsis \- ellipsis on the left or right are added when needed

.EX
  set viewcolumns=\-{name}..
.EE

results in that ellipsis are added at the end of too long file names.
.IP \- 2
none (default) \- text can pass column boundaries

.EX
  set viewcolumns=\-{name}...,{ext}
.EE

results in that long file names can partially be written on the ext column.
.RE
.\" ---------------------------------------------------------------------------
.SH Color schemes
.\" ---------------------------------------------------------------------------
The color schemes in vifm can be applied in two different ways:
.RS 2
.IP \- 2
as the primary color scheme;
.IP \- 2
as local to a pane color scheme.
.RE

Both types are set using :colorscheme command, but of different forms:
.RS 2
.IP \- 2
:colorscheme color_scheme_name \- for the primary color scheme;
.IP \- 2
:colorscheme color_scheme_name directory \- for local color schemes.
.RE

Look of different parts of the TUI (Text User Interface) is determined in \
this way:
.RS 2
.IP \- 2
Border, TabLine, TabLineSel, TopLineSel, TopLine, CmdLine, ErrorMsg, \
StatusLine, JobLine, SuggestBox and WildMenu are always determined by the \
primary color scheme;
.IP \- 2
CurrLine, Selected, Directory, Link, BrokenLink, Socket, Device, Executable, \
Fifo, CmpMismatch, CmpUnmatched, CmpBlank, Win, AuxWin and OtherWin are \
determined by primary color scheme and a set of local color schemes, which can \
be empty.
.RE

There might be a set of local color schemes because they are structured
hierarchically according to file system structure. For example, having the
following piece of file system:
.EX

  ~
  `\-\- bin
     |
     `\-\- my

.EE
Two color schemes:
.EX

  # ~/.config/vifm/colors/for_bin.vifm
  highlight Win cterm=none ctermfg=white ctermbg=red
  highlight CurrLine cterm=none ctermfg=red ctermbg=black

  # ~/.config/vifm/colors/for_bin_my.vifm
  highlight CurrLine cterm=none ctermfg=green ctermbg=black

.EE
And these three commands in the vifmrc file:
.EX

  colorscheme Default
  colorscheme for_bin ~/bin
  colorscheme for_bin_my ~/bin/my

.EE
File list will look in the following way for each level:
.IP \- 2
~/ \- Default color scheme
.br
black background
.br
cursor with blue background
.IP \- 2
~/bin/ \- mix of Default and for_bin color schemes
.br
red background
.br
cursor with black background and red foreground
.IP \- 2
~/bin/my/ \- mix of Default, for_bin and for_bin_my color schemes
.br
red background
.br
cursor with black background and green foreground
.\" ---------------------------------------------------------------------------
.SH Trash directory
.\" ---------------------------------------------------------------------------
vifm has support of trash directory, which is used as temporary storage for
deleted files or files that were cut.  Using trash is controlled by the
\(aqtrash\(aq option, and exact path to the trash can be set with 'trashdir'
option.  Trash directory in vifm differs from the system-wide one by default,
because of possible incompatibilities of storing deleted files among different
file managers.  But one can set 'trashdir' to "~/.local/share/Trash" to use a
"standard" trash directory.

There are two scenarios of using trash in vifm:
.RS 2
.IP 1. 3
As a place for storing files that were cut by "d" and may be inserted to some
other place in file system.
.IP 2. 3
As a storage of files, that are deleted but not purged yet.
.RE

The first scenario uses deletion ("d") operations to put files to trash and
put ("p") operations to restore files from trash directory.  Note that such
operations move files to and from trash directory, which can be long term
operations in case of different partitions or remote drives mounted locally.

The second scenario uses deletion ("d") operations for moving files to trash
directory and :empty command-line command to purge all previously deleted files.

Deletion and put operations depend on registers, which can point to files in
trash directory.  Normally, there are no nonexistent files in registers, but
vifm doesn't keep track of modifications under trash directory, so one
shouldn't expect value of registers to be absolutely correct if trash
directory was modified not by operation that are meant for it.  But this
won't lead to any issues with operations, since they ignore nonexistent
files.
.\" ---------------------------------------------------------------------------
.SH Client\-Server
.\" ---------------------------------------------------------------------------
vifm supports remote execution of command-line mode commands, remote changing of
directories and expression evaluation.  This is possible using \-\-remote
and \-\-remote\-expr command-line arguments.

To execute a command remotely combine \-\-remote argument with \-c <command> or
+<command>.  For example:

.EX
  vifm \-\-remote \-c 'cd /'
  vifm \-\-remote '+cd /'
.EE

To change directory not using command-line mode commands one can specify paths
right after \-\-remote argument, like this:

.EX
  vifm \-\-remote /
  vifm \-\-remote ~
  vifm \-\-remote /usr/bin /tmp
.EE

Evaluating expression remotely might be useful to query information about an
instance, for example its location:

.EX
  vifm \-\-remote\-expr 'expand("%d")'
.EE

If there are several running instances, the target can be specified with
\-\-server\-name option (otherwise, the first one lexicographically is used):

.EX
  vifm \-\-server-name work \-\-remote ~/work/project
.EE

List of names of running instances can be obtained via \-\-server\-list option.
Name of the current one is available via v:servername.

.TP
.BI "v:servername"
server name of the running vifm instance.  Empty if client-server feature is
disabled.
.\" ---------------------------------------------------------------------------
.SH External Renaming
.\" ---------------------------------------------------------------------------
When an editor is run to edit list of file names, contents of the temporary file
has the following format:
.RS 2
.IP 1. 3
Order of lines correspond to the order of files in a view.
.IP 2. 3
Lines that start with a "#" are comments and are ignored.
.IP 3. 3
Single backslash at the beginning of a line is ignored, so that a file
starting with a backslash will appear like "\\#name".
.RE

If an operation was rejected due to issues with file names, next time you'll see
the following in this order:
.RS 2
.IP 1. 3
Last error (in comments).
.IP 2. 3
Original file names (in comments).
.IP 3. 3
Failed list of new names.
.RE

Mind that Vim plugin will extract list of original names and show them in a
vertical split.

You can cancel renaming by removing all non-comments from the buffer.  This
also erases information about previous edits.
.\" ---------------------------------------------------------------------------
.SH Using mouse
.\" ---------------------------------------------------------------------------
Note: <ScrollWheelDown> is not available on 32-bit *nix systems, because
ncurses doesn't support it there (limitation of implementation).

Note: these are not available in mappings at the moment.

.B "Normal Mode"

  event             position  change  action
                     cursor   window
  <LeftMouse>         yes      yes    <cr> if cursor wasn't move
  <LeftRelease>        no      yes
  <MiddleMouse>        no      yes    <c-e>
  <MiddleRelease>      no      yes
  <RightMouse>        yes      yes    :file
  <RightRelease>       no      yes
  <ScrollWheelUp>      no      yes    <c-y> or :tabprevious
  <ScrollWheelDown>    no      yes    <c-e> or :tabnext

Clicking on or scrolling over an inactive pane (including its title), makes it
active and does nothing else.  Tabs are scrolled when mouse hovers over them.

Clicking on the left miller column goes to parent directory and clicking the
right one opens current entry.

.B "Visual Mode"

  event             position  selection  action
                     cursor
  <LeftMouse>         yes      update    <cr> if cursor wasn't move
  <LeftRelease>        no
  <MiddleMouse>        no      update    <c-e>
  <MiddleRelease>      no
  <RightMouse>         no
  <RightRelease>       no
  <ScrollWheelUp>      no      update    <c-y>
  <ScrollWheelDown>    no      update    <c-e>

.B "Command-line Mode"

  event             position  action
                     cursor
  <LeftMouse>         yes
  <LeftRelease>        no
  <MiddleMouse>        no     <c-n>
  <MiddleRelease>      no
  <RightMouse>         no
  <RightRelease>       no
  <ScrollWheelUp>      no     <c-p>
  <ScrollWheelDown>    no     <c-n>

.B "Menu Mode"

  event             position  action
                     cursor
  <LeftMouse>         yes     <cr> if cursor wasn't moved
  <LeftRelease>        no
  <MiddleMouse>        no     <c-e>
  <MiddleRelease>      no
  <RightMouse>         no
  <RightRelease>       no
  <ScrollWheelUp>      no     <c-y>
  <ScrollWheelDown>    no     <c-e>

.B "view Mode"

  event               action

  <ScrollWheelUp>     k
  <ScrollWheelDown>   j

Clicking on or scrolling over an inactive pane (including its title), detaches
view mode if it wasn't activated for exploring a file.

.\" ---------------------------------------------------------------------------
.SH Plugin
.\" ---------------------------------------------------------------------------
Plugin for using vifm in vim as a file selector.

Commands:

  :EditVifm   select a file or files to open in the current buffer.
  :Vifm       alias for :EditVifm.
  :SplitVifm  split buffer and select a file or files to open.
  :VsplitVifm vertically split buffer and select a file or files to open.
  :DiffVifm   select a file or files to compare to the current file with
              :vert diffsplit.
  :TabVifm    select a file or files to open in tabs.

Each command accepts up to two arguments: left pane directory and right pane
directory.  After arguments are checked, vifm process is spawned in a special
"file-picker" mode.  To pick files just open them either by pressing l, i or
Enter keys, or by running :edit command.  If no files are selected, file
under the cursor is opened, otherwise whole selection is passed to the plugin
and opened in vim.

The plugin have only two settings.  It's a string variable named g:vifm_term to
let user specify command to run GUI terminal.  By default it's equal to
\(aqxterm \-e\(aq.  And another string variable named g:vifm_exec, which equals
"vifm" by default and specifies path to vifm's executable.  To pass arguments to
vifm use g:vifm_exec_args, which is empty by default.

To use the plugin copy the vifm.vim file to either the system wide vim/plugin
directory or into ~/.vim/plugin.

If you would prefer not to use the plugin and it is in the system wide plugin
directory add

let loaded_vifm=1

to your ~/.vimrc file.
.\" ---------------------------------------------------------------------------
.SH Reserved
.\" ---------------------------------------------------------------------------

The following command names are reserved and shouldn't be used for user
commands.

  g[lobal]
  v[global]
.\" ---------------------------------------------------------------------------
.SH ENVIRONMENT
.\" ---------------------------------------------------------------------------
.TP
.BI VIFM
Points to main configuration directory (usually ~/.config/vifm/).
.TP
.BI MYVIFMRC
Points to main configuration file (usually ~/.config/vifm/vifmrc).
.LP
These environment variables are valid inside vifm and also can be used to
configure it by setting some of them before running vifm.
.LP
When $MYVIFMRC isn't set, it's made as $VIFM/vifmrc (exception
for Windows: vifmrc in the same directory as vifm.exe has higher priority than
$VIFM/vifmrc).
.LP
See "Startup" section above for more details.
.TP
.BI VIFM_FUSE_FILE
On execution of external commands this variable is set to the full path of file
used to initiate FUSE mount of the closest mount point from current pane's
directory up.  It's not set when outside FUSE mount point.  When vifm is used
inside terminal multiplexer, it tries to set this variable as well (it doesn't
work this way on its own).
.\" ---------------------------------------------------------------------------
.SH SEE ALSO
.\" ---------------------------------------------------------------------------
.BR vifm-convert-dircolors (1),
.BR vifm-pause (1)

Website: https://vifm.info/
.br
Wiki: https://wiki.vifm.info/
.\" ---------------------------------------------------------------------------
.SH AUTHOR
.\" ---------------------------------------------------------------------------
Vifm was written by ksteen <ksteen@users.sourceforge.net>
.br
And currently is developed by xaizek <xaizek@posteo.net>
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master