RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/vim#64066330a22b17c25467dffb1d58f7f56c40128a
This commit is contained in:
parent
6bf896934c
commit
964c29439c
329
.gitignore
vendored
329
.gitignore
vendored
@ -0,0 +1,329 @@
|
|||||||
|
/vim-7.4.tar.bz2
|
||||||
|
/vim-7.4-2342.tar.bz2
|
||||||
|
/vim-8.0-003.tar.bz2
|
||||||
|
/vim-8.0-018.tar.bz2
|
||||||
|
/vim-8.0-037.tar.bz2
|
||||||
|
/vim-8.0-057.tar.bz2
|
||||||
|
/vim-8.0-061.tar.bz2
|
||||||
|
/vim-8.0-000.tar.bz2
|
||||||
|
/vim-8.0-070.tar.bz2
|
||||||
|
/vim-8.0-084.tar.bz2
|
||||||
|
/vim-8.0-085.tar.bz2
|
||||||
|
/vim-8.0-086.tar.bz2
|
||||||
|
/vim-8.0-094.tar.bz2
|
||||||
|
/vim-8.0-095.tar.bz2
|
||||||
|
/vim-8.0-104.tar.bz2
|
||||||
|
/vim-8.0-118.tar.bz2
|
||||||
|
/vim-8.0-124.tar.bz2
|
||||||
|
/vim-8.0-133.tar.bz2
|
||||||
|
/vim-8.0-134.tar.bz2
|
||||||
|
/vim-8.0-142.tar.bz2
|
||||||
|
/vim-8.0-160.tar.bz2
|
||||||
|
/vim-8.0-170.tar.bz2
|
||||||
|
/vim-8.0-172.tar.bz2
|
||||||
|
/vim-8.0-176.tar.bz2
|
||||||
|
/vim-8.0-194.tar.bz2
|
||||||
|
/vim-8.0-197.tar.bz2
|
||||||
|
/vim-8.0-206.tar.bz2
|
||||||
|
/vim-8.0-238.tar.bz2
|
||||||
|
/vim-8.0-271.tar.bz2
|
||||||
|
/vim-8.0-273.tar.bz2
|
||||||
|
/vim-8.0-275.tar.bz2
|
||||||
|
/vim-8.0-297.tar.bz2
|
||||||
|
/vim-8.0-311.tar.bz2
|
||||||
|
/vim-8.0-314.tar.bz2
|
||||||
|
/vim-8.0-318.tar.bz2
|
||||||
|
/vim-8.0-324.tar.bz2
|
||||||
|
/vim-8.0-329.tar.bz2
|
||||||
|
/vim-8.0-342.tar.bz2
|
||||||
|
/vim-8.0-344.tar.bz2
|
||||||
|
/vim-8.0-347.tar.bz2
|
||||||
|
/vim-8.0-363.tar.bz2
|
||||||
|
/vim-8.0-381.tar.bz2
|
||||||
|
/vim-8.0-386.tar.bz2
|
||||||
|
/vim-8.0-388.tar.bz2
|
||||||
|
/vim-8.0-398.tar.bz2
|
||||||
|
/vim-8.0-402.tar.bz2
|
||||||
|
/vim-8.0-425.tar.bz2
|
||||||
|
/vim-8.0-427.tar.bz2
|
||||||
|
/vim-8.0-430.tar.bz2
|
||||||
|
/vim-8.0-442.tar.bz2
|
||||||
|
/vim-8.0-456.tar.bz2
|
||||||
|
/vim-8.0-458.tar.bz2
|
||||||
|
/vim-8.0-494.tar.bz2
|
||||||
|
/vim-8.0-497.tar.bz2
|
||||||
|
/vim-8.0-502.tar.bz2
|
||||||
|
/vim-8.0-503.tar.bz2
|
||||||
|
/vim-8.0-514.tar.bz2
|
||||||
|
/vim-8.0-515.tar.bz2
|
||||||
|
/vim-8.0-517.tar.bz2
|
||||||
|
/vim-8.0-525.tar.bz2
|
||||||
|
/vim-8.0-529.tar.bz2
|
||||||
|
/vim-8.0-540.tar.bz2
|
||||||
|
/vim-8.0-543.tar.bz2
|
||||||
|
/vim-8.0-559.tar.bz2
|
||||||
|
/vim-8.0-562.tar.bz2
|
||||||
|
/vim-8.0-566.tar.bz2
|
||||||
|
/vim-8.0-586.tar.bz2
|
||||||
|
/vim-8.0-596.tar.bz2
|
||||||
|
/vim-8.0-597.tar.bz2
|
||||||
|
/vim-8.0-598.tar.bz2
|
||||||
|
/vim-8.0-599.tar.bz2
|
||||||
|
/vim-8.0-600.tar.bz2
|
||||||
|
/vim-8.0-604.tar.bz2
|
||||||
|
/vim-8.0-606.tar.bz2
|
||||||
|
/vim-8.0-617.tar.bz2
|
||||||
|
/vim-8.0-627.tar.bz2
|
||||||
|
/vim-8.0-628.tar.bz2
|
||||||
|
/vim-8.0-636.tar.bz2
|
||||||
|
/vim-8.0-642.tar.bz2
|
||||||
|
/vim-8.0-647.tar.bz2
|
||||||
|
/vim-8.0-648.tar.bz2
|
||||||
|
/vim-8.0-662.tar.bz2
|
||||||
|
/vim-8.0-679.tar.bz2
|
||||||
|
/vim-8.0-685.tar.bz2
|
||||||
|
/vim-8.0-688.tar.bz2
|
||||||
|
/vim-8.0-691.tar.bz2
|
||||||
|
/vim-8.0-705.tar.bz2
|
||||||
|
/vim-8.0-711.tar.bz2
|
||||||
|
/vim-8.0-728.tar.bz2
|
||||||
|
/vim-8.0-730.tar.bz2
|
||||||
|
/vim-8.0-738.tar.bz2
|
||||||
|
/vim-8.0-739.tar.bz2
|
||||||
|
/vim-8.0-823.tar.bz2
|
||||||
|
/vim-8.0-826.tar.bz2
|
||||||
|
/vim-8.0-844.tar.bz2
|
||||||
|
/vim-8.0-885.tar.bz2
|
||||||
|
/vim-8.0-891.tar.bz2
|
||||||
|
/vim-8.0-893.tar.bz2
|
||||||
|
/vim-8.0-895.tar.bz2
|
||||||
|
/vim-8.0-896.tar.bz2
|
||||||
|
/vim-8.0-938.tar.bz2
|
||||||
|
/vim-8.0-946.tar.bz2
|
||||||
|
/vim-8.0-956.tar.bz2
|
||||||
|
/vim-8.0-983.tar.bz2
|
||||||
|
/vim-8.0-987.tar.bz2
|
||||||
|
/vim-8.0-992.tar.bz2
|
||||||
|
/vim-8.0-1030.tar.bz2
|
||||||
|
/vim-8.0-1052.tar.bz2
|
||||||
|
/vim-8.0-1056.tar.bz2
|
||||||
|
/vim-8.0-1064.tar.bz2
|
||||||
|
/vim-8.0-1067.tar.bz2
|
||||||
|
/vim-8.0-1071.tar.bz2
|
||||||
|
/vim-8.0-1092.tar.bz2
|
||||||
|
/vim-8.0-1097.tar.bz2
|
||||||
|
/vim-8.0-1098.tar.bz2
|
||||||
|
/vim-8.0-1102.tar.bz2
|
||||||
|
/vim-8.0-1123.tar.bz2
|
||||||
|
/vim-8.0-1127.tar.bz2
|
||||||
|
/vim-8.0-1129.tar.bz2
|
||||||
|
/vim-8.0-1132.tar.bz2
|
||||||
|
/vim-8.0-1144.tar.bz2
|
||||||
|
/vim-8.0-1155.tar.bz2
|
||||||
|
/vim-8.0-1171.tar.bz2
|
||||||
|
/vim-8.0-1173.tar.bz2
|
||||||
|
/vim-8.0-1175.tar.bz2
|
||||||
|
/vim-8.0-1176.tar.bz2
|
||||||
|
/vim-8.0-1184.tar.bz2
|
||||||
|
/vim-8.0-1187.tar.bz2
|
||||||
|
/vim-8.0-1203.tar.bz2
|
||||||
|
/vim-8.0-1207.tar.bz2
|
||||||
|
/vim-8.0-1213.tar.bz2
|
||||||
|
/vim-8.0-1216.tar.bz2
|
||||||
|
/vim-8.0-1226.tar.bz2
|
||||||
|
/vim-8.0-1238.tar.bz2
|
||||||
|
/vim-8.0-1240.tar.bz2
|
||||||
|
/vim-8.0-1241.tar.bz2
|
||||||
|
/vim-8.0-1257.tar.bz2
|
||||||
|
/vim-8.0-1272.tar.bz2
|
||||||
|
/vim-8.0-1274.tar.bz2
|
||||||
|
/vim-8.0-1283.tar.bz2
|
||||||
|
/vim-8.0-1322.tar.bz2
|
||||||
|
/vim-8.0-1326.tar.bz2
|
||||||
|
/vim-8.0-1330.tar.bz2
|
||||||
|
/vim-8.0-1349.tar.bz2
|
||||||
|
/vim-8.0-1351.tar.bz2
|
||||||
|
/vim-8.0-1358.tar.bz2
|
||||||
|
/vim-8.0-1359.tar.bz2
|
||||||
|
/vim-8.0-1360.tar.bz2
|
||||||
|
/vim-8.0-1367.tar.bz2
|
||||||
|
/vim-8.0-1376.tar.bz2
|
||||||
|
/vim-8.0-1379.tar.bz2
|
||||||
|
/vim-8.0-1386.tar.bz2
|
||||||
|
/vim-8.0-1387.tar.bz2
|
||||||
|
/vim-8.0-1389.tar.bz2
|
||||||
|
/vim-8.0-1390.tar.bz2
|
||||||
|
/vim-8.0-1401.tar.bz2
|
||||||
|
/vim-8.0-1406.tar.bz2
|
||||||
|
/vim-8.0-1427.tar.bz2
|
||||||
|
/vim-8.0-1428.tar.bz2
|
||||||
|
/vim-8.0-1438.tar.bz2
|
||||||
|
/vim-8.0-1451.tar.bz2
|
||||||
|
/vim-8.0-1473.tar.bz2
|
||||||
|
/vim-8.0-1475.tar.bz2
|
||||||
|
/vim-8.0-1478.tar.bz2
|
||||||
|
/vim-8.0-1505.tar.bz2
|
||||||
|
/vim-8.0-1509.tar.bz2
|
||||||
|
/vim-8.0-1520.tar.bz2
|
||||||
|
/vim-8.0-1523.tar.bz2
|
||||||
|
/vim-8.0-1527.tar.bz2
|
||||||
|
/vim-8.0-1543.tar.bz2
|
||||||
|
/vim-8.0-1553.tar.bz2
|
||||||
|
/vim-8.0-1569.tar.bz2
|
||||||
|
/vim-8.0-1573.tar.bz2
|
||||||
|
/vim-8.0-1587.tar.bz2
|
||||||
|
/vim-8.0-1589.tar.bz2
|
||||||
|
/vim-8.0-1591.tar.bz2
|
||||||
|
/vim-8.0-1599.tar.bz2
|
||||||
|
/vim-8.0-1603.tar.bz2
|
||||||
|
/vim-8.0-1605.tar.bz2
|
||||||
|
/vim-8.0-1625.tar.bz2
|
||||||
|
/vim-8.0-1630.tar.bz2
|
||||||
|
/vim-8.0-1661.tar.bz2
|
||||||
|
/vim-8.0-1666.tar.bz2
|
||||||
|
/vim-8.0-1679.tar.bz2
|
||||||
|
/vim-8.0-1704.tar.bz2
|
||||||
|
/vim-8.0-1755.tar.bz2
|
||||||
|
/vim-8.0-1763.tar.bz2
|
||||||
|
/vim-8.0-1765.tar.bz2
|
||||||
|
/vim-8.0-1766.tar.bz2
|
||||||
|
/vim-8.0-1787.tar.bz2
|
||||||
|
/vim-8.0-1788.tar.bz2
|
||||||
|
/vim-8.0-1789.tar.bz2
|
||||||
|
/vim-8.0-1806.tar.bz2
|
||||||
|
/vim-8.0-1813.tar.bz2
|
||||||
|
/vim-8.0-1842.tar.bz2
|
||||||
|
/vim-8.0-1848.tar.bz2
|
||||||
|
/vim-8.1-001.tar.bz2
|
||||||
|
/vim-8.1-010.tar.bz2
|
||||||
|
/vim-8.1-016.tar.bz2
|
||||||
|
/vim-8.1-020.tar.bz2
|
||||||
|
/vim-8.1-022.tar.bz2
|
||||||
|
/vim-8.1-026.tar.bz2
|
||||||
|
/vim-8.1-034.tar.bz2
|
||||||
|
/vim-8.1-035.tar.bz2
|
||||||
|
/vim-8.1-039.tar.bz2
|
||||||
|
/vim-8.1-042.tar.bz2
|
||||||
|
/vim-8.1-055.tar.bz2
|
||||||
|
/vim-8.1-072.tar.bz2
|
||||||
|
/vim-8.1-095.tar.bz2
|
||||||
|
/vim-8.1-115.tar.bz2
|
||||||
|
/vim-8.1-117.tar.bz2
|
||||||
|
/vim-8.1-119.tar.bz2
|
||||||
|
/vim-8.1-177.tar.bz2
|
||||||
|
/vim-8.1-189.tar.bz2
|
||||||
|
/vim-8.1-197.tar.bz2
|
||||||
|
/vim-8.1-207.tar.bz2
|
||||||
|
/vim-8.1-209.tar.bz2
|
||||||
|
/vim-8.1-213.tar.bz2
|
||||||
|
/vim-8.1-229.tar.bz2
|
||||||
|
/vim-8.1-233.tar.bz2
|
||||||
|
/vim-8.1-240.tar.bz2
|
||||||
|
/vim-8.1-254.tar.bz2
|
||||||
|
/vim-8.1-258.tar.bz2
|
||||||
|
/vim-8.1-264.tar.bz2
|
||||||
|
/vim-8.1-279.tar.bz2
|
||||||
|
/vim-8.1-287.tar.bz2
|
||||||
|
/vim-8.1-328.tar.bz2
|
||||||
|
/vim-8.1-351.tar.bz2
|
||||||
|
/vim-8.1-408.tar.bz2
|
||||||
|
/vim-8.1-450.tar.bz2
|
||||||
|
/vim-8.1-451.tar.bz2
|
||||||
|
/vim-8.1-483.tar.bz2
|
||||||
|
/vim-8.1-497.tar.bz2
|
||||||
|
/vim-8.1-511.tar.bz2
|
||||||
|
/vim-8.1-513.tar.bz2
|
||||||
|
/vim-8.1-527.tar.bz2
|
||||||
|
/vim-8.1-549.tar.bz2
|
||||||
|
/vim-8.1-575.tar.bz2
|
||||||
|
/vim-8.1-702.tar.bz2
|
||||||
|
/vim-8.1-714.tar.bz2
|
||||||
|
/vim-8.1-789.tar.bz2
|
||||||
|
/vim-8.1-818.tar.bz2
|
||||||
|
/vim-8.1-837.tar.bz2
|
||||||
|
/vim-8.1-847.tar.bz2
|
||||||
|
/vim-8.1-873.tar.bz2
|
||||||
|
/vim-8.1-880.tar.bz2
|
||||||
|
/vim-8.1-897.tar.bz2
|
||||||
|
/vim-8.1-918.tar.bz2
|
||||||
|
/vim-8.1-956.tar.bz2
|
||||||
|
/vim-8.1-994.tar.bz2
|
||||||
|
/vim-8.1-998.tar.bz2
|
||||||
|
/vim-8.1-1048.tar.bz2
|
||||||
|
/vim-8.1-1099.tar.bz2
|
||||||
|
/vim-8.1-1137.tar.bz2
|
||||||
|
/vim-8.1-1359.tar.bz2
|
||||||
|
/vim-8.1-1413.tar.bz2
|
||||||
|
/vim-8.1-1471.tar.bz2
|
||||||
|
/vim-8.1-1517.tar.bz2
|
||||||
|
/vim-8.1-1561.tar.bz2
|
||||||
|
/vim-8.1-1602.tar.bz2
|
||||||
|
/vim-8.1-1661.tar.bz2
|
||||||
|
/vim-8.1-1713.tar.bz2
|
||||||
|
/vim-8.1-1749.tar.bz2
|
||||||
|
/vim-8.1-1790.tar.bz2
|
||||||
|
/vim-8.1-1890.tar.bz2
|
||||||
|
/vim-8.1-1912.tar.bz2
|
||||||
|
/vim-8.1-1991.tar.bz2
|
||||||
|
/vim-8.1-2019.tar.bz2
|
||||||
|
/vim-8.1-2056.tar.bz2
|
||||||
|
/vim-8.1-2102.tar.bz2
|
||||||
|
/vim-8.1-2120.tar.bz2
|
||||||
|
/vim-8.1-2168.tar.bz2
|
||||||
|
/vim-8.1-2197.tar.bz2
|
||||||
|
/vim-8.1-2198.tar.bz2
|
||||||
|
/vim-8.1-2234.tar.bz2
|
||||||
|
/vim-8.1-2267.tar.bz2
|
||||||
|
/vim-8.1-2352.tar.bz2
|
||||||
|
/vim-8.1-2424.tar.bz2
|
||||||
|
/vim-8.2-012.tar.bz2
|
||||||
|
/vim-8.2-019.tar.bz2
|
||||||
|
/vim-8.2-076.tar.bz2
|
||||||
|
/vim-8.2-109.tar.bz2
|
||||||
|
/vim-8.2-158.tar.bz2
|
||||||
|
/vim-8.2-236.tar.bz2
|
||||||
|
/vim-8.2-348.tar.bz2
|
||||||
|
/vim-8.2-356.tar.bz2
|
||||||
|
/vim-8.2-357.tar.bz2
|
||||||
|
/vim-8.2-390.tar.bz2
|
||||||
|
/vim-8.2-444.tar.bz2
|
||||||
|
/vim-8.2-448.tar.bz2
|
||||||
|
/vim-8.2-480.tar.bz2
|
||||||
|
/vim-8.2-520.tar.bz2
|
||||||
|
/vim-8.2-525.tar.bz2
|
||||||
|
/vim-8.2-534.tar.bz2
|
||||||
|
/vim-8.2-587.tar.bz2
|
||||||
|
/vim-8.2-613.tar.bz2
|
||||||
|
/vim-8.2-628.tar.bz2
|
||||||
|
/vim-8.2-694.tar.bz2
|
||||||
|
/vim-8.2-735.tar.bz2
|
||||||
|
/vim-8.2-752.tar.bz2
|
||||||
|
/vim-8.2-789.tar.bz2
|
||||||
|
/vim-8.2-806.tar.bz2
|
||||||
|
/vim-8.2-834.tar.bz2
|
||||||
|
/vim-8.2-869.tar.bz2
|
||||||
|
/vim-8.2-905.tar.bz2
|
||||||
|
/vim-8.2-987.tar.bz2
|
||||||
|
/vim-8.2-993.tar.bz2
|
||||||
|
/vim-8.2-1009.tar.bz2
|
||||||
|
/vim-8.2-1052.tar.bz2
|
||||||
|
/vim-8.2-1081.tar.bz2
|
||||||
|
/vim-8.2-1199.tar.bz2
|
||||||
|
/vim-8.2-1217.tar.bz2
|
||||||
|
/vim-8.2-1224.tar.bz2
|
||||||
|
/vim-8.2-1273.tar.bz2
|
||||||
|
/vim-8.2-1307.tar.bz2
|
||||||
|
/vim-8.2-1328.tar.bz2
|
||||||
|
/vim-8.2-1359.tar.bz2
|
||||||
|
/vim-8.2-1382.tar.bz2
|
||||||
|
/vim-8.2-1412.tar.bz2
|
||||||
|
/vim-8.2-1484.tar.bz2
|
||||||
|
/vim-8.2-1520.tar.bz2
|
||||||
|
/vim-8.2-1522.tar.bz2
|
||||||
|
/vim-8.2-1551.tar.bz2
|
||||||
|
/vim-8.2-1634.tar.bz2
|
||||||
|
/vim-8.2-1651.tar.bz2
|
||||||
|
/vim-8.2-1687.tar.bz2
|
||||||
|
/vim-8.2-1770.tar.bz2
|
||||||
|
/vim-8.2-1805.tar.bz2
|
||||||
|
/vim-8.2-1815.tar.bz2
|
64
gvim.desktop
Normal file
64
gvim.desktop
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Vi IMproved
|
||||||
|
Name[bg]=Vi Ðåäàêòîð
|
||||||
|
Name[ca]=Vi Millorat
|
||||||
|
Name[da]=Vi forbedret
|
||||||
|
Name[eo]=VIM
|
||||||
|
Name[et]=Täiustatud Vi (vim)
|
||||||
|
Name[fr]=Vi étendu (VIM)
|
||||||
|
Name[he]=רפושמ Vi
|
||||||
|
Name[hu]=Vi
|
||||||
|
Name[is]=Vi IMproved ritillinn
|
||||||
|
Name[it]=Vi iMproved
|
||||||
|
Name[no]=Vi IMproved (forbedret VI)
|
||||||
|
Name[pl]=Poprawiony VI (vim)
|
||||||
|
Name[ro]=VIM
|
||||||
|
Name[ru]=Улучшенный VI
|
||||||
|
Name[sk]=Vi IMpreved
|
||||||
|
Name[sl]=Izboljšani vi (vim)
|
||||||
|
Name[sv]=Förbättrad Vi
|
||||||
|
Name[zh_CN.GB2312]=改进的 Vi
|
||||||
|
Comment=Powerful text editor with scripting functions and macro recorder
|
||||||
|
Comment[bg]=Ðåäàêòîð ñ ìíîãî âúçìîæíîñòè
|
||||||
|
Comment[ca]=Editor vi potent
|
||||||
|
Comment[cs]=Mocný textový editor vi
|
||||||
|
Comment[da]=En kraftig vi tekstbehandler
|
||||||
|
Comment[de]=Ein leistungsfähiger vi-Editor
|
||||||
|
Comment[el]=Πανίσχυρος διορθωτής vi
|
||||||
|
Comment[eo]=VIM similas al redaktilo "vi", sed havas aldonajn ecojn
|
||||||
|
Comment[es]=Una versión mejorada del editor vi
|
||||||
|
Comment[et]=Võimas tekstiredaktor vi
|
||||||
|
Comment[fi]=Tehokas vi-tekstieditori
|
||||||
|
Comment[fr]=Éditeur vi puissant
|
||||||
|
Comment[gl]=Potente editor vi
|
||||||
|
Comment[he]=Vi המצועה בר ךרועה
|
||||||
|
Comment[hr]=Napredni vi uređivač
|
||||||
|
Comment[hu]=Vi szövegszerkesztő
|
||||||
|
Comment[is]=Öflug útgáfa vi ritilsins
|
||||||
|
Comment[it]=Un editor vi potenziato
|
||||||
|
Comment[ja]=強力なViエディタ
|
||||||
|
Comment[lt]=Galingas vi redaktorius
|
||||||
|
Comment[mk]=Моќен VI уредувач
|
||||||
|
Comment[nl]=Krachtige vi-editor
|
||||||
|
Comment[no]=En kraftig vi-redigerer
|
||||||
|
Comment[no_NY]=Kraftig vi-tekstredigeringsprogram
|
||||||
|
Comment[pl]=Edytor vi
|
||||||
|
Comment[pt]=Um poderoso editor de texto
|
||||||
|
Comment[ro]=Un editor de texte VI, puternic
|
||||||
|
Comment[ru]=Мощный текстовый редактор vi
|
||||||
|
Comment[sk]=Silný textový procesor vi
|
||||||
|
Comment[sl]=Zmogljivi urejevalnik vi
|
||||||
|
Comment[sr]=Moćni vi editor
|
||||||
|
Comment[sv]=En kraftfull texteditor
|
||||||
|
Comment[ta]=ºì¾¢Å¡öó¾ vi ¦¾¡ÌôÀ¡Ç÷
|
||||||
|
Comment[tr]=Güçlü vi düzenleyicisi
|
||||||
|
Comment[uk]=Потужний редактор vi
|
||||||
|
Comment[zh_CN.GB2312]=功能强大的 vi 编辑器
|
||||||
|
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
|
||||||
|
Exec=gvim -f %F
|
||||||
|
Icon=gvim
|
||||||
|
Type=Application
|
||||||
|
Terminal=false
|
||||||
|
X-XClassHintResName=VIM
|
||||||
|
MapNotify=false
|
||||||
|
Categories=Utility;TextEditor;
|
BIN
gvim16.png
Normal file
BIN
gvim16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 226 B |
BIN
gvim32.png
Normal file
BIN
gvim32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 347 B |
BIN
gvim48.png
Normal file
BIN
gvim48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 474 B |
BIN
gvim64.png
Normal file
BIN
gvim64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
1
macros.vim
Normal file
1
macros.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
%vimfiles_root %{_datadir}/vim/vimfiles
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (vim-8.2-1815.tar.bz2) = 7a5a5c25b51e7dc0208ca46158e4a44092ad318b68e13223e2a75db00d64cd766b8139063f8f10e7a40abfc5b0d11bde8529b9eafe298a8d9fea19ae303d15f5
|
41
spec-template.new
Normal file
41
spec-template.new
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# SPEC file overview:
|
||||||
|
# https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/#con_rpm-spec-file-overview
|
||||||
|
# Fedora packaging guidelines:
|
||||||
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/
|
||||||
|
|
||||||
|
|
||||||
|
Name:
|
||||||
|
Version:
|
||||||
|
Release: 0%{?dist}
|
||||||
|
Summary:
|
||||||
|
|
||||||
|
License:
|
||||||
|
URL:
|
||||||
|
Source0:
|
||||||
|
|
||||||
|
BuildRequires:
|
||||||
|
Requires:
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc
|
||||||
|
%license
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
26
vim-7.0-fixkeys.patch
Normal file
26
vim-7.0-fixkeys.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff -up vim81/src/term.c.fixkeys vim81/src/term.c
|
||||||
|
--- vim81/src/term.c.fixkeys 2019-12-12 09:00:20.685567074 +0100
|
||||||
|
+++ vim81/src/term.c 2019-12-12 09:21:36.708769626 +0100
|
||||||
|
@@ -957,14 +957,14 @@ static struct builtin_term builtin_termc
|
||||||
|
{K_XRIGHT, IF_EB("\033[1;*C", ESC_STR "[1;*C")},
|
||||||
|
{K_XLEFT, IF_EB("\033[1;*D", ESC_STR "[1;*D")},
|
||||||
|
// An extra set of function keys for vt100 mode
|
||||||
|
- {K_XF1, IF_EB("\033O*P", ESC_STR "O*P")},
|
||||||
|
- {K_XF2, IF_EB("\033O*Q", ESC_STR "O*Q")},
|
||||||
|
- {K_XF3, IF_EB("\033O*R", ESC_STR "O*R")},
|
||||||
|
- {K_XF4, IF_EB("\033O*S", ESC_STR "O*S")},
|
||||||
|
- {K_F1, IF_EB("\033[11;*~", ESC_STR "[11;*~")},
|
||||||
|
- {K_F2, IF_EB("\033[12;*~", ESC_STR "[12;*~")},
|
||||||
|
- {K_F3, IF_EB("\033[13;*~", ESC_STR "[13;*~")},
|
||||||
|
- {K_F4, IF_EB("\033[14;*~", ESC_STR "[14;*~")},
|
||||||
|
+ {K_XF1, IF_EB("\033[11~", ESC_STR "[11~")},
|
||||||
|
+ {K_XF2, IF_EB("\033[12~", ESC_STR "[12~")},
|
||||||
|
+ {K_XF3, IF_EB("\033[13~", ESC_STR "[13~")},
|
||||||
|
+ {K_XF4, IF_EB("\033[14~", ESC_STR "[14~")},
|
||||||
|
+ {K_F1, IF_EB("\033OP", ESC_STR "OP")},
|
||||||
|
+ {K_F2, IF_EB("\033OQ", ESC_STR "OQ")},
|
||||||
|
+ {K_F3, IF_EB("\033OR", ESC_STR "OR")},
|
||||||
|
+ {K_F4, IF_EB("\033OS", ESC_STR "OS")},
|
||||||
|
{K_F5, IF_EB("\033[15;*~", ESC_STR "[15;*~")},
|
||||||
|
{K_F6, IF_EB("\033[17;*~", ESC_STR "[17;*~")},
|
||||||
|
{K_F7, IF_EB("\033[18;*~", ESC_STR "[18;*~")},
|
399
vim-7.0-hunspell.patch
Normal file
399
vim-7.0-hunspell.patch
Normal file
@ -0,0 +1,399 @@
|
|||||||
|
diff -ru vim70.orig/src/Makefile vim70.hunspell/src/Makefile
|
||||||
|
--- vim70.orig/src/Makefile 2006-12-15 12:29:41.000000000 +0000
|
||||||
|
+++ vim70.hunspell/src/Makefile 2006-12-14 11:11:20.000000000 +0000
|
||||||
|
@@ -1287,7 +1287,7 @@
|
||||||
|
PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
|
||||||
|
|
||||||
|
ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
|
||||||
|
-ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS)
|
||||||
|
+ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS) -lhunspell-1.1
|
||||||
|
|
||||||
|
# abbreviations
|
||||||
|
DEST_BIN = $(DESTDIR)$(BINDIR)
|
||||||
|
diff -ru vim70.orig/src/spell.c vim70.hunspell/src/spell.c
|
||||||
|
--- vim70.orig/src/spell.c 2006-12-15 12:29:44.000000000 +0000
|
||||||
|
+++ vim70.hunspell/src/spell.c 2006-12-15 12:27:49.000000000 +0000
|
||||||
|
@@ -319,6 +319,8 @@
|
||||||
|
# include <time.h> /* for time_t */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include "hunspell/hunspell.h"
|
||||||
|
+
|
||||||
|
#define MAXWLEN 250 /* Assume max. word len is this many bytes.
|
||||||
|
Some places assume a word length fits in a
|
||||||
|
byte, thus it can't be above 255. */
|
||||||
|
@@ -428,6 +430,8 @@
|
||||||
|
#define SP_FORMERROR -2 /* format error in spell file */
|
||||||
|
#define SP_OTHERERROR -3 /* other error while reading spell file */
|
||||||
|
|
||||||
|
+#define MAXREGIONS 20
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* Structure used to store words and other info for one language, loaded from
|
||||||
|
* a .spl file.
|
||||||
|
@@ -450,6 +454,10 @@
|
||||||
|
char_u *sl_name; /* language name "en", "en.rare", "nl", etc. */
|
||||||
|
char_u *sl_fname; /* name of .spl file */
|
||||||
|
int sl_add; /* TRUE if it's a .add file. */
|
||||||
|
+ int sl_ishunspell; /* TRUE if it's an unconverted hunspell aff/dic combination. */
|
||||||
|
+ Hunhandle *sl_hunspell;
|
||||||
|
+ vimconv_T sl_tohunconv;
|
||||||
|
+ vimconv_T sl_fromhunconv;
|
||||||
|
|
||||||
|
char_u *sl_fbyts; /* case-folded word bytes */
|
||||||
|
idx_T *sl_fidxs; /* case-folded word indexes */
|
||||||
|
@@ -460,7 +468,7 @@
|
||||||
|
|
||||||
|
char_u *sl_info; /* infotext string or NULL */
|
||||||
|
|
||||||
|
- char_u sl_regions[17]; /* table with up to 8 region names plus NUL */
|
||||||
|
+ char_u sl_regions[MAXREGIONS * 2 + 1]; /* table with up to 8 region names plus NUL */
|
||||||
|
|
||||||
|
char_u *sl_midword; /* MIDWORD string or NULL */
|
||||||
|
|
||||||
|
@@ -997,6 +1005,36 @@
|
||||||
|
static char_u *repl_from = NULL;
|
||||||
|
static char_u *repl_to = NULL;
|
||||||
|
|
||||||
|
+static void
|
||||||
|
+ensurehunspellinit(lp)
|
||||||
|
+ slang_T *lp;
|
||||||
|
+{
|
||||||
|
+ if (!lp->sl_hunspell)
|
||||||
|
+ {
|
||||||
|
+ char_u *dic = lp->sl_fname;
|
||||||
|
+ char_u *aff = vim_strnsave(dic, strlen(dic));
|
||||||
|
+
|
||||||
|
+ vim_strncpy(aff + strlen(aff) - 3, "aff", 3);
|
||||||
|
+
|
||||||
|
+ lp->sl_hunspell = Hunspell_create(aff, dic);
|
||||||
|
+
|
||||||
|
+ vim_free(aff);
|
||||||
|
+
|
||||||
|
+ if (convert_setup(&lp->sl_tohunconv, spell_enc(),
|
||||||
|
+ Hunspell_get_dic_encoding(lp->sl_hunspell)) == FAIL)
|
||||||
|
+ {
|
||||||
|
+ lp->sl_tohunconv.vc_fail = TRUE;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (convert_setup(&lp->sl_fromhunconv,
|
||||||
|
+ Hunspell_get_dic_encoding(lp->sl_hunspell), spell_enc()) == FAIL)
|
||||||
|
+ {
|
||||||
|
+ lp->sl_fromhunconv.vc_fail = TRUE;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* Main spell-checking function.
|
||||||
|
* "ptr" points to a character that could be the start of a word.
|
||||||
|
@@ -1101,27 +1139,70 @@
|
||||||
|
{
|
||||||
|
mi.mi_lp = LANGP_ENTRY(wp->w_buffer->b_langp, lpi);
|
||||||
|
|
||||||
|
+ if (mi.mi_lp->lp_slang->sl_ishunspell)
|
||||||
|
+ {
|
||||||
|
+ slang_T *lp = mi.mi_lp->lp_slang;
|
||||||
|
+ char_u *converted = 0;
|
||||||
|
+ char_u *thisword;
|
||||||
|
+ char_u *mi_end = mi.mi_end;
|
||||||
|
+ char_u *mi_final = mi.mi_word + strlen(mi.mi_word);
|
||||||
|
+
|
||||||
|
+ while (1)
|
||||||
|
+ {
|
||||||
|
+ ensurehunspellinit(lp);
|
||||||
|
+ if ((lp->sl_tohunconv.vc_fail == TRUE) || (lp->sl_fromhunconv.vc_fail == TRUE))
|
||||||
|
+ break;
|
||||||
|
+
|
||||||
|
+ if (mi_end != mi.mi_word)
|
||||||
|
+ {
|
||||||
|
+ thisword = vim_strnsave(mi.mi_word, mi_end - mi.mi_word);
|
||||||
|
+ converted = string_convert(&lp->sl_tohunconv, thisword, NULL);
|
||||||
|
+ if (converted)
|
||||||
|
+ {
|
||||||
|
+ if (Hunspell_spell(lp->sl_hunspell, converted) != 0)
|
||||||
|
+ {
|
||||||
|
+ mi.mi_result = SP_OK;
|
||||||
|
+ mi.mi_end = mi.mi_cend = mi.mi_word + strlen(thisword);
|
||||||
|
+ }
|
||||||
|
+ vim_free(converted);
|
||||||
|
+ }
|
||||||
|
+ vim_free(thisword);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (mi_end == mi_final)
|
||||||
|
+ break;
|
||||||
|
+
|
||||||
|
+ do
|
||||||
|
+ {
|
||||||
|
+ mb_ptr_adv(mi_end);
|
||||||
|
+ } while (*mi_end != NUL && spell_iswordp(mi_end, wp->w_buffer));
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/* If reloading fails the language is still in the list but everything
|
||||||
|
* has been cleared. */
|
||||||
|
- if (mi.mi_lp->lp_slang->sl_fidxs == NULL)
|
||||||
|
+ if (!mi.mi_lp->lp_slang->sl_ishunspell && mi.mi_lp->lp_slang->sl_fidxs == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
- /* Check for a matching word in case-folded words. */
|
||||||
|
- find_word(&mi, FIND_FOLDWORD);
|
||||||
|
+ if (!mi.mi_lp->lp_slang->sl_ishunspell)
|
||||||
|
+ {
|
||||||
|
+ /* Check for a matching word in case-folded words. */
|
||||||
|
+ find_word(&mi, FIND_FOLDWORD);
|
||||||
|
|
||||||
|
- /* Check for a matching word in keep-case words. */
|
||||||
|
- find_word(&mi, FIND_KEEPWORD);
|
||||||
|
+ /* Check for a matching word in keep-case words. */
|
||||||
|
+ find_word(&mi, FIND_KEEPWORD);
|
||||||
|
|
||||||
|
- /* Check for matching prefixes. */
|
||||||
|
- find_prefix(&mi, FIND_FOLDWORD);
|
||||||
|
+ /* Check for matching prefixes. */
|
||||||
|
+ find_prefix(&mi, FIND_FOLDWORD);
|
||||||
|
|
||||||
|
- /* For a NOBREAK language, may want to use a word without a following
|
||||||
|
- * word as a backup. */
|
||||||
|
- if (mi.mi_lp->lp_slang->sl_nobreak && mi.mi_result == SP_BAD
|
||||||
|
- && mi.mi_result2 != SP_BAD)
|
||||||
|
- {
|
||||||
|
- mi.mi_result = mi.mi_result2;
|
||||||
|
- mi.mi_end = mi.mi_end2;
|
||||||
|
+ /* For a NOBREAK language, may want to use a word without a following
|
||||||
|
+ * word as a backup. */
|
||||||
|
+ if (mi.mi_lp->lp_slang->sl_nobreak && mi.mi_result == SP_BAD
|
||||||
|
+ && mi.mi_result2 != SP_BAD)
|
||||||
|
+ {
|
||||||
|
+ mi.mi_result = mi.mi_result2;
|
||||||
|
+ mi.mi_end = mi.mi_end2;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Count the word in the first language where it's found to be OK. */
|
||||||
|
@@ -2359,6 +2440,80 @@
|
||||||
|
|
||||||
|
if (r == FAIL)
|
||||||
|
{
|
||||||
|
+# define HUNSPELLDICT "/usr/share/myspell/"
|
||||||
|
+ DIR *dirp = opendir(HUNSPELLDICT);
|
||||||
|
+ if (dirp != NULL)
|
||||||
|
+ {
|
||||||
|
+ slang_T* thislang[MAXREGIONS] = {0};
|
||||||
|
+ slang_T *lp = 0;
|
||||||
|
+ struct dirent *dp;
|
||||||
|
+ int i = 0;
|
||||||
|
+
|
||||||
|
+ while ((dp = readdir(dirp)) != NULL)
|
||||||
|
+ {
|
||||||
|
+ char_u final_name[MAXPATHL];
|
||||||
|
+ char_u spf_name[MAXPATHL];
|
||||||
|
+ char_u thisregion[3] = {0};
|
||||||
|
+ char *resolvedlink = final_name;
|
||||||
|
+ int j, regionpos;
|
||||||
|
+
|
||||||
|
+ if (strncmp(dp->d_name, lang, strlen(lang)) != 0)
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ if ((strlen(dp->d_name) <= 4) || (dp->d_name[strlen(lang)] != '_'))
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ if (strncmp(".dic", dp->d_name + strlen(dp->d_name) - 4, 4) != 0)
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ vim_strncpy(spf_name, HUNSPELLDICT, strlen(HUNSPELLDICT));
|
||||||
|
+ vim_strncpy(spf_name + strlen(HUNSPELLDICT), dp->d_name, strlen(HUNSPELLDICT));
|
||||||
|
+
|
||||||
|
+ if (realpath(spf_name, resolvedlink) != resolvedlink)
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ thisregion[0] = tolower(dp->d_name[strlen(lang)+1]);
|
||||||
|
+ thisregion[1] = tolower(dp->d_name[strlen(lang)+1+1]);
|
||||||
|
+
|
||||||
|
+ r = OK;
|
||||||
|
+
|
||||||
|
+ for (j = 0; j < MAXREGIONS; ++j)
|
||||||
|
+ {
|
||||||
|
+ if (thislang[j] && (strcmp(thislang[j]->sl_fname, final_name) == 0))
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (j < MAXREGIONS)
|
||||||
|
+ lp = thislang[j];
|
||||||
|
+ else
|
||||||
|
+ {
|
||||||
|
+ lp = slang_alloc(lang);
|
||||||
|
+ lp->sl_ishunspell = TRUE;
|
||||||
|
+
|
||||||
|
+ lp->sl_fname = vim_strsave(resolvedlink);
|
||||||
|
+
|
||||||
|
+ lp->sl_next = first_lang;
|
||||||
|
+ first_lang = lp;
|
||||||
|
+ thislang[i] = lp;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ regionpos = 0;
|
||||||
|
+ while (lp->sl_regions[regionpos] != 0) ++regionpos;
|
||||||
|
+
|
||||||
|
+ //silently lose regions which won't fit in
|
||||||
|
+ if (regionpos == MAXREGIONS * 2)
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ vim_strncpy(lp->sl_regions + regionpos, thisregion, 2);
|
||||||
|
+
|
||||||
|
+ ++i;
|
||||||
|
+ }
|
||||||
|
+ closedir(dirp);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (r == FAIL)
|
||||||
|
+ {
|
||||||
|
smsg((char_u *)_("Warning: Cannot find word list \"%s.%s.spl\" or \"%s.ascii.spl\""),
|
||||||
|
lang, spell_enc(), lang);
|
||||||
|
}
|
||||||
|
@@ -2429,6 +2584,9 @@
|
||||||
|
slang_free(lp)
|
||||||
|
slang_T *lp;
|
||||||
|
{
|
||||||
|
+ Hunspell_destroy(lp->sl_hunspell);
|
||||||
|
+ convert_setup(&lp->sl_tohunconv, NULL, NULL);
|
||||||
|
+ convert_setup(&lp->sl_fromhunconv, NULL, NULL);
|
||||||
|
vim_free(lp->sl_name);
|
||||||
|
vim_free(lp->sl_fname);
|
||||||
|
slang_clear(lp);
|
||||||
|
@@ -2974,7 +3132,7 @@
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
- if (len > 16)
|
||||||
|
+ if (len > MAXREGIONS*2)
|
||||||
|
return SP_FORMERROR;
|
||||||
|
for (i = 0; i < len; ++i)
|
||||||
|
lp->sl_regions[i] = getc(fd); /* <regionname> */
|
||||||
|
@@ -4112,6 +4270,7 @@
|
||||||
|
/* loop over comma separated language names. */
|
||||||
|
for (splp = buf->b_p_spl; *splp != NUL; )
|
||||||
|
{
|
||||||
|
+ int hunspellregionunsupported;
|
||||||
|
/* Get one language name. */
|
||||||
|
copy_option_part(&splp, lang, MAXWLEN, ",");
|
||||||
|
|
||||||
|
@@ -4182,6 +4341,7 @@
|
||||||
|
/*
|
||||||
|
* Loop over the languages, there can be several files for "lang".
|
||||||
|
*/
|
||||||
|
+ hunspellregionunsupported = 0;
|
||||||
|
for (slang = first_lang; slang != NULL; slang = slang->sl_next)
|
||||||
|
if (filename ? fullpathcmp(lang, slang->sl_fname, FALSE) == FPC_SAME
|
||||||
|
: STRICMP(lang, slang->sl_name) == 0)
|
||||||
|
@@ -4199,6 +4359,11 @@
|
||||||
|
/* This addition file is for other regions. */
|
||||||
|
region_mask = 0;
|
||||||
|
}
|
||||||
|
+ else if (slang->sl_ishunspell)
|
||||||
|
+ {
|
||||||
|
+ region_mask = 0;
|
||||||
|
+ hunspellregionunsupported++;
|
||||||
|
+ }
|
||||||
|
else
|
||||||
|
/* This is probably an error. Give a warning and
|
||||||
|
* accept the words anyway. */
|
||||||
|
@@ -4207,7 +4372,10 @@
|
||||||
|
region);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
+ {
|
||||||
|
+ hunspellregionunsupported--;
|
||||||
|
region_mask = 1 << c;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (region_mask != 0)
|
||||||
|
@@ -4225,6 +4393,9 @@
|
||||||
|
nobreak = TRUE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ if (region && hunspellregionunsupported >= 1)
|
||||||
|
+ smsg((char_u *) _("Warning: region %s not supported"), region);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* round 0: load int_wordlist, if possible.
|
||||||
|
@@ -4832,7 +5003,7 @@
|
||||||
|
char_u *si_info; /* info text chars or NULL */
|
||||||
|
int si_region_count; /* number of regions supported (1 when there
|
||||||
|
are no regions) */
|
||||||
|
- char_u si_region_name[16]; /* region names; used only if
|
||||||
|
+ char_u si_region_name[MAXREGIONS*2]; /* region names; used only if
|
||||||
|
* si_region_count > 1) */
|
||||||
|
|
||||||
|
garray_T si_rep; /* list of fromto_T entries from REP lines */
|
||||||
|
@@ -7093,7 +7264,7 @@
|
||||||
|
else
|
||||||
|
{
|
||||||
|
line += 8;
|
||||||
|
- if (STRLEN(line) > 16)
|
||||||
|
+ if (STRLEN(line) > MAXREGIONS)
|
||||||
|
smsg((char_u *)_("Too many regions in %s line %d: %s"),
|
||||||
|
fname, lnum, line);
|
||||||
|
else
|
||||||
|
@@ -8973,7 +9144,7 @@
|
||||||
|
char_u wfname[MAXPATHL];
|
||||||
|
char_u **innames;
|
||||||
|
int incount;
|
||||||
|
- afffile_T *(afile[8]);
|
||||||
|
+ afffile_T *(afile[MAXREGIONS]);
|
||||||
|
int i;
|
||||||
|
int len;
|
||||||
|
struct stat st;
|
||||||
|
@@ -9040,8 +9211,8 @@
|
||||||
|
EMSG(_(e_invarg)); /* need at least output and input names */
|
||||||
|
else if (vim_strchr(gettail(wfname), '_') != NULL)
|
||||||
|
EMSG(_("E751: Output file name must not have region name"));
|
||||||
|
- else if (incount > 8)
|
||||||
|
- EMSG(_("E754: Only up to 8 regions supported"));
|
||||||
|
+ else if (incount > MAXREGIONS)
|
||||||
|
+ EMSG2(_("E754: Only up to %d regions supported"), MAXREGIONS);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Check for overwriting before doing things that may take a lot of
|
||||||
|
@@ -11097,6 +11268,36 @@
|
||||||
|
{
|
||||||
|
lp = LANGP_ENTRY(curbuf->b_langp, lpi);
|
||||||
|
|
||||||
|
+ if (lp->lp_slang->sl_ishunspell)
|
||||||
|
+ {
|
||||||
|
+ slang_T *slp = lp->lp_slang;
|
||||||
|
+ char **slst;
|
||||||
|
+ char_u *converted = 0;
|
||||||
|
+
|
||||||
|
+ ensurehunspellinit(slp);
|
||||||
|
+
|
||||||
|
+ converted = string_convert(&slp->sl_tohunconv, su->su_fbadword, NULL);
|
||||||
|
+ if (converted)
|
||||||
|
+ {
|
||||||
|
+ int suggests;
|
||||||
|
+ suggests = Hunspell_suggest(slp->sl_hunspell, &slst, converted);
|
||||||
|
+ if (suggests > 0)
|
||||||
|
+ {
|
||||||
|
+ int i;
|
||||||
|
+ char_u *suggest;
|
||||||
|
+ for (i = 0; i < suggests; ++i)
|
||||||
|
+ {
|
||||||
|
+ suggest = string_convert(&slp->sl_fromhunconv, slst[i], NULL);
|
||||||
|
+ add_suggestion(su, &su->su_ga, suggest, su->su_badlen, i, 0, FALSE,
|
||||||
|
+ slp, FALSE);
|
||||||
|
+ vim_free(suggest);
|
||||||
|
+ }
|
||||||
|
+ free(slst);
|
||||||
|
+ }
|
||||||
|
+ vim_free(converted);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/* If reloading a spell file fails it's still in the list but
|
||||||
|
* everything has been cleared. */
|
||||||
|
if (lp->lp_slang->sl_fbyts == NULL)
|
15
vim-7.0-rclocation.patch
Normal file
15
vim-7.0-rclocation.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- vim62/src/os_unix.h.rcloc 2003-08-04 15:38:05.000000000 +0200
|
||||||
|
+++ vim62/src/os_unix.h 2003-08-04 15:39:25.000000000 +0200
|
||||||
|
@@ -230,10 +230,10 @@
|
||||||
|
* Unix system-dependent file names
|
||||||
|
*/
|
||||||
|
#ifndef SYS_VIMRC_FILE
|
||||||
|
-# define SYS_VIMRC_FILE "$VIM/vimrc"
|
||||||
|
+# define SYS_VIMRC_FILE "/etc/vimrc"
|
||||||
|
#endif
|
||||||
|
#ifndef SYS_GVIMRC_FILE
|
||||||
|
-# define SYS_GVIMRC_FILE "$VIM/gvimrc"
|
||||||
|
+# define SYS_GVIMRC_FILE "/etc/gvimrc"
|
||||||
|
#endif
|
||||||
|
#ifndef DFLT_HELPFILE
|
||||||
|
# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
|
12
vim-7.3-manpage-typo-668894-675480.patch
Normal file
12
vim-7.3-manpage-typo-668894-675480.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up vim73/runtime/doc/vim.1.668894 vim73/runtime/doc/vim.1
|
||||||
|
--- vim73/runtime/doc/vim.1.668894 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73/runtime/doc/vim.1 2012-08-28 12:41:36.000000000 +0200
|
||||||
|
@@ -73,7 +73,7 @@ To edit a file that starts with a dash,
|
||||||
|
.TP
|
||||||
|
\-
|
||||||
|
The file to edit is read from stdin. Commands are read from stderr, which
|
||||||
|
-should be a tty.
|
||||||
|
+should be a TTY.
|
||||||
|
.TP
|
||||||
|
\-t {tag}
|
||||||
|
The file to edit and the initial cursor position depends on a "tag", a sort
|
21
vim-7.4-fstabsyntax.patch
Normal file
21
vim-7.4-fstabsyntax.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -up vim82/runtime/syntax/fstab.vim.fstabsyntax vim82/runtime/syntax/fstab.vim
|
||||||
|
--- vim82/runtime/syntax/fstab.vim.fstabsyntax 2020-08-10 12:08:01.000000000 +0200
|
||||||
|
+++ vim82/runtime/syntax/fstab.vim 2020-08-10 12:17:22.540855735 +0200
|
||||||
|
@@ -56,7 +56,7 @@ syn keyword fsMountPointKeyword containe
|
||||||
|
" Type
|
||||||
|
syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown
|
||||||
|
syn match fsTypeUnknown /\s\+\zs\w\+/ contained
|
||||||
|
-syn keyword fsTypeKeyword contained adfs ados affs anon_inodefs atfs audiofs auto autofs bdev befs bfs btrfs binfmt_misc cd9660 cfs cgroup cifs coda configfs cpuset cramfs devfs devpts devtmpfs e2compr efs ext2 ext2fs ext3 ext4 fdesc ffs filecore fuse fuseblk fusectl hfs hpfs hugetlbfs iso9660 jffs jffs2 jfs kernfs lfs linprocfs mfs minix mqueue msdos ncpfs nfs nfsd nilfs2 none ntfs null nwfs overlay ovlfs pipefs portal proc procfs pstore ptyfs qnx4 reiserfs ramfs romfs securityfs shm smbfs squashfs sockfs sshfs std subfs swap sysfs sysv tcfs tmpfs udf ufs umap umsdos union usbfs userfs vfat vs3fs vxfs wrapfs wvfs xenfs xfs zisofs
|
||||||
|
+syn keyword fsTypeKeyword contained adfs ados affs anon_inodefs atfs audiofs auto autofs bdev befs bfs btrfs binfmt_misc cd9660 cfs cgroup cifs coda configfs cpuset cramfs devfs devpts devtmpfs e2compr efs ext2 ext2fs ext3 ext4 fdesc ffs filecore fuse fuseblk fusectl hfs hpfs hugetlbfs iso9660 jffs jffs2 jfs kernfs lfs linprocfs mfs minix mqueue msdos ncpfs nfs nfsd nilfs2 none ntfs null nwfs overlay ovlfs pipefs portal proc procfs pstore ptyfs qnx4 reiserfs ramfs romfs rpc_pipefs securityfs shm smbfs squashfs sockfs sshfs std subfs swap sysfs sysv tcfs tmpfs udf ufs umap umsdos union usbfs userfs vfat vs3fs vxfs wrapfs wvfs xenfs xfs zisofs
|
||||||
|
|
||||||
|
" Options
|
||||||
|
" -------
|
||||||
|
@@ -68,7 +68,7 @@ syn match fsOptionsString /[a-zA-Z0-9_-]
|
||||||
|
syn keyword fsOptionsYesNo yes no
|
||||||
|
syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck
|
||||||
|
syn keyword fsOptionsSize 512 1024 2048
|
||||||
|
-syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid devmode devmtime devuid dirsync exec force fstab kudzu loop mand move noatime noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand norelatime nosuid nosymfollow nouser owner rbind rdonly relatime remount ro rq rw suid suiddir supermount sw sync union update user users wxallowed xx nofail failok
|
||||||
|
+syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid devmode devmtime devuid dirsync exec force fstab kudzu loop managed mand move noatime noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand norelatime nosuid nosymfollow nouser owner pamconsole rbind rdonly relatime remount ro rq rw suid suiddir supermount sw sync union update user users wxallowed xx nofail
|
||||||
|
syn match fsOptionsGeneral /_netdev/
|
||||||
|
|
||||||
|
" Options: adfs
|
13
vim-7.4-globalsyntax.patch
Normal file
13
vim-7.4-globalsyntax.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/runtime/syntax/spec.vim b/runtime/syntax/spec.vim
|
||||||
|
index 1a5a108..b709d20 100644
|
||||||
|
--- a/runtime/syntax/spec.vim
|
||||||
|
+++ b/runtime/syntax/spec.vim
|
||||||
|
@@ -111,7 +111,7 @@ syn region specDescriptionArea matchgroup=specSection start='^%description' end=
|
||||||
|
syn region specPackageArea matchgroup=specSection start='^%package' end='^%'me=e-1 contains=specPackageOpts,specPreAmble,specComment
|
||||||
|
|
||||||
|
"%% Scripts Section %%
|
||||||
|
-syn region specScriptArea matchgroup=specSection start='^%\(prep\|build\|install\|clean\|check\|pre\|postun\|preun\|post\|posttrans\)\>' skip='^%{\|^%\(define\|patch\d*\|configure\|GNUconfigure\|setup\|autosetup\|autopatch\|find_lang\|make_build\|makeinstall\|make_install\)\>' end='^%'me=e-1 contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2
|
||||||
|
+syn region specScriptArea matchgroup=specSection start='^%\(prep\|build\|install\|clean\|check\|pre\|postun\|preun\|post\|posttrans\)\>' skip='^%{\|^%\(define\|global\|patch\d*\|configure\|GNUconfigure\|setup\|autosetup\|autopatch\|find_lang\|make_build\|makeinstall\|make_install\)\>' end='^%'me=e-1 contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2
|
||||||
|
|
||||||
|
"%% Changelog Section %%
|
||||||
|
syn region specChangelogArea matchgroup=specSection start='^%changelog' end='^%'me=e-1 contains=specEmail,specURL,specWeekday,specMonth,specNumber,specComment,specLicense
|
11
vim-7.4-nowarnings.patch
Normal file
11
vim-7.4-nowarnings.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -up vim82/src/ex_docmd.c.nowarnings vim82/src/ex_docmd.c
|
||||||
|
--- vim82/src/ex_docmd.c.nowarnings 2020-07-28 11:42:07.437603829 +0200
|
||||||
|
+++ vim82/src/ex_docmd.c 2020-07-28 11:44:25.432201129 +0200
|
||||||
|
@@ -4020,6 +4020,7 @@ get_flags(exarg_T *eap)
|
||||||
|
void
|
||||||
|
ex_ni(exarg_T *eap)
|
||||||
|
{
|
||||||
|
+ return;
|
||||||
|
if (!eap->skip)
|
||||||
|
eap->errmsg =
|
||||||
|
_("E319: Sorry, the command is not available in this version");
|
14
vim-7.4-releasestring-1318991.patch
Normal file
14
vim-7.4-releasestring-1318991.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -up vim74/runtime/ftplugin/spec.vim.1318991 vim74/runtime/ftplugin/spec.vim
|
||||||
|
--- vim74/runtime/ftplugin/spec.vim.1318991 2016-08-04 15:29:42.423862424 +0200
|
||||||
|
+++ vim74/runtime/ftplugin/spec.vim 2016-08-04 15:31:08.797299188 +0200
|
||||||
|
@@ -41,8 +41,8 @@ else:
|
||||||
|
headers = spec.sourceHeader
|
||||||
|
version = headers["Version"]
|
||||||
|
release = headers["Release"]
|
||||||
|
- vim.command("let ver = " + version)
|
||||||
|
- vim.command("let rel = " + release)
|
||||||
|
+ vim.command("let ver = '" + version + "'")
|
||||||
|
+ vim.command("let rel = '" + release + "'")
|
||||||
|
PYEND
|
||||||
|
endif
|
||||||
|
endfunction
|
33
vim-7.4-specsyntax.patch
Normal file
33
vim-7.4-specsyntax.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
diff -up vim74/runtime/syntax/spec.vim.highlite vim74/runtime/syntax/spec.vim
|
||||||
|
--- vim74/runtime/syntax/spec.vim.highlite 2016-07-04 10:17:45.000000000 +0200
|
||||||
|
+++ vim74/runtime/syntax/spec.vim 2016-08-04 15:20:26.116049343 +0200
|
||||||
|
@@ -38,7 +38,7 @@ syn match specNoNumberHilite 'X11\|X11R6
|
||||||
|
syn match specManpageFile '[a-zA-Z]\.1'
|
||||||
|
|
||||||
|
"Day, Month and most used license acronyms
|
||||||
|
-syn keyword specLicense contained GPL LGPL BSD MIT GNU
|
||||||
|
+syn keyword specLicense contained GPL LGPL BSD MIT GNU distributable
|
||||||
|
syn keyword specWeekday contained Mon Tue Wed Thu Fri Sat Sun
|
||||||
|
syn keyword specMonth contained Jan Feb Mar Apr Jun Jul Aug Sep Oct Nov Dec
|
||||||
|
syn keyword specMonth contained January February March April May June July August September October November December
|
||||||
|
@@ -61,9 +61,9 @@ syn cluster specListedFiles contains=spe
|
||||||
|
|
||||||
|
"specComands
|
||||||
|
syn match specConfigure contained '\./configure'
|
||||||
|
-syn match specTarCommand contained '\<tar\s\+[cxvpzIf]\{,5}\s*'
|
||||||
|
+syn match specTarCommand contained '\<tar\s\+[cxvpzIjf]\{,5}\s*'
|
||||||
|
syn keyword specCommandSpecial contained root
|
||||||
|
-syn keyword specCommand contained make xmkmf mkdir chmod ln find sed rm strip moc echo grep ls rm mv mkdir install cp pwd cat tail then else elif cd gzip rmdir ln eval export touch
|
||||||
|
+syn keyword specCommand contained make xmkmf mkdir chmod ln find sed rm strip moc echo grep ls rm mv mkdir install cp pwd cat tail then else elif cd gzip rmdir ln eval export touch bzip2 bunzip2 gunzip
|
||||||
|
syn cluster specCommands contains=specCommand,specTarCommand,specConfigure,specCommandSpecial
|
||||||
|
|
||||||
|
"frequently used rpm env vars
|
||||||
|
@@ -105,7 +105,7 @@ syn case ignore
|
||||||
|
"%% PreAmble Section %%
|
||||||
|
"Copyright and Serial were deprecated by License and Epoch
|
||||||
|
syn region specPreAmbleDeprecated oneline matchgroup=specError start='^\(Copyright\|Serial\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
|
||||||
|
-syn region specPreAmble oneline matchgroup=specCommand start='^\(Prereq\|Summary\|Name\|Version\|Packager\|Requires\|Recommends\|Suggests\|Supplements\|Enhances\|Icon\|URL\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|BuildPreReq\|Conflicts\|AutoRequires\|AutoReq\|AutoReqProv\|AutoProv\|Epoch\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
|
||||||
|
+syn region specPreAmble oneline matchgroup=specCommand start='^\(Prereq\|Summary\|Name\|Version\|Packager\|Requires\|Recommends\|Suggests\|Supplements\|Enhances\|Icon\|URL\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExcludeOS\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|BuildPreReq\|Conflicts\|AutoRequires\|AutoReq\|AutoReqProv\|AutoProv\|Epoch\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
|
||||||
|
|
||||||
|
"%% Description Section %%
|
||||||
|
syn region specDescriptionArea matchgroup=specSection start='^%description' end='^%'me=e-1 contains=specDescriptionOpts,specEmail,specURL,specNumber,specMacroIdentifier,specComment
|
26
vim-7.4-syncolor.patch
Normal file
26
vim-7.4-syncolor.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/src/highlight.c b/src/highlight.c
|
||||||
|
index 9322f96..f7147a0 100644
|
||||||
|
--- a/src/highlight.c
|
||||||
|
+++ b/src/highlight.c
|
||||||
|
@@ -211,8 +211,8 @@ static char *(highlight_init_light[]) = {
|
||||||
|
CENT("Visual term=reverse",
|
||||||
|
"Visual term=reverse guibg=LightGrey"),
|
||||||
|
#ifdef FEAT_DIFF
|
||||||
|
- CENT("DiffAdd term=bold ctermbg=LightBlue",
|
||||||
|
- "DiffAdd term=bold ctermbg=LightBlue guibg=LightBlue"),
|
||||||
|
+ CENT("DiffAdd term=bold ctermbg=LightRed",
|
||||||
|
+ "DiffAdd term=bold ctermbg=LightRed guibg=LightBlue"),
|
||||||
|
CENT("DiffChange term=bold ctermbg=LightMagenta",
|
||||||
|
"DiffChange term=bold ctermbg=LightMagenta guibg=LightMagenta"),
|
||||||
|
CENT("DiffDelete term=bold ctermfg=Blue ctermbg=LightCyan",
|
||||||
|
@@ -304,8 +304,8 @@ static char *(highlight_init_dark[]) = {
|
||||||
|
CENT("Visual term=reverse",
|
||||||
|
"Visual term=reverse guibg=DarkGrey"),
|
||||||
|
#ifdef FEAT_DIFF
|
||||||
|
- CENT("DiffAdd term=bold ctermbg=DarkBlue",
|
||||||
|
- "DiffAdd term=bold ctermbg=DarkBlue guibg=DarkBlue"),
|
||||||
|
+ CENT("DiffAdd term=bold ctermbg=DarkRed",
|
||||||
|
+ "DiffAdd term=bold ctermbg=DarkRed guibg=DarkBlue"),
|
||||||
|
CENT("DiffChange term=bold ctermbg=DarkMagenta",
|
||||||
|
"DiffChange term=bold ctermbg=DarkMagenta guibg=DarkMagenta"),
|
||||||
|
CENT("DiffDelete term=bold ctermfg=Blue ctermbg=DarkCyan",
|
11
vim-7.4-syntax.patch
Normal file
11
vim-7.4-syntax.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- vim74/runtime/filetype.vim.orig 2013-08-12 14:51:58.669350813 +0200
|
||||||
|
+++ vim74/runtime/filetype.vim 2013-08-12 14:56:12.432540523 +0200
|
||||||
|
@@ -2475,7 +2475,7 @@
|
||||||
|
|
||||||
|
" More Apache config files
|
||||||
|
au BufNewFile,BufRead access.conf*,apache.conf*,apache2.conf*,httpd.conf*,srm.conf* call s:StarSetf('apache')
|
||||||
|
-au BufNewFile,BufRead */etc/apache2/*.conf*,*/etc/apache2/conf.*/*,*/etc/apache2/mods-*/*,*/etc/apache2/sites-*/*,*/etc/httpd/conf.d/*.conf* call s:StarSetf('apache')
|
||||||
|
+au BufNewFile,BufRead */etc/apache2/*.conf*,*/etc/httpd/conf.*/*,*/etc/httpd/mods-*/*,*/etc/httpd/sites-*/*,*/etc/httpd/conf.d/*.conf*,auth_mysql.conf*,auth_pgsql.conf*,ssl.conf*,perl.conf*,php.conf*,python.conf*,squirrelmail.conf* call s:StarSetf('apache')
|
||||||
|
|
||||||
|
" Asterisk config file
|
||||||
|
au BufNewFile,BufRead *asterisk/*.conf* call s:StarSetf('asterisk')
|
22
vim-8.0-copy-paste.patch
Normal file
22
vim-8.0-copy-paste.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff -up vim82/runtime/defaults.vim.copypaste vim82/runtime/defaults.vim
|
||||||
|
--- vim82/runtime/defaults.vim.copypaste 2020-10-06 17:03:19.276066889 +0200
|
||||||
|
+++ vim82/runtime/defaults.vim 2020-10-06 17:04:30.437448603 +0200
|
||||||
|
@@ -73,18 +73,6 @@ map Q gq
|
||||||
|
" Revert with ":iunmap <C-U>".
|
||||||
|
inoremap <C-U> <C-G>u<C-U>
|
||||||
|
|
||||||
|
-" In many terminal emulators the mouse works just fine. By enabling it you
|
||||||
|
-" can position the cursor, Visually select and scroll with the mouse.
|
||||||
|
-" Only xterm can grab the mouse events when using the shift key, for other
|
||||||
|
-" terminals use ":", select text and press Esc.
|
||||||
|
-if has('mouse')
|
||||||
|
- if &term =~ 'xterm'
|
||||||
|
- set mouse=a
|
||||||
|
- else
|
||||||
|
- set mouse=nvi
|
||||||
|
- endif
|
||||||
|
-endif
|
||||||
|
-
|
||||||
|
" Only do this part when Vim was compiled with the +eval feature.
|
||||||
|
if 1
|
||||||
|
|
83
vim-crypto-warning.patch
Normal file
83
vim-crypto-warning.patch
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
diff -up vim81/src/config.h.in.crypto vim81/src/config.h.in
|
||||||
|
--- vim81/src/config.h.in.crypto 2019-07-26 07:58:51.000000000 +0200
|
||||||
|
+++ vim81/src/config.h.in 2019-09-16 14:18:32.994110646 +0200
|
||||||
|
@@ -490,3 +490,12 @@
|
||||||
|
|
||||||
|
/* Define to inline symbol or empty */
|
||||||
|
#undef inline
|
||||||
|
+
|
||||||
|
+/* Do we need FIPS warning? */
|
||||||
|
+#undef HAVE_FIPS_WARNING
|
||||||
|
+
|
||||||
|
+/* Link to system-fips file */
|
||||||
|
+#undef SYSTEM_FIPS_FILE_LINK
|
||||||
|
+
|
||||||
|
+/* Link to fips_enabled file */
|
||||||
|
+#undef FIPS_ENABLED_FILE_LINK
|
||||||
|
diff -up vim81/src/configure.ac.crypto vim81/src/configure.ac
|
||||||
|
--- vim81/src/configure.ac.crypto 2019-09-16 14:18:32.990110675 +0200
|
||||||
|
+++ vim81/src/configure.ac 2019-09-16 14:18:32.996110631 +0200
|
||||||
|
@@ -534,6 +534,38 @@ else
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
fi
|
||||||
|
|
||||||
|
+dnl Checking if we want FIPS warning
|
||||||
|
+
|
||||||
|
+AC_MSG_CHECKING(--enable-fips-warning)
|
||||||
|
+AC_ARG_ENABLE([fips-warning],
|
||||||
|
+ AS_HELP_STRING([--enable-fips-warning], [Enable FIPS warning]),
|
||||||
|
+ ,[enable_fips_warning="no"])
|
||||||
|
+
|
||||||
|
+if test "$enable_fips_warning" = "yes"; then
|
||||||
|
+ AC_MSG_RESULT(yes)
|
||||||
|
+ AC_DEFINE([HAVE_FIPS_WARNING])
|
||||||
|
+
|
||||||
|
+ dnl Setting path for system-fips file
|
||||||
|
+
|
||||||
|
+ AC_MSG_CHECKING(--with-system-fips-file argument)
|
||||||
|
+ AC_ARG_WITH([system-fips-file], [ --with-system-fips-file=PATH Link to system-fips file (default: /etc/system-fips)],
|
||||||
|
+ with_system_fips_file=$withval,
|
||||||
|
+ with_system_fips_file="/etc/system-fips")
|
||||||
|
+ AC_MSG_RESULT([$with_system_fips_file])
|
||||||
|
+ AC_DEFINE_UNQUOTED([SYSTEM_FIPS_FILE_LINK], ["$with_system_fips_file"])
|
||||||
|
+
|
||||||
|
+ dnl Setting link to fips_enabled file
|
||||||
|
+
|
||||||
|
+ AC_MSG_CHECKING(--with-fips-enabled-file argument)
|
||||||
|
+ AC_ARG_WITH([fips-enabled-file], [ --with-fips-enabled-file=PATH Link to fibs_enabled file (default: /proc/sys/crypto/fips_enabled)],
|
||||||
|
+ with_fips_enabled_file=$withval,
|
||||||
|
+ with_fips_enabled_file="/proc/sys/crypto/fips_enabled")
|
||||||
|
+ AC_MSG_RESULT([$with_fips_enabled_file])
|
||||||
|
+ AC_DEFINE_UNQUOTED([FIPS_ENABLED_FILE_LINK], ["$with_fips_enabled_file"])
|
||||||
|
+else
|
||||||
|
+ AC_MSG_RESULT(no)
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
dnl Check for Lua feature.
|
||||||
|
AC_MSG_CHECKING(--enable-luainterp argument)
|
||||||
|
AC_ARG_ENABLE(luainterp,
|
||||||
|
diff -up vim81/src/crypt.c.crypto vim81/src/crypt.c
|
||||||
|
--- vim81/src/crypt.c.crypto 2019-09-16 14:18:32.996110631 +0200
|
||||||
|
+++ vim81/src/crypt.c 2019-09-16 14:19:48.953550617 +0200
|
||||||
|
@@ -524,6 +524,21 @@ crypt_check_method(int method)
|
||||||
|
msg_scroll = TRUE;
|
||||||
|
msg(_("Warning: Using a weak encryption method; see :help 'cm'"));
|
||||||
|
}
|
||||||
|
+#ifdef HAVE_FIPS_WARNING
|
||||||
|
+ FILE *fips_enable_fd = fopen(FIPS_ENABLED_FILE_LINK, "r");
|
||||||
|
+ if (fips_enable_fd == NULL)
|
||||||
|
+ return;
|
||||||
|
+
|
||||||
|
+ int enabled = fgetc(fips_enable_fd);
|
||||||
|
+
|
||||||
|
+ if ( access(SYSTEM_FIPS_FILE_LINK, F_OK) != -1 && enabled == '1')
|
||||||
|
+ {
|
||||||
|
+ msg_scroll = TRUE;
|
||||||
|
+ msg(_("Warning: This cryptography is not FIPS 140-2 compliant."));
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ fclose(fips_enable_fd);
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
5
vim-default-editor.csh
Normal file
5
vim-default-editor.csh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Ensure vim is set as EDITOR if it isn't already set
|
||||||
|
|
||||||
|
if ( ! ($?EDITOR) ) then
|
||||||
|
setenv EDITOR "/usr/bin/vim"
|
||||||
|
endif
|
8
vim-default-editor.fish
Normal file
8
vim-default-editor.fish
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Ensure vim is set as EDITOR if it isn't already set
|
||||||
|
# This is set as a universal variable so that any other definition
|
||||||
|
# by the user would win
|
||||||
|
# Cf. https://fishshell.com/docs/current/index.html#variables-scope
|
||||||
|
|
||||||
|
if ! set -q EDITOR;
|
||||||
|
set -x EDITOR /usr/bin/vim
|
||||||
|
end
|
5
vim-default-editor.sh
Normal file
5
vim-default-editor.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Ensure vim is set as EDITOR if it isn't already set
|
||||||
|
|
||||||
|
if [ -z "$EDITOR" ]; then
|
||||||
|
export EDITOR="/usr/bin/vim"
|
||||||
|
fi
|
326
vim-manpagefixes-948566.patch
Normal file
326
vim-manpagefixes-948566.patch
Normal file
@ -0,0 +1,326 @@
|
|||||||
|
diff -up vim73/runtime/doc/vim.man.rh1 vim73/runtime/doc/vim.man
|
||||||
|
--- vim73/runtime/doc/vim.man.rh1 2013-07-26 11:26:20.566576864 +0200
|
||||||
|
+++ vim73/runtime/doc/vim.man 2013-07-26 11:47:42.061351469 +0200
|
||||||
|
@@ -11,9 +11,9 @@ SYNOPSIS
|
||||||
|
vim [options] -t tag
|
||||||
|
vim [options] -q [errorfile]
|
||||||
|
|
||||||
|
- ex
|
||||||
|
+ ex gex
|
||||||
|
view
|
||||||
|
- gvim gview evim eview
|
||||||
|
+ gvim gview vimx evim eview
|
||||||
|
rvim rview rgvim rgview
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
@@ -79,8 +79,13 @@ DESCRIPTION
|
||||||
|
the files. Can also be done with the "-R" argument.
|
||||||
|
|
||||||
|
gvim gview
|
||||||
|
- The GUI version. Starts a new window. Can also be done with
|
||||||
|
- the "-g" argument.
|
||||||
|
+ The GUI version. Starts a new window.
|
||||||
|
+
|
||||||
|
+ gex Starts a new gvim window in Ex mode. Can also be done with
|
||||||
|
+ the "-e" argument to gvim.
|
||||||
|
+
|
||||||
|
+ vimx Starts gvim in "Vi" mode similar to "vim", but with
|
||||||
|
+ additional features like xterm clipboard support.
|
||||||
|
|
||||||
|
evim eview
|
||||||
|
The GUI version in easy mode. Starts a new window. Can also
|
||||||
|
diff -urN vim73/runtime/doc/vim.1 vim73_new/runtime/doc/vim.1
|
||||||
|
--- vim73/runtime/doc/vim.1 2013-07-31 14:13:01.039765800 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim.1 2013-07-31 13:57:59.861912768 +0200
|
||||||
|
@@ -17,11 +17,13 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
.B evim
|
||||||
|
.B eview
|
||||||
|
.br
|
||||||
|
@@ -114,7 +116,12 @@
|
||||||
|
gvim gview
|
||||||
|
The GUI version.
|
||||||
|
Starts a new window.
|
||||||
|
-Can also be done with the "\-g" argument.
|
||||||
|
+.TP
|
||||||
|
+gex
|
||||||
|
+Starts a new gvim window in Ex mode. Can also be done with the "-e" argument to gvim
|
||||||
|
+.TP
|
||||||
|
+vimx
|
||||||
|
+Starts gvim in "Vi" mode similar to "vim", but with additional features like xterm clipboard support
|
||||||
|
.TP
|
||||||
|
evim eview
|
||||||
|
The GUI version in easy mode.
|
||||||
|
@@ -458,6 +458,12 @@
|
||||||
|
\-\-remote\-wait\-silent
|
||||||
|
As \-\-remote\-wait, but without the warning when no server is found.
|
||||||
|
.TP
|
||||||
|
+\-\-remote\-tab[\-wait][\-silent]
|
||||||
|
+As \-\-remote but use tab page per file
|
||||||
|
+.TP
|
||||||
|
+\-\-role
|
||||||
|
+Set a unique role to identify the main window
|
||||||
|
+.TP
|
||||||
|
\-\-serverlist
|
||||||
|
List the names of all Vim servers that can be found.
|
||||||
|
.TP
|
||||||
|
diff -urN vim73/runtime/doc/vim-fr.1 vim73_new/runtime/doc/vim-fr.1
|
||||||
|
--- vim73/runtime/doc/vim-fr.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-fr.1 2013-07-31 13:59:10.587467916 +0200
|
||||||
|
@@ -24,11 +24,13 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
.B evim
|
||||||
|
.B eview
|
||||||
|
.br
|
||||||
|
diff -urN vim73/runtime/doc/vim-fr.UTF-8.1 vim73_new/runtime/doc/vim-fr.UTF-8.1
|
||||||
|
--- vim73/runtime/doc/vim-fr.UTF-8.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-fr.UTF-8.1 2013-07-31 13:59:28.394852347 +0200
|
||||||
|
@@ -24,11 +24,13 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
.B evim
|
||||||
|
.B eview
|
||||||
|
.br
|
||||||
|
diff -urN vim73/runtime/doc/vim-it.1 vim73_new/runtime/doc/vim-it.1
|
||||||
|
--- vim73/runtime/doc/vim-it.1 2010-07-27 22:22:52.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-it.1 2013-07-31 13:59:43.474331077 +0200
|
||||||
|
@@ -17,11 +17,13 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
.B evim
|
||||||
|
.B eview
|
||||||
|
.br
|
||||||
|
diff -urN vim73/runtime/doc/vim-it.UTF-8.1 vim73_new/runtime/doc/vim-it.UTF-8.1
|
||||||
|
--- vim73/runtime/doc/vim-it.UTF-8.1 2010-07-30 20:53:57.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-it.UTF-8.1 2013-07-31 13:59:55.985898573 +0200
|
||||||
|
@@ -17,11 +17,13 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
.B evim
|
||||||
|
.B eview
|
||||||
|
.br
|
||||||
|
diff -urN vim73/runtime/doc/vim.man vim73_new/runtime/doc/vim.man
|
||||||
|
--- vim73/runtime/doc/vim.man 2013-07-31 14:13:01.044765627 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim.man 2013-07-31 13:53:35.107064804 +0200
|
||||||
|
@@ -82,10 +82,10 @@
|
||||||
|
The GUI version. Starts a new window.
|
||||||
|
|
||||||
|
gex Starts a new gvim window in Ex mode. Can also be done with
|
||||||
|
- the "-e" argument to gvim.
|
||||||
|
+ the "-e" argument to gvim
|
||||||
|
|
||||||
|
vimx Starts gvim in "Vi" mode similar to "vim", but with
|
||||||
|
- additional features like xterm clipboard support.
|
||||||
|
+ additional features like xterm clipboard support
|
||||||
|
|
||||||
|
evim eview
|
||||||
|
The GUI version in easy mode. Starts a new window. Can also
|
||||||
|
diff -urN vim73/runtime/doc/vim-pl.1 vim73_new/runtime/doc/vim-pl.1
|
||||||
|
--- vim73/runtime/doc/vim-pl.1 2010-05-15 13:04:01.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-pl.1 2013-07-31 14:00:21.282024131 +0200
|
||||||
|
@@ -17,11 +17,13 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
.B evim
|
||||||
|
.B eview
|
||||||
|
.br
|
||||||
|
diff -urN vim73/runtime/doc/vim-pl.UTF-8.1 vim73_new/runtime/doc/vim-pl.UTF-8.1
|
||||||
|
--- vim73/runtime/doc/vim-pl.UTF-8.1 2010-05-15 13:37:38.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-pl.UTF-8.1 2013-07-31 14:00:36.056513402 +0200
|
||||||
|
@@ -17,11 +17,13 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
.B evim
|
||||||
|
.B eview
|
||||||
|
.br
|
||||||
|
diff -urN vim73/runtime/doc/vim-ru.1 vim73_new/runtime/doc/vim-ru.1
|
||||||
|
--- vim73/runtime/doc/vim-ru.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-ru.1 2013-07-31 14:01:10.071337568 +0200
|
||||||
|
@@ -17,11 +17,15 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
+.B evim
|
||||||
|
+.B eview
|
||||||
|
.br
|
||||||
|
.B rvim
|
||||||
|
.B rview
|
||||||
|
diff -urN vim73/runtime/doc/vim-ru.UTF-8.1 vim73_new/runtime/doc/vim-ru.UTF-8.1
|
||||||
|
--- vim73/runtime/doc/vim-ru.UTF-8.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vim-ru.UTF-8.1 2013-07-31 14:01:34.494493301 +0200
|
||||||
|
@@ -17,11 +17,15 @@
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B ex
|
||||||
|
+.B gex
|
||||||
|
.br
|
||||||
|
.B view
|
||||||
|
.br
|
||||||
|
.B gvim
|
||||||
|
.B gview
|
||||||
|
+.B vimx
|
||||||
|
+.B evim
|
||||||
|
+.B eview
|
||||||
|
.br
|
||||||
|
.B rvim
|
||||||
|
.B rview
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor.1 vim73_new/runtime/doc/vimtutor.1
|
||||||
|
--- vim73/runtime/doc/vimtutor.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor.1 2013-07-31 14:10:10.093671964 +0200
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.br
|
||||||
|
.B vimtutor [\-g] [language]
|
||||||
|
+.br
|
||||||
|
+.B gvimtutor
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.B Vimtutor
|
||||||
|
starts the
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor-it.1 vim73_new/runtime/doc/vimtutor-it.1
|
||||||
|
--- vim73/runtime/doc/vimtutor-it.1 2010-07-27 22:35:32.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor-it.1 2013-07-31 14:10:33.564861055 +0200
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
.SH SINTASSI
|
||||||
|
.br
|
||||||
|
.B vimtutor [\-g] [lingua]
|
||||||
|
+.br
|
||||||
|
+.B gvimtutor
|
||||||
|
.SH DESCRIZIONE
|
||||||
|
.B Vimtutor
|
||||||
|
inizia il
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor-it.UTF-8.1 vim73_new/runtime/doc/vimtutor-it.UTF-8.1
|
||||||
|
--- vim73/runtime/doc/vimtutor-it.UTF-8.1 2010-07-30 20:53:57.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor-it.UTF-8.1 2013-07-31 14:10:40.483622016 +0200
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
.SH SINTASSI
|
||||||
|
.br
|
||||||
|
.B vimtutor [\-g] [lingua]
|
||||||
|
+.br
|
||||||
|
+.B gvimtutor
|
||||||
|
.SH DESCRIZIONE
|
||||||
|
.B Vimtutor
|
||||||
|
inizia il
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor.man vim73_new/runtime/doc/vimtutor.man
|
||||||
|
--- vim73/runtime/doc/vimtutor.man 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor.man 2013-07-31 14:11:04.786782356 +0200
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
vimtutor [-g] [language]
|
||||||
|
+ gvimtutor
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
Vimtutor starts the Vim tutor. It copies the tutor file first, so that
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor-pl.1 vim73_new/runtime/doc/vimtutor-pl.1
|
||||||
|
--- vim73/runtime/doc/vimtutor-pl.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor-pl.1 2013-07-31 14:11:13.602477777 +0200
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.br
|
||||||
|
.B vimtutor -g [j陑yk]
|
||||||
|
+.br
|
||||||
|
+.B gvimtutor
|
||||||
|
.SH OPIS
|
||||||
|
.B Vimtutor
|
||||||
|
uruchamia nauczyciela
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor-pl.UTF-8.1 vim73_new/runtime/doc/vimtutor-pl.UTF-8.1
|
||||||
|
--- vim73/runtime/doc/vimtutor-pl.UTF-8.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor-pl.UTF-8.1 2013-07-31 14:11:20.571237009 +0200
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.br
|
||||||
|
.B vimtutor -g [j臋zyk]
|
||||||
|
+.br
|
||||||
|
+.B gvimtutor
|
||||||
|
.SH OPIS
|
||||||
|
.B Vimtutor
|
||||||
|
uruchamia nauczyciela
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor-ru.1 vim73_new/runtime/doc/vimtutor-ru.1
|
||||||
|
--- vim73/runtime/doc/vimtutor-ru.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor-ru.1 2013-07-31 14:11:35.673715221 +0200
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
.SH 腼磲钿钺<E992BF> 篝蝻脶
|
||||||
|
.br
|
||||||
|
.B vimtutor [掩偎]
|
||||||
|
+.br
|
||||||
|
+.B gvimtutor
|
||||||
|
.SH 镳轶犷殄
|
||||||
|
胂土文<E59C9F>
|
||||||
|
.B vimtutor
|
||||||
|
diff -urN vim73/runtime/doc/vimtutor-ru.UTF-8.1 vim73_new/runtime/doc/vimtutor-ru.UTF-8.1
|
||||||
|
--- vim73/runtime/doc/vimtutor-ru.UTF-8.1 2010-05-15 13:04:00.000000000 +0200
|
||||||
|
+++ vim73_new/runtime/doc/vimtutor-ru.UTF-8.1 2013-07-31 14:11:46.649335999 +0200
|
||||||
|
@@ -7,6 +7,8 @@
|
||||||
|
.SH 袨袩袠小袗袧袠袝
|
||||||
|
袣芯屑邪薪写邪
|
||||||
|
.B vimtutor
|
||||||
|
+.br
|
||||||
|
+.B gvimtutor
|
||||||
|
蟹邪锌褍褋泻邪械褌 褍褔械斜薪懈泻 锌芯
|
||||||
|
.B Vim.
|
||||||
|
袩褉懈 褝褌芯屑 褋薪邪褔邪谢邪 锌褉芯懈褋褏芯写懈褌 褋芯蟹写邪薪懈械 泻芯锌懈懈 褎邪泄谢邪 褍褔械斜薪懈泻邪,
|
87
vim-python3-tests.patch
Normal file
87
vim-python3-tests.patch
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
diff -up vim82/runtime/tools/demoserver.py.python-tests vim82/runtime/tools/demoserver.py
|
||||||
|
--- vim82/runtime/tools/demoserver.py.python-tests 2019-07-26 07:58:50.000000000 +0200
|
||||||
|
+++ vim82/runtime/tools/demoserver.py 2020-04-17 06:18:06.748977527 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# Server that will accept connections from a Vim channel.
|
||||||
|
# Run this server and then in Vim you can open the channel:
|
||||||
|
diff -up vim82/src/auto/configure.python-tests vim82/src/auto/configure
|
||||||
|
--- vim82/src/auto/configure.python-tests 2020-04-17 06:07:48.000000000 +0200
|
||||||
|
+++ vim82/src/auto/configure 2020-04-17 06:18:06.750977509 +0200
|
||||||
|
@@ -6418,7 +6418,7 @@ eof
|
||||||
|
if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
|
||||||
|
"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
|
||||||
|
vi_cv_path_python_plibs="-framework Python"
|
||||||
|
- if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
|
||||||
|
+ if test "x${vi_cv_path_python}" != "x/usr/bin/python2" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
|
||||||
|
vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
diff -up vim82/src/configure.ac.python-tests vim82/src/configure.ac
|
||||||
|
--- vim82/src/configure.ac.python-tests 2020-04-17 06:07:48.000000000 +0200
|
||||||
|
+++ vim82/src/configure.ac 2020-04-17 06:18:06.750977509 +0200
|
||||||
|
@@ -1263,7 +1263,7 @@ eof
|
||||||
|
if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
|
||||||
|
"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
|
||||||
|
vi_cv_path_python_plibs="-framework Python"
|
||||||
|
- if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
|
||||||
|
+ if test "x${vi_cv_path_python}" != "x/usr/bin/python2" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
|
||||||
|
vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
diff -up vim82/src/testdir/test_channel_pipe.py.python-tests vim82/src/testdir/test_channel_pipe.py
|
||||||
|
--- vim82/src/testdir/test_channel_pipe.py.python-tests 2019-07-26 07:58:53.000000000 +0200
|
||||||
|
+++ vim82/src/testdir/test_channel_pipe.py 2020-04-17 06:18:06.751977500 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# Server that will communicate over stdin/stderr
|
||||||
|
#
|
||||||
|
diff -up vim82/src/testdir/test_channel.py.python-tests vim82/src/testdir/test_channel.py
|
||||||
|
--- vim82/src/testdir/test_channel.py.python-tests 2020-04-17 06:18:06.751977500 +0200
|
||||||
|
+++ vim82/src/testdir/test_channel.py 2020-04-17 06:18:24.517813082 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# Server that will accept connections from a Vim channel.
|
||||||
|
# Used by test_channel.vim.
|
||||||
|
diff -up vim82/src/testdir/test_channel_write.py.python-tests vim82/src/testdir/test_channel_write.py
|
||||||
|
--- vim82/src/testdir/test_channel_write.py.python-tests 2019-07-26 07:58:53.000000000 +0200
|
||||||
|
+++ vim82/src/testdir/test_channel_write.py 2020-04-17 06:18:06.751977500 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# Program that writes a number to stdout repeatedly
|
||||||
|
#
|
||||||
|
diff -up vim82/src/testdir/test_makeencoding.py.python-tests vim82/src/testdir/test_makeencoding.py
|
||||||
|
--- vim82/src/testdir/test_makeencoding.py.python-tests 2019-07-26 07:58:53.000000000 +0200
|
||||||
|
+++ vim82/src/testdir/test_makeencoding.py 2020-04-17 06:18:06.751977500 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Test program for :make, :grep and :cgetfile.
|
||||||
|
diff -up vim82/src/testdir/test_netbeans.py.python-tests vim82/src/testdir/test_netbeans.py
|
||||||
|
--- vim82/src/testdir/test_netbeans.py.python-tests 2019-07-26 07:58:53.000000000 +0200
|
||||||
|
+++ vim82/src/testdir/test_netbeans.py 2020-04-17 06:18:06.751977500 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# Server that will communicate with Vim through the netbeans interface.
|
||||||
|
# Used by test_netbeans.vim.
|
||||||
|
diff -up vim82/src/testdir/test_short_sleep.py.python-tests vim82/src/testdir/test_short_sleep.py
|
||||||
|
--- vim82/src/testdir/test_short_sleep.py.python-tests 2019-07-26 07:58:53.000000000 +0200
|
||||||
|
+++ vim82/src/testdir/test_short_sleep.py 2020-04-17 06:18:06.751977500 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# Program that sleeps for 100 msec
|
||||||
|
#
|
200
vim-update.sh
Executable file
200
vim-update.sh
Executable file
@ -0,0 +1,200 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
debug=""
|
||||||
|
#debug="echo "
|
||||||
|
branches=( "master" "f33" "f32" "f31" )
|
||||||
|
releases=( "fc34" "fc33" "fc32" "fc31" )
|
||||||
|
regexps=( "fc34" "\|fc33" "\|fc32" "\|fc31" )
|
||||||
|
bodhi_enabled=( "0" "1" "1" "1" )
|
||||||
|
#releases_regexp=fc28\\\|fc27\\\|fc28
|
||||||
|
|
||||||
|
branches_index=0
|
||||||
|
release_index=0
|
||||||
|
regexp_index=0
|
||||||
|
bodhi_enabled_index=0
|
||||||
|
done_build=0
|
||||||
|
releases_regexp="${regexps[@]: regexp_index: 1}"
|
||||||
|
let "regexp_index+=1"
|
||||||
|
|
||||||
|
cd `dirname $0`
|
||||||
|
LANG=C
|
||||||
|
SPEC=vim.spec
|
||||||
|
CHANGES=1
|
||||||
|
force=0
|
||||||
|
|
||||||
|
if [ "x$1" == "x--force" ]; then
|
||||||
|
force=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
DATE=`date +"%a %b %d %Y"`
|
||||||
|
$debug fedpkg switch-branch "${branches[@]: $branches_index: 1}"
|
||||||
|
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error with switching branch"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
MAJORVERSION=`grep "define baseversion" vim.spec | cut -d ' ' -f 3`
|
||||||
|
MAJORVERDIR=$(echo $MAJORVERSION | sed -e 's/\.//')
|
||||||
|
EPOCH=`grep "Epoch:" vim.spec | cut -d ':' -f 2`
|
||||||
|
PACKAGER=`rpmdev-packager`
|
||||||
|
ORIGPL=`grep "define patchlevel" vim.spec | cut -d ' ' -f 3 | sed -e "s/^0*//g"`
|
||||||
|
ORIGPLFILLED=`printf "%03d" $ORIGPL`
|
||||||
|
|
||||||
|
if [ ! -d vim-upstream ]; then
|
||||||
|
git clone https://github.com/vim/vim.git vim-upstream
|
||||||
|
else
|
||||||
|
pushd vim-upstream
|
||||||
|
git pull
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd vim-upstream
|
||||||
|
|
||||||
|
# get the latest tag. Might be tricky with other packages, but upstream vim uses just a single branch:
|
||||||
|
LASTTAG=$(git describe --tags $(git rev-list --tags --max-count=1))
|
||||||
|
|
||||||
|
# vim upstream tags have the form v7.4.123. Remove the 'v' and get major release and patchlevel:
|
||||||
|
UPSTREAMMAJOR=$(echo $LASTTAG | sed -e 's/v\([0-9]*\.[0-9]*\).*/\1/')
|
||||||
|
UPSTREAMMAJORDIR=$(echo $UPSTREAMMAJOR | sed -e 's/\.//')
|
||||||
|
LASTPL=`echo $LASTTAG| sed -e 's/.*\.//;s/^0*//'`
|
||||||
|
LASTPLFILLED=`printf "%03d" $LASTPL`
|
||||||
|
if [ $force -ne 1 -a "$ORIGPLFILLED" == "$LASTPLFILLED" ]; then
|
||||||
|
echo "No new patchlevel available"
|
||||||
|
CHANGES=0
|
||||||
|
fi
|
||||||
|
rm -rf dist/* 2>/dev/null
|
||||||
|
make unixall
|
||||||
|
|
||||||
|
# include patchlevel in tarball name so that older sources won't get overwritten:
|
||||||
|
mv dist/vim-${UPSTREAMMAJOR}.tar.bz2 dist/vim-${UPSTREAMMAJOR}-${LASTPLFILLED}.tar.bz2
|
||||||
|
|
||||||
|
# We don't include the full upstream changelog in the rpm changelog, just ship a file with
|
||||||
|
# the changes:
|
||||||
|
popd
|
||||||
|
|
||||||
|
cp -f vim-upstream/dist/vim-${UPSTREAMMAJOR}-${LASTPLFILLED}.tar.bz2 .
|
||||||
|
#wget https://raw.githubusercontent.com/ignatenkobrain/vim-spec-plugin/master/ftplugin/spec.vim -O ftplugin-spec.vim
|
||||||
|
#wget https://raw.githubusercontent.com/ignatenkobrain/vim-spec-plugin/master/syntax/spec.vim -O syntax-spec.vim
|
||||||
|
if [ $CHANGES -ne 0 ]; then
|
||||||
|
CHLOG="* $DATE $PACKAGER -$EPOCH:$UPSTREAMMAJOR"
|
||||||
|
$debug sed -i -e "/Release: /cRelease: 1%{?dist}" $SPEC
|
||||||
|
if [ "x$MAJORVERSION" != "x$UPSTREAMMAJOR" ]; then
|
||||||
|
$debug sed -i -s "s/define baseversion $MAJORVERSION/define baseversion $UPSTREAMMAJOR/" $SPEC
|
||||||
|
$debug sed -i -s "s/define vimdir vim$MAJORVERDIR/define vimdir vim$UPSTREAMMAJORDIR/" $SPEC
|
||||||
|
fi
|
||||||
|
$debug sed -i -e "s/define patchlevel $ORIGPLFILLED/define patchlevel $LASTPLFILLED/" $SPEC
|
||||||
|
$debug sed -i -e "/\%changelog/a$CHLOG.$LASTPLFILLED-1\n- patchlevel $LASTPLFILLED\n" $SPEC
|
||||||
|
$debug fedpkg new-sources vim-${UPSTREAMMAJOR}-${LASTPLFILLED}.tar.bz2
|
||||||
|
$debug git add vim.spec
|
||||||
|
$debug git commit -m "- patchlevel $LASTPL"
|
||||||
|
|
||||||
|
# mockbuild
|
||||||
|
$debug fedpkg mockbuild
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: fedpkg mockbuild"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# push
|
||||||
|
$debug fedpkg push
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: fedpkg push"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if release has pending or testing update - if not, build package
|
||||||
|
# and submit update for testing
|
||||||
|
pending_update=`bodhi updates query --packages vim --status pending \
|
||||||
|
| grep $releases_regexp`
|
||||||
|
testing_update=`bodhi updates query --packages vim --status testing \
|
||||||
|
| grep $releases_regexp`
|
||||||
|
|
||||||
|
if [ "$pending_update" == "" ] && [ "$testing_update" == "" ]; then
|
||||||
|
$debug fedpkg build
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
done_build=1
|
||||||
|
else
|
||||||
|
echo "Error when building package in $branch"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "There are pending/testing updates, do not build package."
|
||||||
|
fi
|
||||||
|
|
||||||
|
let "release_index+=1"
|
||||||
|
let "bodhi_enabled_index+=1"
|
||||||
|
|
||||||
|
for branch in "${branches[@]:(1)}";
|
||||||
|
do
|
||||||
|
# switch to branch
|
||||||
|
$debug fedpkg switch-branch $branch
|
||||||
|
|
||||||
|
# merge with previous branch
|
||||||
|
$debug bash -c "git merge ${branches[@]: $branches_index: 1} <<<':x'"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: git merge ${branches[@]: $branches_index: 1}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# mockbuild
|
||||||
|
$debug fedpkg mockbuild
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: fedpkg mockbuild failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# push
|
||||||
|
$debug fedpkg push
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: fedpkg push"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# append next release to regexp - because we need to check if there aren't
|
||||||
|
# any testing updates from higher branches (lower branch cannot have
|
||||||
|
# bigger NVR than higher branch) in next iteration
|
||||||
|
releases_regexp="$releases_regexp${regexps[@]: regexp_index: 1}"
|
||||||
|
|
||||||
|
# Check if release has pending or testing update - if not, build package
|
||||||
|
# and submit update for testing
|
||||||
|
# | grep $releases_regexp`
|
||||||
|
# done_build is checking, if previous branch did build - lower branch can do
|
||||||
|
# a build only when higher branch build was ok.
|
||||||
|
testing_update=`bodhi updates query --packages vim --status testing \
|
||||||
|
| grep $releases_regexp`
|
||||||
|
if [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then
|
||||||
|
$debug fedpkg build
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
# if branch isn't master or branch is enabled in bodhi, create update
|
||||||
|
if [ $branch != "master" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then
|
||||||
|
$debug bodhi updates new --user zdohnal --type enhancement --notes "The newest upstream commit" --request testing --autotime --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1}
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Error when building package for $branch"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
done_build=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Increment index
|
||||||
|
let "branches_index+=1"
|
||||||
|
let "release_index+=1"
|
||||||
|
let "regexp_index+=1"
|
||||||
|
let "bodhi_enabled_index+=1"
|
||||||
|
done
|
||||||
|
#$debug git push
|
||||||
|
#if [ $? -eq 0 ]; then
|
||||||
|
# $debug rm -f $HOME/.koji/config
|
||||||
|
# $debug fedpkg build
|
||||||
|
# $debug ln -sf ppc-config $HOME/.koji/config
|
||||||
|
#else
|
||||||
|
# echo "GIT push failed"
|
||||||
|
#fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
#go back to master
|
||||||
|
$debug fedpkg switch-branch master
|
||||||
|
|
||||||
|
exit 0
|
20
vim.csh
Normal file
20
vim.csh
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# we need to use which twice - first for checking if
|
||||||
|
# the command doesn't fail, the use it if doesn't fail
|
||||||
|
set vim_cond = `which vim >& /dev/null && which vim`
|
||||||
|
set vi_cond = `which vi >& /dev/null && which vi`
|
||||||
|
|
||||||
|
switch ( $vim_cond-$vi_cond )
|
||||||
|
case /usr/bin/vim-/usr/bin/vi:
|
||||||
|
# apply only when founded vim and vi are in expected dirs from distro
|
||||||
|
alias vi vim
|
||||||
|
alias view 'vim -R'
|
||||||
|
breaksw
|
||||||
|
case -/usr/bin/vi:
|
||||||
|
# apply only if founded vi is in expected dir from distro
|
||||||
|
alias vim "read -rep 'No vim found, using vi, press ENTER to continue' -n1 -t 20 -s && vi"
|
||||||
|
breaksw
|
||||||
|
endsw
|
||||||
|
|
||||||
|
# just in case
|
||||||
|
unset vim_cond
|
||||||
|
unset vi_cond
|
25
vim.fish
Normal file
25
vim.fish
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# This will avoid user defined aliases and possibly stuff defined earlier in the PATH.
|
||||||
|
# Redirecting is for the case when the binary is missing.
|
||||||
|
set vim_cond (which vim 2> /dev/null)
|
||||||
|
set vi_cond (which vi 2> /dev/null)
|
||||||
|
|
||||||
|
switch "$vim_cond-$vi_cond"
|
||||||
|
case /usr/bin/vim-/usr/bin/vi
|
||||||
|
# apply only if founded vim and vi are in the expected dir from distro
|
||||||
|
function vi
|
||||||
|
command vim $argv
|
||||||
|
end
|
||||||
|
|
||||||
|
function view
|
||||||
|
command vim -R $argv
|
||||||
|
end
|
||||||
|
case -/usr/bin/vi
|
||||||
|
# apply only when no vim is installed and founded vi is in the expected dir from distro
|
||||||
|
function vim
|
||||||
|
command read -p 'No vim found, using vi, press ENTER to continue' -n1 -t 20 -s && vi $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# just in case
|
||||||
|
set -e vim_cond
|
||||||
|
set -e vi_cond
|
14
vim.sh
Normal file
14
vim.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; then
|
||||||
|
# This will avoid user defined aliases and possibly stuff defined earlier in the PATH.
|
||||||
|
case "$(which vim 2> /dev/null)-$(which vi 2> /dev/null)" in
|
||||||
|
/usr/bin/vim-/usr/bin/vi)
|
||||||
|
# apply only when founded vim and vi are in expected dirs from distro
|
||||||
|
alias vi=vim
|
||||||
|
alias view="vim -R"
|
||||||
|
;;
|
||||||
|
-/usr/bin/vi)
|
||||||
|
# apply only if founded vi is in expected dir from distro
|
||||||
|
alias vim="read -rep $'No vim found, using vi, press ENTER to continue\n' -n1 -t 20 -s && vi"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
128
vimrc
Normal file
128
vimrc
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
" When started as "evim", evim.vim will already have done these settings.
|
||||||
|
if v:progname =~? "evim"
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Use Vim settings, rather than Vi settings (much better!).
|
||||||
|
" This must be first, because it changes other options as a side effect.
|
||||||
|
" Avoid side effects when it was already reset.
|
||||||
|
if &compatible
|
||||||
|
set nocompatible
|
||||||
|
endif
|
||||||
|
|
||||||
|
" When the +eval feature is missing, the set command above will be skipped.
|
||||||
|
" Use a trick to reset compatible only when the +eval feature is missing.
|
||||||
|
silent! while 0
|
||||||
|
set nocompatible
|
||||||
|
silent! endwhile
|
||||||
|
|
||||||
|
" Allow backspacing over everything in insert mode.
|
||||||
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
|
"set ai " always set autoindenting on
|
||||||
|
"set backup " keep a backup file
|
||||||
|
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
|
||||||
|
" than 50 lines of registers
|
||||||
|
set history=50 " keep 50 lines of command line history
|
||||||
|
set ruler " show the cursor position all the time
|
||||||
|
set showcmd " display incomplete commands
|
||||||
|
set wildmenu " display completion matches in a status line
|
||||||
|
|
||||||
|
set ttimeout " time out for key codes
|
||||||
|
set ttimeoutlen=100 " wait up to 100ms after Esc for special key
|
||||||
|
|
||||||
|
" Show @@@ in the last line if it is truncated.
|
||||||
|
set display=truncate
|
||||||
|
|
||||||
|
" Show a few lines of context around the cursor. Note that this makes the
|
||||||
|
" text scroll if you mouse-click near the start or end of the window.
|
||||||
|
set scrolloff=5
|
||||||
|
|
||||||
|
" Do incremental searching when it's possible to timeout.
|
||||||
|
if has('reltime')
|
||||||
|
set incsearch
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Do not recognize octal numbers for Ctrl-A and Ctrl-X, most users find it
|
||||||
|
" confusing.
|
||||||
|
set nrformats-=octal
|
||||||
|
|
||||||
|
" Only do this part when compiled with support for autocommands
|
||||||
|
if has("autocmd")
|
||||||
|
augroup fedora
|
||||||
|
autocmd!
|
||||||
|
" In text files, always limit the width of text to 78 characters
|
||||||
|
" autocmd BufRead *.txt set tw=78
|
||||||
|
" When editing a file, always jump to the last cursor position
|
||||||
|
autocmd BufReadPost *
|
||||||
|
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
|
||||||
|
\ exe "normal! g'\"" |
|
||||||
|
\ endif
|
||||||
|
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
|
||||||
|
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
|
||||||
|
" start with spec file template
|
||||||
|
" 1724126 - do not open new file with .spec suffix with spec file template
|
||||||
|
" apparently there are other file types with .spec suffix, so disable the
|
||||||
|
" template
|
||||||
|
" autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
|
||||||
|
augroup END
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has("cscope") && filereadable("/usr/bin/cscope")
|
||||||
|
set csprg=/usr/bin/cscope
|
||||||
|
set csto=0
|
||||||
|
set cst
|
||||||
|
set nocsverb
|
||||||
|
" add any database in current directory
|
||||||
|
if filereadable("cscope.out")
|
||||||
|
cs add $PWD/cscope.out
|
||||||
|
" else add database pointed to by environment
|
||||||
|
elseif $CSCOPE_DB != ""
|
||||||
|
cs add $CSCOPE_DB
|
||||||
|
endif
|
||||||
|
set csverb
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Switch syntax highlighting on, when the terminal has colors
|
||||||
|
" Also switch on highlighting the last used search pattern.
|
||||||
|
if &t_Co > 2 || has("gui_running")
|
||||||
|
" Revert with ":syntax off".
|
||||||
|
syntax on
|
||||||
|
|
||||||
|
" I like highlighting strings inside C comments.
|
||||||
|
" Revert with ":unlet c_comment_strings".
|
||||||
|
let c_comment_strings=1
|
||||||
|
set hlsearch
|
||||||
|
endif
|
||||||
|
|
||||||
|
filetype plugin on
|
||||||
|
|
||||||
|
if &term=="xterm"
|
||||||
|
set t_Co=8
|
||||||
|
set t_Sb=[4%dm
|
||||||
|
set t_Sf=[3%dm
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Convenient command to see the difference between the current buffer and the
|
||||||
|
" file it was loaded from, thus the changes you made.
|
||||||
|
" Only define it when not defined already.
|
||||||
|
" Revert with: ":delcommand DiffOrig".
|
||||||
|
if !exists(":DiffOrig")
|
||||||
|
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
|
||||||
|
\ | wincmd p | diffthis
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('langmap') && exists('+langremap')
|
||||||
|
" Prevent that the langmap option applies to characters that result from a
|
||||||
|
" mapping. If set (default), this may break plugins (but it's backward
|
||||||
|
" compatible).
|
||||||
|
set nolangremap
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Don't wake up system with blinking cursor:
|
||||||
|
let &guicursor = &guicursor . ",a:blinkon0"
|
||||||
|
|
||||||
|
" Source a global configuration file if available
|
||||||
|
if filereadable("/etc/vimrc.local")
|
||||||
|
source /etc/vimrc.local
|
||||||
|
endif
|
37
virc
Normal file
37
virc
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
|
||||||
|
set fileencodings=ucs-bom,utf-8,latin1
|
||||||
|
endif
|
||||||
|
|
||||||
|
set nocompatible " Use Vim defaults (much better!)
|
||||||
|
set bs=indent,eol,start " allow backspacing over everything in insert mode
|
||||||
|
"set ai " always set autoindenting on
|
||||||
|
"set backup " keep a backup file
|
||||||
|
set history=50 " keep 50 lines of command line history
|
||||||
|
set ruler " show the cursor position all the time
|
||||||
|
|
||||||
|
" Only do this part when compiled with support for autocommands
|
||||||
|
if has("autocmd")
|
||||||
|
augroup fedora
|
||||||
|
autocmd!
|
||||||
|
" In text files, always limit the width of text to 78 characters
|
||||||
|
" autocmd BufRead *.txt set tw=78
|
||||||
|
" When editing a file, always jump to the last cursor position
|
||||||
|
autocmd BufReadPost *
|
||||||
|
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
|
||||||
|
\ exe "normal! g'\"" |
|
||||||
|
\ endif
|
||||||
|
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
|
||||||
|
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
|
||||||
|
" start with spec file template
|
||||||
|
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
|
||||||
|
augroup END
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
filetype plugin on
|
||||||
|
|
||||||
|
if &term=="xterm"
|
||||||
|
set t_Co=8
|
||||||
|
set t_Sb=[4%dm
|
||||||
|
set t_Sf=[3%dm
|
||||||
|
endif
|
Loading…
Reference in New Issue
Block a user