mirror of
https://github.com/vim/vim
synced 2025-07-17 09:41:54 +00:00
Compare commits
1174 Commits
Author | SHA1 | Date | |
---|---|---|---|
a79fd56923 | |||
6dc6703295 | |||
9d5c84a08f | |||
e667779013 | |||
c447d8d33f | |||
9d87a37ee9 | |||
a86187b9cd | |||
6403bcdaf4 | |||
9eb76af451 | |||
e751a5f531 | |||
2caad3fbbd | |||
4efe73b478 | |||
d80232be54 | |||
eeed665b0e | |||
72846cfa76 | |||
acecb3b935 | |||
21e551cce2 | |||
a9659e0da4 | |||
8b321d6a52 | |||
37e3edce20 | |||
471f658135 | |||
6c8dd39df9 | |||
cd1a62d468 | |||
142a975815 | |||
06b056e110 | |||
06d4c4c818 | |||
eae8ae1b2b | |||
56242f2b08 | |||
5f5e203c92 | |||
8f66717a1f | |||
fb95e212a2 | |||
ca79a5fc3b | |||
2fa7fad831 | |||
98aefe7c32 | |||
5c5697f298 | |||
295471920d | |||
30700cd5ff | |||
d47d52232b | |||
37402ed534 | |||
4af7259b2b | |||
55d4691308 | |||
76ab4fd619 | |||
446e7a3cd3 | |||
539328197c | |||
10ccaa17ec | |||
9a8534673a | |||
4087bfd96d | |||
20091c18c4 | |||
10600db772 | |||
88b53fd052 | |||
74ea88c170 | |||
b6fc72851c | |||
9719568533 | |||
51a7454cd2 | |||
b513d3079b | |||
d2ec51f399 | |||
5378e1cf0a | |||
ed8bc78d23 | |||
2fb8f684d8 | |||
614ab8aa00 | |||
07dc18ffa4 | |||
01a060da74 | |||
8ff5af9544 | |||
76a6345433 | |||
10efcd5b02 | |||
1341024e08 | |||
3067a4dd0d | |||
4ace6ab7e7 | |||
dc2f73a698 | |||
b730f0c7ba | |||
916a818cea | |||
4e303c8ba8 | |||
f951416a83 | |||
2b84949ad8 | |||
247bb7e43b | |||
82e8c92ebe | |||
5958f95a40 | |||
48d23bb4de | |||
addc156c38 | |||
6b731886ca | |||
25a494ce60 | |||
447f6ce8bd | |||
2d67d307ee | |||
dbc0d2163a | |||
c0f05d0bd1 | |||
f77af0e613 | |||
c4568ab37e | |||
f0d58efc9d | |||
0c27cbcacf | |||
61fb8d8c67 | |||
d3471e5785 | |||
c2c02574ec | |||
b244373bec | |||
f3aea59afa | |||
883ba68cda | |||
218959bc91 | |||
f49cc60aa8 | |||
8617b40159 | |||
d42333d8e9 | |||
ddd1f9183b | |||
ded5f1bed7 | |||
1bbb619483 | |||
d0721058f4 | |||
389ab7122b | |||
9e353b5265 | |||
ba3ff53930 | |||
dcd71cbaed | |||
0b38f54730 | |||
0f62cf5b33 | |||
da1c11c641 | |||
9691f82f86 | |||
bd9a0c611c | |||
4dbc262764 | |||
f7acf2b63c | |||
f080d70a82 | |||
a9a8e04eab | |||
833e5dab14 | |||
1c29943416 | |||
d474686a09 | |||
5f57bdcab7 | |||
c0fe4978f2 | |||
f86db78fed | |||
babfcf54ae | |||
e6e3989c1b | |||
bf9679ae46 | |||
0fd6be77de | |||
eda9e9c2fe | |||
b6f1480a6a | |||
9f84ded38b | |||
4c5d815256 | |||
42a4ea10af | |||
839e81e12d | |||
38654503b0 | |||
2c64ca1802 | |||
04c86d27fe | |||
115510f0bd | |||
29e7fe55be | |||
b361db077f | |||
64f410742f | |||
65dc12143a | |||
d95c3c253c | |||
a2aad02830 | |||
27e80c885b | |||
a16bc54503 | |||
d6105cb408 | |||
6cdb2c9811 | |||
453ce7c16b | |||
3d6014f033 | |||
108e7b422b | |||
0664089ecc | |||
1d3dbcf743 | |||
6a2633b00b | |||
95ba5c364f | |||
1df2fa47b4 | |||
798184cc67 | |||
c0543e145f | |||
00bf8cd211 | |||
1307d1c003 | |||
a05a0d325c | |||
df77cef92e | |||
0cc7b2d6cc | |||
d8f27b30d6 | |||
019dfe6855 | |||
2610990709 | |||
8295666dc2 | |||
7554c548a4 | |||
2bc152ab53 | |||
0e9deefb4f | |||
7701f30856 | |||
4a5abbd613 | |||
586c70cdfe | |||
4f88875725 | |||
35bc7d6c52 | |||
54ade9f7e3 | |||
95bafa296a | |||
6dff58f15c | |||
f45d747ebf | |||
d3dc062160 | |||
2bfddfc508 | |||
438d176e35 | |||
b434ae2a1f | |||
95892c27b2 | |||
ee91c33570 | |||
8c63e0ec31 | |||
09037503ea | |||
31cbadf74b | |||
45c5c86e63 | |||
6dae96ef7a | |||
d339828b4b | |||
c75878c923 | |||
3b30168f04 | |||
7ff8a3cfb6 | |||
4841a7ccae | |||
9cea87c577 | |||
e76d7a63df | |||
0bd4051732 | |||
4ff4290de1 | |||
76c612a166 | |||
1f402806b8 | |||
de2bd37bec | |||
b872e63fc6 | |||
036b09ca78 | |||
b0e982bf05 | |||
d4f73438bb | |||
3f3fb0b147 | |||
933bef779a | |||
92cbf62b87 | |||
cec12cd661 | |||
476c0db002 | |||
4b1c9a91b5 | |||
a87f8fd3fe | |||
fe15b7dfa6 | |||
9e81db9742 | |||
664323e7c8 | |||
e961cba3cb | |||
cc3a997746 | |||
198fa066b2 | |||
110bd60985 | |||
d2b58c0a2c | |||
65985ac998 | |||
8f4499b816 | |||
e8fa05b5bc | |||
42c63356d7 | |||
6e272acc82 | |||
e3521d9cbb | |||
785fc6567f | |||
50eb16c3b2 | |||
ac49f61a20 | |||
ab18673731 | |||
da1f71d75f | |||
bf1c1b8513 | |||
24839edc54 | |||
fe8ef98dd1 | |||
c91c500348 | |||
8aeb504fc6 | |||
a214079008 | |||
0f7683f973 | |||
5c6f574bd1 | |||
32d19c1820 | |||
78dcd4f002 | |||
0d5f21c3df | |||
42335f50bc | |||
c787539747 | |||
3b8defd0a5 | |||
bd9a53c06c | |||
1b7fefcbce | |||
90a997987d | |||
643b614087 | |||
274cea35c6 | |||
67f8ab8299 | |||
25328e39d2 | |||
84d9390480 | |||
007921611b | |||
4c7b08f640 | |||
e797abf3c7 | |||
c93262b2e3 | |||
f29c1c6aa3 | |||
6b0b83f768 | |||
e828b7621c | |||
93a1df2c20 | |||
6f8bdab8e2 | |||
a5c48c2698 | |||
02c972153d | |||
99f043a57d | |||
a750ac2288 | |||
53c8a478cc | |||
99396d4cbf | |||
d4a1aabe37 | |||
198cb66d65 | |||
0b1468884a | |||
ed5a9d6612 | |||
e67a7d690a | |||
f1c118be93 | |||
20aac6c112 | |||
acca8df9d4 | |||
c9cc9c78f2 | |||
7ee3f15b21 | |||
3c5b8cd254 | |||
94f01956a5 | |||
32bbd00949 | |||
9049b68612 | |||
f13daa46da | |||
f6ceaf1e05 | |||
379fb76b08 | |||
dd5d18eadf | |||
2bf4fe07b6 | |||
8c9e7b00f6 | |||
92c1b69641 | |||
a449a7c6b9 | |||
fc65cabb15 | |||
627cb6a6b3 | |||
6f6ef7c195 | |||
a06afc7f5e | |||
4cbdf155ca | |||
0529583ff1 | |||
98fc8d7b6c | |||
7c60505e10 | |||
74c8be2c68 | |||
2551c037e4 | |||
7cb33a14c9 | |||
4edfe2d2a2 | |||
8b0d5ce881 | |||
8e7218c459 | |||
3b3a506f57 | |||
320bf2d85e | |||
4c5765bc47 | |||
c631f2df62 | |||
47ad5656e1 | |||
00f123a565 | |||
8e82c057ff | |||
8c5e0093c9 | |||
2f0f871159 | |||
7feb35e778 | |||
fd6100b2aa | |||
0f6b4f06de | |||
da6e8919e7 | |||
830e3583da | |||
2e31048c30 | |||
c26f7c6053 | |||
f1883479be | |||
3f6a16f022 | |||
d8f0cef2bd | |||
142ae736d9 | |||
46fad2ef0b | |||
cea1f9ec52 | |||
111bbd61e9 | |||
264cf5cfaf | |||
3b9fcfcffa | |||
4d77c65a9e | |||
9bc1eac2c7 | |||
81f56536b1 | |||
b476cb7d8d | |||
2dfcef4c08 | |||
396659592f | |||
37b15568c2 | |||
167ae42685 | |||
d7cc163570 | |||
2f6a346a4c | |||
80d83c094d | |||
33c4dbb74b | |||
effed9315c | |||
def7b1dc61 | |||
2b926fcb3c | |||
60d0871000 | |||
c7f08b7ee1 | |||
164251ff80 | |||
976b847f43 | |||
21f990e1c2 | |||
ef73a28401 | |||
d473c8c101 | |||
f53c692240 | |||
b0acacd767 | |||
b31a3acce1 | |||
51e9fbf1c7 | |||
d569bb0299 | |||
90f1e2b7bc | |||
ee8415bc59 | |||
0ee81cb638 | |||
efe03738f6 | |||
4b16ee743e | |||
1598f9937a | |||
38efd1d17a | |||
4d37557ac6 | |||
3f347e4716 | |||
af559d2c9f | |||
bfde0b482d | |||
9fa9506853 | |||
f8f88f89e1 | |||
980bab457e | |||
40385dbcdf | |||
de3b3677f7 | |||
b782ba475a | |||
b1cf16113f | |||
7ebf4e1c34 | |||
8d8a65e389 | |||
447bd5a346 | |||
ee380ae376 | |||
91d2e783b4 | |||
917e32bda5 | |||
5db7eec423 | |||
02ab97709d | |||
7cc596547a | |||
3cb4448b8a | |||
218beb3e96 | |||
7da1fb5532 | |||
87ea64ca96 | |||
82593c1a3a | |||
3bf5e6a4c8 | |||
41c363a315 | |||
ded27a1feb | |||
f711cb2f12 | |||
a5bc38b8c1 | |||
91335e5a67 | |||
d2855f5454 | |||
79c2ad50b8 | |||
92d147be95 | |||
fda95e7572 | |||
1f0bfe5617 | |||
612cc3888b | |||
91f84f6e11 | |||
fdd7155fab | |||
6ab9e429da | |||
73b4abae5d | |||
edd6aacb01 | |||
d84b26a03b | |||
2c8c681bfc | |||
95e51470f1 | |||
fd249460fe | |||
8e85db0376 | |||
d2a054910b | |||
83ec2a7f5f | |||
0a08c63da1 | |||
53901442f3 | |||
00136dc321 | |||
6f8d2ac6f1 | |||
b6c8cd8dc3 | |||
7624af0294 | |||
68f1b1b37f | |||
cd96eef3a8 | |||
9cf4b5005f | |||
947b39e761 | |||
578333b2ec | |||
6183ccbd67 | |||
79a494d5e2 | |||
a9604e6145 | |||
872e451e8c | |||
66ab916935 | |||
0a6efcd27d | |||
9e42c86648 | |||
f63db65b24 | |||
963c1ad5d0 | |||
414998023f | |||
ca4cc018ad | |||
0270f38e1a | |||
3166afd945 | |||
18c4f1badb | |||
d90a144eda | |||
b477af2260 | |||
2196bca737 | |||
7132ddc101 | |||
44a693a1bd | |||
1ce9a1515b | |||
b6959a8e06 | |||
1741367131 | |||
4fc85003c5 | |||
a43ebe9454 | |||
d6ef5f9b3d | |||
efc81331e7 | |||
e76c4b237d | |||
93343725b5 | |||
18085fae74 | |||
bde14d8e24 | |||
907dad72ef | |||
6259e5769d | |||
c229e54a69 | |||
875cf87894 | |||
2338c32b53 | |||
a9defadb8f | |||
9d5185bf9d | |||
c89d4b3530 | |||
e0be167a80 | |||
4cde86c2ef | |||
fd35811ca5 | |||
fe08df452a | |||
2549acf794 | |||
08505312fe | |||
386bc82a3f | |||
cbbe4ab4b2 | |||
6c5d104302 | |||
1ebff3dc93 | |||
e330ef42f2 | |||
5d2f40792e | |||
ae728edc93 | |||
c9fe5ab3b0 | |||
e85ce6ea2e | |||
f3dc235576 | |||
81e2ac7bb6 | |||
fd34cebe9a | |||
26d4b896a7 | |||
92959fa46d | |||
3b48b11c07 | |||
f0447e89a5 | |||
851332ea9c | |||
b2e0c94a4d | |||
3d1d6475f9 | |||
e6882bdc44 | |||
531b9a3a63 | |||
6dc819b129 | |||
972bfddc6b | |||
a8a60d0c6b | |||
33d5ab3795 | |||
ade5578797 | |||
2f362bf7f9 | |||
e0429681ae | |||
ca06da9243 | |||
ffd112edc6 | |||
46577b5e54 | |||
4ff4814b38 | |||
1fbfe7c48c | |||
ad64809610 | |||
668324ef4f | |||
304925e750 | |||
7c365fb190 | |||
307ac5c68e | |||
630afe889a | |||
d8b37a53bd | |||
b0eb14f939 | |||
0c18319872 | |||
ca4b613c69 | |||
dc9e955fb0 | |||
ec12d64909 | |||
f52f9ea8f5 | |||
bd87eb38c5 | |||
a87b72cc31 | |||
b7a5ab112a | |||
0119a59ffd | |||
675e8d6adb | |||
829adb7460 | |||
3dddb09c98 | |||
d1d037e901 | |||
fc0896093c | |||
7cb6eecd32 | |||
a4a2934e59 | |||
defe6424ae | |||
eee3e94669 | |||
04958cbaf2 | |||
5ec7414a1c | |||
35fb6fbf72 | |||
1f8c469fe2 | |||
81612b7a7d | |||
6dccc962f3 | |||
3c867daaf0 | |||
bcf9442307 | |||
5efa0102de | |||
8c55533c6f | |||
39902a06d9 | |||
32aaf5ae07 | |||
2ed890f1f8 | |||
71ef1ba5e9 | |||
4551c0a9fc | |||
9b0c5c23bd | |||
a15b0a936d | |||
5319191a2a | |||
f9c3883b11 | |||
1ceebb4efc | |||
5f8f2d378a | |||
828c3d7083 | |||
8516071124 | |||
1d4754f96f | |||
f07f9e731e | |||
de1a83147a | |||
8df6e5d467 | |||
d2f3a8b878 | |||
c166927a32 | |||
5c3670718b | |||
0ce7413a83 | |||
252b7ee823 | |||
d6b01a2d38 | |||
0366c0161e | |||
dcdeaaf150 | |||
b3307b5e7e | |||
222cd20e26 | |||
0e5979a6d4 | |||
2f82ca7d79 | |||
a5616b0136 | |||
c3ffc9b8d3 | |||
0e6e179f55 | |||
942b4541a2 | |||
d595a1910c | |||
491ac28d5f | |||
84a9308511 | |||
600323b4ef | |||
bc5020aa4d | |||
bfa4246768 | |||
6ba3ec1bac | |||
43dee181f5 | |||
52d3aaeea4 | |||
5ecdf96422 | |||
ffa9684150 | |||
83f4cbd973 | |||
79c6b51e40 | |||
493359eb3b | |||
d7a137fb0d | |||
07ccf7ce7f | |||
1983401088 | |||
1c3c10492a | |||
ae0f30b761 | |||
8903676d3d | |||
7580849df9 | |||
f98b845dd1 | |||
e950f9992b | |||
e31e256ba1 | |||
d79a26219d | |||
680c99b2ef | |||
ca851593a6 | |||
891e1fd894 | |||
6d41c78e35 | |||
adb8fbec4f | |||
acb9effecc | |||
6b810d92a9 | |||
c8523e2e6c | |||
3339d3dad9 | |||
1580f755c9 | |||
1149382d21 | |||
f273245f64 | |||
33c5e9fa7a | |||
e5fa11186f | |||
6b69e5c646 | |||
22c105640c | |||
833093bfb0 | |||
d315cf551f | |||
0b0f0992d4 | |||
0b6d911e5d | |||
b4518563c7 | |||
bdb657924d | |||
62fe66f251 | |||
d45aa55d42 | |||
05af9a4191 | |||
6053f2d29a | |||
4f7fd56b42 | |||
1f131aee0e | |||
f88a5bc102 | |||
6bff719f7e | |||
dbe8869c41 | |||
42ab17b8e3 | |||
2e94976abd | |||
a772baf85a | |||
d19b234154 | |||
54651f7494 | |||
10561fe0a3 | |||
2abad54ced | |||
2f01889055 | |||
00e4556338 | |||
b1c9198afb | |||
03998f606a | |||
7c63fbc46e | |||
0b39464f69 | |||
4d6cd291ce | |||
825ccf4039 | |||
d4a8c98ef6 | |||
259f26ac2d | |||
78ddc06bdd | |||
8776889b5b | |||
0b565e5da5 | |||
1af6a4b891 | |||
027df2a7d9 | |||
9cfc7d885c | |||
eb3dc87f01 | |||
620020eb1d | |||
5e3423d192 | |||
25782a7ff4 | |||
2290b1f8aa | |||
518bc174ed | |||
889fe2c2b9 | |||
137374fd65 | |||
8b62e31003 | |||
05c4a471d2 | |||
12365ce49f | |||
e65fffd9b4 | |||
b2ed680ba7 | |||
7db25fed5d | |||
52ecaaa63d | |||
dd1d7be4e6 | |||
73dd1bd54e | |||
54c6bafa16 | |||
ee62f9fa74 | |||
2bc799579d | |||
cd8fb449d6 | |||
8c3169c58e | |||
3f1a53c434 | |||
b0f42ba60d | |||
ff3be4fe1e | |||
0cb8ac71ae | |||
a10ae5e323 | |||
38623c8512 | |||
7a2b0e55e9 | |||
72cf47a279 | |||
56bc8e299c | |||
b946482190 | |||
9289df5ca9 | |||
69e056915c | |||
39de952577 | |||
18cebf4417 | |||
655a82a8d3 | |||
9b50f36e40 | |||
402c83921e | |||
f25329cb94 | |||
778df2a3cb | |||
85eee130f4 | |||
7ce551f317 | |||
5aa9896b2e | |||
6eddadff13 | |||
231a2db1b3 | |||
b0b98d5230 | |||
b833c1ef7b | |||
248be5c5de | |||
c3e81694fc | |||
9894e394b2 | |||
c136af29c0 | |||
606cb8b08e | |||
dddab90d22 | |||
e2c8d83926 | |||
b2ac14c0b5 | |||
8a938af6dd | |||
bc7845da93 | |||
c5cd88554f | |||
d76ce85266 | |||
a796d46f29 | |||
15142e27aa | |||
77bfd756a0 | |||
35e802e713 | |||
b07bbb0d29 | |||
60a68362aa | |||
0e9d1ae321 | |||
850d427f07 | |||
13d3b05ed2 | |||
c36651b4b9 | |||
29ce409bfc | |||
50182fa84e | |||
65a5464985 | |||
9b25af3620 | |||
451fc7b954 | |||
9d34d90210 | |||
c3c3e69896 | |||
db0eedec16 | |||
856905bd83 | |||
46a53dfc29 | |||
b255b90503 | |||
4e9d443a25 | |||
4994373c5d | |||
09d1d51df5 | |||
24a2d7264f | |||
b691de05f6 | |||
73658317ba | |||
f1f2f837bc | |||
2225ebb486 | |||
1c17ffa461 | |||
a2aa8a2b22 | |||
4e601e3c82 | |||
3b9474b4ad | |||
6537c421bb | |||
a4baf5b325 | |||
ebe74b7367 | |||
a69b39511d | |||
2060892028 | |||
9980b37a80 | |||
6d150f783d | |||
e1fc51558d | |||
259a90f7ce | |||
405dadb63e | |||
7dda86f2ff | |||
6176697203 | |||
5d69da462f | |||
02e802b2da | |||
226400830b | |||
285e335869 | |||
f98a39ca57 | |||
bad0ce7b26 | |||
a997b45c7e | |||
e87edf3b85 | |||
561f8a5a46 | |||
ea3ece405a | |||
1feab2b9cc | |||
353eeeaca2 | |||
df2c774ded | |||
32c67ba733 | |||
06965b838f | |||
f3a411783c | |||
498c2562e1 | |||
a7eef3d87f | |||
802bfb1463 | |||
e1a32310d5 | |||
6c672194cd | |||
3cba73423e | |||
ac3e830065 | |||
8c94a54905 | |||
6e72cd0d72 | |||
b3623a382a | |||
8c041b6b95 | |||
a42d363bac | |||
2a43230ce3 | |||
2e324950b8 | |||
78a16b0f2a | |||
98da6ecab9 | |||
b59118d501 | |||
5bab555c2f | |||
b8e22a053b | |||
527dec3f94 | |||
ee5b94a8ec | |||
cccd62d435 | |||
56f9955044 | |||
9ce4213b03 | |||
1ed00330bc | |||
769e9d21ac | |||
d60e0a1d20 | |||
6995c0a7a9 | |||
b377457e69 | |||
1acdb3f301 | |||
3a21d9c7bb | |||
164268d4cf | |||
8dd1761e69 | |||
29f9ed20b4 | |||
6f4700233f | |||
d6b4f2dd76 | |||
d088240b96 | |||
f59c6e8cee | |||
07b46af645 | |||
0424958bde | |||
8c87a2b1fe | |||
e80757c154 | |||
756ef113d1 | |||
672afb9f66 | |||
e333e79f9b | |||
ea39176baa | |||
4ac2e8d8e6 | |||
8200829141 | |||
77557a7ae6 | |||
4791015e6f | |||
72532d354e | |||
22efba47de | |||
b6ed74fef8 | |||
e1bb879f49 | |||
c4b533e1e9 | |||
3680bab7e7 | |||
51ad4eaa22 | |||
d5359b24ce | |||
9a993e3c09 | |||
3aa67fb453 | |||
86676c949f | |||
4a69634b1b | |||
878c96d5b9 | |||
333b80acf3 | |||
1f8495cf48 | |||
79cf7c0d45 | |||
9af9778209 | |||
8b31a6ff7a | |||
25a6e8a769 | |||
f3ba14ffd3 | |||
ab943431d8 | |||
7b24ce08fe | |||
1834d37396 | |||
f06b0b6c8f | |||
0751f51a5b | |||
0c72fe4ed8 | |||
cd43effeca | |||
1b2f61e732 | |||
2a77d21f78 | |||
4368d5ce8a | |||
086eb87695 | |||
cf67a509e9 | |||
2de50f8762 | |||
15a1c3fdc1 | |||
8fbaeb195d | |||
65873846e0 | |||
b5b49a3b43 | |||
e7499ddc33 | |||
897e63c4c0 | |||
45d2a64f96 | |||
16d7eced1a | |||
75b0a888e4 | |||
8c64a36e40 | |||
47015b80a0 | |||
948a796bfe | |||
295ac5ab5e | |||
62b7f6a139 | |||
0bd052ba12 | |||
7735dafb58 | |||
b571c63d48 | |||
29dfa5af3c | |||
5a3a49ed59 | |||
3e8d385347 | |||
6ed86ad170 | |||
6185903e3d | |||
e26e0d2b83 | |||
81c3c89a28 | |||
ecadf4377f | |||
42f652f733 | |||
f05fa37822 | |||
52acb110ac | |||
98ef233e14 | |||
9ef2a30e6f | |||
a2150ac016 | |||
1dd98334d6 | |||
af23bad0fd | |||
4ac31eeff0 | |||
135682517b | |||
43cb626214 | |||
62dd452d02 | |||
228de1dfd2 | |||
012eb66293 | |||
a903472cfa | |||
f118d4847e | |||
625f0c1eb7 | |||
ff1e879577 | |||
f708ac592f | |||
3e4b84d0b5 | |||
c48369c3fc | |||
e87303af32 | |||
b852c3e64d | |||
12a96de430 | |||
435acdb88c | |||
25cdd9c33b | |||
b5b7562475 | |||
4d8bac8bf5 | |||
20586cb4f4 | |||
1a84024037 | |||
d7db27bafd | |||
52f18a112a | |||
3324d0a864 | |||
201dc67db5 | |||
ebf142a1ed | |||
f536bf6d45 | |||
fc6f16b57c | |||
157d813be4 | |||
3b3a9a5609 | |||
946acdac5b | |||
df0d24b627 | |||
69f5a3011d | |||
e780848150 | |||
16896a1019 | |||
63e82db6fc | |||
987723e084 | |||
89894aa671 | |||
362dc33835 | |||
40d77b0ec1 | |||
29a2c08d79 | |||
28ada699c1 | |||
24fe475894 | |||
6e35a11490 | |||
8a3bb56230 | |||
107279c17b | |||
f2bd8ef2b4 | |||
3f54fd319f | |||
71137fed4d | |||
069dafc1de | |||
3767b61ad9 | |||
658a154cbf | |||
aef8c3da2b | |||
c71807db9c | |||
590ec878a5 | |||
77780b66f4 | |||
0726870326 | |||
5f73ef8d20 | |||
8195247054 | |||
988615f26f | |||
792f0e3659 | |||
5d7ead3bc8 | |||
3ad8772ef0 | |||
75542ec9f6 | |||
9c474b2773 | |||
c8bcfe7efd | |||
8226ac6b59 | |||
22f1d0e35e | |||
d4fc577e60 | |||
33ef5bb0e4 | |||
9271d058c9 | |||
36f923014a | |||
2b10bcbfc1 | |||
6bb2cdfe60 | |||
bb008dd323 | |||
085346f5a1 | |||
791010e648 | |||
6acadda8d6 | |||
b7ea7cb8e4 | |||
674e482d13 | |||
cc0f2be880 | |||
cafafb381a | |||
19eb6658ec | |||
3049418f3d | |||
81226e0310 | |||
3cc9f7440d | |||
da65058a9c | |||
7a76092a51 | |||
9c8816bd30 | |||
d96ff16511 | |||
4287ed33dd | |||
73cddfd559 | |||
181ca99e16 | |||
341a64c9ca | |||
2be5733152 | |||
bc197195b0 | |||
b3292fa2d3 | |||
ab5e7c3deb | |||
07ad816525 | |||
4867974137 | |||
e4db7aedab | |||
3198870137 | |||
b48e96f61c | |||
294959528e | |||
5a656864a0 | |||
bfbea567d8 | |||
c19e1d1ba5 | |||
c6f9f739d3 | |||
c33ecb2915 | |||
cdd09aa51a | |||
71a43c0137 | |||
a0221df149 | |||
0549a1e184 | |||
4b7e7bed6c | |||
a7e18d237f | |||
4f50588ba3 | |||
d23a823669 | |||
42443c7d7f | |||
5a09343719 | |||
9b56a57cda | |||
b301f6b950 | |||
a8f04aa275 | |||
2993ac5fce | |||
7254067ee9 | |||
5459129af2 | |||
0d20737732 | |||
8846ac5aed | |||
82846a00ac | |||
9e33efd152 | |||
a15ef4588c | |||
9d32276b52 | |||
02ae9b4a93 | |||
1567558b20 | |||
0562532c2e | |||
bc0e9adae9 | |||
dff72ba445 | |||
d317b38a4d | |||
acda04f5c6 | |||
f12519dec8 | |||
dd08b6a32b | |||
511ffdd65d | |||
5d4247402b | |||
28944fecff | |||
2c7b906afb | |||
2374faae11 | |||
191f18bad0 | |||
fef4ddd5eb | |||
06b77ef69f | |||
4bc0bed536 | |||
8a37b03289 | |||
ec48a9c589 | |||
f4aba797cb | |||
15833239a4 | |||
b5cb65ba2b | |||
b7407d3fc9 | |||
ddb349369d | |||
8fd2ffc530 | |||
8dce6c54c8 | |||
4bfa8af141 | |||
42b23fad1d | |||
218101442e | |||
d4a282f7a5 | |||
94073167e3 | |||
1dd45fb4f3 | |||
a338adcf22 | |||
37badc898b | |||
cada78975e | |||
6f361c9912 | |||
153b704e20 | |||
ec0557f08b | |||
059fd01021 | |||
a172b63ab8 | |||
ce46d934af | |||
b50773c6df | |||
1274d33493 | |||
0479e910c4 | |||
d6d304298a | |||
40962ec9c0 | |||
84b242c369 | |||
501383236d | |||
d7823d5b7c | |||
95dbcbea6d | |||
2ec364e94d | |||
0cbcd949e1 | |||
4aad53c369 | |||
ede35bbbd0 | |||
200ea8ffaa | |||
de04654ddc | |||
9e3dfc6501 | |||
2095148277 | |||
df980db69b | |||
a47ebdbd22 | |||
fabaf753e2 | |||
45a0000d5c | |||
e6640ad44e | |||
3c09722600 | |||
b73fa629d6 | |||
ae6f865125 | |||
1bd999f982 | |||
8ada6aa929 | |||
4ce46c2a6b | |||
14a4deb064 | |||
aaf6e43b7a | |||
1223744849 | |||
2efb323e87 | |||
338e47fdfd | |||
132f75255e | |||
a0ca7d002d | |||
4af031dbc8 | |||
b254af312d | |||
c9e649ae81 | |||
606d45ccd8 | |||
4fb921e388 | |||
9bca805ec4 | |||
cb89c98c26 | |||
f0b03c4e98 | |||
8ee2d36e21 | |||
ee219b0e9f | |||
9e1d399e63 | |||
890dd05492 | |||
a1d5c154db | |||
200d0e36bc | |||
7e1652c63c | |||
6621605eb9 | |||
8b42328cef | |||
b29d328eb4 | |||
4697399e8c | |||
7f88b65f6c | |||
a6d4849c71 | |||
fae8ed1fc8 | |||
a703aaee4d | |||
8e6a31df81 | |||
59eb016dff | |||
74240d3feb | |||
35c5e8155d | |||
f405c8fe85 | |||
620ca2da37 | |||
05684310a5 | |||
e4b78e2a42 | |||
3388d33457 | |||
6e65d594aa | |||
23c1b2b018 | |||
415a6939a4 | |||
5fe6bdf858 | |||
3767c6e9ee | |||
ac112f01a6 | |||
feeb4d0901 | |||
1eca6f13d6 | |||
92467d3351 | |||
ce6179c799 | |||
461fe50fea | |||
1ad022a9b8 | |||
24820691e6 | |||
22044dc317 | |||
af903e5d49 | |||
a7c54cfcf8 | |||
97ce419201 | |||
76bb7196f5 | |||
2f0584910c | |||
46359e198f | |||
8b9e20afb0 | |||
1a2ab991a6 | |||
c5aa55db7e | |||
a45ff6caba | |||
3660a10c73 | |||
1ed2276fd5 | |||
f38c86eb6b | |||
bdb8139098 | |||
1355aad2b9 | |||
17471e84a7 | |||
c8c75796a6 | |||
e0aa23f7e3 | |||
a3571ebef5 | |||
c41838aa01 | |||
2877d334ad | |||
d7ccc4d81d | |||
fb1db0e355 | |||
be5d998d0e | |||
281c93e714 | |||
83799a7b74 | |||
819edbe078 | |||
50d43153a7 | |||
6315a9ae92 | |||
291a9d15ed | |||
3167c3e701 | |||
2c997d7603 | |||
93a32e2ec4 | |||
3679c17917 | |||
a2a80162de |
4
.lgtm.yml
Normal file
4
.lgtm.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Format of this file: https://lgtm.com/help/lgtm/lgtm.yml-configuration-file
|
||||||
|
path_classifiers:
|
||||||
|
documentation:
|
||||||
|
- runtime/tutor/tutor*
|
35
.travis.yml
35
.travis.yml
@ -10,23 +10,23 @@ compiler:
|
|||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp'"
|
|
||||||
- BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
|
||||||
- BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no
|
|
||||||
- BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
|
||||||
- BUILD=yes TEST=test COVERAGE=no FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
# Mac OSX build
|
|
||||||
- BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
|
||||||
# ASAN build
|
# ASAN build
|
||||||
- BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
- BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||||
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||||
|
- BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||||
|
- BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||||
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no
|
||||||
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
# Mac OSX build
|
||||||
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
# instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env),
|
# instead of a 2*2*7 matrix (2*os + 2*compiler + 7*env),
|
||||||
# exclude some builds on mac os x and linux
|
# exclude some builds on mac os x and linux
|
||||||
# linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
|
# linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
|
||||||
matrix:
|
matrix:
|
||||||
@ -38,17 +38,17 @@ matrix:
|
|||||||
- os: osx
|
- os: osx
|
||||||
env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
- os: osx
|
- os: osx
|
||||||
env: BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
env: BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp'"
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||||
- os: osx
|
- os: osx
|
||||||
env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||||
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||||
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
env: BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||||
@ -57,7 +57,7 @@ matrix:
|
|||||||
env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
- os: linux
|
- os: linux
|
||||||
env: BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
env: BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
@ -75,6 +75,7 @@ addons:
|
|||||||
- liblua5.2-dev
|
- liblua5.2-dev
|
||||||
- lua5.2
|
- lua5.2
|
||||||
- ruby-dev
|
- ruby-dev
|
||||||
|
- tcl-dev
|
||||||
- cscope
|
- cscope
|
||||||
- libgtk2.0-dev
|
- libgtk2.0-dev
|
||||||
|
|
||||||
@ -108,7 +109,7 @@ script:
|
|||||||
- if [ -n "$err" ]; then exit 1; fi
|
- if [ -n "$err" ]; then exit 1; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b $SRCDIR -x .xs -e ${SRCDIR}/xxd -e ${SRCDIR}/if_perl.c --encodings utf-8 latin-1 EUC-KR; fi
|
- if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b ${SRCDIR} -x .xs -e ${SRCDIR}/if_perl.c -e ${SRCDIR}/xxd -e ${SRCDIR}/libvterm --encodings utf-8 latin-1 EUC-KR; fi
|
||||||
- if [ "$COVERAGE" = "yes" ]; then cd $SRCDIR && bash <(curl -s https://codecov.io/bash) ; fi
|
- if [ "$COVERAGE" = "yes" ]; then cd ${SRCDIR} && bash <(curl -s https://codecov.io/bash) ; fi
|
||||||
|
|
||||||
# vim:set sts=2 sw=2 tw=0 et:
|
# vim:set sts=2 sw=2 tw=0 et:
|
||||||
|
@ -51,4 +51,24 @@ Look in the header of the file for the name and email address.
|
|||||||
The maintainer will take care of issues and send updates to Bram for
|
The maintainer will take care of issues and send updates to Bram for
|
||||||
distribution with Vim.
|
distribution with Vim.
|
||||||
|
|
||||||
If the maintainer does not react, contact the vim-dev maillist.
|
If the maintainer does not respond, contact the vim-dev maillist.
|
||||||
|
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
|
||||||
|
Translating messages and runtime files is very much appreciated! These things can be translated:
|
||||||
|
* Messages in Vim, see [src/po/README.txt][1]
|
||||||
|
* Menus, see [runtime/lang/README.txt][2]
|
||||||
|
* Vim tutor, see [runtime/tutor/README.txt][3]
|
||||||
|
* Manual pages, see [runtime/doc/\*.1][4] for examples
|
||||||
|
* Desktop icon, see [runtime/vim.desktop][5] and [runtime/gvim.desktop][6]
|
||||||
|
|
||||||
|
The help files can be translated and made available separately.
|
||||||
|
See https://www.vim.org/translations.php for examples.
|
||||||
|
|
||||||
|
[1]: https://github.com/vim/vim/blob/master/src/po/README.txt
|
||||||
|
[2]: https://github.com/vim/vim/blob/master/runtime/lang/README.txt
|
||||||
|
[3]: https://github.com/vim/vim/blob/master/runtime/tutor/README.txt
|
||||||
|
[4]: https://github.com/vim/vim/blob/master/runtime/doc/vim.1
|
||||||
|
[5]: https://github.com/vim/vim/blob/master/runtime/vim.desktop
|
||||||
|
[6]: https://github.com/vim/vim/blob/master/runtime/gvim.desktop
|
||||||
|
48
Filelist
48
Filelist
@ -1,11 +1,13 @@
|
|||||||
# List of distributed Vim files.
|
# List of distributed Vim files.
|
||||||
# Used by Makefile and upload.aap.
|
# Used by Makefile.
|
||||||
|
|
||||||
# source files for all source archives
|
# source files for all source archives
|
||||||
SRC_ALL = \
|
SRC_ALL = \
|
||||||
.hgignore \
|
.hgignore \
|
||||||
|
.lgtm.yml \
|
||||||
.travis.yml \
|
.travis.yml \
|
||||||
appveyor.yml \
|
appveyor.yml \
|
||||||
|
src/Make_all.mak \
|
||||||
src/appveyor.bat \
|
src/appveyor.bat \
|
||||||
src/README.txt \
|
src/README.txt \
|
||||||
src/alloc.h \
|
src/alloc.h \
|
||||||
@ -89,6 +91,7 @@ SRC_ALL = \
|
|||||||
src/terminal.c \
|
src/terminal.c \
|
||||||
src/term.h \
|
src/term.h \
|
||||||
src/termlib.c \
|
src/termlib.c \
|
||||||
|
src/textprop.c \
|
||||||
src/ui.c \
|
src/ui.c \
|
||||||
src/undo.c \
|
src/undo.c \
|
||||||
src/userfunc.c \
|
src/userfunc.c \
|
||||||
@ -99,9 +102,7 @@ SRC_ALL = \
|
|||||||
src/window.c \
|
src/window.c \
|
||||||
src/tee/tee.c \
|
src/tee/tee.c \
|
||||||
src/xxd/xxd.c \
|
src/xxd/xxd.c \
|
||||||
src/main.aap \
|
|
||||||
src/testdir/gen_opt_test.vim \
|
src/testdir/gen_opt_test.vim \
|
||||||
src/testdir/main.aap \
|
|
||||||
src/testdir/README.txt \
|
src/testdir/README.txt \
|
||||||
src/testdir/Make_all.mak \
|
src/testdir/Make_all.mak \
|
||||||
src/testdir/*.in \
|
src/testdir/*.in \
|
||||||
@ -110,6 +111,7 @@ SRC_ALL = \
|
|||||||
src/testdir/sautest/autoload/*.vim \
|
src/testdir/sautest/autoload/*.vim \
|
||||||
src/testdir/runtest.vim \
|
src/testdir/runtest.vim \
|
||||||
src/testdir/shared.vim \
|
src/testdir/shared.vim \
|
||||||
|
src/testdir/screendump.vim \
|
||||||
src/testdir/view_util.vim \
|
src/testdir/view_util.vim \
|
||||||
src/testdir/setup.vim \
|
src/testdir/setup.vim \
|
||||||
src/testdir/gui_init.vim \
|
src/testdir/gui_init.vim \
|
||||||
@ -119,7 +121,6 @@ SRC_ALL = \
|
|||||||
src/testdir/test[0-9]*a.ok \
|
src/testdir/test[0-9]*a.ok \
|
||||||
src/testdir/test_[a-z]*.ok \
|
src/testdir/test_[a-z]*.ok \
|
||||||
src/testdir/test49.vim \
|
src/testdir/test49.vim \
|
||||||
src/testdir/test60.vim \
|
|
||||||
src/testdir/test83-tags? \
|
src/testdir/test83-tags? \
|
||||||
src/testdir/test77a.com \
|
src/testdir/test77a.com \
|
||||||
src/testdir/test_*.vim \
|
src/testdir/test_*.vim \
|
||||||
@ -135,11 +136,13 @@ SRC_ALL = \
|
|||||||
src/testdir/pyxfile/*.py \
|
src/testdir/pyxfile/*.py \
|
||||||
src/testdir/bench*.in \
|
src/testdir/bench*.in \
|
||||||
src/testdir/bench*.vim \
|
src/testdir/bench*.vim \
|
||||||
|
src/testdir/dumps/*.dump \
|
||||||
src/testdir/samples/*.txt \
|
src/testdir/samples/*.txt \
|
||||||
src/testdir/samples/test000 \
|
src/testdir/samples/test000 \
|
||||||
src/testdir/if_ver*.vim \
|
src/testdir/if_ver*.vim \
|
||||||
src/testdir/xterm_ramp.vim \
|
src/testdir/color_ramp.vim \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
|
src/protodef.h \
|
||||||
src/proto/arabic.pro \
|
src/proto/arabic.pro \
|
||||||
src/proto/beval.pro \
|
src/proto/beval.pro \
|
||||||
src/proto/blowfish.pro \
|
src/proto/blowfish.pro \
|
||||||
@ -196,6 +199,7 @@ SRC_ALL = \
|
|||||||
src/proto/term.pro \
|
src/proto/term.pro \
|
||||||
src/proto/terminal.pro \
|
src/proto/terminal.pro \
|
||||||
src/proto/termlib.pro \
|
src/proto/termlib.pro \
|
||||||
|
src/proto/textprop.pro \
|
||||||
src/proto/ui.pro \
|
src/proto/ui.pro \
|
||||||
src/proto/undo.pro \
|
src/proto/undo.pro \
|
||||||
src/proto/userfunc.pro \
|
src/proto/userfunc.pro \
|
||||||
@ -226,7 +230,7 @@ SRC_ALL = \
|
|||||||
src/libvterm/src/parser.c \
|
src/libvterm/src/parser.c \
|
||||||
src/libvterm/src/pen.c \
|
src/libvterm/src/pen.c \
|
||||||
src/libvterm/src/rect.h \
|
src/libvterm/src/rect.h \
|
||||||
src/libvterm/src/screen.c \
|
src/libvterm/src/termscreen.c \
|
||||||
src/libvterm/src/state.c \
|
src/libvterm/src/state.c \
|
||||||
src/libvterm/src/unicode.c \
|
src/libvterm/src/unicode.c \
|
||||||
src/libvterm/src/utf8.h \
|
src/libvterm/src/utf8.h \
|
||||||
@ -272,6 +276,22 @@ SRC_ALL = \
|
|||||||
src/libvterm/t/92lp1640917.test \
|
src/libvterm/t/92lp1640917.test \
|
||||||
src/libvterm/t/harness.c \
|
src/libvterm/t/harness.c \
|
||||||
src/libvterm/t/run-test.pl \
|
src/libvterm/t/run-test.pl \
|
||||||
|
src/xdiff/COPYING \
|
||||||
|
src/xdiff/README.txt \
|
||||||
|
src/xdiff/xdiff.h \
|
||||||
|
src/xdiff/xdiffi.c \
|
||||||
|
src/xdiff/xdiffi.h \
|
||||||
|
src/xdiff/xemit.c \
|
||||||
|
src/xdiff/xemit.h \
|
||||||
|
src/xdiff/xhistogram.c \
|
||||||
|
src/xdiff/xinclude.h \
|
||||||
|
src/xdiff/xmacros.h \
|
||||||
|
src/xdiff/xpatience.c \
|
||||||
|
src/xdiff/xprepare.c \
|
||||||
|
src/xdiff/xprepare.h \
|
||||||
|
src/xdiff/xtypes.h \
|
||||||
|
src/xdiff/xutils.c \
|
||||||
|
src/xdiff/xutils.h \
|
||||||
|
|
||||||
|
|
||||||
# source files for Unix only
|
# source files for Unix only
|
||||||
@ -288,7 +308,6 @@ SRC_UNIX = \
|
|||||||
src/INSTALLx.txt \
|
src/INSTALLx.txt \
|
||||||
src/Makefile \
|
src/Makefile \
|
||||||
src/auto/configure \
|
src/auto/configure \
|
||||||
src/config.aap.in \
|
|
||||||
src/config.h.in \
|
src/config.h.in \
|
||||||
src/config.mk.dist \
|
src/config.mk.dist \
|
||||||
src/config.mk.in \
|
src/config.mk.in \
|
||||||
@ -410,6 +429,8 @@ SRC_DOS = \
|
|||||||
src/msvc2008.bat \
|
src/msvc2008.bat \
|
||||||
src/msvc2010.bat \
|
src/msvc2010.bat \
|
||||||
src/msvc2015.bat \
|
src/msvc2015.bat \
|
||||||
|
src/msys32.bat \
|
||||||
|
src/msys64.bat \
|
||||||
src/dimm.idl \
|
src/dimm.idl \
|
||||||
src/dlldata.c \
|
src/dlldata.c \
|
||||||
src/dosinst.c \
|
src/dosinst.c \
|
||||||
@ -585,6 +606,7 @@ RT_ALL = \
|
|||||||
runtime/doc/*.txt \
|
runtime/doc/*.txt \
|
||||||
runtime/doc/Makefile \
|
runtime/doc/Makefile \
|
||||||
runtime/doc/doctags.c \
|
runtime/doc/doctags.c \
|
||||||
|
runtime/doc/test_urls.vim \
|
||||||
runtime/doc/vim.1 \
|
runtime/doc/vim.1 \
|
||||||
runtime/doc/evim.1 \
|
runtime/doc/evim.1 \
|
||||||
runtime/doc/vimdiff.1 \
|
runtime/doc/vimdiff.1 \
|
||||||
@ -606,7 +628,6 @@ RT_ALL = \
|
|||||||
runtime/macros/matchit.vim \
|
runtime/macros/matchit.vim \
|
||||||
runtime/macros/maze/README.txt \
|
runtime/macros/maze/README.txt \
|
||||||
runtime/macros/maze/[mM]akefile \
|
runtime/macros/maze/[mM]akefile \
|
||||||
runtime/macros/maze/main.aap \
|
|
||||||
runtime/macros/maze/maze.c \
|
runtime/macros/maze/maze.c \
|
||||||
runtime/macros/maze/maze_5.78 \
|
runtime/macros/maze/maze_5.78 \
|
||||||
runtime/macros/maze/maze_mac \
|
runtime/macros/maze/maze_mac \
|
||||||
@ -634,6 +655,7 @@ RT_ALL = \
|
|||||||
runtime/tutor/tutor \
|
runtime/tutor/tutor \
|
||||||
runtime/tutor/tutor.vim \
|
runtime/tutor/tutor.vim \
|
||||||
runtime/vimrc_example.vim \
|
runtime/vimrc_example.vim \
|
||||||
|
runtime/pack/dist/opt/cfilter/plugin/cfilter.vim \
|
||||||
runtime/pack/dist/opt/dvorak/plugin/dvorak.vim \
|
runtime/pack/dist/opt/dvorak/plugin/dvorak.vim \
|
||||||
runtime/pack/dist/opt/dvorak/dvorak/enable.vim \
|
runtime/pack/dist/opt/dvorak/dvorak/enable.vim \
|
||||||
runtime/pack/dist/opt/dvorak/dvorak/disable.vim \
|
runtime/pack/dist/opt/dvorak/dvorak/disable.vim \
|
||||||
@ -666,10 +688,16 @@ RT_SCRIPTS = \
|
|||||||
runtime/autoload/xml/*.vim \
|
runtime/autoload/xml/*.vim \
|
||||||
runtime/colors/*.vim \
|
runtime/colors/*.vim \
|
||||||
runtime/colors/README.txt \
|
runtime/colors/README.txt \
|
||||||
|
runtime/colors/tools/*.vim \
|
||||||
runtime/compiler/*.vim \
|
runtime/compiler/*.vim \
|
||||||
runtime/compiler/README.txt \
|
runtime/compiler/README.txt \
|
||||||
runtime/indent/*.vim \
|
runtime/indent/*.vim \
|
||||||
runtime/indent/README.txt \
|
runtime/indent/README.txt \
|
||||||
|
runtime/indent/Makefile \
|
||||||
|
runtime/indent/testdir/README.txt \
|
||||||
|
runtime/indent/testdir/*.vim \
|
||||||
|
runtime/indent/testdir/*.in \
|
||||||
|
runtime/indent/testdir/*.ok \
|
||||||
runtime/ftplugin/*.vim \
|
runtime/ftplugin/*.vim \
|
||||||
runtime/ftplugin/logtalk.dict \
|
runtime/ftplugin/logtalk.dict \
|
||||||
runtime/ftplugin/README.txt \
|
runtime/ftplugin/README.txt \
|
||||||
@ -703,6 +731,7 @@ RT_NO_UNIX = \
|
|||||||
|
|
||||||
# runtime for Amiga (also in the extra archive)
|
# runtime for Amiga (also in the extra archive)
|
||||||
RT_AMI_DOS = \
|
RT_AMI_DOS = \
|
||||||
|
runtime/doc/evim.man \
|
||||||
runtime/doc/vim.man \
|
runtime/doc/vim.man \
|
||||||
runtime/doc/vimdiff.man \
|
runtime/doc/vimdiff.man \
|
||||||
runtime/doc/vimtutor.man \
|
runtime/doc/vimtutor.man \
|
||||||
@ -843,6 +872,8 @@ IN_README_DIR = \
|
|||||||
|
|
||||||
# generic language files
|
# generic language files
|
||||||
LANG_GEN = \
|
LANG_GEN = \
|
||||||
|
runtime/doc/*-da.1 \
|
||||||
|
runtime/doc/*-da.UTF-8.1 \
|
||||||
runtime/doc/*-de.1 \
|
runtime/doc/*-de.1 \
|
||||||
runtime/doc/*-de.UTF-8.1 \
|
runtime/doc/*-de.UTF-8.1 \
|
||||||
runtime/doc/*-fr.1 \
|
runtime/doc/*-fr.1 \
|
||||||
@ -903,6 +934,7 @@ LANG_SRC = \
|
|||||||
src/po/check.vim \
|
src/po/check.vim \
|
||||||
src/po/cleanup.vim \
|
src/po/cleanup.vim \
|
||||||
src/po/Makefile \
|
src/po/Makefile \
|
||||||
|
src/po/Make_all.mak \
|
||||||
src/po/Make_cyg.mak \
|
src/po/Make_cyg.mak \
|
||||||
src/po/Make_ming.mak \
|
src/po/Make_ming.mak \
|
||||||
src/po/Make_mvc.mak \
|
src/po/Make_mvc.mak \
|
||||||
|
18
Makefile
18
Makefile
@ -32,14 +32,26 @@ first:
|
|||||||
|
|
||||||
# Some make programs use the last target for the $@ default; put the other
|
# Some make programs use the last target for the $@ default; put the other
|
||||||
# targets separately to always let $@ expand to "first" by default.
|
# targets separately to always let $@ expand to "first" by default.
|
||||||
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests unittests testclean clean distclean:
|
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests test_libvterm unittests testclean clean distclean:
|
||||||
@if test ! -f src/auto/config.mk; then \
|
@if test ! -f src/auto/config.mk; then \
|
||||||
cp src/config.mk.dist src/auto/config.mk; \
|
cp src/config.mk.dist src/auto/config.mk; \
|
||||||
fi
|
fi
|
||||||
@echo "Starting make in the src directory."
|
@echo "Starting make in the src directory."
|
||||||
@echo "If there are problems, cd to the src directory and run make there"
|
@echo "If there are problems, cd to the src directory and run make there"
|
||||||
cd src && $(MAKE) $@
|
cd src && $(MAKE) $@
|
||||||
|
@# When the target is "test" also run the indent tests.
|
||||||
|
@if test "$@" = "test"; then \
|
||||||
|
$(MAKE) indenttest; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Executable used for running the indent tests.
|
||||||
|
VIM_FOR_INDENTTEST = ../../src/vim
|
||||||
|
|
||||||
|
indenttest:
|
||||||
|
cd runtime/indent && \
|
||||||
|
$(MAKE) clean VIM="$(VIM_FOR_INDENTTEST)" && \
|
||||||
|
$(MAKE) test VIM="$(VIM_FOR_INDENTTEST)"
|
||||||
|
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# 2. Creating the various distribution files.
|
# 2. Creating the various distribution files.
|
||||||
@ -68,7 +80,7 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
|||||||
# Before creating an archive first delete all backup files, *.orig, etc.
|
# Before creating an archive first delete all backup files, *.orig, etc.
|
||||||
|
|
||||||
MAJOR = 8
|
MAJOR = 8
|
||||||
MINOR = 0
|
MINOR = 1
|
||||||
|
|
||||||
# CHECKLIST for creating a new version:
|
# CHECKLIST for creating a new version:
|
||||||
#
|
#
|
||||||
@ -131,7 +143,7 @@ MINOR = 0
|
|||||||
# - > make dossrc
|
# - > make dossrc
|
||||||
# > make dosrt
|
# > make dosrt
|
||||||
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
|
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
|
||||||
# This creates the directory vim/vim80 and puts all files in there.
|
# This creates the directory vim/vim81 and puts all files in there.
|
||||||
# Win32 console version build:
|
# Win32 console version build:
|
||||||
# - See src/INSTALLpc.txt for installing the compiler and SDK.
|
# - See src/INSTALLpc.txt for installing the compiler and SDK.
|
||||||
# - Set environment for Visual C++ 2015:
|
# - Set environment for Visual C++ 2015:
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
`README.md` for version 8.0 of Vim: Vi IMproved.
|

|
||||||
|
|
||||||
[](https://travis-ci.org/vim/vim)
|
[](https://travis-ci.org/vim/vim)
|
||||||
[](https://codecov.io/gh/vim/vim?branch=master)
|
[](https://codecov.io/gh/vim/vim?branch=master)
|
||||||
[](https://coveralls.io/github/vim/vim?branch=master)
|
[](https://coveralls.io/github/vim/vim?branch=master)
|
||||||
[](https://ci.appveyor.com/project/chrisbra/vim)
|
[](https://ci.appveyor.com/project/chrisbra/vim)
|
||||||
[](https://scan.coverity.com/projects/vim)
|
[](https://scan.coverity.com/projects/vim)
|
||||||
|
[](https://lgtm.com/projects/g/vim/vim/context:cpp)
|
||||||
[](https://buildd.debian.org/vim)
|
[](https://buildd.debian.org/vim)
|
||||||
|
|
||||||
|
|
||||||
@ -137,3 +138,6 @@ If nothing else works, report bugs directly:
|
|||||||
|
|
||||||
Send any other comments, patches, flowers and suggestions to:
|
Send any other comments, patches, flowers and suggestions to:
|
||||||
Bram Moolenaar <Bram@vim.org>
|
Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
|
|
||||||
|
This is `README.md` for version 8.1 of Vim: Vi IMproved.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README.txt for version 8.0 of Vim: Vi IMproved.
|
README.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
|
|
||||||
WHAT IS VIM?
|
WHAT IS VIM?
|
||||||
|
@ -9,10 +9,10 @@ Vim Vi IMproved. A clone of the UNIX text editor Vi. Very useful
|
|||||||
messages, shows current file name in window title, on-line
|
messages, shows current file name in window title, on-line
|
||||||
help, rectangular cut/paste, etc., etc., etc...
|
help, rectangular cut/paste, etc., etc., etc...
|
||||||
|
|
||||||
Version 8.0. Also runs under UNIX, MS-Windows, Mac, etc.
|
Version 8.1. Also runs under UNIX, MS-Windows, Mac, etc.
|
||||||
vim80rt.tgz contains the documentation and syntax files.
|
vim81rt.tgz contains the documentation and syntax files.
|
||||||
vim80bin.tgz contains the binaries.
|
vim81bin.tgz contains the binaries.
|
||||||
vim80src.tgz contains the sources.
|
vim81src.tgz contains the sources.
|
||||||
Author: Bram Moolenaar et al.
|
Author: Bram Moolenaar et al.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_ami.txt for version 8.0 of Vim: Vi IMproved.
|
README_ami.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Amiga systems.
|
This file explains the installation of Vim on Amiga systems.
|
||||||
See README.txt for general information about Vim.
|
See README.txt for general information about Vim.
|
||||||
@ -16,8 +16,8 @@ easily upgrade to a new version. For example:
|
|||||||
You would then unpack the archives like this:
|
You would then unpack the archives like this:
|
||||||
|
|
||||||
cd dh0:editors
|
cd dh0:editors
|
||||||
tar xf t:vim80bin.tar
|
tar xf t:vim81bin.tar
|
||||||
tar xf t:vim80rt.tar
|
tar xf t:vim81rt.tar
|
||||||
|
|
||||||
Set the $VIM environment variable to point to the top directory of your Vim
|
Set the $VIM environment variable to point to the top directory of your Vim
|
||||||
files. For the above example:
|
files. For the above example:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
README_amibin.txt for version 8.0 of Vim: Vi IMproved.
|
README_amibin.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
These files are in the runtime archive (vim80rt.tgz).
|
These files are in the runtime archive (vim81rt.tgz).
|
||||||
|
|
||||||
|
|
||||||
The Amiga "bin" archive contains the Vim executable for the Amiga. It was
|
The Amiga "bin" archive contains the Vim executable for the Amiga. It was
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
README_amisrc.txt for version 8.0 of Vim: Vi IMproved.
|
README_amisrc.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
These files are in the runtime archive (vim80rt.tgz).
|
These files are in the runtime archive (vim81rt.tgz).
|
||||||
|
|
||||||
|
|
||||||
The Amiga source archive contains the files needed to compile Vim on the
|
The Amiga source archive contains the files needed to compile Vim on the
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
README_bindos.txt for version 8.0 of Vim: Vi IMproved.
|
README_bindos.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||||
These files are in the runtime archive (vim80rt.zip).
|
These files are in the runtime archive (vim81rt.zip).
|
||||||
|
|
||||||
|
|
||||||
There are several binary distributions of Vim for the PC. You would normally
|
There are several binary distributions of Vim for the PC. You would normally
|
||||||
pick only one of them, but it's also possible to install several.
|
pick only one of them, but it's also possible to install several.
|
||||||
These ones are available (the version number may differ):
|
These ones are available (the version number may differ):
|
||||||
vim80w32.zip Windows 95/98/NT/etc. console version
|
vim81w32.zip Windows 95/98/NT/etc. console version
|
||||||
gvim80.zip Windows 95/98/NT/etc. GUI version
|
gvim81.zip Windows 95/98/NT/etc. GUI version
|
||||||
gvim80ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
gvim81ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
||||||
|
|
||||||
You MUST also get the runtime archive (vim80rt.zip).
|
You MUST also get the runtime archive (vim81rt.zip).
|
||||||
The sources are also available (vim80src.zip).
|
The sources are also available (vim81src.zip).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_dos.txt for version 8.0 of Vim: Vi IMproved.
|
README_dos.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
@ -41,19 +41,19 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
located. Check the $VIM setting to see where it points to:
|
located. Check the $VIM setting to see where it points to:
|
||||||
set VIM
|
set VIM
|
||||||
For example, if you have
|
For example, if you have
|
||||||
C:\vim\vim80
|
C:\vim\vim81
|
||||||
do
|
do
|
||||||
cd C:\
|
cd C:\
|
||||||
Binary and runtime Vim archives are normally unpacked in the same location,
|
Binary and runtime Vim archives are normally unpacked in the same location,
|
||||||
on top of each other.
|
on top of each other.
|
||||||
|
|
||||||
2. Unpack the zip archives. This will create a new directory "vim\vim80",
|
2. Unpack the zip archives. This will create a new directory "vim\vim81",
|
||||||
in which all the distributed Vim files are placed. Since the directory
|
in which all the distributed Vim files are placed. Since the directory
|
||||||
name includes the version number, it is unlikely that you overwrite
|
name includes the version number, it is unlikely that you overwrite
|
||||||
existing files.
|
existing files.
|
||||||
Examples:
|
Examples:
|
||||||
pkunzip -d gvim80.zip
|
pkunzip -d gvim81.zip
|
||||||
unzip vim80w32.zip
|
unzip vim81w32.zip
|
||||||
|
|
||||||
You need to unpack the runtime archive and at least one of the binary
|
You need to unpack the runtime archive and at least one of the binary
|
||||||
archives. When using more than one binary version, be careful not to
|
archives. When using more than one binary version, be careful not to
|
||||||
@ -69,7 +69,7 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
archive and follow the instructions in the documentation.
|
archive and follow the instructions in the documentation.
|
||||||
|
|
||||||
3. Change to the new directory:
|
3. Change to the new directory:
|
||||||
cd vim\vim80
|
cd vim\vim81
|
||||||
Run the "install.exe" program. It will ask you a number of questions about
|
Run the "install.exe" program. It will ask you a number of questions about
|
||||||
how you would like to have your Vim setup. Among these are:
|
how you would like to have your Vim setup. Among these are:
|
||||||
- You can tell it to write a "_vimrc" file with your preferences in the
|
- You can tell it to write a "_vimrc" file with your preferences in the
|
||||||
@ -80,8 +80,8 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
console or in a shell. You can select one of the directories in your
|
console or in a shell. You can select one of the directories in your
|
||||||
$PATH. If you skip this, you can add Vim to the search path manually:
|
$PATH. If you skip this, you can add Vim to the search path manually:
|
||||||
The simplest is to add a line to your autoexec.bat. Examples:
|
The simplest is to add a line to your autoexec.bat. Examples:
|
||||||
set path=%path%;C:\vim\vim80
|
set path=%path%;C:\vim\vim81
|
||||||
set path=%path%;D:\editors\vim\vim80
|
set path=%path%;D:\editors\vim\vim81
|
||||||
- Create entries for Vim on the desktop and in the Start menu.
|
- Create entries for Vim on the desktop and in the Start menu.
|
||||||
|
|
||||||
That's it!
|
That's it!
|
||||||
@ -93,8 +93,8 @@ Remarks:
|
|||||||
won't show a menubar. Then you need to set the $VIM environment variable to
|
won't show a menubar. Then you need to set the $VIM environment variable to
|
||||||
point to the top directory of your Vim files. Example:
|
point to the top directory of your Vim files. Example:
|
||||||
set VIM=C:\editors\vim
|
set VIM=C:\editors\vim
|
||||||
Vim version 8.0 will look for your vimrc file in $VIM, and for the runtime
|
Vim version 8.1 will look for your vimrc file in $VIM, and for the runtime
|
||||||
files in $VIM/vim80. See ":help $VIM" for more information.
|
files in $VIM/vim81. See ":help $VIM" for more information.
|
||||||
|
|
||||||
- To avoid confusion between distributed files of different versions and your
|
- To avoid confusion between distributed files of different versions and your
|
||||||
own modified vim scripts, it is recommended to use this directory layout:
|
own modified vim scripts, it is recommended to use this directory layout:
|
||||||
@ -105,14 +105,14 @@ Remarks:
|
|||||||
C:\vim\vimfiles\ftplugin\*.vim Filetype plugins
|
C:\vim\vimfiles\ftplugin\*.vim Filetype plugins
|
||||||
C:\vim\... Other files you made.
|
C:\vim\... Other files you made.
|
||||||
Distributed files:
|
Distributed files:
|
||||||
C:\vim\vim80\vim.exe The Vim version 8.0 executable.
|
C:\vim\vim81\vim.exe The Vim version 8.1 executable.
|
||||||
C:\vim\vim80\doc\*.txt The version 8.0 documentation files.
|
C:\vim\vim81\doc\*.txt The version 8.1 documentation files.
|
||||||
C:\vim\vim80\bugreport.vim A Vim version 8.0 script.
|
C:\vim\vim81\bugreport.vim A Vim version 8.1 script.
|
||||||
C:\vim\vim80\... Other version 8.0 distributed files.
|
C:\vim\vim81\... Other version 8.1 distributed files.
|
||||||
In this case the $VIM environment variable would be set like this:
|
In this case the $VIM environment variable would be set like this:
|
||||||
set VIM=C:\vim
|
set VIM=C:\vim
|
||||||
Then $VIMRUNTIME will automatically be set to "$VIM\vim80". Don't add
|
Then $VIMRUNTIME will automatically be set to "$VIM\vim81". Don't add
|
||||||
"vim80" to $VIM, that won't work.
|
"vim81" to $VIM, that won't work.
|
||||||
|
|
||||||
- You can put your Vim executable anywhere else. If the executable is not
|
- You can put your Vim executable anywhere else. If the executable is not
|
||||||
with the other Vim files, you should set $VIM. The simplest is to add a line
|
with the other Vim files, you should set $VIM. The simplest is to add a line
|
||||||
@ -136,8 +136,8 @@ Remarks:
|
|||||||
Select Properties.
|
Select Properties.
|
||||||
5. In the Program tab, change the "Cmdline" to add "/c" and the name of the
|
5. In the Program tab, change the "Cmdline" to add "/c" and the name of the
|
||||||
Vim executable. Examples:
|
Vim executable. Examples:
|
||||||
C:\command.com /c C:\vim\vim80\vim.exe
|
C:\command.com /c C:\vim\vim81\vim.exe
|
||||||
C:\command.com /c D:\editors\vim\vim80\vim.exe
|
C:\command.com /c D:\editors\vim\vim81\vim.exe
|
||||||
6. Select the font, window size, etc. that you like. If this isn't
|
6. Select the font, window size, etc. that you like. If this isn't
|
||||||
possible, select "Advanced" in the Program tab, and deselect "MS-DOS
|
possible, select "Advanced" in the Program tab, and deselect "MS-DOS
|
||||||
mode".
|
mode".
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_extra.txt for version 8.0 of Vim: Vi IMproved.
|
README_extra.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
These extra files of Vim are for special purposes. This README explains what
|
These extra files of Vim are for special purposes. This README explains what
|
||||||
the files are for. For general information about Vim, see the "README.txt"
|
the files are for. For general information about Vim, see the "README.txt"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_mac.txt for version 8.0 of Vim: Vi IMproved.
|
README_mac.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Macintosh systems.
|
This file explains the installation of Vim on Macintosh systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_ole.txt for version 8.0 of Vim: Vi IMproved.
|
README_ole.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains gvim.exe with OLE interface and VisVim.
|
This archive contains gvim.exe with OLE interface and VisVim.
|
||||||
This version of gvim.exe can also load a number of interface dynamically (you
|
This version of gvim.exe can also load a number of interface dynamically (you
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_os2.txt for version 8.0 of Vim: Vi IMproved.
|
README_os2.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file used to explain the installation of Vim on OS/2 systems.
|
This file used to explain the installation of Vim on OS/2 systems.
|
||||||
However, support for OS/2 has been removed in patch 7.4.1008.
|
However, support for OS/2 has been removed in patch 7.4.1008.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_zOS.txt for version 8.0 of Vim: Vi IMproved.
|
README_os390.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
README_src.txt for version 8.0 of Vim: Vi IMproved.
|
README_src.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
The source archive contains the files needed to compile Vim on Unix systems.
|
The source archive contains the files needed to compile Vim on Unix systems.
|
||||||
It is packed for Unix systems (NL line separator).
|
It is packed for Unix systems (NL line separator).
|
||||||
|
|
||||||
For more information, see the README.txt file that comes with the runtime
|
For more information, see the README.txt file that comes with the runtime
|
||||||
archive (vim-8.0-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
archive (vim-8.1-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
||||||
archive too!
|
archive too!
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
README_srcdos.txt for version 8.0 of Vim: Vi IMproved.
|
README_srcdos.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||||
These files are in the runtime archive (vim80rt.zip).
|
These files are in the runtime archive (vim81rt.zip).
|
||||||
|
|
||||||
|
|
||||||
The DOS source archive contains the files needed to compile Vim on MS-DOS or
|
The DOS source archive contains the files needed to compile Vim on MS-DOS or
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_unix.txt for version 8.0 of Vim: Vi IMproved.
|
README_unix.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Unix systems.
|
This file explains the installation of Vim on Unix systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_vms.txt for version 8.0 of Vim: Vi IMproved.
|
README_vms.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on VMS systems.
|
This file explains the installation of Vim on VMS systems.
|
||||||
See "README.txt" in the runtime archive for information about Vim.
|
See "README.txt" in the runtime archive for information about Vim.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_w32s.txt for version 8.0 of Vim: Vi IMproved.
|
README_w32s.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains the gvim.exe that was specifically compiled for use in
|
This archive contains the gvim.exe that was specifically compiled for use in
|
||||||
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
||||||
|
@ -16,6 +16,7 @@ matrix:
|
|||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
|
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
|
||||||
|
- 'set INCLUDE=%INCLUDE%C:\Program Files (x86)\Windows Kits\8.1\Include\um'
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- src/appveyor.bat
|
- src/appveyor.bat
|
||||||
|
@ -15,6 +15,7 @@ To build the installable .exe:
|
|||||||
vimrun.exe,
|
vimrun.exe,
|
||||||
install.exe,
|
install.exe,
|
||||||
uninstal.exe,
|
uninstal.exe,
|
||||||
|
tee/tee.exe,
|
||||||
xxd/xxd.exe,
|
xxd/xxd.exe,
|
||||||
|
|
||||||
Then execute tools/rename.bat to rename the executables. (mv command is
|
Then execute tools/rename.bat to rename the executables. (mv command is
|
||||||
@ -29,14 +30,15 @@ To build the installable .exe:
|
|||||||
4. Go to the VisVim directory and build VisVim.dll (or get it from a binary
|
4. Go to the VisVim directory and build VisVim.dll (or get it from a binary
|
||||||
archive).
|
archive).
|
||||||
|
|
||||||
5. Go to the OleVim directory and build OpenWithVim.exe and SendToVim.exe (or
|
5. Get a "diff.exe" program. If you skip this the built-in diff will always
|
||||||
get them from a binary archive).
|
be used (which is fine for most users). If you do have your own
|
||||||
|
"diff.exe" put it in the "../.." directory (above the "vim81" directory,
|
||||||
6. Get a "diff.exe" program and put it in the "../.." directory (above the
|
it's the same for all Vim versions).
|
||||||
"vim80" directory, it's the same for all Vim versions).
|
|
||||||
You can find one in previous Vim versions or in this archive:
|
You can find one in previous Vim versions or in this archive:
|
||||||
http://www.mossbayeng.com/~ron/vim/diffutils.tar.gz
|
http://www.mossbayeng.com/~ron/vim/diffutils.tar.gz
|
||||||
Also put winpty32.dll and winpty-agent.exe there.
|
|
||||||
|
6 Also put winpty32.dll and winpty-agent.exe in "../.." (above the "vim81"
|
||||||
|
directory). This is required for the terminal window.
|
||||||
|
|
||||||
7. Do "make uganda.nsis.txt" in runtime/doc. This requires sed, you may have
|
7. Do "make uganda.nsis.txt" in runtime/doc. This requires sed, you may have
|
||||||
to do this on Unix. Make sure the file is in DOS file format!
|
to do this on Unix. Make sure the file is in DOS file format!
|
||||||
|
@ -89,6 +89,11 @@ Page instfiles
|
|||||||
UninstPage uninstConfirm
|
UninstPage uninstConfirm
|
||||||
UninstPage instfiles
|
UninstPage instfiles
|
||||||
|
|
||||||
|
# Reserve files
|
||||||
|
# Needed for showing the _vimrc setting page faster.
|
||||||
|
ReserveFile /plugin InstallOptions.dll
|
||||||
|
ReserveFile vimrc.ini
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
@ -262,6 +267,9 @@ Section "Vim executables and runtime files"
|
|||||||
SetOutPath $0\pack\dist\opt\swapmouse\plugin
|
SetOutPath $0\pack\dist\opt\swapmouse\plugin
|
||||||
File ${VIMRT}\pack\dist\opt\swapmouse\plugin\*.*
|
File ${VIMRT}\pack\dist\opt\swapmouse\plugin\*.*
|
||||||
|
|
||||||
|
SetOutPath $0\pack\dist\opt\termdebug\plugin
|
||||||
|
File ${VIMRT}\pack\dist\opt\termdebug\plugin\*.*
|
||||||
|
|
||||||
SetOutPath $0\plugin
|
SetOutPath $0\plugin
|
||||||
File ${VIMRT}\plugin\*.*
|
File ${VIMRT}\plugin\*.*
|
||||||
|
|
||||||
@ -475,14 +483,12 @@ Function SetCustom
|
|||||||
# Display the InstallOptions dialog
|
# Display the InstallOptions dialog
|
||||||
|
|
||||||
# Check if a _vimrc should be created
|
# Check if a _vimrc should be created
|
||||||
SectionGetFlags ${sec_vimrc_id} $0
|
SectionGetFlags ${sec_vimrc_id} $3
|
||||||
IntOp $0 $0 & 1
|
IntOp $3 $3 & 1
|
||||||
StrCmp $0 "1" +2 0
|
StrCmp $3 "1" +2 0
|
||||||
Abort
|
Abort
|
||||||
|
|
||||||
Push $3
|
InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
|
||||||
InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
|
|
||||||
Pop $3
|
|
||||||
Pop $3
|
Pop $3
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
!ifndef __GVIM_VER__NSH__
|
!ifndef __GVIM_VER__NSH__
|
||||||
!define __GVIM_VER__NSH__
|
!define __GVIM_VER__NSH__
|
||||||
!define VER_MAJOR 8
|
!define VER_MAJOR 8
|
||||||
!define VER_MINOR 0
|
!define VER_MINOR 1
|
||||||
!endif
|
!endif
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
Binary file not shown.
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
48
runtime/autoload/RstFold.vim
Normal file
48
runtime/autoload/RstFold.vim
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
" Author: Antony Lee <anntzer.lee@gmail.com>
|
||||||
|
" Description: Helper functions for reStructuredText syntax folding
|
||||||
|
" Last Modified: 2018-01-07
|
||||||
|
|
||||||
|
function s:CacheRstFold()
|
||||||
|
let closure = {'header_types': {}, 'max_level': 0, 'levels': {}}
|
||||||
|
function closure.Process(match) dict
|
||||||
|
let curline = getcurpos()[1]
|
||||||
|
if has_key(self.levels, curline - 1)
|
||||||
|
" For over+under-lined headers, the regex will match both at the
|
||||||
|
" overline and at the title itself; in that case, skip the second match.
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let lines = split(a:match, '\n')
|
||||||
|
let key = repeat(lines[-1][0], len(lines))
|
||||||
|
if !has_key(self.header_types, key)
|
||||||
|
let self.max_level += 1
|
||||||
|
let self.header_types[key] = self.max_level
|
||||||
|
endif
|
||||||
|
let self.levels[curline] = self.header_types[key]
|
||||||
|
endfunction
|
||||||
|
let save_cursor = getcurpos()
|
||||||
|
silent keeppatterns %s/\v^%(%(([=`:.'"~^_*+#-])\1+\n)?.{1,2}\n([=`:.'"~^_*+#-])\2+)|%(%(([=`:.''"~^_*+#-])\3{2,}\n)?.{3,}\n([=`:.''"~^_*+#-])\4{2,})$/\=closure.Process(submatch(0))/gn
|
||||||
|
call setpos('.', save_cursor)
|
||||||
|
let b:RstFoldCache = closure.levels
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function RstFold#GetRstFold()
|
||||||
|
if !has_key(b:, 'RstFoldCache')
|
||||||
|
call s:CacheRstFold()
|
||||||
|
endif
|
||||||
|
if has_key(b:RstFoldCache, v:lnum)
|
||||||
|
return '>' . b:RstFoldCache[v:lnum]
|
||||||
|
else
|
||||||
|
return '='
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function RstFold#GetRstFoldText()
|
||||||
|
if !has_key(b:, 'RstFoldCache')
|
||||||
|
call s:CacheRstFold()
|
||||||
|
endif
|
||||||
|
let indent = repeat(' ', b:RstFoldCache[v:foldstart] - 1)
|
||||||
|
let thisline = getline(v:foldstart)
|
||||||
|
" For over+under-lined headers, skip the overline.
|
||||||
|
let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline
|
||||||
|
return indent . text
|
||||||
|
endfunction
|
@ -1,7 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2012 Jun 20
|
" Last Change: 2018 Aug 20
|
||||||
|
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@ -72,8 +72,10 @@ function! ccomplete#Complete(findstart, base)
|
|||||||
" Split item in words, keep empty word after "." or "->".
|
" Split item in words, keep empty word after "." or "->".
|
||||||
" "aa" -> ['aa'], "aa." -> ['aa', ''], "aa.bb" -> ['aa', 'bb'], etc.
|
" "aa" -> ['aa'], "aa." -> ['aa', ''], "aa.bb" -> ['aa', 'bb'], etc.
|
||||||
" We can't use split, because we need to skip nested [...].
|
" We can't use split, because we need to skip nested [...].
|
||||||
|
" "aa[...]" -> ['aa', '[...]'], "aa.bb[...]" -> ['aa', 'bb', '[...]'], etc.
|
||||||
let items = []
|
let items = []
|
||||||
let s = 0
|
let s = 0
|
||||||
|
let arrays = 0
|
||||||
while 1
|
while 1
|
||||||
let e = match(base, '\.\|->\|\[', s)
|
let e = match(base, '\.\|->\|\[', s)
|
||||||
if e < 0
|
if e < 0
|
||||||
@ -107,6 +109,7 @@ function! ccomplete#Complete(findstart, base)
|
|||||||
endwhile
|
endwhile
|
||||||
let e += 1
|
let e += 1
|
||||||
call add(items, strpart(base, s, e - s))
|
call add(items, strpart(base, s, e - s))
|
||||||
|
let arrays += 1
|
||||||
let s = e
|
let s = e
|
||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
@ -161,15 +164,26 @@ function! ccomplete#Complete(findstart, base)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
let res = [{'match': match, 'tagline' : '', 'kind' : kind, 'info' : line}]
|
let res = [{'match': match, 'tagline' : '', 'kind' : kind, 'info' : line}]
|
||||||
|
elseif len(items) == arrays + 1
|
||||||
|
" Completing one word and it's a local array variable: build tagline
|
||||||
|
" from declaration line
|
||||||
|
let match = items[0]
|
||||||
|
let kind = 'v'
|
||||||
|
let tagline = "\t/^" . line . '$/'
|
||||||
|
let res = [{'match': match, 'tagline' : tagline, 'kind' : kind, 'info' : line}]
|
||||||
else
|
else
|
||||||
" Completing "var.", "var.something", etc.
|
" Completing "var.", "var.something", etc.
|
||||||
let res = s:Nextitem(strpart(line, 0, col), items[1:], 0, 1)
|
let res = s:Nextitem(strpart(line, 0, col), items[1:], 0, 1)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if len(items) == 1
|
if len(items) == 1 || len(items) == arrays + 1
|
||||||
" Only one part, no "." or "->": complete from tags file.
|
" Only one part, no "." or "->": complete from tags file.
|
||||||
let tags = taglist('^' . base)
|
if len(items) == 1
|
||||||
|
let tags = taglist('^' . base)
|
||||||
|
else
|
||||||
|
let tags = taglist('^' . items[0] . '$')
|
||||||
|
endif
|
||||||
|
|
||||||
" Remove members, these can't appear without something in front.
|
" Remove members, these can't appear without something in front.
|
||||||
call filter(tags, 'has_key(v:val, "kind") ? v:val["kind"] != "m" : 1')
|
call filter(tags, 'has_key(v:val, "kind") ? v:val["kind"] != "m" : 1')
|
||||||
@ -516,11 +530,24 @@ function! s:StructMembers(typename, items, all)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Skip over [...] items
|
||||||
|
let idx = 0
|
||||||
|
while 1
|
||||||
|
if idx >= len(a:items)
|
||||||
|
let target = '' " No further items, matching all members
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
if a:items[idx][0] != '['
|
||||||
|
let target = a:items[idx]
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let idx += 1
|
||||||
|
endwhile
|
||||||
" Put matching members in matches[].
|
" Put matching members in matches[].
|
||||||
let matches = []
|
let matches = []
|
||||||
for l in qflist
|
for l in qflist
|
||||||
let memb = matchstr(l['text'], '[^\t]*')
|
let memb = matchstr(l['text'], '[^\t]*')
|
||||||
if memb =~ '^' . a:items[0]
|
if memb =~ '^' . target
|
||||||
" Skip matches local to another file.
|
" Skip matches local to another file.
|
||||||
if match(l['text'], "\tfile:") < 0 || bufnr('%') == bufnr(matchstr(l['text'], '\t\zs[^\t]*'))
|
if match(l['text'], "\tfile:") < 0 || bufnr('%') == bufnr(matchstr(l['text'], '\t\zs[^\t]*'))
|
||||||
let item = {'match': memb, 'tagline': l['text']}
|
let item = {'match': memb, 'tagline': l['text']}
|
||||||
@ -540,8 +567,8 @@ function! s:StructMembers(typename, items, all)
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
if len(matches) > 0
|
if len(matches) > 0
|
||||||
" Skip over [...] items
|
" Skip over next [...] items
|
||||||
let idx = 1
|
let idx += 1
|
||||||
while 1
|
while 1
|
||||||
if idx >= len(a:items)
|
if idx >= len(a:items)
|
||||||
return matches " No further items, return the result.
|
return matches " No further items, return the result.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
" plus CSS Speech Module <http://www.w3.org/TR/css3-speech/>
|
" plus CSS Speech Module <http://www.w3.org/TR/css3-speech/>
|
||||||
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
||||||
" Original Author: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Original Author: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2016 Jan 11
|
" Last Change: 2018 Jul 02
|
||||||
|
|
||||||
let s:values = split("all additive-symbols align-content align-items align-self animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size block-size border border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip clip-path color columns column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width content counter-increment counter-reset cue cue-before cue-after cursor direction display empty-cells fallback filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font font-family font-feature-settings font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-position grid-auto-rows grid-column grid-column-start grid-column-end grid-row grid-row-start grid-row-end grid-template grid-template-areas grid-template-rows grid-template-columns height hyphens image-rendering image-resolution image-orientation ime-mode inline-size isolation justify-content left letter-spacing line-break line-height list-style list-style-image list-style-position list-style-type margin margin-block-end margin-block-start margin-bottom margin-inline-end margin-inline-start margin-left margin-right margin-top marks mask mask-type max-block-size max-height max-inline-size max-width max-zoom min-block-size min-height min-inline-size min-width min-zoom mix-blend-mode negative object-fit object-position offset-block-end offset-block-start offset-inline-end offset-inline-start opacity order orientation orphans outline outline-color outline-offset outline-style outline-width overflow overflow-wrap overflow-x overflow-y pad padding padding-block-end padding-block-start padding-bottom padding-inline-end padding-inline-start padding-left padding-right padding-top page-break-after page-break-before page-break-inside pause-before pause-after pause perspective perspective-origin pointer-events position prefix quotes range resize rest rest-before rest-after right ruby-align ruby-merge ruby-position scroll-behavior scroll-snap-coordinate scroll-snap-destination scroll-snap-points-x scroll-snap-points-y scroll-snap-type scroll-snap-type-x scroll-snap-type-y shape-image-threshold shape-margin shape-outside speak speak-as suffix symbols system table-layout tab-size text-align text-align-last text-combine-upright text-decoration text-decoration-color text-decoration-line text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-orientation text-overflow text-rendering text-shadow text-transform text-underline-position top touch-action transform transform-box transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi unicode-range user-zoom vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-rate voice-range voice-stress voice-volume white-space widows width will-change word-break word-spacing word-wrap writing-mode z-index zoom")
|
let s:values = split("all additive-symbols align-content align-items align-self animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size block-size border border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip clip-path color columns column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width content counter-increment counter-reset cue cue-before cue-after cursor direction display empty-cells fallback filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font font-family font-feature-settings font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-position grid-auto-rows grid-column grid-column-start grid-column-end grid-row grid-row-start grid-row-end grid-template grid-template-areas grid-template-rows grid-template-columns height hyphens image-rendering image-resolution image-orientation ime-mode inline-size isolation justify-content left letter-spacing line-break line-height list-style list-style-image list-style-position list-style-type margin margin-block-end margin-block-start margin-bottom margin-inline-end margin-inline-start margin-left margin-right margin-top marks mask mask-type max-block-size max-height max-inline-size max-width max-zoom min-block-size min-height min-inline-size min-width min-zoom mix-blend-mode negative object-fit object-position offset-block-end offset-block-start offset-inline-end offset-inline-start opacity order orientation orphans outline outline-color outline-offset outline-style outline-width overflow overflow-wrap overflow-x overflow-y pad padding padding-block-end padding-block-start padding-bottom padding-inline-end padding-inline-start padding-left padding-right padding-top page-break-after page-break-before page-break-inside pause-before pause-after pause perspective perspective-origin pointer-events position prefix quotes range resize rest rest-before rest-after right ruby-align ruby-merge ruby-position scroll-behavior scroll-snap-coordinate scroll-snap-destination scroll-snap-points-x scroll-snap-points-y scroll-snap-type scroll-snap-type-x scroll-snap-type-y shape-image-threshold shape-margin shape-outside speak speak-as suffix symbols system table-layout tab-size text-align text-align-last text-combine-upright text-decoration text-decoration-color text-decoration-line text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-orientation text-overflow text-rendering text-shadow text-transform text-underline-position top touch-action transform transform-box transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi unicode-range user-zoom vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-rate voice-range voice-stress voice-volume white-space widows width will-change word-break word-spacing word-wrap writing-mode z-index zoom")
|
||||||
|
|
||||||
@ -19,7 +19,6 @@ function! csscomplete#CompleteCSS(findstart, base)
|
|||||||
while start >= 0 && line[start - 1] =~ '\%(\k\|-\)'
|
while start >= 0 && line[start - 1] =~ '\%(\k\|-\)'
|
||||||
let start -= 1
|
let start -= 1
|
||||||
endwhile
|
endwhile
|
||||||
let b:after = line[compl_begin :]
|
|
||||||
let b:compl_context = line[0:compl_begin]
|
let b:compl_context = line[0:compl_begin]
|
||||||
return start
|
return start
|
||||||
endif
|
endif
|
||||||
@ -37,11 +36,14 @@ function! csscomplete#CompleteCSS(findstart, base)
|
|||||||
" 5. if @ complete at-rule
|
" 5. if @ complete at-rule
|
||||||
" 6. if ! complete important
|
" 6. if ! complete important
|
||||||
if exists("b:compl_context")
|
if exists("b:compl_context")
|
||||||
|
let line = getline('.')
|
||||||
|
let compl_begin = col('.') - 2
|
||||||
|
let after = line[compl_begin:]
|
||||||
let line = b:compl_context
|
let line = b:compl_context
|
||||||
let after = b:after
|
|
||||||
unlet! b:compl_context
|
unlet! b:compl_context
|
||||||
else
|
else
|
||||||
let line = a:base
|
let line = a:base
|
||||||
|
let after = ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let res = []
|
let res = []
|
||||||
|
12
runtime/autoload/dist/ft.vim
vendored
12
runtime/autoload/dist/ft.vim
vendored
@ -1,7 +1,7 @@
|
|||||||
" Vim functions for file type detection
|
" Vim functions for file type detection
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2017 Nov 11
|
" Last Change: 2017 Dec 05
|
||||||
|
|
||||||
" These functions are moved here from runtime/filetype.vim to make startup
|
" These functions are moved here from runtime/filetype.vim to make startup
|
||||||
" faster.
|
" faster.
|
||||||
@ -126,7 +126,7 @@ endfunc
|
|||||||
" This function checks if one of the first ten lines start with a '@'. In
|
" This function checks if one of the first ten lines start with a '@'. In
|
||||||
" that case it is probably a change file.
|
" that case it is probably a change file.
|
||||||
" If the first line starts with # or ! it's probably a ch file.
|
" If the first line starts with # or ! it's probably a ch file.
|
||||||
" If a line has "main", "include", "//" ir "/*" it's probably ch.
|
" If a line has "main", "include", "//" or "/*" it's probably ch.
|
||||||
" Otherwise CHILL is assumed.
|
" Otherwise CHILL is assumed.
|
||||||
func dist#ft#FTchange()
|
func dist#ft#FTchange()
|
||||||
let lnum = 1
|
let lnum = 1
|
||||||
@ -618,7 +618,11 @@ func dist#ft#FTperl()
|
|||||||
setf perl
|
setf perl
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
if search('^use\s\s*\k', 'nc', 30)
|
let save_cursor = getpos('.')
|
||||||
|
call cursor(1,1)
|
||||||
|
let has_use = search('^use\s\s*\k', 'c', 30)
|
||||||
|
call setpos('.', save_cursor)
|
||||||
|
if has_use
|
||||||
setf perl
|
setf perl
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
@ -628,7 +632,7 @@ endfunc
|
|||||||
" Choose context, plaintex, or tex (LaTeX) based on these rules:
|
" Choose context, plaintex, or tex (LaTeX) based on these rules:
|
||||||
" 1. Check the first line of the file for "%&<format>".
|
" 1. Check the first line of the file for "%&<format>".
|
||||||
" 2. Check the first 1000 non-comment lines for LaTeX or ConTeXt keywords.
|
" 2. Check the first 1000 non-comment lines for LaTeX or ConTeXt keywords.
|
||||||
" 3. Default to "latex" or to g:tex_flavor, can be set in user's vimrc.
|
" 3. Default to "plain" or to g:tex_flavor, can be set in user's vimrc.
|
||||||
func dist#ft#FTtex()
|
func dist#ft#FTtex()
|
||||||
let firstline = getline(1)
|
let firstline = getline(1)
|
||||||
if firstline =~ '^%&\s*\a\+'
|
if firstline =~ '^%&\s*\a\+'
|
||||||
|
3382
runtime/autoload/haskellcomplete.vim
Normal file
3382
runtime/autoload/haskellcomplete.vim
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
" netrwSettings.vim: makes netrw settings simpler
|
" netrwSettings.vim: makes netrw settings simpler
|
||||||
" Date: Nov 09, 2016
|
" Date: Dec 30, 2014
|
||||||
" Maintainer: Charles E Campbell <drchipNOSPAM at campbellfamily dot biz>
|
" Maintainer: Charles E Campbell <drchipNOSPAM at campbellfamily dot biz>
|
||||||
" Version: 16
|
" Version: 15
|
||||||
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
@ -19,7 +19,7 @@
|
|||||||
if exists("g:loaded_netrwSettings") || &cp
|
if exists("g:loaded_netrwSettings") || &cp
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_netrwSettings = "v16"
|
let g:loaded_netrwSettings = "v15"
|
||||||
if v:version < 700
|
if v:version < 700
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
||||||
@ -154,13 +154,9 @@ fun! netrwSettings#NetrwSettings()
|
|||||||
put = 'let g:netrw_list_hide = '.g:netrw_list_hide
|
put = 'let g:netrw_list_hide = '.g:netrw_list_hide
|
||||||
put = 'let g:netrw_liststyle = '.g:netrw_liststyle
|
put = 'let g:netrw_liststyle = '.g:netrw_liststyle
|
||||||
put = 'let g:netrw_localcopycmd = '.g:netrw_localcopycmd
|
put = 'let g:netrw_localcopycmd = '.g:netrw_localcopycmd
|
||||||
put = 'let g:netrw_localcopycmdopt = '.g:netrw_localcopycmdopt
|
|
||||||
put = 'let g:netrw_localmkdir = '.g:netrw_localmkdir
|
put = 'let g:netrw_localmkdir = '.g:netrw_localmkdir
|
||||||
put = 'let g:netrw_localmkdiropt = '.g:netrw_localmkdiropt
|
|
||||||
put = 'let g:netrw_localmovecmd = '.g:netrw_localmovecmd
|
put = 'let g:netrw_localmovecmd = '.g:netrw_localmovecmd
|
||||||
put = 'let g:netrw_localmovecmdopt = '.g:netrw_localmovecmdopt
|
|
||||||
put = 'let g:netrw_localrmdir = '.g:netrw_localrmdir
|
put = 'let g:netrw_localrmdir = '.g:netrw_localrmdir
|
||||||
put = 'let g:netrw_localrmdiropt = '.g:netrw_localrmdiropt
|
|
||||||
put = 'let g:netrw_maxfilenamelen = '.g:netrw_maxfilenamelen
|
put = 'let g:netrw_maxfilenamelen = '.g:netrw_maxfilenamelen
|
||||||
put = 'let g:netrw_menu = '.g:netrw_menu
|
put = 'let g:netrw_menu = '.g:netrw_menu
|
||||||
put = 'let g:netrw_mousemaps = '.g:netrw_mousemaps
|
put = 'let g:netrw_mousemaps = '.g:netrw_mousemaps
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
||||||
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" URL: https://github.com/shawncplus/phpcomplete.vim
|
" URL: https://github.com/shawncplus/phpcomplete.vim
|
||||||
" Last Change: 2016 Oct 10
|
" Last Change: 2018 Oct 10
|
||||||
"
|
"
|
||||||
" OPTIONS:
|
" OPTIONS:
|
||||||
"
|
"
|
||||||
@ -146,6 +146,8 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
|||||||
end
|
end
|
||||||
|
|
||||||
try
|
try
|
||||||
|
let eventignore = &eventignore
|
||||||
|
let &eventignore = 'all'
|
||||||
let winheight = winheight(0)
|
let winheight = winheight(0)
|
||||||
let winnr = winnr()
|
let winnr = winnr()
|
||||||
|
|
||||||
@ -216,6 +218,7 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
|||||||
endif
|
endif
|
||||||
finally
|
finally
|
||||||
silent! exec winnr.'resize '.winheight
|
silent! exec winnr.'resize '.winheight
|
||||||
|
let &eventignore = eventignore
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
@ -1393,23 +1396,28 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
|
|||||||
for classstructure in classcontents
|
for classstructure in classcontents
|
||||||
let docblock_target_pattern = 'function\s\+&\?'.method.'\>\|\(public\|private\|protected\|var\).\+\$'.method.'\>\|@property.\+\$'.method.'\>'
|
let docblock_target_pattern = 'function\s\+&\?'.method.'\>\|\(public\|private\|protected\|var\).\+\$'.method.'\>\|@property.\+\$'.method.'\>'
|
||||||
let doc_str = phpcomplete#GetDocBlock(split(classstructure.content, '\n'), docblock_target_pattern)
|
let doc_str = phpcomplete#GetDocBlock(split(classstructure.content, '\n'), docblock_target_pattern)
|
||||||
if doc_str != ''
|
let return_type_hint = phpcomplete#GetFunctionReturnTypeHint(split(classstructure.content, '\n'), 'function\s\+&\?'.method.'\>')
|
||||||
|
if doc_str != '' || return_type_hint != ''
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if doc_str != ''
|
if doc_str != '' || return_type_hint != ''
|
||||||
let docblock = phpcomplete#ParseDocBlock(doc_str)
|
let docblock = phpcomplete#ParseDocBlock(doc_str)
|
||||||
if has_key(docblock.return, 'type') || has_key(docblock.var, 'type') || len(docblock.properties) > 0
|
if has_key(docblock.return, 'type') || has_key(docblock.var, 'type') || len(docblock.properties) > 0 || return_type_hint != ''
|
||||||
let type = has_key(docblock.return, 'type') ? docblock.return.type : has_key(docblock.var, 'type') ? docblock.var.type : ''
|
if return_type_hint == ''
|
||||||
|
let type = has_key(docblock.return, 'type') ? docblock.return.type : has_key(docblock.var, 'type') ? docblock.var.type : ''
|
||||||
|
|
||||||
if type == ''
|
if type == ''
|
||||||
for property in docblock.properties
|
for property in docblock.properties
|
||||||
if property.description =~? method
|
if property.description =~? method
|
||||||
let type = property.type
|
let type = property.type
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
let type = return_type_hint
|
||||||
|
end
|
||||||
|
|
||||||
" there's a namespace in the type, threat the type as FQCN
|
" there's a namespace in the type, threat the type as FQCN
|
||||||
if type =~ '\\'
|
if type =~ '\\'
|
||||||
@ -1483,7 +1491,7 @@ function! phpcomplete#GetMethodStack(line) " {{{
|
|||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" if it's looks like a string
|
" if it looks like a string
|
||||||
if current_char == "'" || current_char == '"'
|
if current_char == "'" || current_char == '"'
|
||||||
" and it is not escaped
|
" and it is not escaped
|
||||||
if prev_char != '\' || (prev_char == '\' && prev_prev_char == '\')
|
if prev_char != '\' || (prev_char == '\' && prev_prev_char == '\')
|
||||||
@ -1587,9 +1595,11 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
elseif function_file != '' && filereadable(function_file)
|
elseif function_file != '' && filereadable(function_file)
|
||||||
let file_lines = readfile(function_file)
|
let file_lines = readfile(function_file)
|
||||||
let docblock_str = phpcomplete#GetDocBlock(file_lines, 'function\s*&\?\<'.function_name.'\>')
|
let docblock_str = phpcomplete#GetDocBlock(file_lines, 'function\s*&\?\<'.function_name.'\>')
|
||||||
|
let return_type_hint = phpcomplete#GetFunctionReturnTypeHint(file_lines, 'function\s*&\?'.function_name.'\>')
|
||||||
let docblock = phpcomplete#ParseDocBlock(docblock_str)
|
let docblock = phpcomplete#ParseDocBlock(docblock_str)
|
||||||
if has_key(docblock.return, 'type')
|
let type = has_key(docblock.return, 'type') ? docblock.return.type : return_type_hint
|
||||||
let classname_candidate = docblock.return.type
|
if type != ''
|
||||||
|
let classname_candidate = type
|
||||||
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
||||||
" try to expand the classname of the returned type with the context got from the function's source file
|
" try to expand the classname of the returned type with the context got from the function's source file
|
||||||
|
|
||||||
@ -1821,9 +1831,11 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
elseif function_file != '' && filereadable(function_file)
|
elseif function_file != '' && filereadable(function_file)
|
||||||
let file_lines = readfile(function_file)
|
let file_lines = readfile(function_file)
|
||||||
let docblock_str = phpcomplete#GetDocBlock(file_lines, 'function\s*&\?\<'.function_name.'\>')
|
let docblock_str = phpcomplete#GetDocBlock(file_lines, 'function\s*&\?\<'.function_name.'\>')
|
||||||
|
let return_type_hint = phpcomplete#GetFunctionReturnTypeHint(file_lines, 'function\s*&\?'.function_name.'\>')
|
||||||
let docblock = phpcomplete#ParseDocBlock(docblock_str)
|
let docblock = phpcomplete#ParseDocBlock(docblock_str)
|
||||||
if has_key(docblock.return, 'type')
|
let type = has_key(docblock.return, 'type') ? docblock.return.type : return_type_hint
|
||||||
let classname_candidate = docblock.return.type
|
if type != ''
|
||||||
|
let classname_candidate = type
|
||||||
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
||||||
" try to expand the classname of the returned type with the context got from the function's source file
|
" try to expand the classname of the returned type with the context got from the function's source file
|
||||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(classname_candidate, class_candidate_namespace, function_imports)
|
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(classname_candidate, class_candidate_namespace, function_imports)
|
||||||
@ -2413,6 +2425,44 @@ function! phpcomplete#ParseDocBlock(docblock) " {{{
|
|||||||
endfunction
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
function! phpcomplete#GetFunctionReturnTypeHint(sccontent, search)
|
||||||
|
let i = 0
|
||||||
|
let l = 0
|
||||||
|
let function_line_start = -1
|
||||||
|
let function_line_end = -1
|
||||||
|
let sccontent_len = len(a:sccontent)
|
||||||
|
let return_type = ''
|
||||||
|
|
||||||
|
while (i < sccontent_len)
|
||||||
|
let line = a:sccontent[i]
|
||||||
|
" search for a function declaration
|
||||||
|
if line =~? a:search
|
||||||
|
let l = i
|
||||||
|
let function_line_start = i
|
||||||
|
" now search for the first { where the function body starts
|
||||||
|
while l < sccontent_len
|
||||||
|
let line = a:sccontent[l]
|
||||||
|
if line =~? '\V{'
|
||||||
|
let function_line_end = l
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let l += 1
|
||||||
|
endwhile
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let i += 1
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
" now grab the lines that holds the function declaration line
|
||||||
|
if function_line_start != -1 && function_line_end != -1
|
||||||
|
let function_line = join(a:sccontent[function_line_start :function_line_end], " ")
|
||||||
|
let class_name_pattern = '[a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
||||||
|
let return_type = matchstr(function_line, '\c\s*:\s*\zs'.class_name_pattern.'\ze\s*{')
|
||||||
|
endif
|
||||||
|
return return_type
|
||||||
|
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! phpcomplete#GetTypeFromDocBlockParam(docblock_type) " {{{
|
function! phpcomplete#GetTypeFromDocBlockParam(docblock_type) " {{{
|
||||||
if a:docblock_type !~ '|'
|
if a:docblock_type !~ '|'
|
||||||
return a:docblock_type
|
return a:docblock_type
|
||||||
@ -2572,7 +2622,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
|||||||
" find kind flags from tags or built in methods for the objects we extracted
|
" find kind flags from tags or built in methods for the objects we extracted
|
||||||
" they can be either classes, interfaces or namespaces, no other thing is importable in php
|
" they can be either classes, interfaces or namespaces, no other thing is importable in php
|
||||||
for [key, import] in items(imports)
|
for [key, import] in items(imports)
|
||||||
" if theres a \ in the name we have it's definetly not a built in thing, look for tags
|
" if theres a \ in the name we have it's definitely not a built in thing, look for tags
|
||||||
if import.name =~ '\\'
|
if import.name =~ '\\'
|
||||||
let patched_ctags_detected = 0
|
let patched_ctags_detected = 0
|
||||||
let [classname, namespace_for_classes] = phpcomplete#ExpandClassName(import.name, '\', {})
|
let [classname, namespace_for_classes] = phpcomplete#ExpandClassName(import.name, '\', {})
|
||||||
|
@ -22,6 +22,7 @@ function! spellfile#LoadFile(lang)
|
|||||||
endif
|
endif
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
let lang = tolower(a:lang)
|
||||||
|
|
||||||
" If the URL changes we try all files again.
|
" If the URL changes we try all files again.
|
||||||
if s:spellfile_URL != g:spellfile_URL
|
if s:spellfile_URL != g:spellfile_URL
|
||||||
@ -30,13 +31,13 @@ function! spellfile#LoadFile(lang)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" I will say this only once!
|
" I will say this only once!
|
||||||
if has_key(s:donedict, a:lang . &enc)
|
if has_key(s:donedict, lang . &enc)
|
||||||
if &verbose
|
if &verbose
|
||||||
echomsg 'spellfile#LoadFile(): Tried this language/encoding before.'
|
echomsg 'spellfile#LoadFile(): Tried this language/encoding before.'
|
||||||
endif
|
endif
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let s:donedict[a:lang . &enc] = 1
|
let s:donedict[lang . &enc] = 1
|
||||||
|
|
||||||
" Find spell directories we can write in.
|
" Find spell directories we can write in.
|
||||||
let [dirlist, dirchoices] = spellfile#GetDirChoices()
|
let [dirlist, dirchoices] = spellfile#GetDirChoices()
|
||||||
@ -57,14 +58,14 @@ function! spellfile#LoadFile(lang)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let msg = 'Cannot find spell file for "' . a:lang . '" in ' . &enc
|
let msg = 'Cannot find spell file for "' . lang . '" in ' . &enc
|
||||||
let msg .= "\nDo you want me to try downloading it?"
|
let msg .= "\nDo you want me to try downloading it?"
|
||||||
if confirm(msg, "&Yes\n&No", 2) == 1
|
if confirm(msg, "&Yes\n&No", 2) == 1
|
||||||
let enc = &encoding
|
let enc = &encoding
|
||||||
if enc == 'iso-8859-15'
|
if enc == 'iso-8859-15'
|
||||||
let enc = 'latin1'
|
let enc = 'latin1'
|
||||||
endif
|
endif
|
||||||
let fname = a:lang . '.' . enc . '.spl'
|
let fname = lang . '.' . enc . '.spl'
|
||||||
|
|
||||||
" Split the window, read the file into a new buffer.
|
" Split the window, read the file into a new buffer.
|
||||||
" Remember the buffer number, we check it below.
|
" Remember the buffer number, we check it below.
|
||||||
@ -95,7 +96,7 @@ function! spellfile#LoadFile(lang)
|
|||||||
let newbufnr = winbufnr(0)
|
let newbufnr = winbufnr(0)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let fname = a:lang . '.ascii.spl'
|
let fname = lang . '.ascii.spl'
|
||||||
echo 'Could not find it, trying ' . fname . '...'
|
echo 'Could not find it, trying ' . fname . '...'
|
||||||
call spellfile#Nread(fname)
|
call spellfile#Nread(fname)
|
||||||
if getline(2) !~ 'VIMspell'
|
if getline(2) !~ 'VIMspell'
|
||||||
|
@ -152,10 +152,12 @@ fun! tar#Browse(tarfile)
|
|||||||
" assuming cygwin
|
" assuming cygwin
|
||||||
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let curlast= line("$")
|
let curlast= line("$")
|
||||||
if tarfile =~# '\.\(gz\|tgz\)$'
|
if tarfile =~# '\.\(gz\|tgz\)$'
|
||||||
|
let gzip_command = s:get_gzip_command(tarfile)
|
||||||
" call Decho("1: exe silent r! gzip -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
|
" call Decho("1: exe silent r! gzip -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - ")
|
||||||
exe "sil! r! gzip -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
|
exe "sil! r! " . gzip_command . " -d -c -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_browseoptions." - "
|
||||||
elseif tarfile =~# '\.lrp'
|
elseif tarfile =~# '\.lrp'
|
||||||
" call Decho("2: exe silent r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - ")
|
" call Decho("2: exe silent r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - ")
|
||||||
exe "sil! r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - "
|
exe "sil! r! cat -- ".shellescape(tarfile,1)."|gzip -d -c -|".g:tar_cmd." -".g:tar_browseoptions." - "
|
||||||
@ -287,12 +289,14 @@ fun! tar#Read(fname,mode)
|
|||||||
else
|
else
|
||||||
let tar_secure= " "
|
let tar_secure= " "
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if tarfile =~# '\.bz2$'
|
if tarfile =~# '\.bz2$'
|
||||||
" call Decho("7: exe silent r! bzip2 -d -c ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
|
" call Decho("7: exe silent r! bzip2 -d -c ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
|
||||||
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||||
elseif tarfile =~# '\.\(gz\|tgz\)$'
|
elseif tarfile =~# '\.\(gz\|tgz\)$'
|
||||||
|
let gzip_command = s:get_gzip_command(tarfile)
|
||||||
" call Decho("5: exe silent r! gzip -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd.' -'.g:tar_readoptions.' - '.tar_secure.shellescape(fname,1))
|
" call Decho("5: exe silent r! gzip -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd.' -'.g:tar_readoptions.' - '.tar_secure.shellescape(fname,1))
|
||||||
exe "sil! r! gzip -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
exe "sil! r! " . gzip_command . " -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||||
elseif tarfile =~# '\.lrp$'
|
elseif tarfile =~# '\.lrp$'
|
||||||
" call Decho("6: exe silent r! cat ".shellescape(tarfile,1)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
|
" call Decho("6: exe silent r! cat ".shellescape(tarfile,1)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp)
|
||||||
exe "sil! r! cat -- ".shellescape(tarfile,1)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
exe "sil! r! cat -- ".shellescape(tarfile,1)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||||
@ -389,6 +393,8 @@ fun! tar#Write(fname)
|
|||||||
let tarfile = substitute(b:tarfile,'tarfile:\(.\{-}\)::.*$','\1','')
|
let tarfile = substitute(b:tarfile,'tarfile:\(.\{-}\)::.*$','\1','')
|
||||||
let fname = substitute(b:tarfile,'tarfile:.\{-}::\(.*\)$','\1','')
|
let fname = substitute(b:tarfile,'tarfile:.\{-}::\(.*\)$','\1','')
|
||||||
|
|
||||||
|
let gzip_command = s:get_gzip_command(tarfile)
|
||||||
|
|
||||||
" handle compressed archives
|
" handle compressed archives
|
||||||
if tarfile =~# '\.bz2'
|
if tarfile =~# '\.bz2'
|
||||||
call system("bzip2 -d -- ".shellescape(tarfile,0))
|
call system("bzip2 -d -- ".shellescape(tarfile,0))
|
||||||
@ -396,12 +402,12 @@ fun! tar#Write(fname)
|
|||||||
let compress= "bzip2 -- ".shellescape(tarfile,0)
|
let compress= "bzip2 -- ".shellescape(tarfile,0)
|
||||||
" call Decho("compress<".compress.">")
|
" call Decho("compress<".compress.">")
|
||||||
elseif tarfile =~# '\.gz'
|
elseif tarfile =~# '\.gz'
|
||||||
call system("gzip -d -- ".shellescape(tarfile,0))
|
call system(gzip_command . " -d -- ".shellescape(tarfile,0))
|
||||||
let tarfile = substitute(tarfile,'\.gz','','e')
|
let tarfile = substitute(tarfile,'\.gz','','e')
|
||||||
let compress= "gzip -- ".shellescape(tarfile,0)
|
let compress= "gzip -- ".shellescape(tarfile,0)
|
||||||
" call Decho("compress<".compress.">")
|
" call Decho("compress<".compress.">")
|
||||||
elseif tarfile =~# '\.tgz'
|
elseif tarfile =~# '\.tgz'
|
||||||
call system("gzip -d -- ".shellescape(tarfile,0))
|
call system(gzip_command . " -d -- ".shellescape(tarfile,0))
|
||||||
let tarfile = substitute(tarfile,'\.tgz','.tar','e')
|
let tarfile = substitute(tarfile,'\.tgz','.tar','e')
|
||||||
let compress= "gzip -- ".shellescape(tarfile,0)
|
let compress= "gzip -- ".shellescape(tarfile,0)
|
||||||
let tgz = 1
|
let tgz = 1
|
||||||
@ -581,7 +587,10 @@ fun! tar#Vimuntar(...)
|
|||||||
|
|
||||||
" if necessary, decompress the tarball; then, extract it
|
" if necessary, decompress the tarball; then, extract it
|
||||||
if tartail =~ '\.tgz'
|
if tartail =~ '\.tgz'
|
||||||
if executable("gunzip")
|
let gzip_command = s:get_gzip_command(tarfile)
|
||||||
|
if executable(gzip_command)
|
||||||
|
silent exe "!" . gzip_command . " -d ".shellescape(tartail)
|
||||||
|
elseif executable("gunzip")
|
||||||
silent exe "!gunzip ".shellescape(tartail)
|
silent exe "!gunzip ".shellescape(tartail)
|
||||||
elseif executable("gzip")
|
elseif executable("gzip")
|
||||||
silent exe "!gzip -d ".shellescape(tartail)
|
silent exe "!gzip -d ".shellescape(tartail)
|
||||||
@ -619,6 +628,28 @@ fun! tar#Vimuntar(...)
|
|||||||
" call Dret("tar#Vimuntar")
|
" call Dret("tar#Vimuntar")
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
func s:get_gzip_command(file)
|
||||||
|
" Try using the "file" command to get the actual compression type, since
|
||||||
|
" there is no standard way for the naming: ".tgz", ".tbz", ".txz", etc.
|
||||||
|
" If the "file" command doesn't work fall back to just using the file name.
|
||||||
|
if a:file =~# 'z$'
|
||||||
|
let filetype = system('file ' . a:file)
|
||||||
|
if filetype =~ 'bzip2 compressed' && executable('bzip2')
|
||||||
|
return 'bzip2'
|
||||||
|
endif
|
||||||
|
if filetype =~ 'XZ compressed' && executable('xz')
|
||||||
|
return 'xz'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
if a:file =~# 'bz2$'
|
||||||
|
return 'bzip2'
|
||||||
|
endif
|
||||||
|
if a:file =~# 'xz$'
|
||||||
|
return 'xz'
|
||||||
|
endif
|
||||||
|
return 'gzip'
|
||||||
|
endfunc
|
||||||
|
|
||||||
" =====================================================================
|
" =====================================================================
|
||||||
" Modelines And Restoration: {{{1
|
" Modelines And Restoration: {{{1
|
||||||
let &cpo= s:keepcpo
|
let &cpo= s:keepcpo
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Vim autoload file for the tohtml plugin.
|
" Vim autoload file for the tohtml plugin.
|
||||||
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
||||||
" Last Change: 2013 Sep 03
|
" Last Change: 2018 Nov 11
|
||||||
"
|
"
|
||||||
" Additional contributors:
|
" Additional contributors:
|
||||||
"
|
"
|
||||||
@ -544,12 +544,16 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
" add required javascript in reverse order so we can just call append again
|
" add required javascript in reverse order so we can just call append again
|
||||||
" and again without adjusting {{{
|
" and again without adjusting {{{
|
||||||
|
|
||||||
" insert script closing tag
|
let s:uses_script = s:settings.dynamic_folds || s:settings.line_ids || !empty(s:settings.prevent_copy)
|
||||||
call append(style_start, [
|
|
||||||
\ '',
|
" insert script closing tag if needed
|
||||||
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
if s:uses_script
|
||||||
\ "</script>"
|
call append(style_start, [
|
||||||
\ ])
|
\ '',
|
||||||
|
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
||||||
|
\ "</script>"
|
||||||
|
\ ])
|
||||||
|
endif
|
||||||
|
|
||||||
" insert script which corrects the size of small input elements in
|
" insert script which corrects the size of small input elements in
|
||||||
" prevent_copy mode. See 2html.vim for details on why this is needed and how
|
" prevent_copy mode. See 2html.vim for details on why this is needed and how
|
||||||
@ -575,55 +579,61 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
\ '}'
|
\ '}'
|
||||||
\ ])
|
\ ])
|
||||||
endif
|
endif
|
||||||
"
|
|
||||||
" insert javascript to get IDs from line numbers, and to open a fold before
|
" insert javascript to get IDs from line numbers, and to open a fold before
|
||||||
" jumping to any lines contained therein
|
" jumping to any lines contained therein
|
||||||
call append(style_start, [
|
if s:settings.line_ids
|
||||||
\ " /* Always jump to new location even if the line was hidden inside a fold, or",
|
call append(style_start, [
|
||||||
\ " * we corrected the raw number to a line ID.",
|
\ " /* Always jump to new location even if the line was hidden inside a fold, or",
|
||||||
\ " */",
|
\ " * we corrected the raw number to a line ID.",
|
||||||
\ " if (lineElem) {",
|
\ " */",
|
||||||
\ " lineElem.scrollIntoView(true);",
|
\ " if (lineElem) {",
|
||||||
\ " }",
|
\ " lineElem.scrollIntoView(true);",
|
||||||
\ " return true;",
|
\ " }",
|
||||||
\ "}",
|
\ " return true;",
|
||||||
\ "if ('onhashchange' in window) {",
|
\ "}",
|
||||||
\ " window.onhashchange = JumpToLine;",
|
\ "if ('onhashchange' in window) {",
|
||||||
\ "}"
|
\ " window.onhashchange = JumpToLine;",
|
||||||
\ ])
|
\ "}"
|
||||||
if s:settings.dynamic_folds
|
\ ])
|
||||||
|
|
||||||
|
if s:settings.dynamic_folds
|
||||||
|
call append(style_start, [
|
||||||
|
\ "",
|
||||||
|
\ " /* navigate upwards in the DOM tree to open all folds containing the line */",
|
||||||
|
\ " var node = lineElem;",
|
||||||
|
\ " while (node && node.id != 'vimCodeElement".s:settings.id_suffix."')",
|
||||||
|
\ " {",
|
||||||
|
\ " if (node.className == 'closed-fold')",
|
||||||
|
\ " {",
|
||||||
|
\ " /* toggle open the fold ID (remove window ID) */",
|
||||||
|
\ " toggleFold(node.id.substr(4));",
|
||||||
|
\ " }",
|
||||||
|
\ " node = node.parentNode;",
|
||||||
|
\ " }",
|
||||||
|
\ ])
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
if s:settings.line_ids
|
||||||
call append(style_start, [
|
call append(style_start, [
|
||||||
\ "",
|
\ "",
|
||||||
\ " /* navigate upwards in the DOM tree to open all folds containing the line */",
|
\ "/* function to open any folds containing a jumped-to line before jumping to it */",
|
||||||
\ " var node = lineElem;",
|
\ "function JumpToLine()",
|
||||||
\ " while (node && node.id != 'vimCodeElement".s:settings.id_suffix."')",
|
\ "{",
|
||||||
\ " {",
|
\ " var lineNum;",
|
||||||
\ " if (node.className == 'closed-fold')",
|
\ " lineNum = window.location.hash;",
|
||||||
\ " {",
|
\ " lineNum = lineNum.substr(1); /* strip off '#' */",
|
||||||
\ " /* toggle open the fold ID (remove window ID) */",
|
\ "",
|
||||||
\ " toggleFold(node.id.substr(4));",
|
\ " if (lineNum.indexOf('L') == -1) {",
|
||||||
\ " }",
|
\ " lineNum = 'L'+lineNum;",
|
||||||
\ " node = node.parentNode;",
|
|
||||||
\ " }",
|
\ " }",
|
||||||
|
\ " if (lineNum.indexOf('W') == -1) {",
|
||||||
|
\ " lineNum = 'W1'+lineNum;",
|
||||||
|
\ " }",
|
||||||
|
\ " var lineElem = document.getElementById(lineNum);"
|
||||||
\ ])
|
\ ])
|
||||||
endif
|
endif
|
||||||
call append(style_start, [
|
|
||||||
\ "",
|
|
||||||
\ "/* function to open any folds containing a jumped-to line before jumping to it */",
|
|
||||||
\ "function JumpToLine()",
|
|
||||||
\ "{",
|
|
||||||
\ " var lineNum;",
|
|
||||||
\ " lineNum = window.location.hash;",
|
|
||||||
\ " lineNum = lineNum.substr(1); /* strip off '#' */",
|
|
||||||
\ "",
|
|
||||||
\ " if (lineNum.indexOf('L') == -1) {",
|
|
||||||
\ " lineNum = 'L'+lineNum;",
|
|
||||||
\ " }",
|
|
||||||
\ " if (lineNum.indexOf('W') == -1) {",
|
|
||||||
\ " lineNum = 'W1'+lineNum;",
|
|
||||||
\ " }",
|
|
||||||
\ " lineElem = document.getElementById(lineNum);"
|
|
||||||
\ ])
|
|
||||||
|
|
||||||
" Insert javascript to toggle matching folds open and closed in all windows,
|
" Insert javascript to toggle matching folds open and closed in all windows,
|
||||||
" if dynamic folding is active.
|
" if dynamic folding is active.
|
||||||
@ -648,11 +658,13 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
\ ])
|
\ ])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" insert script tag; javascript is always needed for the line number
|
if s:uses_script
|
||||||
" normalization for URL hashes
|
" insert script tag; javascript is always needed for the line number
|
||||||
call append(style_start, [
|
" normalization for URL hashes
|
||||||
\ "<script type='text/javascript'>",
|
call append(style_start, [
|
||||||
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
\ "<script type='text/javascript'>",
|
||||||
|
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
||||||
|
endif
|
||||||
|
|
||||||
" Insert styles from all the generated html documents and additional styles
|
" Insert styles from all the generated html documents and additional styles
|
||||||
" for the table-based layout of the side-by-side diff. The diff should take
|
" for the table-based layout of the side-by-side diff. The diff should take
|
||||||
@ -767,7 +779,7 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
if user_settings.no_pre == 0
|
if user_settings.no_pre == 0
|
||||||
call tohtml#GetOption(user_settings,
|
call tohtml#GetOption(user_settings,
|
||||||
\ 'expand_tabs',
|
\ 'expand_tabs',
|
||||||
\ &expandtab || &ts != 8 || user_settings.number_lines ||
|
\ &expandtab || &ts != 8 || &vts != '' || user_settings.number_lines ||
|
||||||
\ (user_settings.dynamic_folds && !user_settings.no_foldcolumn))
|
\ (user_settings.dynamic_folds && !user_settings.no_foldcolumn))
|
||||||
else
|
else
|
||||||
let user_settings.expand_tabs = 1
|
let user_settings.expand_tabs = 1
|
||||||
|
115
runtime/autoload/xmlformat.vim
Normal file
115
runtime/autoload/xmlformat.vim
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
" Vim plugin for formatting XML
|
||||||
|
" Last Change: Thu, 07 Dec 2018
|
||||||
|
" Version: 0.1
|
||||||
|
" Author: Christian Brabandt <cb@256bit.org>
|
||||||
|
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
|
||||||
|
" License: VIM License
|
||||||
|
" Documentation: see :h xmlformat.txt (TODO!)
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" Load Once: {{{1
|
||||||
|
if exists("g:loaded_xmlformat") || &cp
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_xmlformat = 1
|
||||||
|
let s:keepcpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" Main function: Format the input {{{1
|
||||||
|
func! xmlformat#Format()
|
||||||
|
" only allow reformatting through the gq command
|
||||||
|
" (e.g. Vim is in normal mode)
|
||||||
|
if mode() != 'n'
|
||||||
|
" do not fall back to internal formatting
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
|
let sw = shiftwidth()
|
||||||
|
let prev = prevnonblank(v:lnum-1)
|
||||||
|
let s:indent = indent(prev)/sw
|
||||||
|
let result = []
|
||||||
|
let lastitem = prev ? getline(prev) : ''
|
||||||
|
let is_xml_decl = 0
|
||||||
|
" split on `<`, but don't split on very first opening <
|
||||||
|
for item in split(join(getline(v:lnum, (v:lnum + v:count - 1))), '.\@<=[>]\zs')
|
||||||
|
if s:EndTag(item)
|
||||||
|
let s:indent = s:DecreaseIndent()
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
elseif s:EmptyTag(lastitem)
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
elseif s:StartTag(lastitem) && s:IsTag(item)
|
||||||
|
let s:indent += 1
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
else
|
||||||
|
if !s:IsTag(item)
|
||||||
|
" Simply split on '<'
|
||||||
|
let t=split(item, '.<\@=\zs')
|
||||||
|
let s:indent+=1
|
||||||
|
call add(result, s:Indent(t[0]))
|
||||||
|
let s:indent = s:DecreaseIndent()
|
||||||
|
call add(result, s:Indent(t[1]))
|
||||||
|
else
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
let lastitem = item
|
||||||
|
endfor
|
||||||
|
|
||||||
|
if !empty(result)
|
||||||
|
exe v:lnum. ",". (v:lnum + v:count - 1). 'd'
|
||||||
|
call append(v:lnum - 1, result)
|
||||||
|
" Might need to remove the last line, if it became empty because of the
|
||||||
|
" append() call
|
||||||
|
let last = v:lnum + len(result)
|
||||||
|
if getline(last) is ''
|
||||||
|
exe last. 'd'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" do not run internal formatter!
|
||||||
|
return 0
|
||||||
|
endfunc
|
||||||
|
" Check if given tag is XML Declaration header {{{1
|
||||||
|
func! s:IsXMLDecl(tag)
|
||||||
|
return a:tag =~? '^\s*<?xml\s\?\%(version="[^"]*"\)\?\s\?\%(encoding="[^"]*"\)\? ?>\s*$'
|
||||||
|
endfunc
|
||||||
|
" Return tag indented by current level {{{1
|
||||||
|
func! s:Indent(item)
|
||||||
|
return repeat(' ', shiftwidth()*s:indent). s:Trim(a:item)
|
||||||
|
endfu
|
||||||
|
" Return item trimmed from leading whitespace {{{1
|
||||||
|
func! s:Trim(item)
|
||||||
|
if exists('*trim')
|
||||||
|
return trim(a:item)
|
||||||
|
else
|
||||||
|
return matchstr(a:item, '\S\+.*')
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
" Check if tag is a new opening tag <tag> {{{1
|
||||||
|
func! s:StartTag(tag)
|
||||||
|
let is_comment = s:IsComment(a:tag)
|
||||||
|
return a:tag =~? '^\s*<[^/?]' && !is_comment
|
||||||
|
endfunc
|
||||||
|
func! s:IsComment(tag)
|
||||||
|
return a:tag =~? '<!--'
|
||||||
|
endfunc
|
||||||
|
" Remove one level of indentation {{{1
|
||||||
|
func! s:DecreaseIndent()
|
||||||
|
return (s:indent > 0 ? s:indent - 1 : 0)
|
||||||
|
endfunc
|
||||||
|
" Check if tag is a closing tag </tag> {{{1
|
||||||
|
func! s:EndTag(tag)
|
||||||
|
return a:tag =~? '^\s*</'
|
||||||
|
endfunc
|
||||||
|
" Check that the tag is actually a tag and not {{{1
|
||||||
|
" something like "foobar</foobar>"
|
||||||
|
func! s:IsTag(tag)
|
||||||
|
return s:Trim(a:tag)[0] == '<'
|
||||||
|
endfunc
|
||||||
|
" Check if tag is empty <tag/> {{{1
|
||||||
|
func! s:EmptyTag(tag)
|
||||||
|
return a:tag =~ '/>\s*$'
|
||||||
|
endfunc
|
||||||
|
" Restoration And Modelines: {{{1
|
||||||
|
let &cpo= s:keepcpo
|
||||||
|
unlet s:keepcpo
|
||||||
|
" Modeline {{{1
|
||||||
|
" vim: fdm=marker fdl=0 ts=2 et sw=0 sts=-1
|
@ -42,7 +42,16 @@ this autocmd might be useful:
|
|||||||
Replace "blue_sky" with the name of the colorscheme.
|
Replace "blue_sky" with the name of the colorscheme.
|
||||||
|
|
||||||
In case you want to tweak a colorscheme after it was loaded, check out the
|
In case you want to tweak a colorscheme after it was loaded, check out the
|
||||||
ColorScheme autocmd event.
|
ColorScheme autocommand event.
|
||||||
|
|
||||||
|
To clean up just before loading another colorscheme, use the ColorSchemePre
|
||||||
|
autocommand event. For example:
|
||||||
|
let g:term_ansi_colors = ...
|
||||||
|
augroup MyColorscheme
|
||||||
|
au!
|
||||||
|
au ColorSchemePre * unlet g:term_ansi_colors
|
||||||
|
au ColorSchemePre * au! MyColorscheme
|
||||||
|
augroup END
|
||||||
|
|
||||||
To customize a colorscheme use another name, e.g. "~/.vim/colors/mine.vim",
|
To customize a colorscheme use another name, e.g. "~/.vim/colors/mine.vim",
|
||||||
and use `:runtime` to load the original colorscheme:
|
and use `:runtime` to load the original colorscheme:
|
||||||
@ -64,6 +73,8 @@ Search for "highlight_init".
|
|||||||
If you think you have a color scheme that is good enough to be used by others,
|
If you think you have a color scheme that is good enough to be used by others,
|
||||||
please check the following items:
|
please check the following items:
|
||||||
|
|
||||||
|
- Source the $VIMRUNTIME/colors/tools/check_colors.vim script to check for
|
||||||
|
common mistakes.
|
||||||
- Does it work in a color terminal as well as in the GUI?
|
- Does it work in a color terminal as well as in the GUI?
|
||||||
- Is "g:colors_name" set to a meaningful value? In case of doubt you can do
|
- Is "g:colors_name" set to a meaningful value? In case of doubt you can do
|
||||||
it this way:
|
it this way:
|
||||||
|
136
runtime/colors/tools/check_colors.vim
Normal file
136
runtime/colors/tools/check_colors.vim
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
" This script tests a color scheme for some errors. Load the scheme and source
|
||||||
|
" this script. e.g. :e colors/desert.vim | :so check_colors.vim
|
||||||
|
" Will output possible errors.
|
||||||
|
|
||||||
|
let s:save_cpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
func! Test_check_colors()
|
||||||
|
call cursor(1,1)
|
||||||
|
let err={}
|
||||||
|
|
||||||
|
" 1) Check g:colors_name is existing
|
||||||
|
if !search('\<\%(g:\)\?colors_name\>', 'cnW')
|
||||||
|
let err['colors_name'] = 'g:colors_name not set'
|
||||||
|
else
|
||||||
|
let err['colors_name'] = 'OK'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 2) Check for some well-defined highlighting groups
|
||||||
|
" Some items, check several groups, e.g. Diff, Spell
|
||||||
|
let hi_groups = ['ColorColumn', 'Diff', 'ErrorMsg', 'Folded',
|
||||||
|
\ 'FoldColumn', 'IncSearch', 'LineNr', 'ModeMsg', 'MoreMsg', 'NonText',
|
||||||
|
\ 'Normal', 'Pmenu', 'Todo', 'Search', 'Spell', 'StatusLine', 'TabLine',
|
||||||
|
\ 'Title', 'Visual', 'WarningMsg', 'WildMenu']
|
||||||
|
let groups={}
|
||||||
|
for group in hi_groups
|
||||||
|
if search('\c@suppress\s\+'.group, 'cnW')
|
||||||
|
" skip check, if the script contains a line like
|
||||||
|
" @suppress Visual:
|
||||||
|
let groups[group] = 'Ignoring '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
if !search('hi\%[ghlight] \+'.group, 'cnW')
|
||||||
|
let groups[group] = 'No highlight definition for '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
if !search('hi\%[ghlight] \+'.group. '.*fg=', 'cnW')
|
||||||
|
let groups[group] = 'Missing foreground color for '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
if search('hi\%[ghlight] \+'.group. '.*guibg=', 'cnW') &&
|
||||||
|
\ !search('hi\%[ghlight] \+'.group. '.*ctermbg=', 'cnW')
|
||||||
|
let groups[group] = 'Missing bg terminal color for '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
call search('hi\%[ghlight] \+'.group, 'cW')
|
||||||
|
" only check in the current line
|
||||||
|
if !search('guifg', 'cnW', line('.')) || !search('ctermfg', 'cnW', line('.'))
|
||||||
|
" do not check for background colors, they could be intentionally left out
|
||||||
|
let groups[group] = 'Missing fg definition for '.group
|
||||||
|
endif
|
||||||
|
call cursor(1,1)
|
||||||
|
endfor
|
||||||
|
let err['highlight'] = groups
|
||||||
|
|
||||||
|
" 3) Check, that it does not set background highlighting
|
||||||
|
" Doesn't ':hi Normal ctermfg=253 ctermfg=233' also set the background sometimes?
|
||||||
|
let bg_set='\(set\?\|setl\(ocal\)\?\) .*\(background\|bg\)=\(dark\|light\)'
|
||||||
|
let bg_let='let \%([&]\%([lg]:\)\?\)\%(background\|bg\)\s*=\s*\([''"]\?\)\w\+\1'
|
||||||
|
let bg_pat='\%('.bg_set. '\|'.bg_let.'\)'
|
||||||
|
let line=search(bg_pat, 'cnW')
|
||||||
|
if search(bg_pat, 'cnW')
|
||||||
|
exe line
|
||||||
|
if search('hi \U\w\+\s\+\S', 'cbnW')
|
||||||
|
let err['background'] = 'Should not set background option after :hi statement'
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let err['background'] = 'OK'
|
||||||
|
endif
|
||||||
|
call cursor(1,1)
|
||||||
|
|
||||||
|
" 4) Check, that t_Co is checked
|
||||||
|
let pat = '[&]t_Co\s*[<>=]=\?\s*\d\+'
|
||||||
|
if !search(pat, 'ncW')
|
||||||
|
let err['t_Co'] = 'Does not check terminal for capable colors'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 5) Initializes correctly, e.g. should have a section like
|
||||||
|
" hi clear
|
||||||
|
" if exists("syntax_on")
|
||||||
|
" syntax reset
|
||||||
|
" endif
|
||||||
|
let pat='hi\%[ghlight]\s*clear\n\s*if\s*exists(\([''"]\)syntax_on\1)\n\s*syn\%[tax]\s*reset\n\s*endif'
|
||||||
|
if !search(pat, 'cnW')
|
||||||
|
let err['init'] = 'No initialization'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 6) Does not use :syn on
|
||||||
|
if search('syn\%[tax]\s\+on', 'cnW')
|
||||||
|
let err['background'] = 'Should not issue :syn on'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 7) Does not define filetype specific groups like vimCommand, htmlTag,
|
||||||
|
let hi_groups = ['vim', 'html', 'python', 'sh', 'ruby']
|
||||||
|
for group in hi_groups
|
||||||
|
let pat='\Chi\%[ghlight]\s*\zs'.group.'\w\+\>'
|
||||||
|
if search(pat, 'cnW')
|
||||||
|
let line = search(pat, 'cW')
|
||||||
|
let err['filetype'] = get(err, 'filetype', 'Should not define: ') . matchstr(getline('.'), pat). ' '
|
||||||
|
endif
|
||||||
|
call cursor(1,1)
|
||||||
|
endfor
|
||||||
|
let g:err = err
|
||||||
|
|
||||||
|
" print Result
|
||||||
|
call Result(err)
|
||||||
|
endfu
|
||||||
|
|
||||||
|
fu! Result(err)
|
||||||
|
let do_roups = 0
|
||||||
|
echohl Title|echomsg "---------------"|echohl Normal
|
||||||
|
for key in sort(keys(a:err))
|
||||||
|
if key is# 'highlight'
|
||||||
|
let do_groups = 1
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
if a:err[key] !~ 'OK'
|
||||||
|
echohl Title
|
||||||
|
endif
|
||||||
|
echomsg printf("%15s: %s", key, a:err[key])
|
||||||
|
echohl Normal
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
echohl Title|echomsg "---------------"|echohl Normal
|
||||||
|
if do_groups
|
||||||
|
echohl Title | echomsg "Groups" | echohl Normal
|
||||||
|
for v1 in sort(keys(a:err['highlight']))
|
||||||
|
echomsg printf("%25s: %s", v1, a:err['highlight'][v1])
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
endfu
|
||||||
|
|
||||||
|
call Test_check_colors()
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
37
runtime/compiler/stack.vim
Normal file
37
runtime/compiler/stack.vim
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Haskell Stack
|
||||||
|
" Maintainer: Daniel Campoverde <alx@sillybytes.net>
|
||||||
|
" Latest Revision: 2018-08-27
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "stack"
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%-G%.%#:\ build\ %.%#,
|
||||||
|
\%-G%.%#:\ configure\ %.%#,
|
||||||
|
\%-G[%.%#]%.%#,
|
||||||
|
\%-G%.%#preprocessing\ %.%#,
|
||||||
|
\%-G%.%#configuring\ %.%#,
|
||||||
|
\%-G%.%#building\ %.%#,
|
||||||
|
\%-G%.%#linking\ %.%#,
|
||||||
|
\%-G%.%#installing\ %.%#,
|
||||||
|
\%-G%.%#registering\ %.%#,
|
||||||
|
\%-G%.%#:\ copy/register%.%#,
|
||||||
|
\%-G%.%#process\ exited\ %.%#,
|
||||||
|
\%-G%.%#--builddir=%.%#,
|
||||||
|
\%-G--%.%#,
|
||||||
|
\%-G%.%#\|%.%#,
|
||||||
|
\%E%f:%l:%c:\ error:,%+Z\ \ \ \ %m,
|
||||||
|
\%E%f:%l:%c:\ error:\ %m,%-Z,
|
||||||
|
\%W%f:%l:%c:\ warning:,%+Z\ \ \ \ %m,
|
||||||
|
\%W%f:%l:%c:\ warning:\ %m,%-Z,
|
||||||
|
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
@ -5,6 +5,7 @@
|
|||||||
" Last Change: 2001 May 27
|
" Last Change: 2001 May 27
|
||||||
|
|
||||||
aunmenu *
|
aunmenu *
|
||||||
|
tlunmenu *
|
||||||
|
|
||||||
silent! unlet did_install_default_menus
|
silent! unlet did_install_default_menus
|
||||||
silent! unlet did_install_syntax_menu
|
silent! unlet did_install_syntax_menu
|
||||||
|
@ -102,6 +102,7 @@ DOCS = \
|
|||||||
tagsrch.txt \
|
tagsrch.txt \
|
||||||
term.txt \
|
term.txt \
|
||||||
terminal.txt \
|
terminal.txt \
|
||||||
|
textprop.txt \
|
||||||
tips.txt \
|
tips.txt \
|
||||||
todo.txt \
|
todo.txt \
|
||||||
uganda.txt \
|
uganda.txt \
|
||||||
@ -238,6 +239,7 @@ HTMLS = \
|
|||||||
tagsrch.html \
|
tagsrch.html \
|
||||||
term.html \
|
term.html \
|
||||||
terminal.html \
|
terminal.html \
|
||||||
|
textprop.html \
|
||||||
tips.html \
|
tips.html \
|
||||||
todo.html \
|
todo.html \
|
||||||
uganda.html \
|
uganda.html \
|
||||||
@ -375,6 +377,10 @@ tags.ref tags.html: tags
|
|||||||
perlhtml: tags $(DOCS)
|
perlhtml: tags $(DOCS)
|
||||||
./vim2html.pl tags $(DOCS)
|
./vim2html.pl tags $(DOCS)
|
||||||
|
|
||||||
|
# Check URLs in the help with "curl".
|
||||||
|
test_urls:
|
||||||
|
vim -S test_urls.vim
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm doctags *.html tags.ref
|
-rm doctags *.html tags.ref
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*arabic.txt* For Vim version 8.0. Last change: 2010 Nov 13
|
*arabic.txt* For Vim version 8.1. Last change: 2010 Nov 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||||
@ -319,4 +319,4 @@ There is one known minor bug,
|
|||||||
|
|
||||||
No other bugs are known to exist.
|
No other bugs are known to exist.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
*autocmd.txt* For Vim version 8.0. Last change: 2017 Nov 05
|
*autocmd.txt* For Vim version 8.1. Last change: 2018 May 03
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|
||||||
|
|
||||||
Automatic commands *autocommand*
|
Automatic commands *autocommand* *autocommands*
|
||||||
|
|
||||||
For a basic explanation, see section |40.3| in the user manual.
|
For a basic explanation, see section |40.3| in the user manual.
|
||||||
|
|
||||||
@ -21,7 +21,6 @@ For a basic explanation, see section |40.3| in the user manual.
|
|||||||
11. Disabling autocommands |autocmd-disable|
|
11. Disabling autocommands |autocmd-disable|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
{Vi does not have any of these commands}
|
||||||
{only when the |+autocmd| feature has not been disabled at compile time}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Introduction *autocmd-intro*
|
1. Introduction *autocmd-intro*
|
||||||
@ -33,7 +32,7 @@ files matching *.c. You can also use autocommands to implement advanced
|
|||||||
features, such as editing compressed files (see |gzip-example|). The usual
|
features, such as editing compressed files (see |gzip-example|). The usual
|
||||||
place to put autocommands is in your .vimrc or .exrc file.
|
place to put autocommands is in your .vimrc or .exrc file.
|
||||||
|
|
||||||
*E203* *E204* *E143* *E855* *E937*
|
*E203* *E204* *E143* *E855* *E937* *E952*
|
||||||
WARNING: Using autocommands is very powerful, and may lead to unexpected side
|
WARNING: Using autocommands is very powerful, and may lead to unexpected side
|
||||||
effects. Be careful not to destroy your text.
|
effects. Be careful not to destroy your text.
|
||||||
- It's a good idea to do some testing on an expendable copy of a file first.
|
- It's a good idea to do some testing on an expendable copy of a file first.
|
||||||
@ -57,6 +56,8 @@ effects. Be careful not to destroy your text.
|
|||||||
Add {cmd} to the list of commands that Vim will
|
Add {cmd} to the list of commands that Vim will
|
||||||
execute automatically on {event} for a file matching
|
execute automatically on {event} for a file matching
|
||||||
{pat} |autocmd-patterns|.
|
{pat} |autocmd-patterns|.
|
||||||
|
Note: A quote character is seen as argument to the
|
||||||
|
:autocmd and won't start a comment.
|
||||||
Vim always adds the {cmd} after existing autocommands,
|
Vim always adds the {cmd} after existing autocommands,
|
||||||
so that the autocommands execute in the order in which
|
so that the autocommands execute in the order in which
|
||||||
they were given. See |autocmd-nested| for [nested].
|
they were given. See |autocmd-nested| for [nested].
|
||||||
@ -92,7 +93,8 @@ will appear twice. To avoid this, define your autocommands in a group, so
|
|||||||
that you can easily clear them: >
|
that you can easily clear them: >
|
||||||
|
|
||||||
augroup vimrc
|
augroup vimrc
|
||||||
autocmd! " Remove all vimrc autocommands
|
" Remove all vimrc autocommands
|
||||||
|
autocmd!
|
||||||
au BufNewFile,BufRead *.html so <sfile>:h/html.vim
|
au BufNewFile,BufRead *.html so <sfile>:h/html.vim
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
@ -146,6 +148,8 @@ prompt. When one command outputs two messages this can happen anyway.
|
|||||||
plugins, syntax highlighting, etc.
|
plugins, syntax highlighting, etc.
|
||||||
|
|
||||||
:au[tocmd]! [group] Remove ALL autocommands.
|
:au[tocmd]! [group] Remove ALL autocommands.
|
||||||
|
Note: a quote will be seen as argument to the :autocmd
|
||||||
|
and won't start a comment.
|
||||||
Warning: You should normally not do this without a
|
Warning: You should normally not do this without a
|
||||||
group, it breaks plugins, syntax highlighting, etc.
|
group, it breaks plugins, syntax highlighting, etc.
|
||||||
|
|
||||||
@ -258,6 +262,7 @@ Name triggered by ~
|
|||||||
|BufCreate| just after adding a buffer to the buffer list
|
|BufCreate| just after adding a buffer to the buffer list
|
||||||
|BufDelete| before deleting a buffer from the buffer list
|
|BufDelete| before deleting a buffer from the buffer list
|
||||||
|BufWipeout| before completely deleting a buffer
|
|BufWipeout| before completely deleting a buffer
|
||||||
|
|TerminalOpen| after a terminal buffer was created
|
||||||
|
|
||||||
|BufFilePre| before changing the name of the current buffer
|
|BufFilePre| before changing the name of the current buffer
|
||||||
|BufFilePost| after changing the name of the current buffer
|
|BufFilePost| after changing the name of the current buffer
|
||||||
@ -286,7 +291,8 @@ Name triggered by ~
|
|||||||
|GUIFailed| after starting the GUI failed
|
|GUIFailed| after starting the GUI failed
|
||||||
|TermResponse| after the terminal response to |t_RV| is received
|
|TermResponse| after the terminal response to |t_RV| is received
|
||||||
|
|
||||||
|QuitPre| when using `:quit`, before deciding whether to quit
|
|QuitPre| when using `:quit`, before deciding whether to exit
|
||||||
|
|ExitPre| when using a command that may make Vim exit
|
||||||
|VimLeavePre| before exiting Vim, before writing the viminfo file
|
|VimLeavePre| before exiting Vim, before writing the viminfo file
|
||||||
|VimLeave| before exiting Vim, after writing the viminfo file
|
|VimLeave| before exiting Vim, after writing the viminfo file
|
||||||
|
|
||||||
@ -295,6 +301,9 @@ Name triggered by ~
|
|||||||
|FileChangedShellPost| After handling a file changed since editing started
|
|FileChangedShellPost| After handling a file changed since editing started
|
||||||
|FileChangedRO| before making the first change to a read-only file
|
|FileChangedRO| before making the first change to a read-only file
|
||||||
|
|
||||||
|
|DiffUpdated| after diffs have been updated
|
||||||
|
|DirChanged| after the working directory has changed
|
||||||
|
|
||||||
|ShellCmdPost| after executing a shell command
|
|ShellCmdPost| after executing a shell command
|
||||||
|ShellFilterPost| after filtering with a shell command
|
|ShellFilterPost| after filtering with a shell command
|
||||||
|
|
||||||
@ -322,6 +331,10 @@ Name triggered by ~
|
|||||||
|CmdwinEnter| after entering the command-line window
|
|CmdwinEnter| after entering the command-line window
|
||||||
|CmdwinLeave| before leaving the command-line window
|
|CmdwinLeave| before leaving the command-line window
|
||||||
|
|
||||||
|
|CmdlineChanged| after a change was made to the command-line text
|
||||||
|
|CmdlineEnter| after the cursor moves to the command line
|
||||||
|
|CmdlineLeave| before the cursor leaves the command line
|
||||||
|
|
||||||
|InsertEnter| starting Insert mode
|
|InsertEnter| starting Insert mode
|
||||||
|InsertChange| when typing <Insert> while in Insert or Replace mode
|
|InsertChange| when typing <Insert> while in Insert or Replace mode
|
||||||
|InsertLeave| when leaving Insert mode
|
|InsertLeave| when leaving Insert mode
|
||||||
@ -330,7 +343,12 @@ Name triggered by ~
|
|||||||
|
|
||||||
|TextChanged| after a change was made to the text in Normal mode
|
|TextChanged| after a change was made to the text in Normal mode
|
||||||
|TextChangedI| after a change was made to the text in Insert mode
|
|TextChangedI| after a change was made to the text in Insert mode
|
||||||
|
when popup menu is not visible
|
||||||
|
|TextChangedP| after a change was made to the text in Insert mode
|
||||||
|
when popup menu visible
|
||||||
|
|TextYankPost| after text has been yanked or deleted
|
||||||
|
|
||||||
|
|ColorSchemePre| before loading a color scheme
|
||||||
|ColorScheme| after loading a color scheme
|
|ColorScheme| after loading a color scheme
|
||||||
|
|
||||||
|RemoteReply| a reply from a server Vim was received
|
|RemoteReply| a reply from a server Vim was received
|
||||||
@ -452,6 +470,9 @@ BufWinEnter After a buffer is displayed in a window. This
|
|||||||
existing buffer. But it does happen for a
|
existing buffer. But it does happen for a
|
||||||
":split" with the name of the current buffer,
|
":split" with the name of the current buffer,
|
||||||
since it reloads that buffer.
|
since it reloads that buffer.
|
||||||
|
Does not happen for a terminal window, because
|
||||||
|
it starts in Terminal-Job mode and Normal mode
|
||||||
|
commands won't work. Use |TerminalOpen| instead.
|
||||||
*BufWinLeave*
|
*BufWinLeave*
|
||||||
BufWinLeave Before a buffer is removed from a window.
|
BufWinLeave Before a buffer is removed from a window.
|
||||||
Not when it's still visible in another window.
|
Not when it's still visible in another window.
|
||||||
@ -499,6 +520,13 @@ CmdUndefined When a user command is used but it isn't
|
|||||||
command is defined. An alternative is to
|
command is defined. An alternative is to
|
||||||
always define the user command and have it
|
always define the user command and have it
|
||||||
invoke an autoloaded function. See |autoload|.
|
invoke an autoloaded function. See |autoload|.
|
||||||
|
*CmdlineChanged*
|
||||||
|
CmdlineChanged After a change was made to the text in the
|
||||||
|
command line. Be careful not to mess up
|
||||||
|
the command line, it may cause Vim to lock up.
|
||||||
|
<afile> is set to a single character,
|
||||||
|
indicating the type of command-line.
|
||||||
|
|cmdwin-char|
|
||||||
*CmdlineEnter*
|
*CmdlineEnter*
|
||||||
CmdlineEnter After moving the cursor to the command line,
|
CmdlineEnter After moving the cursor to the command line,
|
||||||
where the user can type a command or search
|
where the user can type a command or search
|
||||||
@ -539,6 +567,10 @@ ColorScheme After loading a color scheme. |:colorscheme|
|
|||||||
set, and <amatch> for the new colorscheme
|
set, and <amatch> for the new colorscheme
|
||||||
name.
|
name.
|
||||||
|
|
||||||
|
*ColorSchemePre*
|
||||||
|
ColorSchemePre Before loading a color scheme. |:colorscheme|
|
||||||
|
Useful to setup removing things added by a
|
||||||
|
color scheme, before another one is loaded.
|
||||||
|
|
||||||
*CompleteDone*
|
*CompleteDone*
|
||||||
CompleteDone After Insert mode completion is done. Either
|
CompleteDone After Insert mode completion is done. Either
|
||||||
@ -625,6 +657,29 @@ FileChangedRO Before making the first change to a read-only
|
|||||||
*E881*
|
*E881*
|
||||||
If the number of lines changes saving for undo
|
If the number of lines changes saving for undo
|
||||||
may fail and the change will be aborted.
|
may fail and the change will be aborted.
|
||||||
|
*DiffUpdated*
|
||||||
|
DiffUpdated After diffs have been updated. Depending on
|
||||||
|
what kind of diff is being used (internal or
|
||||||
|
external) this can be triggered on every
|
||||||
|
change or when doing |:diffupdate|.
|
||||||
|
*DirChanged*
|
||||||
|
DirChanged The working directory has changed in response
|
||||||
|
to the |:cd| or |:lcd| commands, or as a
|
||||||
|
result of the 'autochdir' option.
|
||||||
|
The pattern can be:
|
||||||
|
"window" to trigger on `:lcd`
|
||||||
|
"global" to trigger on `:cd`
|
||||||
|
"auto" to trigger on 'autochdir'.
|
||||||
|
"drop" to trigger on editing a file
|
||||||
|
<afile> is set to the new directory name.
|
||||||
|
*ExitPre*
|
||||||
|
ExitPre When using `:quit`, `:wq` in a way it makes
|
||||||
|
Vim exit, or using `:qall`, just after
|
||||||
|
|QuitPre|. Can be used to close any
|
||||||
|
non-essential window. Exiting may still be
|
||||||
|
cancelled if there is a modified buffer that
|
||||||
|
isn't automatically saved, use |VimLeavePre|
|
||||||
|
for really exiting.
|
||||||
*FileChangedShell*
|
*FileChangedShell*
|
||||||
FileChangedShell When Vim notices that the modification time of
|
FileChangedShell When Vim notices that the modification time of
|
||||||
a file has changed since editing started.
|
a file has changed since editing started.
|
||||||
@ -762,7 +817,7 @@ InsertCharPre When a character is typed in Insert mode,
|
|||||||
inserted literally.
|
inserted literally.
|
||||||
It is not allowed to change the text |textlock|.
|
It is not allowed to change the text |textlock|.
|
||||||
The event is not triggered when 'paste' is
|
The event is not triggered when 'paste' is
|
||||||
set.
|
set. {only with the +eval feature}
|
||||||
*InsertEnter*
|
*InsertEnter*
|
||||||
InsertEnter Just before starting Insert mode. Also for
|
InsertEnter Just before starting Insert mode. Also for
|
||||||
Replace mode and Virtual Replace mode. The
|
Replace mode and Virtual Replace mode. The
|
||||||
@ -780,13 +835,14 @@ MenuPopup Just before showing the popup menu (under the
|
|||||||
right mouse button). Useful for adjusting the
|
right mouse button). Useful for adjusting the
|
||||||
menu for what is under the cursor or mouse
|
menu for what is under the cursor or mouse
|
||||||
pointer.
|
pointer.
|
||||||
The pattern is matched against a single
|
The pattern is matched against one or two
|
||||||
character representing the mode:
|
characters representing the mode:
|
||||||
n Normal
|
n Normal
|
||||||
v Visual
|
v Visual
|
||||||
o Operator-pending
|
o Operator-pending
|
||||||
i Insert
|
i Insert
|
||||||
c Command line
|
c Command line
|
||||||
|
tl Terminal
|
||||||
*OptionSet*
|
*OptionSet*
|
||||||
OptionSet After setting an option. The pattern is
|
OptionSet After setting an option. The pattern is
|
||||||
matched against the long option name.
|
matched against the long option name.
|
||||||
@ -810,6 +866,9 @@ OptionSet After setting an option. The pattern is
|
|||||||
plugin. You can always use `:noa` to prevent
|
plugin. You can always use `:noa` to prevent
|
||||||
triggering this autocommand.
|
triggering this autocommand.
|
||||||
|
|
||||||
|
When using |:set| in the autocommand the event
|
||||||
|
is not triggered again.
|
||||||
|
|
||||||
*QuickFixCmdPre*
|
*QuickFixCmdPre*
|
||||||
QuickFixCmdPre Before a quickfix command is run (|:make|,
|
QuickFixCmdPre Before a quickfix command is run (|:make|,
|
||||||
|:lmake|, |:grep|, |:lgrep|, |:grepadd|,
|
|:lmake|, |:grep|, |:lgrep|, |:grepadd|,
|
||||||
@ -840,6 +899,7 @@ QuitPre When using `:quit`, `:wq` or `:qall`, before
|
|||||||
or quits Vim. Can be used to close any
|
or quits Vim. Can be used to close any
|
||||||
non-essential window if the current window is
|
non-essential window if the current window is
|
||||||
the last ordinary window.
|
the last ordinary window.
|
||||||
|
Also see |ExitPre|.
|
||||||
*RemoteReply*
|
*RemoteReply*
|
||||||
RemoteReply When a reply from a Vim that functions as
|
RemoteReply When a reply from a Vim that functions as
|
||||||
server was received |server2client()|. The
|
server was received |server2client()|. The
|
||||||
@ -908,6 +968,7 @@ SwapExists Detected an existing swap file when starting
|
|||||||
It is not allowed to change to another buffer,
|
It is not allowed to change to another buffer,
|
||||||
change a buffer name or change directory
|
change a buffer name or change directory
|
||||||
here.
|
here.
|
||||||
|
{only available with the +eval feature}
|
||||||
*Syntax*
|
*Syntax*
|
||||||
Syntax When the 'syntax' option has been set. The
|
Syntax When the 'syntax' option has been set. The
|
||||||
pattern is matched against the syntax name.
|
pattern is matched against the syntax name.
|
||||||
@ -934,6 +995,11 @@ TermChanged After the value of 'term' has changed. Useful
|
|||||||
for re-loading the syntax file to update the
|
for re-loading the syntax file to update the
|
||||||
colors, fonts and other terminal-dependent
|
colors, fonts and other terminal-dependent
|
||||||
settings. Executed for all loaded buffers.
|
settings. Executed for all loaded buffers.
|
||||||
|
*TerminalOpen*
|
||||||
|
TerminalOpen Just after a terminal buffer was created, with
|
||||||
|
`:terminal` or |term_start()|. This event is
|
||||||
|
triggered even if the buffer is created
|
||||||
|
without a window, with the ++hidden option.
|
||||||
*TermResponse*
|
*TermResponse*
|
||||||
TermResponse After the response to |t_RV| is received from
|
TermResponse After the response to |t_RV| is received from
|
||||||
the terminal. The value of |v:termresponse|
|
the terminal. The value of |v:termresponse|
|
||||||
@ -956,10 +1022,39 @@ TextChangedI After a change was made to the text in the
|
|||||||
current buffer in Insert mode.
|
current buffer in Insert mode.
|
||||||
Not triggered when the popup menu is visible.
|
Not triggered when the popup menu is visible.
|
||||||
Otherwise the same as TextChanged.
|
Otherwise the same as TextChanged.
|
||||||
|
*TextChangedP*
|
||||||
|
TextChangedP After a change was made to the text in the
|
||||||
|
current buffer in Insert mode, only when the
|
||||||
|
popup menu is visible. Otherwise the same as
|
||||||
|
TextChanged.
|
||||||
|
*TextYankPost*
|
||||||
|
TextYankPost After text has been yanked or deleted in the
|
||||||
|
current buffer. The following values of
|
||||||
|
|v:event| can be used to determine the operation
|
||||||
|
that triggered this autocmd:
|
||||||
|
operator The operation performed.
|
||||||
|
regcontents Text that was stored in the
|
||||||
|
register, as a list of lines,
|
||||||
|
like with: >
|
||||||
|
getreg(r, 1, 1)
|
||||||
|
< regname Name of the |register| or
|
||||||
|
empty string for the unnamed
|
||||||
|
register.
|
||||||
|
regtype Type of the register, see
|
||||||
|
|getregtype()|.
|
||||||
|
Not triggered when |quote_| is used nor when
|
||||||
|
called recursively.
|
||||||
|
It is not allowed to change the buffer text,
|
||||||
|
see |textlock|.
|
||||||
|
{only when compiled with the +eval feature}
|
||||||
*User*
|
*User*
|
||||||
User Never executed automatically. To be used for
|
User Never executed automatically. To be used for
|
||||||
autocommands that are only executed with
|
autocommands that are only executed with
|
||||||
":doautocmd".
|
":doautocmd".
|
||||||
|
Note that when `:doautocmd User MyEvent` is
|
||||||
|
used while there are no matching autocommands,
|
||||||
|
you will get an error. If you don't want
|
||||||
|
that, define a dummy autocommand yourself.
|
||||||
*UserGettingBored*
|
*UserGettingBored*
|
||||||
UserGettingBored When the user presses the same key 42 times.
|
UserGettingBored When the user presses the same key 42 times.
|
||||||
Just kidding! :-)
|
Just kidding! :-)
|
||||||
@ -1004,9 +1099,10 @@ WinEnter After entering another window. Not done for
|
|||||||
If the window is for another buffer, Vim
|
If the window is for another buffer, Vim
|
||||||
executes the BufEnter autocommands after the
|
executes the BufEnter autocommands after the
|
||||||
WinEnter autocommands.
|
WinEnter autocommands.
|
||||||
Note: When using ":split fname" the WinEnter
|
Note: For split and tabpage commands the
|
||||||
event is triggered after the split but before
|
WinEnter event is triggered after the split
|
||||||
the file "fname" is loaded.
|
or tab command but before the file is loaded.
|
||||||
|
|
||||||
*WinLeave*
|
*WinLeave*
|
||||||
WinLeave Before leaving a window. If the window to be
|
WinLeave Before leaving a window. If the window to be
|
||||||
entered next is for a different buffer, Vim
|
entered next is for a different buffer, Vim
|
||||||
@ -1316,7 +1412,7 @@ Careful: '[ and '] change when using commands that change the buffer.
|
|||||||
In commands which expect a file name, you can use "<afile>" for the file name
|
In commands which expect a file name, you can use "<afile>" for the file name
|
||||||
that is being read |:<afile>| (you can also use "%" for the current file
|
that is being read |:<afile>| (you can also use "%" for the current file
|
||||||
name). "<abuf>" can be used for the buffer number of the currently effective
|
name). "<abuf>" can be used for the buffer number of the currently effective
|
||||||
buffer. This also works for buffers that doesn't have a name. But it doesn't
|
buffer. This also works for buffers that don't have a name. But it doesn't
|
||||||
work for files without a buffer (e.g., with ":r file").
|
work for files without a buffer (e.g., with ":r file").
|
||||||
|
|
||||||
*gzip-example*
|
*gzip-example*
|
||||||
@ -1507,4 +1603,4 @@ This will write the file without triggering the autocommands defined by the
|
|||||||
gzip plugin.
|
gzip plugin.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*change.txt* For Vim version 8.0. Last change: 2017 Feb 12
|
*change.txt* For Vim version 8.1. Last change: 2018 Dec 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -110,7 +110,7 @@ is an error when 'cpoptions' includes the 'E' flag.
|
|||||||
J Join [count] lines, with a minimum of two lines.
|
J Join [count] lines, with a minimum of two lines.
|
||||||
Remove the indent and insert up to two spaces (see
|
Remove the indent and insert up to two spaces (see
|
||||||
below). Fails when on the last line of the buffer.
|
below). Fails when on the last line of the buffer.
|
||||||
If [count] is too big it is reduce to the number of
|
If [count] is too big it is reduced to the number of
|
||||||
lines available.
|
lines available.
|
||||||
|
|
||||||
*v_J*
|
*v_J*
|
||||||
@ -177,8 +177,6 @@ gR Enter Virtual Replace mode: Each character you type
|
|||||||
<Tab> may replace several characters at once.
|
<Tab> may replace several characters at once.
|
||||||
Repeat the entered text [count]-1 times. See
|
Repeat the entered text [count]-1 times. See
|
||||||
|Virtual-Replace-mode| for more details.
|
|Virtual-Replace-mode| for more details.
|
||||||
{not available when compiled without the |+vreplace|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
*c*
|
*c*
|
||||||
["x]c{motion} Delete {motion} text [into register x] and start
|
["x]c{motion} Delete {motion} text [into register x] and start
|
||||||
@ -303,8 +301,6 @@ gr{char} Replace the virtual characters under the cursor with
|
|||||||
space. See |gR| and |Virtual-Replace-mode| for more
|
space. See |gR| and |Virtual-Replace-mode| for more
|
||||||
details. As with |r| a count may be given.
|
details. As with |r| a count may be given.
|
||||||
{char} can be entered like with |r|.
|
{char} can be entered like with |r|.
|
||||||
{not available when compiled without the |+vreplace|
|
|
||||||
feature}
|
|
||||||
|
|
||||||
*digraph-arg*
|
*digraph-arg*
|
||||||
The argument for Normal mode commands like |r| and |t| is a single character.
|
The argument for Normal mode commands like |r| and |t| is a single character.
|
||||||
@ -446,7 +442,7 @@ This depends on the 'nrformats' option:
|
|||||||
|
|
||||||
For decimals a leading negative sign is considered for incrementing/
|
For decimals a leading negative sign is considered for incrementing/
|
||||||
decrementing, for binary, octal and hex values, it won't be considered. To
|
decrementing, for binary, octal and hex values, it won't be considered. To
|
||||||
ignore the sign Visually select the number before using CTRL-A or CTRL-X.
|
ignore the sign Visually select the number before using CTRL-A or CTRL-X.
|
||||||
|
|
||||||
For numbers with leading zeros (including all octal and hexadecimal numbers),
|
For numbers with leading zeros (including all octal and hexadecimal numbers),
|
||||||
Vim preserves the number of characters in the number when possible. CTRL-A on
|
Vim preserves the number of characters in the number when possible. CTRL-A on
|
||||||
@ -480,6 +476,10 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right*
|
|||||||
*<*
|
*<*
|
||||||
<{motion} Shift {motion} lines one 'shiftwidth' leftwards.
|
<{motion} Shift {motion} lines one 'shiftwidth' leftwards.
|
||||||
|
|
||||||
|
If the 'vartabstop' feature is enabled, and the
|
||||||
|
'shiftwidth' option is set to zero, the amount of
|
||||||
|
indent is calculated at the first non-blank character
|
||||||
|
in the line.
|
||||||
*<<*
|
*<<*
|
||||||
<< Shift [count] lines one 'shiftwidth' leftwards.
|
<< Shift [count] lines one 'shiftwidth' leftwards.
|
||||||
|
|
||||||
@ -491,6 +491,10 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right*
|
|||||||
*>*
|
*>*
|
||||||
>{motion} Shift {motion} lines one 'shiftwidth' rightwards.
|
>{motion} Shift {motion} lines one 'shiftwidth' rightwards.
|
||||||
|
|
||||||
|
If the 'vartabstop' feature is enabled, and the
|
||||||
|
'shiftwidth' option is set to zero, the amount of
|
||||||
|
indent is calculated at the first non-blank character
|
||||||
|
in the line.
|
||||||
*>>*
|
*>>*
|
||||||
>> Shift [count] lines one 'shiftwidth' rightwards.
|
>> Shift [count] lines one 'shiftwidth' rightwards.
|
||||||
|
|
||||||
@ -533,6 +537,7 @@ If the 'shiftround' option is on, the indent is rounded to a multiple of
|
|||||||
If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' contains
|
If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' contains
|
||||||
'#' with a zero value, shift right does not affect lines starting with '#'
|
'#' with a zero value, shift right does not affect lines starting with '#'
|
||||||
(these are supposed to be C preprocessor lines that must stay in column 1).
|
(these are supposed to be C preprocessor lines that must stay in column 1).
|
||||||
|
This can be changed with the 'cino' option, see |cino-#|.
|
||||||
|
|
||||||
When the 'expandtab' option is off (this is the default) Vim uses <Tab>s as
|
When the 'expandtab' option is off (this is the default) Vim uses <Tab>s as
|
||||||
much as possible to make the indent. You can use ">><<" to replace an indent
|
much as possible to make the indent. You can use ">><<" to replace an indent
|
||||||
@ -711,6 +716,7 @@ The flags that you can use for the substitute commands:
|
|||||||
search pattern.
|
search pattern.
|
||||||
{not in Vi: highlighting of the match, other responses than 'y' or 'n'}
|
{not in Vi: highlighting of the match, other responses than 'y' or 'n'}
|
||||||
|
|
||||||
|
*:s_e*
|
||||||
[e] When the search pattern fails, do not issue an error message and, in
|
[e] When the search pattern fails, do not issue an error message and, in
|
||||||
particular, continue in maps as if no error occurred. This is most
|
particular, continue in maps as if no error occurred. This is most
|
||||||
useful to prevent the "No match" error from breaking a mapping. Vim
|
useful to prevent the "No match" error from breaking a mapping. Vim
|
||||||
@ -722,6 +728,7 @@ The flags that you can use for the substitute commands:
|
|||||||
Interrupted
|
Interrupted
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
|
*:s_g*
|
||||||
[g] Replace all occurrences in the line. Without this argument,
|
[g] Replace all occurrences in the line. Without this argument,
|
||||||
replacement occurs only for the first occurrence in each line. If
|
replacement occurs only for the first occurrence in each line. If
|
||||||
the 'edcompatible' option is on, Vim remembers this flag and toggles
|
the 'edcompatible' option is on, Vim remembers this flag and toggles
|
||||||
@ -729,26 +736,30 @@ The flags that you can use for the substitute commands:
|
|||||||
pattern. If the 'gdefault' option is on, this flag is on by default
|
pattern. If the 'gdefault' option is on, this flag is on by default
|
||||||
and the [g] argument switches it off.
|
and the [g] argument switches it off.
|
||||||
|
|
||||||
|
*:s_i*
|
||||||
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
|
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
|
||||||
are not used.
|
are not used.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
|
*:s_I*
|
||||||
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
|
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
|
||||||
options are not used.
|
options are not used.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
|
*:s_n*
|
||||||
[n] Report the number of matches, do not actually substitute. The [c]
|
[n] Report the number of matches, do not actually substitute. The [c]
|
||||||
flag is ignored. The matches are reported as if 'report' is zero.
|
flag is ignored. The matches are reported as if 'report' is zero.
|
||||||
Useful to |count-items|.
|
Useful to |count-items|.
|
||||||
If \= |sub-replace-expression| is used, the expression will be
|
If \= |sub-replace-expression| is used, the expression will be
|
||||||
evaluated in the |sandbox| at every match.
|
evaluated in the |sandbox| at every match.
|
||||||
|
|
||||||
[p] Print the line containing the last substitute.
|
[p] Print the line containing the last substitute. *:s_p*
|
||||||
|
|
||||||
[#] Like [p] and prepend the line number.
|
[#] Like [p] and prepend the line number. *:s_#*
|
||||||
|
|
||||||
[l] Like [p] but print the text like |:list|.
|
[l] Like [p] but print the text like |:list|. *:s_l*
|
||||||
|
|
||||||
|
*:s_r*
|
||||||
[r] Only useful in combination with `:&` or `:s` without arguments. `:&r`
|
[r] Only useful in combination with `:&` or `:s` without arguments. `:&r`
|
||||||
works the same way as `:~`: When the search pattern is empty, use the
|
works the same way as `:~`: When the search pattern is empty, use the
|
||||||
previously used search pattern instead of the search pattern from the
|
previously used search pattern instead of the search pattern from the
|
||||||
@ -847,7 +858,7 @@ the |substitute()| function with the following exceptions:
|
|||||||
- magic is always set without regard to 'magic'.
|
- magic is always set without regard to 'magic'.
|
||||||
- A ~ inserts a tilde literally.
|
- A ~ inserts a tilde literally.
|
||||||
- <CR> and \r inserts a carriage-return (CTRL-M).
|
- <CR> and \r inserts a carriage-return (CTRL-M).
|
||||||
- \<CR> does not have a special meaning. it's just one of \x.
|
- \<CR> does not have a special meaning. It's just one of \x.
|
||||||
|
|
||||||
Examples: >
|
Examples: >
|
||||||
:s/a\|b/xxx\0xxx/g modifies "a b" to "xxxaxxx xxxbxxx"
|
:s/a\|b/xxx\0xxx/g modifies "a b" to "xxxaxxx xxxbxxx"
|
||||||
@ -933,9 +944,9 @@ When the result is a |List| then the items are joined with separating line
|
|||||||
breaks. Thus each item becomes a line, except that they can contain line
|
breaks. Thus each item becomes a line, except that they can contain line
|
||||||
breaks themselves.
|
breaks themselves.
|
||||||
|
|
||||||
The whole matched text can be accessed with "submatch(0)". The text matched
|
The |submatch()| function can be used to obtain matched text. The whole
|
||||||
with the first pair of () with "submatch(1)". Likewise for further
|
matched text can be accessed with "submatch(0)". The text matched with the
|
||||||
sub-matches in ().
|
first pair of () with "submatch(1)". Likewise for further sub-matches in ().
|
||||||
|
|
||||||
Be careful: The separation character must not appear in the expression!
|
Be careful: The separation character must not appear in the expression!
|
||||||
Consider using a character like "@" or ":". There is no problem if the result
|
Consider using a character like "@" or ":". There is no problem if the result
|
||||||
@ -986,6 +997,11 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
|
|||||||
this (that's a good habit anyway).
|
this (that's a good habit anyway).
|
||||||
`:retab!` may also change a sequence of spaces by
|
`:retab!` may also change a sequence of spaces by
|
||||||
<Tab> characters, which can mess up a printf().
|
<Tab> characters, which can mess up a printf().
|
||||||
|
If the |+vartabs| feature is enabled then a list of
|
||||||
|
tab widths separated by commas may be used in place of
|
||||||
|
a single tabstop. Each value in the list represents
|
||||||
|
the width of one tabstop, except the final value which
|
||||||
|
applies to all following tabstops.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
*retab-example*
|
*retab-example*
|
||||||
@ -1444,6 +1460,55 @@ to the name of an external program for Vim to use for text formatting. The
|
|||||||
'textwidth' and other options have no effect on formatting by an external
|
'textwidth' and other options have no effect on formatting by an external
|
||||||
program.
|
program.
|
||||||
|
|
||||||
|
*format-formatexpr*
|
||||||
|
The 'formatexpr' option can be set to a Vim script function that performs
|
||||||
|
reformatting of the buffer. This should usually happen in an |ftplugin|,
|
||||||
|
since formatting is highly dependent on the type of file. It makes
|
||||||
|
sense to use an |autoload| script, so the corresponding script is only loaded
|
||||||
|
when actually needed and the script should be called <filetype>format.vim.
|
||||||
|
|
||||||
|
For example, the XML filetype plugin distributed with Vim in the $VIMRUNTIME
|
||||||
|
directory, sets the 'formatexpr' option to: >
|
||||||
|
|
||||||
|
setlocal formatexpr=xmlformat#Format()
|
||||||
|
|
||||||
|
That means, you will find the corresponding script, defining the
|
||||||
|
xmlformat#Format() function, in the directory:
|
||||||
|
`$VIMRUNTIME/autoload/xmlformat.vim`
|
||||||
|
|
||||||
|
Here is an example script that removes trailing whitespace from the selected
|
||||||
|
text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
|
||||||
|
|
||||||
|
func! format#Format()
|
||||||
|
" only reformat on explicit gq command
|
||||||
|
if mode() != 'n'
|
||||||
|
" fall back to Vims internal reformatting
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
let lines = getline(v:lnum, v:lnum + v:count - 1)
|
||||||
|
call map(lines, {key, val -> substitute(val, '\s\+$', '', 'g')})
|
||||||
|
call setline('.', lines)
|
||||||
|
|
||||||
|
" do not run internal formatter!
|
||||||
|
return 0
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
You can then enable the formatting by executing: >
|
||||||
|
setlocal formatexpr=format#Format()
|
||||||
|
|
||||||
|
Note: this function explicitly returns non-zero when called from insert mode
|
||||||
|
(which basically means, text is inserted beyond the 'textwidth' limit). This
|
||||||
|
causes Vim to fall back to reformat the text by using the internal formatter.
|
||||||
|
|
||||||
|
However, if the |gq| command is used to reformat the text, the function
|
||||||
|
will receive the selected lines, trim trailing whitespace from those lines and
|
||||||
|
put them back in place. If you are going to split single lines into multiple
|
||||||
|
lines, be careful not to overwrite anything.
|
||||||
|
|
||||||
|
If you want to allow reformatting of text from insert or replace mode, one has
|
||||||
|
to be very careful, because the function might be called recursively. For
|
||||||
|
debugging it helps to set the 'debug' option.
|
||||||
|
|
||||||
*right-justify*
|
*right-justify*
|
||||||
There is no command in Vim to right justify text. You can do it with
|
There is no command in Vim to right justify text. You can do it with
|
||||||
an external command, like "par" (e.g.: "!}par" to format until the end of the
|
an external command, like "par" (e.g.: "!}par" to format until the end of the
|
||||||
@ -1829,4 +1894,4 @@ The sorting can be interrupted, but if you interrupt it too late in the
|
|||||||
process you may end up with duplicated lines. This also depends on the system
|
process you may end up with duplicated lines. This also depends on the system
|
||||||
library function used.
|
library function used.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*channel.txt* For Vim version 8.0. Last change: 2017 Aug 11
|
*channel.txt* For Vim version 8.1. Last change: 2018 Apr 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -22,6 +22,7 @@ The Netbeans interface also uses a channel. |netbeans|
|
|||||||
9. Starting a job without a channel |job-start-nochannel|
|
9. Starting a job without a channel |job-start-nochannel|
|
||||||
10. Job options |job-options|
|
10. Job options |job-options|
|
||||||
11. Controlling a job |job-control|
|
11. Controlling a job |job-control|
|
||||||
|
12. Using a prompt buffer |prompt-buffer|
|
||||||
|
|
||||||
{Vi does not have any of these features}
|
{Vi does not have any of these features}
|
||||||
{only when compiled with the |+channel| feature for channel stuff}
|
{only when compiled with the |+channel| feature for channel stuff}
|
||||||
@ -55,7 +56,7 @@ JS JavaScript style JSON-like encoding |js_encode()|
|
|||||||
Common combination are:
|
Common combination are:
|
||||||
- Using a job connected through pipes in NL mode. E.g., to run a style
|
- Using a job connected through pipes in NL mode. E.g., to run a style
|
||||||
checker and receive errors and warnings.
|
checker and receive errors and warnings.
|
||||||
- Using a deamon, connecting over a socket in JSON mode. E.g. to lookup
|
- Using a daemon, connecting over a socket in JSON mode. E.g. to lookup
|
||||||
cross-references in a database.
|
cross-references in a database.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@ -162,6 +163,9 @@ Use |ch_status()| to see if the channel could be opened.
|
|||||||
The "close_cb" is also considered for this.
|
The "close_cb" is also considered for this.
|
||||||
"never" All messages will be kept.
|
"never" All messages will be kept.
|
||||||
|
|
||||||
|
*channel-noblock*
|
||||||
|
"noblock" Same effect as |job-noblock|. Only matters for writing.
|
||||||
|
|
||||||
*waittime*
|
*waittime*
|
||||||
"waittime" The time to wait for the connection to be made in
|
"waittime" The time to wait for the connection to be made in
|
||||||
milliseconds. A negative number waits forever.
|
milliseconds. A negative number waits forever.
|
||||||
@ -593,6 +597,17 @@ See |job_setoptions()| and |ch_setoptions()|.
|
|||||||
Note: when writing to a file or buffer and when
|
Note: when writing to a file or buffer and when
|
||||||
reading from a buffer NL mode is used by default.
|
reading from a buffer NL mode is used by default.
|
||||||
|
|
||||||
|
*job-noblock*
|
||||||
|
"noblock": 1 When writing use a non-blocking write call. This
|
||||||
|
avoids getting stuck if Vim should handle other
|
||||||
|
messages in between, e.g. when a job sends back data
|
||||||
|
to Vim. It implies that when `ch_sendraw()` returns
|
||||||
|
not all data may have been written yet.
|
||||||
|
This option was added in patch 8.1.0350, test with: >
|
||||||
|
if has("patch-8.1.350")
|
||||||
|
let options['noblock'] = 1
|
||||||
|
endif
|
||||||
|
<
|
||||||
*job-callback*
|
*job-callback*
|
||||||
"callback": handler Callback for something to read on any part of the
|
"callback": handler Callback for something to read on any part of the
|
||||||
channel.
|
channel.
|
||||||
@ -770,5 +785,49 @@ signals. E.g. to force a job to stop, "kill it": >
|
|||||||
|
|
||||||
For more options see |job_stop()|.
|
For more options see |job_stop()|.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
12. Using a prompt buffer *prompt-buffer*
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
If you want to type input for the job in a Vim window you have a few options:
|
||||||
|
- Use a normal buffer and handle all possible commands yourself.
|
||||||
|
This will be complicated, since there are so many possible commands.
|
||||||
|
- Use a terminal window. This works well if what you type goes directly to
|
||||||
|
the job and the job output is directly displayed in the window.
|
||||||
|
See |terminal-window|.
|
||||||
|
- Use a prompt window. This works well when entering a line for the job in Vim
|
||||||
|
while displaying (possibly filtered) output from the job.
|
||||||
|
|
||||||
|
A prompt buffer is created by setting 'buftype' to "prompt". You would
|
||||||
|
normally only do that in a newly created buffer.
|
||||||
|
|
||||||
|
The user can edit and enter one line of text at the very last line of the
|
||||||
|
buffer. When pressing Enter in the prompt line the callback set with
|
||||||
|
|prompt_setcallback()| is invoked. It would normally send the line to a job.
|
||||||
|
Another callback would receive the output from the job and display it in the
|
||||||
|
buffer, below the prompt (and above the next prompt).
|
||||||
|
|
||||||
|
Only the text in the last line, after the prompt, is editable. The rest of the
|
||||||
|
buffer is not modifiable with Normal mode commands. It can be modified by
|
||||||
|
calling functions, such as |append()|. Using other commands may mess up the
|
||||||
|
buffer.
|
||||||
|
|
||||||
|
After setting 'buftype' to "prompt" Vim does not automatically start Insert
|
||||||
|
mode, use `:startinsert` if you want to enter Insert mode, so that the user
|
||||||
|
can start typing a line.
|
||||||
|
|
||||||
|
The text of the prompt can be set with the |prompt_setprompt()| function.
|
||||||
|
|
||||||
|
The user can go to Normal mode and navigate through the buffer. This can be
|
||||||
|
useful see older output or copy text.
|
||||||
|
|
||||||
|
The CTRL-W key can be used to start a window command, such as CTRL-W w to
|
||||||
|
switch to the next window. This also works in Insert mode (use Shift-CTRL-W
|
||||||
|
to delete a word). When leaving the window Insert mode will be stopped. When
|
||||||
|
coming back to the prompt window Insert mode will be restored.
|
||||||
|
|
||||||
|
Any command that starts Insert mode, such as "a", "i", "A" and "I", will move
|
||||||
|
the cursor to the last line. "A" will move to the end of the line, "I" to the
|
||||||
|
start of the line.
|
||||||
|
|
||||||
|
|
||||||
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 8.0. Last change: 2017 Oct 19
|
*cmdline.txt* For Vim version 8.1. Last change: 2018 May 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -175,12 +175,14 @@ CTRL-R CTRL-F *c_CTRL-R_CTRL-F* *c_<C-R>_<C-F>*
|
|||||||
CTRL-R CTRL-P *c_CTRL-R_CTRL-P* *c_<C-R>_<C-P>*
|
CTRL-R CTRL-P *c_CTRL-R_CTRL-P* *c_<C-R>_<C-P>*
|
||||||
CTRL-R CTRL-W *c_CTRL-R_CTRL-W* *c_<C-R>_<C-W>*
|
CTRL-R CTRL-W *c_CTRL-R_CTRL-W* *c_<C-R>_<C-W>*
|
||||||
CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
|
CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
|
||||||
|
CTRL-R CTRL-L *c_CTRL-R_CTRL-L* *c_<C-R>_<C-L>*
|
||||||
Insert the object under the cursor:
|
Insert the object under the cursor:
|
||||||
CTRL-F the Filename under the cursor
|
CTRL-F the Filename under the cursor
|
||||||
CTRL-P the Filename under the cursor, expanded with
|
CTRL-P the Filename under the cursor, expanded with
|
||||||
'path' as in |gf|
|
'path' as in |gf|
|
||||||
CTRL-W the Word under the cursor
|
CTRL-W the Word under the cursor
|
||||||
CTRL-A the WORD under the cursor; see |WORD|
|
CTRL-A the WORD under the cursor; see |WORD|
|
||||||
|
CTRL-L the line under the cursor
|
||||||
|
|
||||||
When 'incsearch' is set the cursor position at the end of the
|
When 'incsearch' is set the cursor position at the end of the
|
||||||
currently displayed match is used. With CTRL-W the part of
|
currently displayed match is used. With CTRL-W the part of
|
||||||
@ -192,8 +194,8 @@ CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
|
|||||||
|
|
||||||
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
||||||
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
||||||
CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A}
|
CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
||||||
CTRL-R CTRL-O {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A}
|
CTRL-R CTRL-O {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
||||||
Insert register or object under the cursor. Works like
|
Insert register or object under the cursor. Works like
|
||||||
|c_CTRL-R| but inserts the text literally. For example, if
|
|c_CTRL-R| but inserts the text literally. For example, if
|
||||||
register a contains "xy^Hz" (where ^H is a backspace),
|
register a contains "xy^Hz" (where ^H is a backspace),
|
||||||
@ -410,14 +412,17 @@ CTRL-D List names that match the pattern in front of the cursor.
|
|||||||
match is inserted. After the last match, the first is used
|
match is inserted. After the last match, the first is used
|
||||||
again (wrap around).
|
again (wrap around).
|
||||||
The behavior can be changed with the 'wildmode' option.
|
The behavior can be changed with the 'wildmode' option.
|
||||||
|
*c_<S-Tab>*
|
||||||
|
<S-Tab> Like 'wildchar' or <Tab>, but begin with the last match and
|
||||||
|
then go to the previous match.
|
||||||
|
<S-Tab> does not work everywhere.
|
||||||
*c_CTRL-N*
|
*c_CTRL-N*
|
||||||
CTRL-N After using 'wildchar' which got multiple matches, go to next
|
CTRL-N After using 'wildchar' which got multiple matches, go to next
|
||||||
match. Otherwise recall more recent command-line from history.
|
match. Otherwise recall more recent command-line from history.
|
||||||
<S-Tab> *c_CTRL-P* *c_<S-Tab>*
|
*c_CTRL-P*
|
||||||
CTRL-P After using 'wildchar' which got multiple matches, go to
|
CTRL-P After using 'wildchar' which got multiple matches, go to
|
||||||
previous match. Otherwise recall older command-line from
|
previous match. Otherwise recall older command-line from
|
||||||
history. <S-Tab> only works with the GUI, on the Amiga and
|
history.
|
||||||
with MS-DOS.
|
|
||||||
*c_CTRL-A*
|
*c_CTRL-A*
|
||||||
CTRL-A All names that match the pattern in front of the cursor are
|
CTRL-A All names that match the pattern in front of the cursor are
|
||||||
inserted.
|
inserted.
|
||||||
@ -453,6 +458,10 @@ a previous version <Esc> was used). In the pattern standard wildcards '*' and
|
|||||||
'?' are accepted when matching file names. '*' matches any string, '?'
|
'?' are accepted when matching file names. '*' matches any string, '?'
|
||||||
matches exactly one character.
|
matches exactly one character.
|
||||||
|
|
||||||
|
When repeating 'wildchar' or CTRL-N you cycle through the matches, eventually
|
||||||
|
ending up back to what was typed. If the first match is not what you wanted,
|
||||||
|
you can use <S-Tab> or CTRL-P to go straight back to what you typed.
|
||||||
|
|
||||||
The 'wildignorecase' option can be set to ignore case in filenames.
|
The 'wildignorecase' option can be set to ignore case in filenames.
|
||||||
|
|
||||||
The 'wildmenu' option can be set to show the matches just above the command
|
The 'wildmenu' option can be set to show the matches just above the command
|
||||||
@ -525,8 +534,45 @@ after a command causes the rest of the line to be ignored. This can be used
|
|||||||
to add comments. Example: >
|
to add comments. Example: >
|
||||||
:set ai "set 'autoindent' option
|
:set ai "set 'autoindent' option
|
||||||
It is not possible to add a comment to a shell command ":!cmd" or to the
|
It is not possible to add a comment to a shell command ":!cmd" or to the
|
||||||
":map" command and a few others, because they see the '"' as part of their
|
":map" command and a few others (mainly commands that expect expressions)
|
||||||
argument. This is mentioned where the command is explained.
|
that see the '"' as part of their argument:
|
||||||
|
|
||||||
|
:argdo
|
||||||
|
:autocmd
|
||||||
|
:bufdo
|
||||||
|
:cexpr (and the like)
|
||||||
|
:cdo (and the like)
|
||||||
|
:command
|
||||||
|
:cscope (and the like)
|
||||||
|
:debug
|
||||||
|
:display
|
||||||
|
:echo (and the like)
|
||||||
|
:elseif
|
||||||
|
:execute
|
||||||
|
:folddoopen
|
||||||
|
:folddoclosed
|
||||||
|
:for
|
||||||
|
:grep (and the like)
|
||||||
|
:help (and the like)
|
||||||
|
:if
|
||||||
|
:let
|
||||||
|
:make
|
||||||
|
:map (and the like including :abbrev commands)
|
||||||
|
:menu (and the like)
|
||||||
|
:mkspell
|
||||||
|
:normal
|
||||||
|
:ownsyntax
|
||||||
|
:popup
|
||||||
|
:promptfind (and the like)
|
||||||
|
:registers
|
||||||
|
:return
|
||||||
|
:sort
|
||||||
|
:syntax
|
||||||
|
:tabdo
|
||||||
|
:tearoff
|
||||||
|
:vimgrep (and the like)
|
||||||
|
:while
|
||||||
|
:windo
|
||||||
|
|
||||||
*:bar* *:\bar*
|
*:bar* *:\bar*
|
||||||
'|' can be used to separate commands, so you can give multiple commands in one
|
'|' can be used to separate commands, so you can give multiple commands in one
|
||||||
@ -823,11 +869,12 @@ it, no matter how many backslashes.
|
|||||||
\\# \#
|
\\# \#
|
||||||
Also see |`=|.
|
Also see |`=|.
|
||||||
|
|
||||||
*:<cword>* *:<cWORD>* *:<cfile>* *<cfile>*
|
*:<cword>* *<cword>* *:<cWORD>* *<cWORD>*
|
||||||
*:<sfile>* *<sfile>* *:<afile>* *<afile>*
|
*:<cexpr>* *<cexpr>* *:<cfile>* *<cfile>*
|
||||||
*:<abuf>* *<abuf>* *:<amatch>* *<amatch>*
|
*:<afile>* *<afile>* *:<abuf>* *<abuf>*
|
||||||
*:<cexpr>* *<cexpr>*
|
*:<amatch>* *<amatch>*
|
||||||
*<slnum>* *E495* *E496* *E497* *E499* *E500*
|
*:<sfile>* *<sfile>* *:<slnum>* *<slnum>*
|
||||||
|
*:<sflnum>* *<sflnum>* *E499* *E500*
|
||||||
Note: these are typed literally, they are not special keys!
|
Note: these are typed literally, they are not special keys!
|
||||||
<cword> is replaced with the word under the cursor (like |star|)
|
<cword> is replaced with the word under the cursor (like |star|)
|
||||||
<cWORD> is replaced with the WORD under the cursor (see |WORD|)
|
<cWORD> is replaced with the WORD under the cursor (see |WORD|)
|
||||||
@ -840,15 +887,16 @@ Note: these are typed literally, they are not special keys!
|
|||||||
|gf| uses)
|
|gf| uses)
|
||||||
<afile> When executing autocommands, is replaced with the file name
|
<afile> When executing autocommands, is replaced with the file name
|
||||||
of the buffer being manipulated, or the file for a read or
|
of the buffer being manipulated, or the file for a read or
|
||||||
write.
|
write. *E495*
|
||||||
<abuf> When executing autocommands, is replaced with the currently
|
<abuf> When executing autocommands, is replaced with the currently
|
||||||
effective buffer number (for ":r file" and ":so file" it is
|
effective buffer number (for ":r file" and ":so file" it is
|
||||||
the current buffer, the file being read/sourced is not in a
|
the current buffer, the file being read/sourced is not in a
|
||||||
buffer).
|
buffer). *E496*
|
||||||
<amatch> When executing autocommands, is replaced with the match for
|
<amatch> When executing autocommands, is replaced with the match for
|
||||||
which this autocommand was executed. It differs from
|
which this autocommand was executed. *E497*
|
||||||
<afile> only when the file name isn't used to match with
|
It differs from <afile> only when the file name isn't used
|
||||||
(for FileType, Syntax and SpellFileMissing events).
|
to match with (for FileType, Syntax and SpellFileMissing
|
||||||
|
events).
|
||||||
<sfile> When executing a ":source" command, is replaced with the
|
<sfile> When executing a ":source" command, is replaced with the
|
||||||
file name of the sourced file. *E498*
|
file name of the sourced file. *E498*
|
||||||
When executing a function, is replaced with:
|
When executing a function, is replaced with:
|
||||||
@ -858,9 +906,12 @@ Note: these are typed literally, they are not special keys!
|
|||||||
Note that filename-modifiers are useless when <sfile> is
|
Note that filename-modifiers are useless when <sfile> is
|
||||||
used inside a function.
|
used inside a function.
|
||||||
<slnum> When executing a ":source" command, is replaced with the
|
<slnum> When executing a ":source" command, is replaced with the
|
||||||
line number. *E842*
|
line number. *E842*
|
||||||
When executing a function it's the line number relative to
|
When executing a function it's the line number relative to
|
||||||
the start of the function.
|
the start of the function.
|
||||||
|
<sflnum> When executing a script, is replaced with the line number.
|
||||||
|
It differs from <slnum> in that <sflnum> is replaced with
|
||||||
|
the script line number in any situation. *E961*
|
||||||
|
|
||||||
*filename-modifiers*
|
*filename-modifiers*
|
||||||
*:_%:* *::8* *::p* *::.* *::~* *::h* *::t* *::r* *::e* *::s* *::gs* *::S*
|
*:_%:* *::8* *::p* *::.* *::~* *::h* *::t* *::r* *::e* *::s* *::gs* *::S*
|
||||||
@ -885,7 +936,8 @@ These modifiers can be given, in this order:
|
|||||||
directory.
|
directory.
|
||||||
:. Reduce file name to be relative to current directory, if
|
:. Reduce file name to be relative to current directory, if
|
||||||
possible. File name is unmodified if it is not below the
|
possible. File name is unmodified if it is not below the
|
||||||
current directory.
|
current directory, but on MS-Windows the drive is removed if
|
||||||
|
it is the current drive.
|
||||||
For maximum shortness, use ":~:.".
|
For maximum shortness, use ":~:.".
|
||||||
:h Head of the file name (the last component and any separators
|
:h Head of the file name (the last component and any separators
|
||||||
removed). Cannot be used with :e, :r or :t.
|
removed). Cannot be used with :e, :r or :t.
|
||||||
@ -1154,4 +1206,4 @@ The character used for the pattern indicates the type of command-line:
|
|||||||
@ string for |input()|
|
@ string for |input()|
|
||||||
- text for |:insert| or |:append|
|
- text for |:insert| or |:append|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*debug.txt* For Vim version 8.0. Last change: 2017 Jul 15
|
*debug.txt* For Vim version 8.1. Last change: 2017 Jul 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -172,4 +172,4 @@ Visual C++ 2005 Express Edition can be downloaded for free from:
|
|||||||
http://msdn.microsoft.com/vstudio/express/visualC/default.aspx
|
http://msdn.microsoft.com/vstudio/express/visualC/default.aspx
|
||||||
|
|
||||||
=========================================================================
|
=========================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*debugger.txt* For Vim version 8.0. Last change: 2005 Mar 29
|
*debugger.txt* For Vim version 8.1. Last change: 2017 Nov 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur
|
VIM REFERENCE MANUAL by Gordon Prieur
|
||||||
@ -95,10 +95,12 @@ list and colors can be set via X resources (XmNballoonEvalFontList,
|
|||||||
XmNballoonEvalBackground, and XmNballoonEvalForeground).
|
XmNballoonEvalBackground, and XmNballoonEvalForeground).
|
||||||
The 'balloondelay' option sets the delay before an attempt is made to show a
|
The 'balloondelay' option sets the delay before an attempt is made to show a
|
||||||
balloon.
|
balloon.
|
||||||
The 'ballooneval' option needs to be set to switch it on.
|
The 'ballooneval' and/or the 'balloonevalterm' option needs to be set to
|
||||||
|
switch it on.
|
||||||
|
|
||||||
Balloon evaluation is only available when compiled with the |+balloon_eval|
|
Balloon evaluation is only available in the GUI when compiled with the
|
||||||
feature.
|
|+balloon_eval| feature. For the terminal the |+balloon_eval_term| feature
|
||||||
|
matters.
|
||||||
|
|
||||||
The Balloon evaluation functions are also used to show a tooltip for the
|
The Balloon evaluation functions are also used to show a tooltip for the
|
||||||
toolbar. The 'ballooneval' option does not need to be set for this. But the
|
toolbar. The 'ballooneval' option does not need to be set for this. But the
|
||||||
@ -137,4 +139,4 @@ Programming Environment.
|
|||||||
|
|
||||||
For Sun NetBeans support see |netbeans|.
|
For Sun NetBeans support see |netbeans|.
|
||||||
|
|
||||||
vim:tw=78:sw=4:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*develop.txt* For Vim version 8.0. Last change: 2017 Jul 31
|
*develop.txt* For Vim version 8.1. Last change: 2018 May 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -18,7 +18,8 @@ See the file README.txt in the "src" directory for an overview of the source
|
|||||||
code.
|
code.
|
||||||
|
|
||||||
Vim is open source software. Everybody is encouraged to contribute to help
|
Vim is open source software. Everybody is encouraged to contribute to help
|
||||||
improving Vim. For sending patches a context diff "diff -c" is preferred.
|
improving Vim. For sending patches a unified diff "diff -u" is preferred.
|
||||||
|
You can create a pull request on github, but it's not required.
|
||||||
Also see http://vim.wikia.com/wiki/How_to_make_and_submit_a_patch.
|
Also see http://vim.wikia.com/wiki/How_to_make_and_submit_a_patch.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@ -182,12 +183,43 @@ The basic steps to make changes to the code:
|
|||||||
include the diff. Or create a pull request on github.
|
include the diff. Or create a pull request on github.
|
||||||
|
|
||||||
|
|
||||||
C COMPILER *style-compiler*
|
C COMPILER *style-compiler* *ANSI-C* *C89* *C99*
|
||||||
|
|
||||||
The minimal C compiler version supported is C89, also known as ANSI C.
|
The minimal C compiler version supported is C89, also known as ANSI C.
|
||||||
Later standards don't add much and C89 is the widest supported.
|
Later standards, such as C99, are not widely supported, or at least not 100%
|
||||||
|
supported. Therefore we use only some of the C99 features and disallow some
|
||||||
|
(at least for now).
|
||||||
|
|
||||||
One restriction that this implies: no // comments, only /* comments */.
|
Please don't make changes everywhere to use the C99 features, it causes merge
|
||||||
|
problems for existing patches. Only use them for new and changed code.
|
||||||
|
|
||||||
|
Comments ~
|
||||||
|
|
||||||
|
Traditionally Vim uses /* comments */. We intend to keep it that way,
|
||||||
|
especially for file and function headers. For new code or lines of code that
|
||||||
|
change, it is allowed to use // comments. Especially when it comes after
|
||||||
|
code:
|
||||||
|
int some_var; // single line comment useful here
|
||||||
|
|
||||||
|
Enums ~
|
||||||
|
|
||||||
|
The last item in an enum may have a trailing comma. C89 didn't allow this.
|
||||||
|
|
||||||
|
Types ~
|
||||||
|
|
||||||
|
"long long" is allowed and can be expected to be 64 bits. Use %lld in printf
|
||||||
|
formats. Also "long long unsigned" with %llu.
|
||||||
|
|
||||||
|
Not to be used ~
|
||||||
|
|
||||||
|
These C99 features are not to be used, because not enough compilers support
|
||||||
|
them:
|
||||||
|
- Declaration after Statements (MSVC 2012 does not support it). All
|
||||||
|
declarations need to be at the start of the block.
|
||||||
|
- Variable length arrays (even in C11 this is an optional feature).
|
||||||
|
- _Bool and _Complex types.
|
||||||
|
- "inline" (it's hardly ever needed, let the optimizer do its work)
|
||||||
|
- flexible array members: Not supported by HP-UX C compiler (John Marriott)
|
||||||
|
|
||||||
|
|
||||||
USE OF COMMON FUNCTIONS *style-functions*
|
USE OF COMMON FUNCTIONS *style-functions*
|
||||||
@ -531,4 +563,4 @@ long 32 or 64 bit signed, can hold a pointer
|
|||||||
Note that some compilers cannot handle long lines or strings. The C89
|
Note that some compilers cannot handle long lines or strings. The C89
|
||||||
standard specifies a limit of 509 characters.
|
standard specifies a limit of 509 characters.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*diff.txt* For Vim version 8.0. Last change: 2017 Oct 03
|
*diff.txt* For Vim version 8.1. Last change: 2017 Oct 03
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -39,7 +39,9 @@ The second and following arguments may also be a directory name. Vim will
|
|||||||
then append the file name of the first argument to the directory name to find
|
then append the file name of the first argument to the directory name to find
|
||||||
the file.
|
the file.
|
||||||
|
|
||||||
This only works when a standard "diff" command is available. See 'diffexpr'.
|
By default an internal diff library will be used. When 'diffopt' or
|
||||||
|
'diffexpr' has been set an external "diff" command will be used. This only
|
||||||
|
works when such a diff program is available.
|
||||||
|
|
||||||
Diffs are local to the current tab page |tab-page|. You can't see diffs with
|
Diffs are local to the current tab page |tab-page|. You can't see diffs with
|
||||||
a window in another tab page. This does make it possible to have several
|
a window in another tab page. This does make it possible to have several
|
||||||
@ -344,8 +346,9 @@ between file1 and file2: >
|
|||||||
|
|
||||||
The ">" is replaced with the value of 'shellredir'.
|
The ">" is replaced with the value of 'shellredir'.
|
||||||
|
|
||||||
The output of "diff" must be a normal "ed" style diff. Do NOT use a context
|
The output of "diff" must be a normal "ed" style diff or a unified diff. Do
|
||||||
diff. This example explains the format that Vim expects: >
|
NOT use a context diff. This example explains the format that Vim expects for
|
||||||
|
the "ed" style diff: >
|
||||||
|
|
||||||
1a2
|
1a2
|
||||||
> bbb
|
> bbb
|
||||||
@ -384,12 +387,16 @@ Example (this does almost the same as 'diffexpr' being empty): >
|
|||||||
endif
|
endif
|
||||||
silent execute "!diff -a --binary " . opt . v:fname_in . " " . v:fname_new .
|
silent execute "!diff -a --binary " . opt . v:fname_in . " " . v:fname_new .
|
||||||
\ " > " . v:fname_out
|
\ " > " . v:fname_out
|
||||||
|
redraw!
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
The "-a" argument is used to force comparing the files as text, comparing as
|
The "-a" argument is used to force comparing the files as text, comparing as
|
||||||
binaries isn't useful. The "--binary" argument makes the files read in binary
|
binaries isn't useful. The "--binary" argument makes the files read in binary
|
||||||
mode, so that a CTRL-Z doesn't end the text on DOS.
|
mode, so that a CTRL-Z doesn't end the text on DOS.
|
||||||
|
|
||||||
|
The `redraw!` command may not be needed, depending on whether executing a
|
||||||
|
shell command shows something on the display or not.
|
||||||
|
|
||||||
*E810* *E97*
|
*E810* *E97*
|
||||||
Vim will do a test if the diff output looks alright. If it doesn't, you will
|
Vim will do a test if the diff output looks alright. If it doesn't, you will
|
||||||
get an error message. Possible causes:
|
get an error message. Possible causes:
|
||||||
@ -441,4 +448,4 @@ evaluating 'patchexpr'. This hopefully avoids that files in the current
|
|||||||
directory are accidentally patched. Vim will also delete files starting with
|
directory are accidentally patched. Vim will also delete files starting with
|
||||||
v:fname_in and ending in ".rej" and ".orig".
|
v:fname_in and ending in ".rej" and ".orig".
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*digraph.txt* For Vim version 8.0. Last change: 2016 Nov 04
|
*digraph.txt* For Vim version 8.1. Last change: 2018 Dec 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -24,7 +24,9 @@ An alternative is using the 'keymap' option.
|
|||||||
1. Defining digraphs *digraphs-define*
|
1. Defining digraphs *digraphs-define*
|
||||||
|
|
||||||
*:dig* *:digraphs*
|
*:dig* *:digraphs*
|
||||||
:dig[raphs] show currently defined digraphs.
|
:dig[raphs][!] Show currently defined digraphs.
|
||||||
|
With [!] headers are used to make it a bit easier to
|
||||||
|
find a specific character.
|
||||||
*E104* *E39*
|
*E104* *E39*
|
||||||
:dig[raphs] {char1}{char2} {number} ...
|
:dig[raphs] {char1}{char2} {number} ...
|
||||||
Add digraph {char1}{char2} to the list. {number} is
|
Add digraph {char1}{char2} to the list. {number} is
|
||||||
@ -111,11 +113,14 @@ this, you will have to type <BS> e again. To avoid this don't set the
|
|||||||
|
|
||||||
You may have problems using Vim with characters which have a value above 128.
|
You may have problems using Vim with characters which have a value above 128.
|
||||||
For example: You insert ue (u-umlaut) and the editor echoes \334 in Insert
|
For example: You insert ue (u-umlaut) and the editor echoes \334 in Insert
|
||||||
mode. After leaving the Insert mode everything is fine. Note that fmt
|
mode. After leaving the Insert mode everything is fine. On some Unix systems
|
||||||
removes all characters with a value above 128 from the text being formatted.
|
this means you have to define the environment-variable LC_CTYPE. If you are
|
||||||
On some Unix systems this means you have to define the environment-variable
|
using csh, then put the following line in your .cshrc: >
|
||||||
LC_CTYPE. If you are using csh, then put the following line in your .cshrc: >
|
setenv LC_CTYPE en_US.utf8
|
||||||
setenv LC_CTYPE iso_8859_1
|
(or similar for a different language or country). The value must be a valid
|
||||||
|
locale on your system, i.e. on Unix-like systems it must be present in the
|
||||||
|
output of >
|
||||||
|
locale -a
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Default digraphs *digraphs-default*
|
3. Default digraphs *digraphs-default*
|
||||||
@ -1488,4 +1493,4 @@ char digraph hex dec official name ~
|
|||||||
ſt ft FB05 64261 LATIN SMALL LIGATURE LONG S T
|
ſt ft FB05 64261 LATIN SMALL LIGATURE LONG S T
|
||||||
st st FB06 64262 LATIN SMALL LIGATURE ST
|
st st FB06 64262 LATIN SMALL LIGATURE ST
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 8.0. Last change: 2017 Aug 21
|
*editing.txt* For Vim version 8.1. Last change: 2018 Dec 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -424,6 +424,15 @@ On Unix and a few other systems you can also use backticks for the file name
|
|||||||
argument, for example: >
|
argument, for example: >
|
||||||
:next `find . -name ver\\*.c -print`
|
:next `find . -name ver\\*.c -print`
|
||||||
:view `ls -t *.patch \| head -n1`
|
:view `ls -t *.patch \| head -n1`
|
||||||
|
Vim will run the command in backticks using the 'shell' and use the standard
|
||||||
|
output as argument for the given Vim command (error messages from the shell
|
||||||
|
command will be discarded).
|
||||||
|
To see what shell command Vim is running, set the 'verbose' option to 4. When
|
||||||
|
the shell command returns a non-zero exit code, an error message will be
|
||||||
|
displayed and the Vim command will be aborted. To avoid this make the shell
|
||||||
|
always return zero like so: >
|
||||||
|
:next `find . -name ver\\*.c -print \|\| true`
|
||||||
|
|
||||||
The backslashes before the star are required to prevent the shell from
|
The backslashes before the star are required to prevent the shell from
|
||||||
expanding "ver*.c" prior to execution of the find program. The backslash
|
expanding "ver*.c" prior to execution of the find program. The backslash
|
||||||
before the shell pipe symbol "|" prevents Vim from parsing it as command
|
before the shell pipe symbol "|" prevents Vim from parsing it as command
|
||||||
@ -650,8 +659,7 @@ list of the current window.
|
|||||||
There is no check for duplicates, it is possible to
|
There is no check for duplicates, it is possible to
|
||||||
add a file to the argument list twice.
|
add a file to the argument list twice.
|
||||||
The currently edited file is not changed.
|
The currently edited file is not changed.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
Note: you can also use this method: >
|
Note: you can also use this method: >
|
||||||
:args ## x
|
:args ## x
|
||||||
< This will add the "x" item and sort the new list.
|
< This will add the "x" item and sort the new list.
|
||||||
@ -665,8 +673,7 @@ list of the current window.
|
|||||||
when it's deleted from the argument list.
|
when it's deleted from the argument list.
|
||||||
Example: >
|
Example: >
|
||||||
:argdel *.obj
|
:argdel *.obj
|
||||||
< {not in Vi} {not available when compiled without the
|
< {not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[range]argd[elete] Delete the {range} files from the argument list.
|
:[range]argd[elete] Delete the {range} files from the argument list.
|
||||||
Example: >
|
Example: >
|
||||||
@ -681,8 +688,7 @@ list of the current window.
|
|||||||
< Removes all the files from the arglist.
|
< Removes all the files from the arglist.
|
||||||
When the last number in the range is too high, up to
|
When the last number in the range is too high, up to
|
||||||
the last argument is deleted.
|
the last argument is deleted.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
*:argu* *:argument*
|
*:argu* *:argument*
|
||||||
:[count]argu[ment] [count] [++opt] [+cmd]
|
:[count]argu[ment] [count] [++opt] [+cmd]
|
||||||
@ -691,16 +697,14 @@ list of the current window.
|
|||||||
when changes have been made and Vim does not want to
|
when changes have been made and Vim does not want to
|
||||||
|abandon| the current buffer.
|
|abandon| the current buffer.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[count]argu[ment]! [count] [++opt] [+cmd]
|
:[count]argu[ment]! [count] [++opt] [+cmd]
|
||||||
Edit file [count] in the argument list, discard any
|
Edit file [count] in the argument list, discard any
|
||||||
changes to the current buffer. When [count] is
|
changes to the current buffer. When [count] is
|
||||||
omitted the current entry is used.
|
omitted the current entry is used.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[count]n[ext] [++opt] [+cmd] *:n* *:ne* *:next* *E165* *E163*
|
:[count]n[ext] [++opt] [+cmd] *:n* *:ne* *:next* *E165* *E163*
|
||||||
Edit [count] next file. This fails when changes have
|
Edit [count] next file. This fails when changes have
|
||||||
@ -823,7 +827,6 @@ fourth file in the argument list. This happens when you do ":e file".
|
|||||||
LOCAL ARGUMENT LIST
|
LOCAL ARGUMENT LIST
|
||||||
|
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+windows| or |+listcmds| features}
|
|
||||||
|
|
||||||
*:arglocal*
|
*:arglocal*
|
||||||
:argl[ocal] Make a local copy of the global argument list.
|
:argl[ocal] Make a local copy of the global argument list.
|
||||||
@ -875,8 +878,7 @@ USING THE ARGUMENT LIST
|
|||||||
autocommand event is disabled by adding it to
|
autocommand event is disabled by adding it to
|
||||||
'eventignore'. This considerably speeds up editing
|
'eventignore'. This considerably speeds up editing
|
||||||
each file.
|
each file.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
Also see |:windo|, |:tabdo|, |:bufdo|, |:cdo|, |:ldo|,
|
Also see |:windo|, |:tabdo|, |:bufdo|, |:cdo|, |:ldo|,
|
||||||
|:cfdo| and |:lfdo|
|
|:cfdo| and |:lfdo|
|
||||||
|
|
||||||
@ -899,8 +901,8 @@ flag is used for the ":substitute" command to avoid an error for files where
|
|||||||
Note: When the 'write' option is off, you are not able to write any file.
|
Note: When the 'write' option is off, you are not able to write any file.
|
||||||
|
|
||||||
*:w* *:write*
|
*:w* *:write*
|
||||||
*E502* *E503* *E504* *E505*
|
*E502* *E503* *E504* *E505*
|
||||||
*E512* *E514* *E667* *E796*
|
*E512* *E514* *E667* *E796* *E949*
|
||||||
:w[rite] [++opt] Write the whole buffer to the current file. This is
|
:w[rite] [++opt] Write the whole buffer to the current file. This is
|
||||||
the normal way to save changes to a file. It fails
|
the normal way to save changes to a file. It fails
|
||||||
when the 'readonly' option is set or when there is
|
when the 'readonly' option is set or when there is
|
||||||
@ -956,6 +958,9 @@ used, for example, when the write fails and you want to try again later with
|
|||||||
":w #". This can be switched off by removing the 'A' flag from the
|
":w #". This can be switched off by removing the 'A' flag from the
|
||||||
'cpoptions' option.
|
'cpoptions' option.
|
||||||
|
|
||||||
|
Note that the 'fsync' option matters here. If it's set it may make writes
|
||||||
|
slower (but safer).
|
||||||
|
|
||||||
*:sav* *:saveas*
|
*:sav* *:saveas*
|
||||||
:sav[eas][!] [++opt] {file}
|
:sav[eas][!] [++opt] {file}
|
||||||
Save the current buffer under the name {file} and set
|
Save the current buffer under the name {file} and set
|
||||||
@ -1199,7 +1204,8 @@ MULTIPLE WINDOWS AND BUFFERS *window-exit*
|
|||||||
:wqa[ll]! [++opt]
|
:wqa[ll]! [++opt]
|
||||||
:xa[ll]! Write all changed buffers, even the ones that are readonly,
|
:xa[ll]! Write all changed buffers, even the ones that are readonly,
|
||||||
and exit Vim. If there are buffers without a file name or
|
and exit Vim. If there are buffers without a file name or
|
||||||
which cannot be written for another reason, Vim will not quit.
|
which cannot be written for another reason, or there is a
|
||||||
|
terminal with a running job, Vim will not quit.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@ -1409,7 +1415,7 @@ cannot be read without the right key.
|
|||||||
The text in the swap file and the undo file is also encrypted. *E843*
|
The text in the swap file and the undo file is also encrypted. *E843*
|
||||||
However, this is done block-by-block and may reduce the time needed to crack a
|
However, this is done block-by-block and may reduce the time needed to crack a
|
||||||
password. You can disable the swap file, but then a crash will cause you to
|
password. You can disable the swap file, but then a crash will cause you to
|
||||||
lose your work. The undo file can be disabled without much disadvantage. >
|
lose your work. The undo file can be disabled without too much disadvantage. >
|
||||||
:set noundofile
|
:set noundofile
|
||||||
:noswapfile edit secrets
|
:noswapfile edit secrets
|
||||||
|
|
||||||
@ -1741,4 +1747,4 @@ There are three different types of searching:
|
|||||||
currently work with 'path' items that contain a URL or use the double star
|
currently work with 'path' items that contain a URL or use the double star
|
||||||
with depth limiter (/usr/**2) or upward search (;) notations.
|
with depth limiter (/usr/**2) or upward search (;) notations.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
1234
runtime/doc/eval.txt
1234
runtime/doc/eval.txt
File diff suppressed because it is too large
Load Diff
@ -25,11 +25,9 @@ MS-Windows のメモ帳のような動作です。
|
|||||||
.PP
|
.PP
|
||||||
引数や Vim についての詳細は vim(1) を参照してください。
|
引数や Vim についての詳細は vim(1) を参照してください。
|
||||||
.PP
|
.PP
|
||||||
オプション 'insertmode' が設定され、テキストを直接、入力できるようになりま
|
オプション 'insertmode' が設定され、テキストを直接、入力できるようになります。
|
||||||
す。
|
|
||||||
.br
|
.br
|
||||||
コピーとペーストのキー操作が MS-Windows と同じになるように、マップが設定され
|
コピーとペーストのキー操作が MS-Windows と同じになるように、マップが設定されます。
|
||||||
ます。
|
|
||||||
CTRL-X が切り取り、CTRL-C がコピー、CTRL-V がペーストです。
|
CTRL-X が切り取り、CTRL-C がコピー、CTRL-V がペーストです。
|
||||||
標準の CTRL-V の操作は CTRL-Q に割り当てられます。
|
標準の CTRL-V の操作は CTRL-Q に割り当てられます。
|
||||||
.SH オプション
|
.SH オプション
|
||||||
@ -41,8 +39,7 @@ eVim の初期化スクリプト。
|
|||||||
.SH 別名
|
.SH 別名
|
||||||
evim は "gumbies のための Vim" とも呼ばれています。
|
evim は "gumbies のための Vim" とも呼ばれています。
|
||||||
evim を使っているあなたはきっと、頭にハンカチをかぶっているのです。
|
evim を使っているあなたはきっと、頭にハンカチをかぶっているのです。
|
||||||
(訳注: gumbies は Monty Python に登場するおもしろ集団。ハンカチをかぶっ
|
(訳注: gumbies は Monty Python に登場するおもしろ集団。ハンカチをかぶっている。)
|
||||||
ている。)
|
|
||||||
.SH 関連項目
|
.SH 関連項目
|
||||||
vim(1)
|
vim(1)
|
||||||
.SH 著者
|
.SH 著者
|
||||||
|
52
runtime/doc/evim.man
Normal file
52
runtime/doc/evim.man
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
EVIM(1) EVIM(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
NAME
|
||||||
|
evim - easy Vim, edit a file with Vim and setup for modeless editing
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
evim [options] [file ..]
|
||||||
|
eview
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
eVim starts Vim and sets options to make it behave like a modeless edi-
|
||||||
|
tor. This is still Vim but used as a point-and-click editor. This
|
||||||
|
feels a lot like using Notepad on MS-Windows. eVim will always run in
|
||||||
|
the GUI, to enable the use of menus and toolbar.
|
||||||
|
|
||||||
|
Only to be used for people who really can't work with Vim in the normal
|
||||||
|
way. Editing will be much less efficient.
|
||||||
|
|
||||||
|
eview is the same, but starts in read-only mode. It works just like
|
||||||
|
evim -R.
|
||||||
|
|
||||||
|
See vim(1) for details about Vim, options, etc.
|
||||||
|
|
||||||
|
The 'insertmode' option is set to be able to type text directly.
|
||||||
|
Mappings are setup to make Copy and Paste work with the MS-Windows
|
||||||
|
keys. CTRL-X cuts text, CTRL-C copies text and CTRL-V pastes text.
|
||||||
|
Use CTRL-Q to obtain the original meaning of CTRL-V.
|
||||||
|
|
||||||
|
OPTIONS
|
||||||
|
See vim(1).
|
||||||
|
|
||||||
|
FILES
|
||||||
|
/usr/local/lib/vim/evim.vim
|
||||||
|
The script loaded to initialize eVim.
|
||||||
|
|
||||||
|
AKA
|
||||||
|
Also Known As "Vim for gumbies". When using evim you are expected to
|
||||||
|
take a handkerchief, make a knot in each corner and wear it on your
|
||||||
|
head.
|
||||||
|
|
||||||
|
SEE ALSO
|
||||||
|
vim(1)
|
||||||
|
|
||||||
|
AUTHOR
|
||||||
|
Most of Vim was made by Bram Moolenaar, with a lot of help from others.
|
||||||
|
See the Help/Credits menu.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2002 February 16 EVIM(1)
|
@ -1,4 +1,4 @@
|
|||||||
*farsi.txt* For Vim version 8.0. Last change: 2015 Aug 29
|
*farsi.txt* For Vim version 8.1. Last change: 2015 Aug 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||||
@ -266,4 +266,4 @@ changes made in the current line.
|
|||||||
|
|
||||||
For more information about the bugs refer to rileft.txt.
|
For more information about the bugs refer to rileft.txt.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 8.0. Last change: 2017 Oct 10
|
*filetype.txt* For Vim version 8.1. Last change: 2018 Apr 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -319,6 +319,10 @@ then Vim will load all plugins in these directories and below:
|
|||||||
|
|
||||||
Note that the last one is the value of $VIMRUNTIME which has been expanded.
|
Note that the last one is the value of $VIMRUNTIME which has been expanded.
|
||||||
|
|
||||||
|
Note that when using a plugin manager or |packages| many directories will be
|
||||||
|
added to 'runtimepath'. These plugins each require their own directory, don't
|
||||||
|
put them directly in ~/.vim/plugin.
|
||||||
|
|
||||||
What if it looks like your plugin is not being loaded? You can find out what
|
What if it looks like your plugin is not being loaded? You can find out what
|
||||||
happens when Vim starts up by using the |-V| argument: >
|
happens when Vim starts up by using the |-V| argument: >
|
||||||
|
|
||||||
@ -602,51 +606,17 @@ MANPAGER *manpager.vim*
|
|||||||
The :Man command allows you to turn Vim into a manpager (that syntax highlights
|
The :Man command allows you to turn Vim into a manpager (that syntax highlights
|
||||||
manpages and follows linked manpages on hitting CTRL-]).
|
manpages and follows linked manpages on hitting CTRL-]).
|
||||||
|
|
||||||
Tested on:
|
|
||||||
|
|
||||||
- Linux
|
|
||||||
- Mac OS
|
|
||||||
- FreeBSD
|
|
||||||
- OpenBSD
|
|
||||||
- Cygwin
|
|
||||||
- Win 10 under Bash
|
|
||||||
|
|
||||||
Untested:
|
|
||||||
|
|
||||||
- Amiga OS
|
|
||||||
- BeOS
|
|
||||||
- OS/2
|
|
||||||
|
|
||||||
If man sets the $MAN_PN environment variable, like man-db, the most common
|
|
||||||
implementation on Linux, then the "env MAN_PN=1 " part below should NOT be
|
|
||||||
set, that is, the "env MAN_PN=1" should be omitted! Otherwise, the Vim
|
|
||||||
manpager does not correctly recognize manpages whose title contains a capital
|
|
||||||
letter. See the discussion on
|
|
||||||
|
|
||||||
https://groups.google.com/forum/#!topic/vim_dev/pWZmt_7GkxI
|
|
||||||
|
|
||||||
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
|
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
|
||||||
|
|
||||||
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
|
export MANPAGER="vim -M +MANPAGER -"
|
||||||
|
|
||||||
For (t)csh, add to the config file
|
For (t)csh, add to the config file
|
||||||
|
|
||||||
setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
|
setenv MANPAGER "vim -M +MANPAGER -"
|
||||||
|
|
||||||
For fish, add to the config file
|
For fish, add to the config file
|
||||||
|
|
||||||
set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
|
set -x MANPAGER "vim -M +MANPAGER -"
|
||||||
|
|
||||||
On OpenBSD:
|
|
||||||
|
|
||||||
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER"
|
|
||||||
|
|
||||||
If you experience still issues on manpages whose titles do not contain capital
|
|
||||||
letters, then try adding MANPATH=${MANPATH} after MAN_PN=1. If your manpages do
|
|
||||||
not show up localized, then try adding, LANGUAGE=${LANG} after MAN_PN=1. See
|
|
||||||
|
|
||||||
https://github.com/vim/vim/issues/1002
|
|
||||||
|
|
||||||
|
|
||||||
PDF *ft-pdf-plugin*
|
PDF *ft-pdf-plugin*
|
||||||
|
|
||||||
@ -668,11 +638,31 @@ By default the following options are set, in accordance with PEP8: >
|
|||||||
|
|
||||||
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
|
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
|
||||||
|
|
||||||
To disable this behaviour, set the following variable in your vimrc: >
|
To disable this behavior, set the following variable in your vimrc: >
|
||||||
|
|
||||||
let g:python_recommended_style = 0
|
let g:python_recommended_style = 0
|
||||||
|
|
||||||
|
|
||||||
|
R MARKDOWN *ft-rmd-plugin*
|
||||||
|
|
||||||
|
By default ftplugin/html.vim is not sourced. If you want it sourced, add to
|
||||||
|
your |vimrc|: >
|
||||||
|
let rmd_include_html = 1
|
||||||
|
|
||||||
|
The 'formatexpr' option is set dynamically with different values for R code
|
||||||
|
and for Markdown code. If you prefer that 'formatexpr' is not set, add to your
|
||||||
|
|vimrc|: >
|
||||||
|
let rmd_dynamic_comments = 0
|
||||||
|
|
||||||
|
|
||||||
|
R RESTRUCTURED TEXT *ft-rrst-plugin*
|
||||||
|
|
||||||
|
The 'formatexpr' option is set dynamically with different values for R code
|
||||||
|
and for ReStructured text. If you prefer that 'formatexpr' is not set, add to
|
||||||
|
your |vimrc|: >
|
||||||
|
let rrst_dynamic_comments = 0
|
||||||
|
|
||||||
|
|
||||||
RPM SPEC *ft-spec-plugin*
|
RPM SPEC *ft-spec-plugin*
|
||||||
|
|
||||||
Since the text for this plugin is rather long it has been put in a separate
|
Since the text for this plugin is rather long it has been put in a separate
|
||||||
@ -706,4 +696,23 @@ You can change the default by defining the variable g:tex_flavor to the format
|
|||||||
Currently no other formats are recognized.
|
Currently no other formats are recognized.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
VIM *ft-vim-plugin*
|
||||||
|
|
||||||
|
The Vim filetype plugin defines mappings to move to the start and end of
|
||||||
|
functions with [[ and ]]. Move around comments with ]" and [".
|
||||||
|
|
||||||
|
The mappings can be disabled with: >
|
||||||
|
let g:no_vim_maps = 1
|
||||||
|
|
||||||
|
|
||||||
|
ZIMBU *ft-zimbu-plugin*
|
||||||
|
|
||||||
|
The Zimbu filetype plugin defines mappings to move to the start and end of
|
||||||
|
functions with [[ and ]].
|
||||||
|
|
||||||
|
The mappings can be disabled with: >
|
||||||
|
let g:no_zimbu_maps = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
|
||||||
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*fold.txt* For Vim version 8.0. Last change: 2017 Mar 18
|
*fold.txt* For Vim version 8.1. Last change: 2017 Mar 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -601,4 +601,4 @@ used. Otherwise the values from the window where the buffer was edited last
|
|||||||
are used.
|
are used.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*ft_ada.txt* For Vim version 8.0. Last change: 2010 Jul 20
|
*ft_ada.txt* For Vim version 8.1. Last change: 2010 Jul 20
|
||||||
|
|
||||||
|
|
||||||
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
||||||
@ -249,7 +249,7 @@ g:decada.Make_Command string
|
|||||||
External command used for |g:decada.Make()| (|'makeprg'|).
|
External command used for |g:decada.Make()| (|'makeprg'|).
|
||||||
|
|
||||||
*g:decada.Error_Format*
|
*g:decada.Error_Format*
|
||||||
g:decada.Error_Format| string
|
g:decada.Error_Format string
|
||||||
Error format (|'errorformat'|).
|
Error format (|'errorformat'|).
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
*ft_rust.txt* Filetype plugin for Rust
|
*ft_rust.txt* For Vim version 8.1. Last change: 2017 Nov 02
|
||||||
|
|
||||||
|
This is documentation for the Rust filetype plugin.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
CONTENTS *rust*
|
CONTENTS *rust*
|
||||||
@ -234,4 +236,4 @@ It also has a few other mappings:
|
|||||||
Note: This binding is only available in MacVim.
|
Note: This binding is only available in MacVim.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:sw=4:noet:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*ft_sql.txt* For Vim version 8.0. Last change: 2013 May 15
|
*ft_sql.txt* For Vim version 8.1. Last change: 2013 May 15
|
||||||
|
|
||||||
by David Fishburn
|
by David Fishburn
|
||||||
|
|
||||||
@ -777,4 +777,4 @@ Setting the filetype back to Perl sets all the usual "perl" related items back
|
|||||||
as they were.
|
as they were.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui.txt* For Vim version 8.0. Last change: 2017 Nov 09
|
*gui.txt* For Vim version 8.1. Last change: 2018 Mar 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -134,7 +134,7 @@ task bar with the 'guiheadroom' option.
|
|||||||
:winp[os]
|
:winp[os]
|
||||||
Display current position of the top left corner of the GUI vim
|
Display current position of the top left corner of the GUI vim
|
||||||
window in pixels. Does not work in all versions.
|
window in pixels. Does not work in all versions.
|
||||||
Also see |getwinposx()| and |getwinposy()|.
|
Also see |getwinpos()|, |getwinposx()| and |getwinposy()|.
|
||||||
|
|
||||||
:winp[os] {X} {Y} *E466*
|
:winp[os] {X} {Y} *E466*
|
||||||
Put the GUI vim window at the given {X} and {Y} coordinates.
|
Put the GUI vim window at the given {X} and {Y} coordinates.
|
||||||
@ -547,15 +547,16 @@ floating menus that do not appear on the main menu bar.
|
|||||||
|
|
||||||
5.2 Creating New Menus *creating-menus*
|
5.2 Creating New Menus *creating-menus*
|
||||||
|
|
||||||
*:me* *:menu* *:noreme* *:noremenu*
|
*:me* *:menu* *:noreme* *:noremenu*
|
||||||
*:am* *:amenu* *:an* *:anoremenu*
|
*:am* *:amenu* *:an* *:anoremenu*
|
||||||
*:nme* *:nmenu* *:nnoreme* *:nnoremenu*
|
*:nme* *:nmenu* *:nnoreme* *:nnoremenu*
|
||||||
*:ome* *:omenu* *:onoreme* *:onoremenu*
|
*:ome* *:omenu* *:onoreme* *:onoremenu*
|
||||||
*:vme* *:vmenu* *:vnoreme* *:vnoremenu*
|
*:vme* *:vmenu* *:vnoreme* *:vnoremenu*
|
||||||
*:xme* *:xmenu* *:xnoreme* *:xnoremenu*
|
*:xme* *:xmenu* *:xnoreme* *:xnoremenu*
|
||||||
*:sme* *:smenu* *:snoreme* *:snoremenu*
|
*:sme* *:smenu* *:snoreme* *:snoremenu*
|
||||||
*:ime* *:imenu* *:inoreme* *:inoremenu*
|
*:ime* *:imenu* *:inoreme* *:inoremenu*
|
||||||
*:cme* *:cmenu* *:cnoreme* *:cnoremenu*
|
*:cme* *:cmenu* *:cnoreme* *:cnoremenu*
|
||||||
|
*:tlm* *:tlmenu* *:tln* *:tlnoremenu*
|
||||||
*E330* *E327* *E331* *E336* *E333*
|
*E330* *E327* *E331* *E336* *E333*
|
||||||
*E328* *E329* *E337* *E792*
|
*E328* *E329* *E337* *E792*
|
||||||
To create a new menu item, use the ":menu" commands. They are mostly like
|
To create a new menu item, use the ":menu" commands. They are mostly like
|
||||||
@ -571,6 +572,10 @@ the mouse button down on this will pop up a menu containing the item
|
|||||||
"Big Changes", which is a sub-menu containing the item "Delete All Spaces",
|
"Big Changes", which is a sub-menu containing the item "Delete All Spaces",
|
||||||
which when selected, performs the operation.
|
which when selected, performs the operation.
|
||||||
|
|
||||||
|
To create a menu for terminal mode, use |:tlmenu| instead of |:tmenu| unlike
|
||||||
|
key mapping (|:tmap|). This is because |:tmenu| is already used for defining
|
||||||
|
tooltips for menus. See |terminal-typing|.
|
||||||
|
|
||||||
Special characters in a menu name:
|
Special characters in a menu name:
|
||||||
|
|
||||||
& The next character is the shortcut key. Make sure each
|
& The next character is the shortcut key. Make sure each
|
||||||
@ -589,9 +594,9 @@ With the shortcut "F" (while keeping the <Alt> key pressed), and then "O",
|
|||||||
this menu can be used. The second part is shown as "Open :e". The ":e"
|
this menu can be used. The second part is shown as "Open :e". The ":e"
|
||||||
is right aligned, and the "O" is underlined, to indicate it is the shortcut.
|
is right aligned, and the "O" is underlined, to indicate it is the shortcut.
|
||||||
|
|
||||||
The ":amenu" command can be used to define menu entries for all modes at once.
|
The ":amenu" command can be used to define menu entries for all modes at once,
|
||||||
To make the command work correctly, a character is automatically inserted for
|
except for Terminal mode. To make the command work correctly, a character is
|
||||||
some modes:
|
automatically inserted for some modes:
|
||||||
mode inserted appended ~
|
mode inserted appended ~
|
||||||
Normal nothing nothing
|
Normal nothing nothing
|
||||||
Visual <C-C> <C-\><C-G>
|
Visual <C-C> <C-\><C-G>
|
||||||
@ -865,6 +870,16 @@ be used to complete the name of the menu item.
|
|||||||
insert-mode menu Eg: >
|
insert-mode menu Eg: >
|
||||||
:emenu File.Exit
|
:emenu File.Exit
|
||||||
|
|
||||||
|
:[range]em[enu] {mode} {menu} Like above, but execute the menu for {mode}:
|
||||||
|
'n': |:nmenu| Normal mode
|
||||||
|
'v': |:vmenu| Visual mode
|
||||||
|
's': |:smenu| Select mode
|
||||||
|
'o': |:omenu| Operator-pending mode
|
||||||
|
't': |:tlmenu| Terminal mode
|
||||||
|
'i': |:imenu| Insert mode
|
||||||
|
'c': |:cmenu| Cmdline mode
|
||||||
|
|
||||||
|
|
||||||
If the console-mode vim has been compiled with WANT_MENU defined, you can
|
If the console-mode vim has been compiled with WANT_MENU defined, you can
|
||||||
use :emenu to access useful menu items you may have got used to from GUI
|
use :emenu to access useful menu items you may have got used to from GUI
|
||||||
mode. See 'wildmenu' for an option that works well with this. See
|
mode. See 'wildmenu' for an option that works well with this. See
|
||||||
@ -885,6 +900,7 @@ using the last visual selection.
|
|||||||
*:sunme* *:sunmenu*
|
*:sunme* *:sunmenu*
|
||||||
*:iunme* *:iunmenu*
|
*:iunme* *:iunmenu*
|
||||||
*:cunme* *:cunmenu*
|
*:cunme* *:cunmenu*
|
||||||
|
*:tlu* *:tlunmenu*
|
||||||
To delete a menu item or a whole submenu, use the unmenu commands, which are
|
To delete a menu item or a whole submenu, use the unmenu commands, which are
|
||||||
analogous to the unmap commands. Eg: >
|
analogous to the unmap commands. Eg: >
|
||||||
:unmenu! Edit.Paste
|
:unmenu! Edit.Paste
|
||||||
@ -951,6 +967,8 @@ See section |42.4| in the user manual.
|
|||||||
:tu[nmenu] {menupath} Remove a tip for a menu or tool.
|
:tu[nmenu] {menupath} Remove a tip for a menu or tool.
|
||||||
{only in X11 and Win32 GUI}
|
{only in X11 and Win32 GUI}
|
||||||
|
|
||||||
|
Note: To create menus for terminal mode, use |:tlmenu| instead.
|
||||||
|
|
||||||
When a tip is defined for a menu item, it appears in the command-line area
|
When a tip is defined for a menu item, it appears in the command-line area
|
||||||
when the mouse is over that item, much like a standard Windows menu hint in
|
when the mouse is over that item, much like a standard Windows menu hint in
|
||||||
the status bar. (Except when Vim is in Command-line mode, when of course
|
the status bar. (Except when Vim is in Command-line mode, when of course
|
||||||
@ -992,10 +1010,14 @@ it behaves in a strange way.
|
|||||||
:popu[p] {name} Popup the menu {name}. The menu named must
|
:popu[p] {name} Popup the menu {name}. The menu named must
|
||||||
have at least one subentry, but need not
|
have at least one subentry, but need not
|
||||||
appear on the menu-bar (see |hidden-menus|).
|
appear on the menu-bar (see |hidden-menus|).
|
||||||
{only available for Win32 and GTK GUI}
|
{only available for Win32 and GTK GUI or in
|
||||||
|
the terminal when compiled with +insert_expand}
|
||||||
|
|
||||||
:popu[p]! {name} Like above, but use the position of the mouse
|
:popu[p]! {name} Like above, but use the position of the mouse
|
||||||
pointer instead of the cursor.
|
pointer instead of the cursor.
|
||||||
|
In the terminal this is the last known
|
||||||
|
position, which is usually at the last click
|
||||||
|
or release (mouse movement is irrelevant).
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
:popup File
|
:popup File
|
||||||
@ -1006,6 +1028,10 @@ pointer if ! was used). >
|
|||||||
:popup ]Toolbar
|
:popup ]Toolbar
|
||||||
This creates a popup menu that doesn't exist on the main menu-bar.
|
This creates a popup menu that doesn't exist on the main menu-bar.
|
||||||
|
|
||||||
|
Note that in the GUI the :popup command will return immediately, before a
|
||||||
|
selection has been made. In the terminal the commands waits for the user to
|
||||||
|
make a selection.
|
||||||
|
|
||||||
Note that a menu that starts with ']' will not be displayed.
|
Note that a menu that starts with ']' will not be displayed.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@ -1067,4 +1093,4 @@ careful!
|
|||||||
For the Win32 GUI the external commands are executed in a separate window.
|
For the Win32 GUI the external commands are executed in a separate window.
|
||||||
See |gui-shell-win32|.
|
See |gui-shell-win32|.
|
||||||
|
|
||||||
vim:tw=78:sw=4:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui_w32.txt* For Vim version 8.0. Last change: 2017 Oct 27
|
*gui_w32.txt* For Vim version 8.1. Last change: 2017 Oct 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -442,7 +442,7 @@ with the Intellimouse driver 2.2 and when "Universal Scrolling" is turned on.
|
|||||||
|
|
||||||
XPM support *w32-xpm-support*
|
XPM support *w32-xpm-support*
|
||||||
|
|
||||||
Gvim can be build on MS-Windows with support for XPM files. |+xpm_w32|
|
GVim can be build on MS-Windows with support for XPM files. |+xpm_w32|
|
||||||
See the Make_mvc.mak file for instructions, search for XPM.
|
See the Make_mvc.mak file for instructions, search for XPM.
|
||||||
|
|
||||||
To try out if XPM support works do this: >
|
To try out if XPM support works do this: >
|
||||||
@ -451,4 +451,4 @@ To try out if XPM support works do this: >
|
|||||||
:exe 'sign place 1 line=1 name=vimxpm file=' . expand('%:p')
|
:exe 'sign place 1 line=1 name=vimxpm file=' . expand('%:p')
|
||||||
<
|
<
|
||||||
|
|
||||||
vim:tw=78:sw=4:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui_x11.txt* For Vim version 8.0. Last change: 2017 Jul 28
|
*gui_x11.txt* For Vim version 8.1. Last change: 2018 May 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -53,6 +53,9 @@ When using "gvim -f" and then ":gui", Vim will run in the foreground. The
|
|||||||
":gui -b".
|
":gui -b".
|
||||||
|
|
||||||
"gvim --nofork" does the same as "gvim -f".
|
"gvim --nofork" does the same as "gvim -f".
|
||||||
|
|
||||||
|
When there are running jobs Vim will not fork, because the processes would no
|
||||||
|
longer be child processes.
|
||||||
*E851* *E852*
|
*E851* *E852*
|
||||||
When starting the GUI fails Vim will try to continue running in the terminal.
|
When starting the GUI fails Vim will try to continue running in the terminal.
|
||||||
|
|
||||||
@ -373,8 +376,8 @@ you might have to use the file ~/.gtkrc-2.0 instead, depending on your
|
|||||||
distribution.
|
distribution.
|
||||||
|
|
||||||
For GTK+ 3, an effect similar to the above can be obtained by adding the
|
For GTK+ 3, an effect similar to the above can be obtained by adding the
|
||||||
following snippet of CSS code to $XDG_HOME_DIR/gtk-3.0/gtk.css (usually,
|
following snippet of CSS code to $XDG_HOME_DIR/gtk-3.0/gtk.css (see the next
|
||||||
$HOME/.config/gtk-3.0/gtk.css):
|
section):
|
||||||
|
|
||||||
For GTK+ 3 < 3.20: >
|
For GTK+ 3 < 3.20: >
|
||||||
|
|
||||||
@ -405,6 +408,10 @@ stable support for GTK+ CSS:
|
|||||||
GTK+ uses CSS for styling and layout of widgets. In this subsection, we'll
|
GTK+ uses CSS for styling and layout of widgets. In this subsection, we'll
|
||||||
have a quick look at GTK+ CSS through simple, illustrative examples.
|
have a quick look at GTK+ CSS through simple, illustrative examples.
|
||||||
|
|
||||||
|
You can usually edit the config with: >
|
||||||
|
vim $HOME/.config/gtk-3.0/gtk.css
|
||||||
|
|
||||||
|
|
||||||
Example 1. Empty Space Adjustment ~
|
Example 1. Empty Space Adjustment ~
|
||||||
|
|
||||||
By default, the toolbar and the tabline of the GTK+ 3 GUI are somewhat larger
|
By default, the toolbar and the tabline of the GTK+ 3 GUI are somewhat larger
|
||||||
@ -489,6 +496,16 @@ unexpectedly less attractive or even deteriorates their usability. Keep this
|
|||||||
in mind always when you try improving a theme.
|
in mind always when you try improving a theme.
|
||||||
|
|
||||||
|
|
||||||
|
Example 3. border color ~
|
||||||
|
|
||||||
|
To eliminate borders when maximized: >
|
||||||
|
|
||||||
|
@define-color bg_color #1B2B34;
|
||||||
|
#vim-main-window {
|
||||||
|
background-color: @bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Using Vim as a GTK+ plugin ~
|
Using Vim as a GTK+ plugin ~
|
||||||
*gui-gtk-socketid*
|
*gui-gtk-socketid*
|
||||||
When the GTK+ version of Vim starts up normally, it creates its own top level
|
When the GTK+ version of Vim starts up normally, it creates its own top level
|
||||||
@ -718,4 +735,4 @@ and use CLIPBOARD ("+) for cut/copy/paste operations. You thus have access to
|
|||||||
both by choosing to use either of the "* or "+ registers.
|
both by choosing to use either of the "* or "+ registers.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:sw=4:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*hangulin.txt* For Vim version 8.0. Last change: 2015 Nov 24
|
*hangulin.txt* For Vim version 8.1. Last change: 2015 Nov 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
||||||
@ -109,4 +109,4 @@ Send comments, patches and suggestions to:
|
|||||||
SungHyun Nam <goweol@gmail.com>
|
SungHyun Nam <goweol@gmail.com>
|
||||||
Chi-Deok Hwang <...>
|
Chi-Deok Hwang <...>
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*hebrew.txt* For Vim version 8.0. Last change: 2007 Jun 14
|
*hebrew.txt* For Vim version 8.1. Last change: 2007 Jun 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
||||||
@ -139,4 +139,4 @@ The result is that all Hebrew characters are displayed as ~x. To solve this
|
|||||||
problem, set isprint=@,128-255.
|
problem, set isprint=@,128-255.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*help.txt* For Vim version 8.0. Last change: 2017 Oct 28
|
*help.txt* For Vim version 8.1. Last change: 2018 Dec 14
|
||||||
|
|
||||||
VIM - main help file
|
VIM - main help file
|
||||||
k
|
k
|
||||||
@ -113,7 +113,6 @@ Basic editing ~
|
|||||||
|scroll.txt| scrolling the text in the window
|
|scroll.txt| scrolling the text in the window
|
||||||
|insert.txt| Insert and Replace mode
|
|insert.txt| Insert and Replace mode
|
||||||
|change.txt| deleting and replacing text
|
|change.txt| deleting and replacing text
|
||||||
|indent.txt| automatic indenting for C and other languages
|
|
||||||
|undo.txt| Undo and Redo
|
|undo.txt| Undo and Redo
|
||||||
|repeat.txt| repeating commands, Vim scripts and debugging
|
|repeat.txt| repeating commands, Vim scripts and debugging
|
||||||
|visual.txt| using the Visual mode (selecting a text area)
|
|visual.txt| using the Visual mode (selecting a text area)
|
||||||
@ -126,14 +125,11 @@ Advanced editing ~
|
|||||||
|pattern.txt| regexp patterns and search commands
|
|pattern.txt| regexp patterns and search commands
|
||||||
|map.txt| key mapping and abbreviations
|
|map.txt| key mapping and abbreviations
|
||||||
|tagsrch.txt| tags and special searches
|
|tagsrch.txt| tags and special searches
|
||||||
|quickfix.txt| commands for a quick edit-compile-fix cycle
|
|
||||||
|windows.txt| commands for using multiple windows and buffers
|
|windows.txt| commands for using multiple windows and buffers
|
||||||
|tabpage.txt| commands for using multiple tab pages
|
|tabpage.txt| commands for using multiple tab pages
|
||||||
|syntax.txt| syntax highlighting
|
|
||||||
|spell.txt| spell checking
|
|spell.txt| spell checking
|
||||||
|diff.txt| working with two to four versions of the same file
|
|diff.txt| working with two to four versions of the same file
|
||||||
|autocmd.txt| automatically executing commands on an event
|
|autocmd.txt| automatically executing commands on an event
|
||||||
|filetype.txt| settings done specifically for a type of file
|
|
||||||
|eval.txt| expression evaluation, conditional commands
|
|eval.txt| expression evaluation, conditional commands
|
||||||
|channel.txt| Jobs, Channels, inter-process communication
|
|channel.txt| Jobs, Channels, inter-process communication
|
||||||
|fold.txt| hide (fold) ranges of lines
|
|fold.txt| hide (fold) ranges of lines
|
||||||
@ -143,18 +139,27 @@ Special issues ~
|
|||||||
|remote.txt| using Vim as a server or client
|
|remote.txt| using Vim as a server or client
|
||||||
|term.txt| using different terminals and mice
|
|term.txt| using different terminals and mice
|
||||||
|terminal.txt| Terminal window support
|
|terminal.txt| Terminal window support
|
||||||
|
|
||||||
|
Programming language support ~
|
||||||
|
|indent.txt| automatic indenting for C and other languages
|
||||||
|
|syntax.txt| syntax highlighting
|
||||||
|
|textprop.txt| Attaching properties to text for highlighting or other
|
||||||
|
|filetype.txt| settings done specifically for a type of file
|
||||||
|
|quickfix.txt| commands for a quick edit-compile-fix cycle
|
||||||
|
|ft_ada.txt| Ada (the programming language) support
|
||||||
|
|ft_rust.txt| Filetype plugin for Rust
|
||||||
|
|ft_sql.txt| about the SQL filetype plugin
|
||||||
|
|
||||||
|
Language support ~
|
||||||
|digraph.txt| list of available digraphs
|
|digraph.txt| list of available digraphs
|
||||||
|mbyte.txt| multi-byte text support
|
|mbyte.txt| multi-byte text support
|
||||||
|mlang.txt| non-English language support
|
|mlang.txt| non-English language support
|
||||||
|
|rileft.txt| right-to-left editing mode
|
||||||
|arabic.txt| Arabic language support and editing
|
|arabic.txt| Arabic language support and editing
|
||||||
|farsi.txt| Farsi (Persian) editing
|
|farsi.txt| Farsi (Persian) editing
|
||||||
|hebrew.txt| Hebrew language support and editing
|
|hebrew.txt| Hebrew language support and editing
|
||||||
|russian.txt| Russian language support and editing
|
|russian.txt| Russian language support and editing
|
||||||
|ft_ada.txt| Ada (the programming language) support
|
|
||||||
|ft_rust.txt| Filetype plugin for Rust
|
|
||||||
|ft_sql.txt| about the SQL filetype plugin
|
|
||||||
|hangulin.txt| Hangul (Korean) input mode
|
|hangulin.txt| Hangul (Korean) input mode
|
||||||
|rileft.txt| right-to-left editing mode
|
|
||||||
|
|
||||||
GUI ~
|
GUI ~
|
||||||
|gui.txt| Graphical User Interface (GUI)
|
|gui.txt| Graphical User Interface (GUI)
|
||||||
@ -225,4 +230,4 @@ will try to find help for it. Especially for options in single quotes, e.g.
|
|||||||
'compatible'.
|
'compatible'.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
vim:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":ts=8:ft=help:norl:
|
vim:tw=78:isk=!-~,^*,^\|,^\":ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*helphelp.txt* For Vim version 8.0. Last change: 2017 Mar 19
|
*helphelp.txt* For Vim version 8.1. Last change: 2017 Mar 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -370,4 +370,4 @@ highlighting. So do these:
|
|||||||
|
|
||||||
You can find the details in $VIMRUNTIME/syntax/help.vim
|
You can find the details in $VIMRUNTIME/syntax/help.vim
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*howto.txt* For Vim version 8.0. Last change: 2006 Apr 02
|
*howto.txt* For Vim version 8.1. Last change: 2006 Apr 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -93,4 +93,4 @@ How to ... *howdoi* *how-do-i* *howto* *how-to*
|
|||||||
|2html.vim| convert a colored file to HTML
|
|2html.vim| convert a colored file to HTML
|
||||||
|less| use Vim like less or more with syntax highlighting
|
|less| use Vim like less or more with syntax highlighting
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_cscop.txt* For Vim version 8.0. Last change: 2017 Jun 14
|
*if_cscop.txt* For Vim version 8.1. Last change: 2018 Jan 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Andy Kahn
|
VIM REFERENCE MANUAL by Andy Kahn
|
||||||
@ -468,38 +468,20 @@ license or OS distribution), then you can download it for free from:
|
|||||||
http://cscope.sourceforge.net/
|
http://cscope.sourceforge.net/
|
||||||
This is released by SCO under the BSD license.
|
This is released by SCO under the BSD license.
|
||||||
|
|
||||||
If you want a newer version of cscope, you will probably have to buy it.
|
|
||||||
According to the (old) nvi documentation:
|
|
||||||
|
|
||||||
You can buy version 13.3 source with an unrestricted license
|
|
||||||
for $400 from AT&T Software Solutions by calling +1-800-462-8146.
|
|
||||||
|
|
||||||
Also you can download cscope 13.x and mlcscope 14.x (multi-lingual cscope
|
|
||||||
which supports C, C++, Java, lex, yacc, breakpoint listing, Ingres, and SDL)
|
|
||||||
from World-Wide Exptools Open Source packages page:
|
|
||||||
http://www.bell-labs.com/project/wwexptools/packages.html
|
|
||||||
|
|
||||||
In Solaris 2.x, if you have the C compiler license, you will also have
|
In Solaris 2.x, if you have the C compiler license, you will also have
|
||||||
cscope. Both are usually located under /opt/SUNWspro/bin
|
cscope. Both are usually located under /opt/SUNWspro/bin
|
||||||
|
|
||||||
SGI developers can also get it. Search for Cscope on this page:
|
|
||||||
http://freeware.sgi.com/index-by-alpha.html
|
|
||||||
https://toolbox.sgi.com/toolbox/utilities/cscope/
|
|
||||||
The second one is for those who have a password for the SGI toolbox.
|
|
||||||
|
|
||||||
There is source to an older version of a cscope clone (called "cs") available
|
There is source to an older version of a cscope clone (called "cs") available
|
||||||
on the net. Due to various reasons, this is not supported with Vim.
|
on the net. Due to various reasons, this is not supported with Vim.
|
||||||
|
|
||||||
The cscope interface/support for Vim was originally written by
|
The cscope interface/support for Vim was originally written by
|
||||||
Andy Kahn <ackahn@netapp.com>. The original structure (as well as a tiny
|
Andy Kahn <ackahn@netapp.com>. The original structure (as well as a tiny
|
||||||
bit of code) was adapted from the cscope interface in nvi. Please report
|
bit of code) was adapted from the cscope interface in nvi.
|
||||||
any problems, suggestions, patches, et al., you have for the usage of
|
|
||||||
cscope within Vim to him.
|
|
||||||
*cscope-win32*
|
*cscope-win32*
|
||||||
For a cscope version for Win32 see:
|
For a cscope version for Win32 see (seems abandoned):
|
||||||
http://code.google.com/p/cscope-win32/
|
https://code.google.com/archive/p/cscope-win32/
|
||||||
|
|
||||||
Win32 support was added by Sergey Khorev <sergey.khorev@gmail.com>. Contact
|
Win32 support was added by Sergey Khorev <sergey.khorev@gmail.com>. Contact
|
||||||
him if you have Win32-specific issues.
|
him if you have Win32-specific issues.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_lua.txt* For Vim version 8.0. Last change: 2015 Oct 16
|
*if_lua.txt* For Vim version 8.1. Last change: 2015 Oct 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Luis Carvalho
|
VIM REFERENCE MANUAL by Luis Carvalho
|
||||||
@ -125,9 +125,9 @@ Vim evaluation and command execution, and others.
|
|||||||
Non-numeric keys are not used to initialize
|
Non-numeric keys are not used to initialize
|
||||||
the list. See also |lua-eval| for conversion
|
the list. See also |lua-eval| for conversion
|
||||||
rules. Example: >
|
rules. Example: >
|
||||||
:lua t = {math.pi, false, say = 'hi'}
|
:lua t = {math.pi, false, say = 'hi'}
|
||||||
:echo luaeval('vim.list(t)')
|
:echo luaeval('vim.list(t)')
|
||||||
:" [3.141593, 0], 'say' is ignored
|
:" [3.141593, v:false], 'say' is ignored
|
||||||
<
|
<
|
||||||
vim.dict([arg]) Returns an empty dictionary or, if "arg" is a
|
vim.dict([arg]) Returns an empty dictionary or, if "arg" is a
|
||||||
Lua table, returns a dict d such that d[k] =
|
Lua table, returns a dict d such that d[k] =
|
||||||
@ -136,13 +136,14 @@ Vim evaluation and command execution, and others.
|
|||||||
strings. Keys that are not strings are not
|
strings. Keys that are not strings are not
|
||||||
used to initialize the dictionary. See also
|
used to initialize the dictionary. See also
|
||||||
|lua-eval| for conversion rules. Example: >
|
|lua-eval| for conversion rules. Example: >
|
||||||
:lua t = {math.pi, false, say = 'hi'}
|
:lua t = {math.pi, false, say = 'hi'}
|
||||||
:echo luaeval('vim.dict(t)')
|
:echo luaeval('vim.dict(t)')
|
||||||
:" {'say': 'hi'}, numeric keys ignored
|
:" {'1': 3.141593, '2': v:false,
|
||||||
|
:" 'say': 'hi'}
|
||||||
<
|
<
|
||||||
vim.funcref({name}) Returns a Funcref to function {name} (see
|
vim.funcref({name}) Returns a Funcref to function {name} (see
|
||||||
|Funcref|). It is equivalent to Vim's
|
|Funcref|). It is equivalent to Vim's
|
||||||
"function". NOT IMPLEMENTED YET
|
function().
|
||||||
|
|
||||||
vim.buffer([arg]) If "arg" is a number, returns buffer with
|
vim.buffer([arg]) If "arg" is a number, returns buffer with
|
||||||
number "arg" in the buffer list or, if "arg"
|
number "arg" in the buffer list or, if "arg"
|
||||||
@ -166,7 +167,7 @@ Vim evaluation and command execution, and others.
|
|||||||
or window, respectively. Examples: >
|
or window, respectively. Examples: >
|
||||||
:lua l = vim.list()
|
:lua l = vim.list()
|
||||||
:lua print(type(l), vim.type(l))
|
:lua print(type(l), vim.type(l))
|
||||||
:" userdata list
|
:" list
|
||||||
<
|
<
|
||||||
vim.command({cmd}) Executes the vim (ex-mode) command {cmd}.
|
vim.command({cmd}) Executes the vim (ex-mode) command {cmd}.
|
||||||
Examples: >
|
Examples: >
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_mzsch.txt* For Vim version 8.0. Last change: 2017 Oct 08
|
*if_mzsch.txt* For Vim version 8.1. Last change: 2017 Oct 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sergey Khorev
|
VIM REFERENCE MANUAL by Sergey Khorev
|
||||||
@ -312,4 +312,4 @@ MzScheme's raco command:
|
|||||||
raco pkg install cext-lib # raco ctool command
|
raco pkg install cext-lib # raco ctool command
|
||||||
<
|
<
|
||||||
======================================================================
|
======================================================================
|
||||||
vim:tw=78:ts=8:sts=4:ft=help:norl:
|
vim:tw=78:ts=8:noet:sts=4:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_ole.txt* For Vim version 8.0. Last change: 2008 Aug 16
|
*if_ole.txt* For Vim version 8.1. Last change: 2008 Aug 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@ -202,4 +202,4 @@ In Vim >
|
|||||||
[.Net remarks provided by Dave Fishburn and Brian Sturk]
|
[.Net remarks provided by Dave Fishburn and Brian Sturk]
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_perl.txt* For Vim version 8.0. Last change: 2015 Oct 16
|
*if_perl.txt* For Vim version 8.1. Last change: 2017 Nov 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sven Verdoolaege
|
VIM REFERENCE MANUAL by Sven Verdoolaege
|
||||||
@ -44,8 +44,9 @@ The Perl patches for Vim were made by:
|
|||||||
Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
|
Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
|
||||||
Matt Gerassimof
|
Matt Gerassimof
|
||||||
|
|
||||||
Perl for MS-Windows can be found at: http://www.perl.com/
|
Perl for MS-Windows (and other platforms) can be found at:
|
||||||
The ActiveState one should work.
|
http://www.perl.org/
|
||||||
|
The ActiveState one should work, Strawberry Perl is a good alternative.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Using the Perl interface *perl-using*
|
3. Using the Perl interface *perl-using*
|
||||||
@ -112,7 +113,7 @@ possible.
|
|||||||
Here is an overview of the functions that are available to Perl: >
|
Here is an overview of the functions that are available to Perl: >
|
||||||
|
|
||||||
:perl VIM::Msg("Text") # displays a message
|
:perl VIM::Msg("Text") # displays a message
|
||||||
:perl VIM::Msg("Error", "ErrorMsg") # displays an error message
|
:perl VIM::Msg("Wrong!", "ErrorMsg") # displays an error message
|
||||||
:perl VIM::Msg("remark", "Comment") # displays a highlighted message
|
:perl VIM::Msg("remark", "Comment") # displays a highlighted message
|
||||||
:perl VIM::SetOption("ai") # sets a vim option
|
:perl VIM::SetOption("ai") # sets a vim option
|
||||||
:perl $nbuf = VIM::Buffers() # returns the number of buffers
|
:perl $nbuf = VIM::Buffers() # returns the number of buffers
|
||||||
@ -303,4 +304,4 @@ version of the shared library must match the Perl version Vim was compiled
|
|||||||
with.
|
with.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_pyth.txt* For Vim version 8.0. Last change: 2017 Nov 09
|
*if_pyth.txt* For Vim version 8.1. Last change: 2018 Jan 30
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@ -60,9 +60,10 @@ Example: >
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
To see what version of Python you have: >
|
To see what version of Python you have: >
|
||||||
:python import sys
|
|
||||||
:python print(sys.version)
|
:python print(sys.version)
|
||||||
|
|
||||||
|
There is no need to import sys, it's done by default.
|
||||||
|
|
||||||
Note: Python is very sensitive to the indenting. Make sure the "class" line
|
Note: Python is very sensitive to the indenting. Make sure the "class" line
|
||||||
and "EOF" do not have any indent.
|
and "EOF" do not have any indent.
|
||||||
|
|
||||||
@ -81,6 +82,18 @@ Examples:
|
|||||||
>
|
>
|
||||||
:pydo return "%s\t%d" % (line[::-1], len(line))
|
:pydo return "%s\t%d" % (line[::-1], len(line))
|
||||||
:pydo if line: return "%4d: %s" % (linenr, line)
|
:pydo if line: return "%4d: %s" % (linenr, line)
|
||||||
|
<
|
||||||
|
One can use `:pydo` in possible conjunction with `:py` to filter a range using
|
||||||
|
python. For example: >
|
||||||
|
|
||||||
|
:py3 << EOF
|
||||||
|
needle = vim.eval('@a')
|
||||||
|
replacement = vim.eval('@b')
|
||||||
|
|
||||||
|
def py_vim_string_replace(str):
|
||||||
|
return str.replace(needle, replacement)
|
||||||
|
EOF
|
||||||
|
:'<,'>py3do return py_vim_string_replace(line)
|
||||||
<
|
<
|
||||||
*:pyfile* *:pyf*
|
*:pyfile* *:pyf*
|
||||||
:[range]pyf[ile] {file}
|
:[range]pyf[ile] {file}
|
||||||
@ -98,7 +111,6 @@ Python commands cannot be used in the |sandbox|.
|
|||||||
|
|
||||||
To pass arguments you need to set sys.argv[] explicitly. Example: >
|
To pass arguments you need to set sys.argv[] explicitly. Example: >
|
||||||
|
|
||||||
:python import sys
|
|
||||||
:python sys.argv = ["foo", "bar"]
|
:python sys.argv = ["foo", "bar"]
|
||||||
:pyfile myscript.py
|
:pyfile myscript.py
|
||||||
|
|
||||||
@ -168,11 +180,15 @@ vim.eval(str) *python-eval*
|
|||||||
- a dictionary if the Vim expression evaluates to a Vim dictionary
|
- a dictionary if the Vim expression evaluates to a Vim dictionary
|
||||||
Dictionaries and lists are recursively expanded.
|
Dictionaries and lists are recursively expanded.
|
||||||
Examples: >
|
Examples: >
|
||||||
|
:" value of the 'textwidth' option
|
||||||
:py text_width = vim.eval("&tw")
|
:py text_width = vim.eval("&tw")
|
||||||
:py str = vim.eval("12+12") # NB result is a string! Use
|
:
|
||||||
# string.atoi() to convert to
|
:" contents of the 'a' register
|
||||||
# a number.
|
:py a_reg = vim.eval("@a")
|
||||||
|
:
|
||||||
|
:" Result is a string! Use string.atoi() to convert to a number.
|
||||||
|
:py str = vim.eval("12+12")
|
||||||
|
:
|
||||||
:py tagList = vim.eval('taglist("eval_expr")')
|
:py tagList = vim.eval('taglist("eval_expr")')
|
||||||
< The latter will return a python list of python dicts, for instance:
|
< The latter will return a python list of python dicts, for instance:
|
||||||
[{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name': ~
|
[{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name': ~
|
||||||
@ -736,8 +752,8 @@ or 'pythonthreedll' option can be also used to specify the Python DLL.
|
|||||||
|
|
||||||
The name of the DLL should match the Python version Vim was compiled with.
|
The name of the DLL should match the Python version Vim was compiled with.
|
||||||
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
|
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
|
||||||
That is the default value for 'pythondll'. For Python 3 it is python35.dll
|
That is the default value for 'pythondll'. For Python 3 it is python36.dll
|
||||||
(Python 3.5). To know for sure edit "gvim.exe" and search for
|
(Python 3.6). To know for sure edit "gvim.exe" and search for
|
||||||
"python\d*.dll\c".
|
"python\d*.dll\c".
|
||||||
|
|
||||||
|
|
||||||
@ -809,7 +825,8 @@ Raising SystemExit exception in python isn't endorsed way to quit vim, use: >
|
|||||||
You can test what Python version is available with: >
|
You can test what Python version is available with: >
|
||||||
if has('python')
|
if has('python')
|
||||||
echo 'there is Python 2.x'
|
echo 'there is Python 2.x'
|
||||||
elseif has('python3')
|
endif
|
||||||
|
if has('python3')
|
||||||
echo 'there is Python 3.x'
|
echo 'there is Python 3.x'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -818,6 +835,24 @@ dynamically, these has() calls will try to load them. If only one can be
|
|||||||
loaded at a time, just checking if Python 2 or 3 are available will prevent
|
loaded at a time, just checking if Python 2 or 3 are available will prevent
|
||||||
the other one from being available.
|
the other one from being available.
|
||||||
|
|
||||||
|
To avoid loading the dynamic library, only check if Vim was compiled with
|
||||||
|
python support: >
|
||||||
|
if has('python_compiled')
|
||||||
|
echo 'compiled with Python 2.x support'
|
||||||
|
if has('python_dynamic')
|
||||||
|
echo 'Python 2.x dynamically loaded'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
if has('python3_compiled')
|
||||||
|
echo 'compiled with Python 3.x support'
|
||||||
|
if has('python3_dynamic')
|
||||||
|
echo 'Python 3.x dynamically loaded'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
This also tells you whether Python is dynamically loaded, which will fail if
|
||||||
|
the runtime library cannot be found.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
11. Python X *python_x* *pythonx*
|
11. Python X *python_x* *pythonx*
|
||||||
|
|
||||||
@ -905,4 +940,4 @@ If you have more than one version of Python 3, you need to link python3 to the
|
|||||||
one you prefer, before running configure.
|
one you prefer, before running configure.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_ruby.txt* For Vim version 8.0. Last change: 2016 Sep 01
|
*if_ruby.txt* For Vim version 8.1. Last change: 2018 Mar 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Shugo Maeda
|
VIM REFERENCE MANUAL by Shugo Maeda
|
||||||
@ -145,7 +145,7 @@ self[{n}] Returns the buffer object for the number {n}. The first number
|
|||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
name Returns the name of the buffer.
|
name Returns the full name of the buffer.
|
||||||
number Returns the number of the buffer.
|
number Returns the number of the buffer.
|
||||||
count Returns the number of lines.
|
count Returns the number of lines.
|
||||||
length Returns the number of lines.
|
length Returns the number of lines.
|
||||||
@ -181,6 +181,7 @@ height = {n} Sets the window height to {n}.
|
|||||||
width Returns the width of the window.
|
width Returns the width of the window.
|
||||||
width = {n} Sets the window width to {n}.
|
width = {n} Sets the window width to {n}.
|
||||||
cursor Returns a [row, col] array for the cursor position.
|
cursor Returns a [row, col] array for the cursor position.
|
||||||
|
First line number is 1 and first column number is 0.
|
||||||
cursor = [{row}, {col}]
|
cursor = [{row}, {col}]
|
||||||
Sets the cursor position to {row} and {col}.
|
Sets the cursor position to {row} and {col}.
|
||||||
|
|
||||||
@ -221,6 +222,9 @@ for sure edit "gvim.exe" and search for "ruby\d*.dll\c".
|
|||||||
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
|
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
|
||||||
some tricks. See the src/INSTALLpc.txt for detail.
|
some tricks. See the src/INSTALLpc.txt for detail.
|
||||||
|
|
||||||
|
If Vim is built with RubyInstaller 2.4 or later, you may also need to add
|
||||||
|
"C:\Ruby<version>\bin\ruby_builtin_dlls" to the PATH environment variable.
|
||||||
|
|
||||||
|
|
||||||
Unix ~
|
Unix ~
|
||||||
|
|
||||||
@ -230,4 +234,4 @@ version of the shared library must match the Ruby version Vim was compiled
|
|||||||
with.
|
with.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_sniff.txt* For Vim version 8.0. Last change: 2016 Feb 27
|
*if_sniff.txt* For Vim version 8.1. Last change: 2016 Feb 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL
|
VIM REFERENCE MANUAL
|
||||||
@ -8,4 +8,4 @@
|
|||||||
The SNiFF+ support was removed at patch 7.4.1433. If you want to check it out
|
The SNiFF+ support was removed at patch 7.4.1433. If you want to check it out
|
||||||
sync to before that.
|
sync to before that.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_tcl.txt* For Vim version 8.0. Last change: 2016 Jan 01
|
*if_tcl.txt* For Vim version 8.1. Last change: 2016 Jan 01
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ingo Wilken
|
VIM REFERENCE MANUAL by Ingo Wilken
|
||||||
@ -544,4 +544,4 @@ of DYNAMIC_TCL_DLL file what was specified at compile time. The version of
|
|||||||
the shared library must match the Tcl version Vim was compiled with.
|
the shared library must match the Tcl version Vim was compiled with.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*indent.txt* For Vim version 8.0. Last change: 2014 Dec 06
|
*indent.txt* For Vim version 8.1. Last change: 2018 Apr 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -414,10 +414,10 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
*cino-(*
|
*cino-(*
|
||||||
(N When in unclosed parentheses, indent N characters from the line
|
(N When in unclosed parentheses, indent N characters from the line
|
||||||
with the unclosed parentheses. Add a 'shiftwidth' for every
|
with the unclosed parentheses. Add a 'shiftwidth' for every
|
||||||
unclosed parentheses. When N is 0 or the unclosed parentheses
|
extra unclosed parentheses. When N is 0 or the unclosed
|
||||||
is the first non-white character in its line, line up with the
|
parentheses is the first non-white character in its line, line
|
||||||
next non-white character after the unclosed parentheses.
|
up with the next non-white character after the unclosed
|
||||||
(default 'shiftwidth' * 2).
|
parentheses. (default 'shiftwidth' * 2).
|
||||||
|
|
||||||
cino= cino=(0 >
|
cino= cino=(0 >
|
||||||
if (c1 && (c2 || if (c1 && (c2 ||
|
if (c1 && (c2 || if (c1 && (c2 ||
|
||||||
@ -428,7 +428,8 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
{ {
|
{ {
|
||||||
<
|
<
|
||||||
*cino-u*
|
*cino-u*
|
||||||
uN Same as (N, but for one level deeper. (default 'shiftwidth').
|
uN Same as (N, but for one nesting level deeper.
|
||||||
|
(default 'shiftwidth').
|
||||||
|
|
||||||
cino= cino=u2 >
|
cino= cino=u2 >
|
||||||
if (c123456789 if (c123456789
|
if (c123456789 if (c123456789
|
||||||
@ -587,8 +588,9 @@ The basics for using flexible indenting are explained in section |30.3| of the
|
|||||||
user manual.
|
user manual.
|
||||||
|
|
||||||
If you want to write your own indent file, it must set the 'indentexpr'
|
If you want to write your own indent file, it must set the 'indentexpr'
|
||||||
option. Setting the 'indentkeys' option is often useful. See the
|
option. Setting the 'indentkeys' option is often useful.
|
||||||
$VIMRUNTIME/indent directory for examples.
|
See the $VIMRUNTIME/indent/README.txt file for hints.
|
||||||
|
See the $VIMRUNTIME/indent directory for examples.
|
||||||
|
|
||||||
|
|
||||||
REMARKS ABOUT SPECIFIC INDENT FILES ~
|
REMARKS ABOUT SPECIFIC INDENT FILES ~
|
||||||
@ -601,14 +603,14 @@ the use of square and curly brackets, and otherwise by community convention.
|
|||||||
These conventions are not universally followed, so the Clojure indent script
|
These conventions are not universally followed, so the Clojure indent script
|
||||||
offers a few configurable options, listed below.
|
offers a few configurable options, listed below.
|
||||||
|
|
||||||
If the current vim does not include searchpairpos(), the indent script falls
|
If the current vim does not include |searchpairpos()|, the indent script falls
|
||||||
back to normal 'lisp' indenting, and the following options are ignored.
|
back to normal 'lisp' indenting, and the following options are ignored.
|
||||||
|
|
||||||
*g:clojure_maxlines*
|
*g:clojure_maxlines*
|
||||||
|
|
||||||
Set maximum scan distance of searchpairpos(). Larger values trade performance
|
Set maximum scan distance of |searchpairpos()|. Larger values trade
|
||||||
for correctness when dealing with very long forms. A value of 0 will scan
|
performance for correctness when dealing with very long forms. A value of 0
|
||||||
without limits.
|
will scan without limits.
|
||||||
>
|
>
|
||||||
" Default
|
" Default
|
||||||
let g:clojure_maxlines = 100
|
let g:clojure_maxlines = 100
|
||||||
@ -906,6 +908,25 @@ In PHP braces are not required inside 'case/default' blocks therefore 'case:'
|
|||||||
and 'default:' are indented at the same level than the 'switch()' to avoid
|
and 'default:' are indented at the same level than the 'switch()' to avoid
|
||||||
meaningless indentation. You can use the above option to return to the
|
meaningless indentation. You can use the above option to return to the
|
||||||
traditional way.
|
traditional way.
|
||||||
|
-------------
|
||||||
|
|
||||||
|
*PHP_noArrowMatching*
|
||||||
|
By default the indent script will indent multi-line chained calls by matching
|
||||||
|
the position of the '->': >
|
||||||
|
|
||||||
|
$user_name_very_long->name()
|
||||||
|
->age()
|
||||||
|
->info();
|
||||||
|
|
||||||
|
You can revert to the classic way of indenting by setting this option to 1: >
|
||||||
|
:let g:PHP_noArrowMatching = 1
|
||||||
|
|
||||||
|
You will obtain the following result: >
|
||||||
|
|
||||||
|
$user_name_very_long->name()
|
||||||
|
->age()
|
||||||
|
->info();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PYTHON *ft-python-indent*
|
PYTHON *ft-python-indent*
|
||||||
@ -915,11 +936,16 @@ given are the defaults. Note that the variables are set to an expression, so
|
|||||||
that you can change the value of 'shiftwidth' later.
|
that you can change the value of 'shiftwidth' later.
|
||||||
|
|
||||||
Indent after an open paren: >
|
Indent after an open paren: >
|
||||||
let g:pyindent_open_paren = '&sw * 2'
|
let g:pyindent_open_paren = 'shiftwidth() * 2'
|
||||||
Indent after a nested paren: >
|
Indent after a nested paren: >
|
||||||
let g:pyindent_nested_paren = '&sw'
|
let g:pyindent_nested_paren = 'shiftwidth()'
|
||||||
Indent for a continuation line: >
|
Indent for a continuation line: >
|
||||||
let g:pyindent_continue = '&sw * 2'
|
let g:pyindent_continue = 'shiftwidth() * 2'
|
||||||
|
|
||||||
|
The method uses |searchpair()| to look back for unclosed parenthesis. This
|
||||||
|
can sometimes be slow, thus it timeouts after 150 msec. If you notice the
|
||||||
|
indenting isn't correct, you can set a larger timeout in msec: >
|
||||||
|
let g:pyindent_searchpair_timeout = 500
|
||||||
|
|
||||||
|
|
||||||
R *ft-r-indent*
|
R *ft-r-indent*
|
||||||
@ -958,6 +984,11 @@ Below is an example of indentation with and without this option enabled:
|
|||||||
paste(x) paste(x)
|
paste(x) paste(x)
|
||||||
} }
|
} }
|
||||||
<
|
<
|
||||||
|
The code will be indented after lines that match the pattern
|
||||||
|
`'\(&\||\|+\|-\|\*\|/\|=\|\~\|%\|->\)\s*$'`. If you want indentation after
|
||||||
|
lines that match a different pattern, you should set the appropriate value of
|
||||||
|
`r_indent_op_pattern` in your |vimrc|.
|
||||||
|
|
||||||
|
|
||||||
SHELL *ft-sh-indent*
|
SHELL *ft-sh-indent*
|
||||||
|
|
||||||
@ -1008,7 +1039,7 @@ Furthermore, setting the variable b:verilog_indent_width to change the
|
|||||||
indenting width (default is 'shiftwidth'): >
|
indenting width (default is 'shiftwidth'): >
|
||||||
|
|
||||||
let b:verilog_indent_width = 4
|
let b:verilog_indent_width = 4
|
||||||
let b:verilog_indent_width = &sw * 2
|
let b:verilog_indent_width = shiftwidth() * 2
|
||||||
|
|
||||||
In addition, you can turn the verbose mode for debug issue: >
|
In addition, you can turn the verbose mode for debug issue: >
|
||||||
|
|
||||||
@ -1131,9 +1162,9 @@ VIM *ft-vim-indent*
|
|||||||
For indenting Vim scripts there is one variable that specifies the amount of
|
For indenting Vim scripts there is one variable that specifies the amount of
|
||||||
indent for a continuation line, a line that starts with a backslash: >
|
indent for a continuation line, a line that starts with a backslash: >
|
||||||
|
|
||||||
:let g:vim_indent_cont = &sw * 3
|
:let g:vim_indent_cont = shiftwidth() * 3
|
||||||
|
|
||||||
Three times shiftwidth is the default value.
|
Three times shiftwidth is the default value.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 8.0. Last change: 2017 Aug 02
|
*index.txt* For Vim version 8.1. Last change: 2018 Apr 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -959,7 +959,7 @@ tag command note action in Visual mode ~
|
|||||||
|v_i{| i{ same as iB
|
|v_i{| i{ same as iB
|
||||||
|v_i}| i} same as iB
|
|v_i}| i} same as iB
|
||||||
|v_o| o move cursor to other corner of area
|
|v_o| o move cursor to other corner of area
|
||||||
|v_r| r 2 delete highlighted area and start insert
|
|v_r| r 2 replace highlighted area with a character
|
||||||
|v_s| s 2 delete highlighted area and start insert
|
|v_s| s 2 delete highlighted area and start insert
|
||||||
|v_u| u 2 make highlighted area lowercase
|
|v_u| u 2 make highlighted area lowercase
|
||||||
|v_v| v make Visual mode characterwise or stop
|
|v_v| v make Visual mode characterwise or stop
|
||||||
@ -1583,6 +1583,9 @@ tag command action ~
|
|||||||
|:tjump| :tj[ump] like ":tselect", but jump directly when there
|
|:tjump| :tj[ump] like ":tselect", but jump directly when there
|
||||||
is only one match
|
is only one match
|
||||||
|:tlast| :tl[ast] jump to last matching tag
|
|:tlast| :tl[ast] jump to last matching tag
|
||||||
|
|:tlmenu| :tlm[enu] add menu for Terminal-Job mode
|
||||||
|
|:tlnoremenu| :tln[oremenu] like ":noremenu" but for Terminal-Job mode
|
||||||
|
|:tlunmenu| :tlu[nmenu] remove menu for Terminal-Job mode
|
||||||
|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
|
|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
|
||||||
|:tmap| :tma[p] like ":map" but for Terminal-Job mode
|
|:tmap| :tma[p] like ":map" but for Terminal-Job mode
|
||||||
|:tmenu| :tm[enu] define menu tooltip
|
|:tmenu| :tm[enu] define menu tooltip
|
||||||
@ -1657,4 +1660,4 @@ tag command action ~
|
|||||||
|:~| :~ repeat last ":substitute"
|
|:~| :~ repeat last ":substitute"
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*insert.txt* For Vim version 8.0. Last change: 2017 May 30
|
*insert.txt* For Vim version 8.1. Last change: 2018 Feb 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -433,12 +433,12 @@ An example for using CTRL-G U: >
|
|||||||
inoremap ( ()<C-G>U<Left>
|
inoremap ( ()<C-G>U<Left>
|
||||||
|
|
||||||
This makes it possible to use the cursor keys in Insert mode, without breaking
|
This makes it possible to use the cursor keys in Insert mode, without breaking
|
||||||
the undo sequence and therefore using |.| (redo) will work as expected.
|
the undo sequence and therefore using |.| (redo) will work as expected.
|
||||||
Also entering a text like (with the "(" mapping from above): >
|
Also entering a text like (with the "(" mapping from above):
|
||||||
|
|
||||||
Lorem ipsum (dolor
|
Lorem ipsum (dolor
|
||||||
|
|
||||||
will be repeatable by the |.|to the expected
|
will be repeatable by using |.| to the expected
|
||||||
|
|
||||||
Lorem ipsum (dolor)
|
Lorem ipsum (dolor)
|
||||||
|
|
||||||
@ -1051,13 +1051,13 @@ The function must return the column where the completion starts. It must be a
|
|||||||
number between zero and the cursor column "col('.')". This involves looking
|
number between zero and the cursor column "col('.')". This involves looking
|
||||||
at the characters just before the cursor and including those characters that
|
at the characters just before the cursor and including those characters that
|
||||||
could be part of the completed item. The text between this column and the
|
could be part of the completed item. The text between this column and the
|
||||||
cursor column will be replaced with the matches.
|
cursor column will be replaced with the matches. If the returned value is
|
||||||
|
larger than the cursor column, the cursor column is used.
|
||||||
|
|
||||||
Special return values:
|
Negative return values:
|
||||||
-1 If no completion can be done, the completion will be cancelled with an
|
-2 To cancel silently and stay in completion mode.
|
||||||
error message.
|
-3 To cancel silently and leave completion mode.
|
||||||
-2 To cancel silently and stay in completion mode.
|
Another negative value: completion starts at the cursor column
|
||||||
-3 To cancel silently and leave completion mode.
|
|
||||||
|
|
||||||
On the second invocation the arguments are:
|
On the second invocation the arguments are:
|
||||||
a:findstart 0
|
a:findstart 0
|
||||||
@ -1103,6 +1103,8 @@ items:
|
|||||||
item with the same word is already present.
|
item with the same word is already present.
|
||||||
empty when non-zero this match will be added even when it is
|
empty when non-zero this match will be added even when it is
|
||||||
an empty string
|
an empty string
|
||||||
|
user_data custom data which is associated with the item and
|
||||||
|
available in |v:completed_item|
|
||||||
|
|
||||||
All of these except "icase", "dup" and "empty" must be a string. If an item
|
All of these except "icase", "dup" and "empty" must be a string. If an item
|
||||||
does not meet these requirements then an error message is given and further
|
does not meet these requirements then an error message is given and further
|
||||||
@ -1196,6 +1198,8 @@ The menu is used when:
|
|||||||
|
|
||||||
The 'pumheight' option can be used to set a maximum height. The default is to
|
The 'pumheight' option can be used to set a maximum height. The default is to
|
||||||
use all space available.
|
use all space available.
|
||||||
|
The 'pumwidth' option can be used to set a minimum width. The default is 15
|
||||||
|
characters.
|
||||||
|
|
||||||
There are three states:
|
There are three states:
|
||||||
1. A complete match has been inserted, e.g., after using CTRL-N or CTRL-P.
|
1. A complete match has been inserted, e.g., after using CTRL-N or CTRL-P.
|
||||||
@ -1296,7 +1300,8 @@ it here: http://ctags.sourceforge.net/ Version 5.6 or later is recommended.
|
|||||||
For version 5.5.4 you should add a patch that adds the "typename:" field:
|
For version 5.5.4 you should add a patch that adds the "typename:" field:
|
||||||
ftp://ftp.vim.org/pub/vim/unstable/patches/ctags-5.5.4.patch
|
ftp://ftp.vim.org/pub/vim/unstable/patches/ctags-5.5.4.patch
|
||||||
A compiled .exe for MS-Windows can be found at:
|
A compiled .exe for MS-Windows can be found at:
|
||||||
http://georgevreilly.com/vim/ctags.html
|
http://ctags.sourceforge.net/
|
||||||
|
https://github.com/universal-ctags/ctags-win32
|
||||||
|
|
||||||
If you want to complete system functions you can do something like this. Use
|
If you want to complete system functions you can do something like this. Use
|
||||||
ctags to generate a tags file for all the system header files: >
|
ctags to generate a tags file for all the system header files: >
|
||||||
@ -1472,7 +1477,7 @@ The completions provided by CTRL-X CTRL-O are sensitive to the context:
|
|||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- Vim will load/evaluate code in order to provide completions. This may
|
- Vim will load/evaluate code in order to provide completions. This may
|
||||||
cause some code execution, which may be a concern. This is no longer
|
cause some code execution, which may be a concern. This is no longer
|
||||||
enabled by default, to enable this feature add >
|
enabled by default, to enable this feature add >
|
||||||
let g:rubycomplete_buffer_loading = 1
|
let g:rubycomplete_buffer_loading = 1
|
||||||
<- In context 1 above, Vim can parse the entire buffer to add a list of
|
<- In context 1 above, Vim can parse the entire buffer to add a list of
|
||||||
@ -1528,15 +1533,15 @@ that begin with the filetype, "php", in this case. For example these syntax
|
|||||||
groups are included by default with the PHP: phpEnvVar, phpIntVar,
|
groups are included by default with the PHP: phpEnvVar, phpIntVar,
|
||||||
phpFunctions.
|
phpFunctions.
|
||||||
|
|
||||||
If you wish non-filetype syntax items to also be included, you can use a
|
If you wish non-filetype syntax items to also be included, you can use a
|
||||||
regular expression syntax (added in version 13.0 of autoload\syntaxcomplete.vim)
|
regular expression syntax (added in version 13.0 of
|
||||||
to add items. Looking at the output from ":syntax list" while editing a PHP file
|
autoload/syntaxcomplete.vim) to add items. Looking at the output from
|
||||||
I can see some of these entries: >
|
":syntax list" while editing a PHP file I can see some of these entries: >
|
||||||
htmlArg,htmlTag,htmlTagName,javaScriptStatement,javaScriptGlobalObjects
|
htmlArg,htmlTag,htmlTagName,javaScriptStatement,javaScriptGlobalObjects
|
||||||
|
|
||||||
To pick up any JavaScript and HTML keyword syntax groups while editing a PHP
|
To pick up any JavaScript and HTML keyword syntax groups while editing a PHP
|
||||||
file, you can use 3 different regexs, one for each language. Or you can
|
file, you can use 3 different regexs, one for each language. Or you can
|
||||||
simply restrict the include groups to a particular value, without using
|
simply restrict the include groups to a particular value, without using
|
||||||
a regex string: >
|
a regex string: >
|
||||||
let g:omni_syntax_group_include_php = 'php\w\+,javaScript\w\+,html\w\+'
|
let g:omni_syntax_group_include_php = 'php\w\+,javaScript\w\+,html\w\+'
|
||||||
let g:omni_syntax_group_include_php = 'phpFunctions,phpMethods'
|
let g:omni_syntax_group_include_php = 'phpFunctions,phpMethods'
|
||||||
@ -1549,9 +1554,9 @@ highlight. These items will be available within the omni completion list.
|
|||||||
|
|
||||||
Some people may find this list unwieldy or are only interested in certain
|
Some people may find this list unwieldy or are only interested in certain
|
||||||
items. There are two ways to prune this list (if necessary). If you find
|
items. There are two ways to prune this list (if necessary). If you find
|
||||||
certain syntax groups you do not wish displayed you can use two different
|
certain syntax groups you do not wish displayed you can use two different
|
||||||
methods to identify these groups. The first specifically lists the syntax
|
methods to identify these groups. The first specifically lists the syntax
|
||||||
groups by name. The second uses a regular expression to identify both
|
groups by name. The second uses a regular expression to identify both
|
||||||
syntax groups. Simply add one the following to your vimrc: >
|
syntax groups. Simply add one the following to your vimrc: >
|
||||||
let g:omni_syntax_group_exclude_php = 'phpCoreConstant,phpConstant'
|
let g:omni_syntax_group_exclude_php = 'phpCoreConstant,phpConstant'
|
||||||
let g:omni_syntax_group_exclude_php = 'php\w*Constant'
|
let g:omni_syntax_group_exclude_php = 'php\w*Constant'
|
||||||
@ -1574,22 +1579,22 @@ vimrc: >
|
|||||||
|
|
||||||
For plugin developers, the plugin exposes a public function OmniSyntaxList.
|
For plugin developers, the plugin exposes a public function OmniSyntaxList.
|
||||||
This function can be used to request a List of syntax items. When editing a
|
This function can be used to request a List of syntax items. When editing a
|
||||||
SQL file (:e syntax.sql) you can use the ":syntax list" command to see the
|
SQL file (:e syntax.sql) you can use the ":syntax list" command to see the
|
||||||
various groups and syntax items. For example: >
|
various groups and syntax items. For example: >
|
||||||
syntax list
|
syntax list
|
||||||
|
|
||||||
Yields data similar to this: >
|
Yields data similar to this:
|
||||||
sqlOperator xxx some prior all like and any escape exists in is not
|
sqlOperator xxx some prior all like and any escape exists in is not ~
|
||||||
or intersect minus between distinct
|
or intersect minus between distinct ~
|
||||||
links to Operator
|
links to Operator ~
|
||||||
sqlType xxx varbit varchar nvarchar bigint int uniqueidentifier
|
sqlType xxx varbit varchar nvarchar bigint int uniqueidentifier ~
|
||||||
date money long tinyint unsigned xml text smalldate
|
date money long tinyint unsigned xml text smalldate ~
|
||||||
double datetime nchar smallint numeric time bit char
|
double datetime nchar smallint numeric time bit char ~
|
||||||
varbinary binary smallmoney
|
varbinary binary smallmoney ~
|
||||||
image float integer timestamp real decimal
|
image float integer timestamp real decimal ~
|
||||||
|
|
||||||
There are two syntax groups listed here: sqlOperator and sqlType. To retrieve
|
There are two syntax groups listed here: sqlOperator and sqlType. To retrieve
|
||||||
a List of syntax items you can call OmniSyntaxList a number of different
|
a List of syntax items you can call OmniSyntaxList a number of different
|
||||||
ways. To retrieve all syntax items regardless of syntax group: >
|
ways. To retrieve all syntax items regardless of syntax group: >
|
||||||
echo OmniSyntaxList( [] )
|
echo OmniSyntaxList( [] )
|
||||||
|
|
||||||
@ -1606,7 +1611,6 @@ From within a plugin, you would typically assign the output to a List: >
|
|||||||
let myKeywords = []
|
let myKeywords = []
|
||||||
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SQL *ft-sql-omni*
|
SQL *ft-sql-omni*
|
||||||
|
|
||||||
@ -2001,4 +2005,4 @@ self explanatory. Using the long or the short version depends on the
|
|||||||
[READ ERRORS] not all of the file could be read
|
[READ ERRORS] not all of the file could be read
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*intro.txt* For Vim version 8.0. Last change: 2017 Sep 04
|
*intro.txt* For Vim version 8.1. Last change: 2018 Jan 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -138,7 +138,7 @@ There are two ways to report bugs, both work:
|
|||||||
see the message. If you don't want that, e.g. because it is a security
|
see the message. If you don't want that, e.g. because it is a security
|
||||||
issue, send it to <bugs@vim.org>, this only goes to the Vim maintainer
|
issue, send it to <bugs@vim.org>, this only goes to the Vim maintainer
|
||||||
(that's Bram).
|
(that's Bram).
|
||||||
2. Open issue on GitHub: https://github.com/vim/vim/issues
|
2. Open an issue on GitHub: https://github.com/vim/vim/issues
|
||||||
The text will be forwarded to the vim-dev maillist.
|
The text will be forwarded to the vim-dev maillist.
|
||||||
|
|
||||||
Please be brief; all the time that is spent on answering mail is subtracted
|
Please be brief; all the time that is spent on answering mail is subtracted
|
||||||
@ -595,9 +595,9 @@ Virtual Replace mode Virtual Replace mode is similar to Replace mode, but
|
|||||||
If the 'showmode' option is on "-- VREPLACE --" is
|
If the 'showmode' option is on "-- VREPLACE --" is
|
||||||
shown at the bottom of the window.
|
shown at the bottom of the window.
|
||||||
|
|
||||||
Insert Normal mode Entered when CTRL-O given in Insert mode. This is
|
Insert Normal mode Entered when CTRL-O is typed in Insert mode (see
|
||||||
like Normal mode, but after executing one command Vim
|
|i_CTRL-O|). This is like Normal mode, but after
|
||||||
returns to Insert mode.
|
executing one command Vim returns to Insert mode.
|
||||||
If the 'showmode' option is on "-- (insert) --" is
|
If the 'showmode' option is on "-- (insert) --" is
|
||||||
shown at the bottom of the window.
|
shown at the bottom of the window.
|
||||||
|
|
||||||
@ -906,4 +906,4 @@ buffer lines logical lines window lines screen lines ~
|
|||||||
6. ~
|
6. ~
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 8.0. Last change: 2017 Sep 23
|
*map.txt* For Vim version 8.1. Last change: 2018 Dec 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -371,8 +371,9 @@ job running in the terminal. See |terminal-typing|.
|
|||||||
|
|
||||||
*omap-info*
|
*omap-info*
|
||||||
Operator-pending mappings can be used to define a movement command that can be
|
Operator-pending mappings can be used to define a movement command that can be
|
||||||
used with any operator. Simple example: ":omap { w" makes "y{" work like "yw"
|
used with any operator. Simple example: >
|
||||||
and "d{" like "dw".
|
:omap { w
|
||||||
|
makes "y{" work like "yw" and "d{" like "dw".
|
||||||
|
|
||||||
To ignore the starting cursor position and select different text, you can have
|
To ignore the starting cursor position and select different text, you can have
|
||||||
the omap start Visual mode to select the text to be operated upon. Example
|
the omap start Visual mode to select the text to be operated upon. Example
|
||||||
@ -383,9 +384,11 @@ Normal mode commands find the first '(' character and select the first word
|
|||||||
before it. That usually is the function name.
|
before it. That usually is the function name.
|
||||||
|
|
||||||
To enter a mapping for Normal and Visual mode, but not Operator-pending mode,
|
To enter a mapping for Normal and Visual mode, but not Operator-pending mode,
|
||||||
first define it for all three modes, then unmap it for Operator-pending mode:
|
first define it for all three modes, then unmap it for
|
||||||
|
Operator-pending mode: >
|
||||||
:map xx something-difficult
|
:map xx something-difficult
|
||||||
:ounmap xx
|
:ounmap xx
|
||||||
|
|
||||||
Likewise for a mapping for Visual and Operator-pending mode or Normal and
|
Likewise for a mapping for Visual and Operator-pending mode or Normal and
|
||||||
Operator-pending mode.
|
Operator-pending mode.
|
||||||
|
|
||||||
@ -542,9 +545,9 @@ scenario: >
|
|||||||
:imap <M-C> foo
|
:imap <M-C> foo
|
||||||
:set encoding=utf-8
|
:set encoding=utf-8
|
||||||
The mapping for <M-C> is defined with the latin1 encoding, resulting in a 0xc3
|
The mapping for <M-C> is defined with the latin1 encoding, resulting in a 0xc3
|
||||||
byte. If you type the character <EFBFBD> (0xe1 <M-a>) in UTF-8 encoding this is the
|
byte. If you type the character á (0xe1 <M-a>) in UTF-8 encoding this is the
|
||||||
two bytes 0xc3 0xa1. You don't want the 0xc3 byte to be mapped then or
|
two bytes 0xc3 0xa1. You don't want the 0xc3 byte to be mapped then or
|
||||||
otherwise it would be impossible to type the <EFBFBD> character.
|
otherwise it would be impossible to type the á character.
|
||||||
|
|
||||||
*<Leader>* *mapleader*
|
*<Leader>* *mapleader*
|
||||||
To define a mapping which uses the "mapleader" variable, the special string
|
To define a mapping which uses the "mapleader" variable, the special string
|
||||||
@ -917,7 +920,9 @@ an additional rule:
|
|||||||
full-id In front of the match is a non-keyword character, or this is where
|
full-id In front of the match is a non-keyword character, or this is where
|
||||||
the line or insertion starts. Exception: When the abbreviation is
|
the line or insertion starts. Exception: When the abbreviation is
|
||||||
only one character, it is not recognized if there is a non-keyword
|
only one character, it is not recognized if there is a non-keyword
|
||||||
character in front of it, other than a space or a tab.
|
character in front of it, other than a space or a tab. However, for
|
||||||
|
the command line "'<,'>" (or any other marks) is ignored, as if the
|
||||||
|
command line starts after it.
|
||||||
|
|
||||||
end-id In front of the match is a keyword character, or a space or a tab,
|
end-id In front of the match is a keyword character, or a space or a tab,
|
||||||
or this is where the line or insertion starts.
|
or this is where the line or insertion starts.
|
||||||
@ -1218,6 +1223,10 @@ See |:verbose-cmd| for more information.
|
|||||||
attributes (see below) are {attr}. If the command
|
attributes (see below) are {attr}. If the command
|
||||||
already exists, an error is reported, unless a ! is
|
already exists, an error is reported, unless a ! is
|
||||||
specified, in which case the command is redefined.
|
specified, in which case the command is redefined.
|
||||||
|
There is one exception: When sourcing a script again,
|
||||||
|
a command that was previously defined in that script
|
||||||
|
will be silently replaced.
|
||||||
|
|
||||||
|
|
||||||
:delc[ommand] {cmd} *:delc* *:delcommand* *E184*
|
:delc[ommand] {cmd} *:delc* *:delcommand* *E184*
|
||||||
Delete the user-defined command {cmd}.
|
Delete the user-defined command {cmd}.
|
||||||
@ -1225,7 +1234,8 @@ See |:verbose-cmd| for more information.
|
|||||||
:comc[lear] *:comc* *:comclear*
|
:comc[lear] *:comc* *:comclear*
|
||||||
Delete all user-defined commands.
|
Delete all user-defined commands.
|
||||||
|
|
||||||
Command attributes
|
|
||||||
|
Command attributes ~
|
||||||
|
|
||||||
User-defined commands are treated by Vim just like any other Ex commands. They
|
User-defined commands are treated by Vim just like any other Ex commands. They
|
||||||
can have arguments, or have a range specified. Arguments are subject to
|
can have arguments, or have a range specified. Arguments are subject to
|
||||||
@ -1236,14 +1246,15 @@ There are a number of attributes, split into four categories: argument
|
|||||||
handling, completion behavior, range handling, and special cases. The
|
handling, completion behavior, range handling, and special cases. The
|
||||||
attributes are described below, by category.
|
attributes are described below, by category.
|
||||||
|
|
||||||
Argument handling *E175* *E176* *:command-nargs*
|
|
||||||
|
|
||||||
|
Argument handling ~
|
||||||
|
*E175* *E176* *:command-nargs*
|
||||||
By default, a user defined command will take no arguments (and an error is
|
By default, a user defined command will take no arguments (and an error is
|
||||||
reported if any are supplied). However, it is possible to specify that the
|
reported if any are supplied). However, it is possible to specify that the
|
||||||
command can take arguments, using the -nargs attribute. Valid cases are:
|
command can take arguments, using the -nargs attribute. Valid cases are:
|
||||||
|
|
||||||
-nargs=0 No arguments are allowed (the default)
|
-nargs=0 No arguments are allowed (the default)
|
||||||
-nargs=1 Exactly one argument is required, it includes spaces
|
-nargs=1 Exactly one argument is required, it includes spaces
|
||||||
-nargs=* Any number of arguments are allowed (0, 1, or many),
|
-nargs=* Any number of arguments are allowed (0, 1, or many),
|
||||||
separated by white space
|
separated by white space
|
||||||
-nargs=? 0 or 1 arguments are allowed
|
-nargs=? 0 or 1 arguments are allowed
|
||||||
@ -1266,12 +1277,15 @@ defined, not where it is invoked! Example:
|
|||||||
Executing script2.vim will result in "None" being echoed. Not what you
|
Executing script2.vim will result in "None" being echoed. Not what you
|
||||||
intended! Calling a function may be an alternative.
|
intended! Calling a function may be an alternative.
|
||||||
|
|
||||||
Completion behavior *:command-completion* *E179*
|
|
||||||
*E180* *E181* *:command-complete*
|
Completion behavior ~
|
||||||
|
*:command-completion* *E179* *E180* *E181*
|
||||||
|
*:command-complete*
|
||||||
By default, the arguments of user defined commands do not undergo completion.
|
By default, the arguments of user defined commands do not undergo completion.
|
||||||
However, by specifying one or the other of the following attributes, argument
|
However, by specifying one or the other of the following attributes, argument
|
||||||
completion can be enabled:
|
completion can be enabled:
|
||||||
|
|
||||||
|
-complete=arglist file names in argument list
|
||||||
-complete=augroup autocmd groups
|
-complete=augroup autocmd groups
|
||||||
-complete=buffer buffer names
|
-complete=buffer buffer names
|
||||||
-complete=behave :behave suboptions
|
-complete=behave :behave suboptions
|
||||||
@ -1311,9 +1325,9 @@ completion can be enabled:
|
|||||||
Note: That some completion methods might expand environment variables.
|
Note: That some completion methods might expand environment variables.
|
||||||
|
|
||||||
|
|
||||||
Custom completion *:command-completion-custom*
|
Custom completion ~
|
||||||
*:command-completion-customlist*
|
*:command-completion-custom*
|
||||||
*E467* *E468*
|
*:command-completion-customlist* *E467* *E468*
|
||||||
It is possible to define customized completion schemes via the "custom,{func}"
|
It is possible to define customized completion schemes via the "custom,{func}"
|
||||||
or the "customlist,{func}" completion argument. The {func} part should be a
|
or the "customlist,{func}" completion argument. The {func} part should be a
|
||||||
function with the following signature: >
|
function with the following signature: >
|
||||||
@ -1358,8 +1372,8 @@ the 'path' option: >
|
|||||||
This example does not work for file names with spaces!
|
This example does not work for file names with spaces!
|
||||||
|
|
||||||
|
|
||||||
Range handling *E177* *E178* *:command-range*
|
Range handling ~
|
||||||
*:command-count*
|
*E177* *E178* *:command-range* *:command-count*
|
||||||
By default, user-defined commands do not accept a line number range. However,
|
By default, user-defined commands do not accept a line number range. However,
|
||||||
it is possible to specify that the command does take a range (the -range
|
it is possible to specify that the command does take a range (the -range
|
||||||
attribute), or that it takes an arbitrary count value, either in the line
|
attribute), or that it takes an arbitrary count value, either in the line
|
||||||
@ -1393,8 +1407,11 @@ Possible values are:
|
|||||||
-addr=loaded_buffers Range for loaded buffers
|
-addr=loaded_buffers Range for loaded buffers
|
||||||
-addr=windows Range for windows
|
-addr=windows Range for windows
|
||||||
-addr=tabs Range for tab pages
|
-addr=tabs Range for tab pages
|
||||||
|
-addr=other other kind of range
|
||||||
|
|
||||||
Special cases *:command-bang* *:command-bar*
|
|
||||||
|
Special cases ~
|
||||||
|
*:command-bang* *:command-bar*
|
||||||
*:command-register* *:command-buffer*
|
*:command-register* *:command-buffer*
|
||||||
There are some special cases as well:
|
There are some special cases as well:
|
||||||
|
|
||||||
@ -1412,7 +1429,8 @@ replacement text separately.
|
|||||||
Note that these arguments can be abbreviated, but that is a deprecated
|
Note that these arguments can be abbreviated, but that is a deprecated
|
||||||
feature. Use the full name for new scripts.
|
feature. Use the full name for new scripts.
|
||||||
|
|
||||||
Replacement text
|
|
||||||
|
Replacement text ~
|
||||||
|
|
||||||
The replacement text for a user defined command is scanned for special escape
|
The replacement text for a user defined command is scanned for special escape
|
||||||
sequences, using <...> notation. Escape sequences are replaced with values
|
sequences, using <...> notation. Escape sequences are replaced with values
|
||||||
@ -1549,4 +1567,4 @@ local to the script and use mappings local to the script. When the user
|
|||||||
invokes the user command, it will run in the context of the script it was
|
invokes the user command, it will run in the context of the script it was
|
||||||
defined in. This matters if |<SID>| is used in a command.
|
defined in. This matters if |<SID>| is used in a command.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*mbyte.txt* For Vim version 8.0. Last change: 2016 Jul 21
|
*mbyte.txt* For Vim version 8.1. Last change: 2018 Jan 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
@ -26,8 +26,9 @@ For changing the language of messages and menus see |mlang.txt|.
|
|||||||
7. Input on X11 |mbyte-XIM|
|
7. Input on X11 |mbyte-XIM|
|
||||||
8. Input on MS-Windows |mbyte-IME|
|
8. Input on MS-Windows |mbyte-IME|
|
||||||
9. Input with a keymap |mbyte-keymap|
|
9. Input with a keymap |mbyte-keymap|
|
||||||
10. Using UTF-8 |mbyte-utf8|
|
10. Input with imactivatefunc() |mbyte-func|
|
||||||
11. Overview of options |mbyte-options|
|
11. Using UTF-8 |mbyte-utf8|
|
||||||
|
12. Overview of options |mbyte-options|
|
||||||
|
|
||||||
NOTE: This file contains UTF-8 characters. These may show up as strange
|
NOTE: This file contains UTF-8 characters. These may show up as strange
|
||||||
characters or boxes when using another encoding.
|
characters or boxes when using another encoding.
|
||||||
@ -1254,7 +1255,35 @@ Combining forms:
|
|||||||
ﭏ 0xfb4f Xal alef-lamed
|
ﭏ 0xfb4f Xal alef-lamed
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
10. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
|
10. Input with imactivatefunc() *mbyte-func*
|
||||||
|
|
||||||
|
Vim has the 'imactivatefunc' and 'imstatusfunc' options. These are useful to
|
||||||
|
activate/deactivate the input method from Vim in any way, also with an external
|
||||||
|
command. For example, fcitx provide fcitx-remote command: >
|
||||||
|
|
||||||
|
set iminsert=2
|
||||||
|
set imsearch=2
|
||||||
|
set imcmdline
|
||||||
|
|
||||||
|
set imactivatefunc=ImActivate
|
||||||
|
function! ImActivate(active)
|
||||||
|
if a:active
|
||||||
|
call system('fcitx-remote -o')
|
||||||
|
else
|
||||||
|
call system('fcitx-remote -c')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
set imstatusfunc=ImStatus
|
||||||
|
function! ImStatus()
|
||||||
|
return system('fcitx-remote')[0] is# '2'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
Using this script, you can activate/deactivate XIM via Vim even when it is not
|
||||||
|
compiled with |+xim|.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
11. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
|
||||||
*Unicode* *unicode*
|
*Unicode* *unicode*
|
||||||
The Unicode character set was designed to include all characters from other
|
The Unicode character set was designed to include all characters from other
|
||||||
character sets. Therefore it is possible to write text in any language using
|
character sets. Therefore it is possible to write text in any language using
|
||||||
@ -1402,7 +1431,7 @@ not everybody is able to type a composing character.
|
|||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
11. Overview of options *mbyte-options*
|
12. Overview of options *mbyte-options*
|
||||||
|
|
||||||
These options are relevant for editing multi-byte files. Check the help in
|
These options are relevant for editing multi-byte files. Check the help in
|
||||||
options.txt for detailed information.
|
options.txt for detailed information.
|
||||||
@ -1438,4 +1467,4 @@ Contributions specifically for the multi-byte features by:
|
|||||||
Taro Muraoka <koron@tka.att.ne.jp>
|
Taro Muraoka <koron@tka.att.ne.jp>
|
||||||
Yasuhiro Matsumoto <mattn@mail.goo.ne.jp>
|
Yasuhiro Matsumoto <mattn@mail.goo.ne.jp>
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*message.txt* For Vim version 8.0. Last change: 2017 Oct 14
|
*message.txt* For Vim version 8.1. Last change: 2018 Feb 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -76,7 +76,7 @@ See `:messages` above.
|
|||||||
LIST OF MESSAGES
|
LIST OF MESSAGES
|
||||||
*E222* *E228* *E232* *E256* *E293* *E298* *E304* *E317*
|
*E222* *E228* *E232* *E256* *E293* *E298* *E304* *E317*
|
||||||
*E318* *E356* *E438* *E439* *E440* *E316* *E320* *E322*
|
*E318* *E356* *E438* *E439* *E440* *E316* *E320* *E322*
|
||||||
*E323* *E341* *E473* *E570* *E685* >
|
*E323* *E341* *E473* *E570* *E685* *E950* >
|
||||||
Add to read buffer
|
Add to read buffer
|
||||||
makemap: Illegal mode
|
makemap: Illegal mode
|
||||||
Cannot create BalloonEval with both message and callback
|
Cannot create BalloonEval with both message and callback
|
||||||
@ -97,6 +97,7 @@ LIST OF MESSAGES
|
|||||||
Internal error
|
Internal error
|
||||||
Internal error: {function}
|
Internal error: {function}
|
||||||
fatal error in cs_manage_matches
|
fatal error in cs_manage_matches
|
||||||
|
Invalid count for del_bytes(): {N}
|
||||||
|
|
||||||
This is an internal error. If you can reproduce it, please send in a bug
|
This is an internal error. If you can reproduce it, please send in a bug
|
||||||
report. |bugs|
|
report. |bugs|
|
||||||
@ -865,4 +866,4 @@ The |g<| command can be used to see the last page of previous command output.
|
|||||||
This is especially useful if you accidentally typed <Space> at the hit-enter
|
This is especially useful if you accidentally typed <Space> at the hit-enter
|
||||||
prompt.
|
prompt.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*mlang.txt* For Vim version 8.0. Last change: 2017 Mar 04
|
*mlang.txt* For Vim version 8.1. Last change: 2018 May 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -102,8 +102,10 @@ Or:
|
|||||||
|
|
||||||
This also contains tools xgettext, msgformat and others.
|
This also contains tools xgettext, msgformat and others.
|
||||||
|
|
||||||
libintl.dll should be placed in same directory with (g)vim.exe, or some
|
libintl.dll should be placed in same directory as (g)vim.exe, or one of the
|
||||||
place where PATH environment value describe. Vim also finds libintl-8.dll.
|
directories listed in the PATH environment value. Vim also looks for the
|
||||||
|
alternate names "libintl-8.dll" and "intl.dll".
|
||||||
|
|
||||||
Message files (vim.mo) have to be placed in "$VIMRUNTIME/lang/xx/LC_MESSAGES",
|
Message files (vim.mo) have to be placed in "$VIMRUNTIME/lang/xx/LC_MESSAGES",
|
||||||
where "xx" is the abbreviation of the language (mostly two letters).
|
where "xx" is the abbreviation of the language (mostly two letters).
|
||||||
|
|
||||||
@ -190,8 +192,8 @@ you can do it without restarting Vim: >
|
|||||||
:source $VIMRUNTIME/menu.vim
|
:source $VIMRUNTIME/menu.vim
|
||||||
|
|
||||||
Each part of a menu path is translated separately. The result is that when
|
Each part of a menu path is translated separately. The result is that when
|
||||||
"Help" is translated to "Hilfe" and "Overview" to "<EFBFBD>berblick" then
|
"Help" is translated to "Hilfe" and "Overview" to "Überblick" then
|
||||||
"Help.Overview" will be translated to "Hilfe.<EFBFBD>berblick".
|
"Help.Overview" will be translated to "Hilfe.Überblick".
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Scripts *multilang-scripts*
|
3. Scripts *multilang-scripts*
|
||||||
@ -210,4 +212,4 @@ a message adapt to language preferences of the user, >
|
|||||||
:endif
|
:endif
|
||||||
<
|
<
|
||||||
|
|
||||||
vim:tw=78:sw=4:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*motion.txt* For Vim version 8.0. Last change: 2017 Oct 15
|
*motion.txt* For Vim version 8.1. Last change: 2017 Oct 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1019,12 +1019,13 @@ These commands are not marks themselves, but jump to a mark:
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
8. Jumps *jump-motions*
|
8. Jumps *jump-motions*
|
||||||
|
|
||||||
A "jump" is one of the following commands: "'", "`", "G", "/", "?", "n",
|
A "jump" is a command that normally moves the cursor several lines away. If
|
||||||
"N", "%", "(", ")", "[[", "]]", "{", "}", ":s", ":tag", "L", "M", "H" and
|
you make the cursor "jump" the position of the cursor before the jump is
|
||||||
the commands that start editing a new file. If you make the cursor "jump"
|
|
||||||
with one of these commands, the position of the cursor before the jump is
|
|
||||||
remembered. You can return to that position with the "''" and "``" command,
|
remembered. You can return to that position with the "''" and "``" command,
|
||||||
unless the line containing that position was changed or deleted.
|
unless the line containing that position was changed or deleted. The
|
||||||
|
following commands are "jump" commands: "'", "`", "G", "/", "?", "n", "N",
|
||||||
|
"%", "(", ")", "[[", "]]", "{", "}", ":s", ":tag", "L", "M", "H" and the
|
||||||
|
commands that start editing a new file.
|
||||||
|
|
||||||
*CTRL-O*
|
*CTRL-O*
|
||||||
CTRL-O Go to [count] Older cursor position in jump list
|
CTRL-O Go to [count] Older cursor position in jump list
|
||||||
@ -1163,7 +1164,7 @@ remembered.
|
|||||||
*:changes*
|
*:changes*
|
||||||
:changes Print the change list. A ">" character indicates the
|
:changes Print the change list. A ">" character indicates the
|
||||||
current position. Just after a change it is below the
|
current position. Just after a change it is below the
|
||||||
newest entry, indicating that "g;" takes you to the
|
newest entry, indicating that `g;` takes you to the
|
||||||
newest entry position. The first column indicates the
|
newest entry position. The first column indicates the
|
||||||
count needed to take you to this position. Example:
|
count needed to take you to this position. Example:
|
||||||
|
|
||||||
@ -1173,8 +1174,8 @@ remembered.
|
|||||||
1 14 54 the latest changed line
|
1 14 54 the latest changed line
|
||||||
>
|
>
|
||||||
|
|
||||||
The "3g;" command takes you to line 9. Then the
|
The `3g;` command takes you to line 9. Then the
|
||||||
output of ":changes is:
|
output of `:changes` is:
|
||||||
|
|
||||||
change line col text ~
|
change line col text ~
|
||||||
> 0 9 8 bla bla bla
|
> 0 9 8 bla bla bla
|
||||||
@ -1340,4 +1341,4 @@ L To line [count] from bottom of window (default: Last
|
|||||||
position is in a status line, that window is made the
|
position is in a status line, that window is made the
|
||||||
active window and the cursor is not moved. {not in Vi}
|
active window and the cursor is not moved. {not in Vi}
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*netbeans.txt* For Vim version 8.0. Last change: 2016 Jul 15
|
*netbeans.txt* For Vim version 8.1. Last change: 2016 Jul 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
||||||
@ -409,9 +409,9 @@ defineAnnoType typeNum typeName tooltip glyphFile fg bg
|
|||||||
Vim will define a sign for the annotation.
|
Vim will define a sign for the annotation.
|
||||||
When color is a number, this is the "#rrggbb" Red, Green and
|
When color is a number, this is the "#rrggbb" Red, Green and
|
||||||
Blue values of the color (see |gui-colors|) and the
|
Blue values of the color (see |gui-colors|) and the
|
||||||
highlighting is only defined for GVim.
|
highlighting is only defined for gVim.
|
||||||
When color is a name, this color is defined both for Vim
|
When color is a name, this color is defined both for Vim
|
||||||
running in a color terminal and for GVim.
|
running in a color terminal and for gVim.
|
||||||
When both "fg" and "bg" are "none" no line highlighting is
|
When both "fg" and "bg" are "none" no line highlighting is
|
||||||
used (new in version 2.1).
|
used (new in version 2.1).
|
||||||
When "glyphFile" is empty, no text sign is used (new in
|
When "glyphFile" is empty, no text sign is used (new in
|
||||||
@ -1007,4 +1007,4 @@ Expert tab MIME Type property. NetBeans is MIME oriented and the External
|
|||||||
Editor will only open MIME types specified in this property.
|
Editor will only open MIME types specified in this property.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
*os_390.txt* For Vim version 8.0. Last change: 2016 Feb 27
|
*os_390.txt* For Vim version 8.1. Last change: 2016 Feb 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ralf Schandl
|
VIM REFERENCE MANUAL by Ralf Schandl
|
||||||
@ -83,10 +83,10 @@ There is no solution for this yet.
|
|||||||
ctags out there, that does it right, but we can't be sure. So this seems to
|
ctags out there, that does it right, but we can't be sure. So this seems to
|
||||||
be a permanent restriction.
|
be a permanent restriction.
|
||||||
|
|
||||||
- The cscope interface (|cscope|) doesn't work for the version of cscope
|
- The cscope interface (|cscope|) doesn't work for the version of cscope that
|
||||||
that we use on our mainframe. We have a copy of version 15.0b12, and it
|
we use on our mainframe. We have a copy of version 15.0b12, and it causes
|
||||||
causes Vim to hang when using the "cscope add" command. I'm guessing that
|
Vim to hang when using the "cscope add" command. I'm guessing that the
|
||||||
the binary format of the cscope database isn't quite what Vim is expecting.
|
binary format of the cscope database isn't quite what Vim is expecting.
|
||||||
I've tried to port the current version of cscope (15.3) to z/OS, without
|
I've tried to port the current version of cscope (15.3) to z/OS, without
|
||||||
much success. If anyone is interested in trying, drop me a line if you
|
much success. If anyone is interested in trying, drop me a line if you
|
||||||
make any progress.
|
make any progress.
|
||||||
@ -131,4 +131,4 @@ Also look at:
|
|||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
vim:tw=78:fo=tcq2:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_amiga.txt* For Vim version 8.0. Last change: 2010 Aug 14
|
*os_amiga.txt* For Vim version 8.1. Last change: 2010 Aug 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -144,4 +144,4 @@ Installation ~
|
|||||||
;End VIM
|
;End VIM
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_beos.txt* For Vim version 8.0. Last change: 2016 Mar 28
|
*os_beos.txt* For Vim version 8.1. Last change: 2016 Mar 28
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -144,7 +144,7 @@ The default value for $VIM is set at compile time and can be determined with >
|
|||||||
:version
|
:version
|
||||||
|
|
||||||
The normal value is /boot/home/config/share/vim. If you don't like it you can
|
The normal value is /boot/home/config/share/vim. If you don't like it you can
|
||||||
set the Vim environment variable to override this, or set 'helpfile' in your
|
set the VIM environment variable to override this, or set 'helpfile' in your
|
||||||
.vimrc: >
|
.vimrc: >
|
||||||
|
|
||||||
:if version >= 500
|
:if version >= 500
|
||||||
@ -317,4 +317,4 @@ it is about 1191K.
|
|||||||
<rhialto@polder.ubc.kun.nl>
|
<rhialto@polder.ubc.kun.nl>
|
||||||
http://polder.ubc.kun.nl/~rhialto/be
|
http://polder.ubc.kun.nl/~rhialto/be
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_dos.txt* For Vim version 8.0. Last change: 2006 Mar 30
|
*os_dos.txt* For Vim version 8.1. Last change: 2006 Mar 30
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -295,4 +295,4 @@ When starting up, Vim checks for the presence of "sh" anywhere in the 'shell'
|
|||||||
option. If it is present, Vim sets the 'shellcmdflag' and 'shellquote' or
|
option. If it is present, Vim sets the 'shellcmdflag' and 'shellquote' or
|
||||||
'shellxquote' options will be set as described above.
|
'shellxquote' options will be set as described above.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_mac.txt* For Vim version 8.0. Last change: 2017 Apr 28
|
*os_mac.txt* For Vim version 8.1. Last change: 2018 Jan 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
@ -165,7 +165,7 @@ and then run `make` to build Vim. The order of the options doesn't matter.
|
|||||||
|
|
||||||
To make sure at runtime whether or not the darwin feature is compiled in, you
|
To make sure at runtime whether or not the darwin feature is compiled in, you
|
||||||
can use `has('osxdarwin')` which returns 1 if the feature is compiled in; 0
|
can use `has('osxdarwin')` which returns 1 if the feature is compiled in; 0
|
||||||
otherwise. For backwards comptibility, you can still use `macunix` instead of
|
otherwise. For backward compatibility, you can still use `macunix` instead of
|
||||||
`osxdarwin`.
|
`osxdarwin`.
|
||||||
|
|
||||||
Notable use cases where `--disable-darwin` is turned out to be useful are:
|
Notable use cases where `--disable-darwin` is turned out to be useful are:
|
||||||
@ -179,4 +179,4 @@ the system clipboard, the darwin feature should be disabled to prevent Vim
|
|||||||
from hanging at runtime.
|
from hanging at runtime.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_mint.txt* For Vim version 8.0. Last change: 2005 Mar 29
|
*os_mint.txt* For Vim version 8.1. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Jens M. Felderhoff
|
VIM REFERENCE MANUAL by Jens M. Felderhoff
|
||||||
@ -36,4 +36,4 @@ Send bug reports to
|
|||||||
|
|
||||||
Jens M. Felderhoff, e-mail: <jmf@infko.uni-koblenz.de>
|
Jens M. Felderhoff, e-mail: <jmf@infko.uni-koblenz.de>
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user