mirror of
https://github.com/vim/vim
synced 2025-07-19 10:41:56 +00:00
Compare commits
1183 Commits
Author | SHA1 | Date | |
---|---|---|---|
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 | |||
52dbb5ea7f | |||
5505860152 | |||
ff5467965e | |||
91ffda9852 | |||
6e77df2d85 | |||
5df95ea9ef | |||
bb160a188a | |||
73675fbc48 | |||
5bbef31949 | |||
40e280d949 | |||
7221fce8b3 | |||
669a828cdc | |||
246fe03d15 | |||
e518226713 | |||
44c2bffde7 | |||
e86ee877c1 | |||
4ab9d9e9a4 | |||
d1c28346e1 | |||
c3719bd87b | |||
c7d16dce2f | |||
0f1e643138 | |||
51b0f3701e | |||
234d16286a | |||
ae1e108caa | |||
9e27217c48 | |||
7567d0b115 | |||
d048009717 | |||
9c6ce0e622 | |||
209d3874c1 | |||
7cb769a69f | |||
cd142e3369 | |||
a42ad57e48 | |||
58a8f1706f | |||
2392143236 | |||
1dcada1933 | |||
e42a6d2509 | |||
2f27aab8e6 | |||
60e73f2acc | |||
d327b0c68f | |||
f8c53d3d26 | |||
80eaddd3a0 | |||
7f2e9d7c9c | |||
13e904199c | |||
ae147ab2d7 | |||
aeeb6888ca | |||
5fd8b78214 | |||
d09a206ee9 | |||
462455ee8b | |||
9ed7d34af3 | |||
cef7322d8a | |||
851ee6c3da | |||
de323093e1 | |||
040c1feb21 | |||
8ac441576f | |||
26d205dcd8 | |||
a3f7e58bf8 | |||
c9e9c71409 | |||
0c4dc88a63 | |||
4148be468f | |||
53ec79537a | |||
fb094e14c1 | |||
8fdb35a974 | |||
b0d45e7f53 | |||
aace215813 | |||
3bf8c3c38f | |||
5842a748be | |||
ffe010fa03 | |||
ad7dac85c3 | |||
c363251630 | |||
5a73e0ca54 | |||
7dd88c5133 | |||
1232624ae5 | |||
ab8b1c14a3 | |||
13deab8d08 | |||
52a2f0f1da | |||
2973daafe1 | |||
a88254f704 | |||
01164a6546 | |||
ea84df8041 | |||
4c22a91d20 | |||
430dc5d360 | |||
8889a5c305 | |||
d97fbf171e | |||
f8f8b2eadb | |||
c20e0d5207 | |||
5130f31661 | |||
86b21bb3e7 | |||
b315876efa | |||
3e1c617d49 | |||
b94340c04f | |||
f45938cc20 | |||
ffd99f729b | |||
89c394faca | |||
ba6febd380 | |||
48570488f1 | |||
2e51d9a097 | |||
af2d20c628 | |||
d057301b1f | |||
ef83956e1e | |||
a6ce1ccf5c | |||
b9fce6cbf7 | |||
c3fdf7f80b | |||
c312b8b87a | |||
ce15775026 | |||
9a91c7a1f9 | |||
0e19fc07e7 | |||
dc1c981294 | |||
2a45d64d0a | |||
ee03b94124 | |||
cf1ba35fc2 | |||
9ad89c6c4f | |||
ce11de87e2 | |||
15993ce921 | |||
235dddf1f4 | |||
f204e05ae9 | |||
8d84ff1a3c | |||
d99388ba85 | |||
6ce6504808 | |||
2f40d129bf | |||
4f1982800f | |||
2e4cb3b042 | |||
66857f4104 | |||
ca05aa24af | |||
f8e8c0643b | |||
53f0c96239 | |||
6b89dbb55f | |||
67435d9983 | |||
fafcf0dd59 | |||
ff930cad8a | |||
87ffb5c1a3 | |||
6daeef1933 | |||
059db5c29f | |||
44cc4cf72f | |||
67418d97b4 | |||
8bfe07b708 | |||
00ce63dc23 | |||
81b07b527e | |||
a20f83df1d | |||
9377df3ecd | |||
65e4c4f686 | |||
b2c8750c4e | |||
ac8069bb63 | |||
6199d43f4b | |||
2c33d7bb69 | |||
6047e2c722 | |||
1d68d9b2bd | |||
8065cf2bfb | |||
4a6fcf8047 | |||
9202162c5c | |||
9b69f22e66 | |||
18cfa940e2 | |||
0ab35b279f | |||
4635e11c6b | |||
75f69e5a18 | |||
631820536e | |||
73f4439ca6 | |||
54e5dbf58e | |||
d78f03f860 | |||
c902609f69 | |||
a0a6f2776e | |||
19a3d68b2c | |||
2a6a6c3014 | |||
712549e04e | |||
f33606112a | |||
5ece3e359c | |||
0aa398f55a | |||
3a497e1a41 | |||
c958b31638 | |||
f52c383156 | |||
65ed136844 | |||
c79977a437 | |||
660b85e39a | |||
a5e6621aad | |||
816968defc | |||
d371bbe0ab | |||
db51007108 | |||
24a98a0eb7 | |||
9cf39cc57f | |||
1ec96c9269 | |||
d1bc96ce24 | |||
1b38344e00 | |||
97fbc404fc | |||
2a02745709 | |||
09ca932f8e | |||
6edeaf387c | |||
a8fc0d3817 | |||
22ab547dc2 | |||
7c456a4511 | |||
452030e530 | |||
0c6a32963d | |||
0b05e491b4 | |||
e0de17d84e | |||
378daf87d3 | |||
96e7a6ee45 | |||
bb3e6416f1 | |||
a21a6a9ade | |||
eb163d73b1 | |||
e745d75c3e | |||
0263146b5d | |||
53f8174eae | |||
76301956f0 | |||
f3d769a585 | |||
8b21de33bb | |||
fc7649f8b8 | |||
b00fdf6eed | |||
9cb03716c9 | |||
2e6ab18729 | |||
a5a2be26fe | |||
37c64c78fd | |||
e22bbf6508 | |||
a8e93d63e3 | |||
71b2964066 | |||
d326ad6e93 | |||
f16c71b669 | |||
1b9645de3c | |||
dde403c2d8 | |||
49150a41f8 | |||
63c4e8a198 | |||
8adb0d03ca | |||
4033c55eca | |||
e738a1a033 | |||
1514e8f427 | |||
495b7dd213 | |||
4cf56bbc85 | |||
eef9adddab | |||
fc2b270cfd | |||
b5e79ef5a9 | |||
e8ff56b28e | |||
f5291f301e | |||
69fbc9e1da | |||
38baa3e634 | |||
69e8aa7511 | |||
1190cf68e2 | |||
ef6b8de42f | |||
478e3a78c3 | |||
c71053c611 | |||
71eeb74a60 | |||
072412ed45 | |||
518d699699 | |||
b984b80cd8 | |||
49a613f84a | |||
238d43b328 | |||
a038cb5eab | |||
c212798333 | |||
b4d5fbabc9 | |||
45d5f26d11 | |||
95c83c64be | |||
65f084749b | |||
c168bd4bd3 | |||
414168d97f | |||
e9f6fd27d0 | |||
8696bbaf52 | |||
e09ba7bae5 | |||
7be9b50fd7 | |||
5b5adf5b9c | |||
9d18961323 | |||
aba680a851 | |||
74121231be | |||
09d6c3818d | |||
b4ea1914b8 | |||
fe386641b0 | |||
3c518400d1 | |||
1a735d6c9b | |||
2dc9d26c14 | |||
ba2929b6af | |||
99433291b1 | |||
c6da01a5b8 | |||
75a60f74ce | |||
37b53270e1 | |||
618d6d277e | |||
e723c42836 | |||
2e49b6b20c | |||
c35e4cb4fe | |||
1b9f9d315f | |||
28550b74bb | |||
c3f81394ef | |||
6756c7037f | |||
3971905bac | |||
3d8d2c7ca5 | |||
8b53b79ea5 | |||
1bfdc07a49 | |||
6e32f615eb | |||
11aa62f8f9 | |||
178333783f | |||
9d954207e2 | |||
e88fc7a574 | |||
9d654a8d8c | |||
595a40226e | |||
d8d85bfb7d | |||
5e80de3f3e | |||
00ccf54630 | |||
ae96b8d058 | |||
6a8691d483 | |||
2254a8ad0c | |||
4ec86ddd77 | |||
9f45ccd1bf | |||
e2e69e4813 | |||
3653822546 | |||
b31cf2bb0b | |||
cf4b00c856 | |||
da22b8cc8b |
1
.gitignore
vendored
1
.gitignore
vendored
@ -38,6 +38,7 @@ src/pathdef.c
|
|||||||
src/Obj*/pathdef.c
|
src/Obj*/pathdef.c
|
||||||
gvimext.dll
|
gvimext.dll
|
||||||
gvimext.lib
|
gvimext.lib
|
||||||
|
gvim.lib
|
||||||
runtime/doc/uganda.nsis.txt
|
runtime/doc/uganda.nsis.txt
|
||||||
|
|
||||||
# Borland C++
|
# Borland C++
|
||||||
|
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*
|
25
.travis.yml
25
.travis.yml
@ -11,18 +11,18 @@ compiler:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
- BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
- 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'"
|
"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=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=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=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
|
# Mac OSX build
|
||||||
- BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
- 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'"
|
||||||
# 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'"
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
@ -39,16 +39,16 @@ 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: 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 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:
|
||||||
@ -67,6 +67,7 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- autoconf
|
- autoconf
|
||||||
|
- clang
|
||||||
- lcov
|
- lcov
|
||||||
- libperl-dev
|
- libperl-dev
|
||||||
- python-dev
|
- python-dev
|
||||||
@ -74,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
|
||||||
|
|
||||||
@ -87,7 +89,7 @@ before_install:
|
|||||||
# building cffi only works with gcc, not with clang
|
# building cffi only works with gcc, not with clang
|
||||||
- if [ "$COVERAGE" = "yes" ]; then CC=gcc pip install --user pyopenssl ndg-httpsclient pyasn1; fi
|
- if [ "$COVERAGE" = "yes" ]; then CC=gcc pip install --user pyopenssl ndg-httpsclient pyasn1; fi
|
||||||
# Lua is not installed on Travis OSX
|
# Lua is not installed on Travis OSX
|
||||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install lua; export LUA_PREFIX=/usr/local; fi
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export HOMEBREW_NO_AUTO_UPDATE=1; brew update; brew install lua; export LUA_PREFIX=/usr/local; fi
|
||||||
# Use llvm-cov instead of gcov when compiler is clang.
|
# Use llvm-cov instead of gcov when compiler is clang.
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CC" = "clang" ]; then ln -sf $(which llvm-cov) /home/travis/bin/gcov; fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CC" = "clang" ]; then ln -sf $(which llvm-cov) /home/travis/bin/gcov; fi
|
||||||
|
|
||||||
@ -102,13 +104,12 @@ script:
|
|||||||
- (cd ${SRCDIR} && ./configure --with-features=$FEATURES $CONFOPT --enable-fail-if-missing && if [ "$BUILD" = "yes" ]; then make -j$NPROC; fi)
|
- (cd ${SRCDIR} && ./configure --with-features=$FEATURES $CONFOPT --enable-fail-if-missing && if [ "$BUILD" = "yes" ]; then make -j$NPROC; fi)
|
||||||
# Show Vim version and also if_xx versions.
|
# Show Vim version and also if_xx versions.
|
||||||
- if [ "$BUILD" = "yes" ]; then ${SRCDIR}/vim --version; ${SRCDIR}/vim --not-a-term -u NONE -S ${SRCDIR}/testdir/if_ver-1.vim -c quit > /dev/null; ${SRCDIR}/vim --not-a-term -u NONE -S ${SRCDIR}/testdir/if_ver-2.vim -c quit > /dev/null; cat if_ver.txt; fi
|
- if [ "$BUILD" = "yes" ]; then ${SRCDIR}/vim --version; ${SRCDIR}/vim --not-a-term -u NONE -S ${SRCDIR}/testdir/if_ver-1.vim -c quit > /dev/null; ${SRCDIR}/vim --not-a-term -u NONE -S ${SRCDIR}/testdir/if_ver-2.vim -c quit > /dev/null; cat if_ver.txt; fi
|
||||||
- if [ -n "$ASAN_OPTIONS" ]; then export PATH=/usr/lib/llvm-$(clang -v 2>&1 | sed -n 's/.*version \([1-9]\.[0-9][0-9]*\).*/\1/p')/bin:$PATH; fi
|
|
||||||
- make $SHADOWOPT $TEST
|
- make $SHADOWOPT $TEST
|
||||||
- if [ -n "$ASAN_OPTIONS" ]; then for log in $(find -type f -name 'asan.*' -size +0); do cat "$log"; err=1; done; fi
|
- if [ -n "$ASAN_OPTIONS" ]; then for log in $(find -type f -name 'asan.*' -size +0); do asan_symbolize < "$log"; err=1; done; fi
|
||||||
- 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}/xxd -e ${SRCDIR}/if_perl.c --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
|
||||||
|
23
Filelist
23
Filelist
@ -4,14 +4,18 @@
|
|||||||
# 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 \
|
||||||
src/arabic.c \
|
src/arabic.c \
|
||||||
src/arabic.h \
|
src/arabic.h \
|
||||||
src/ascii.h \
|
src/ascii.h \
|
||||||
|
src/beval.c \
|
||||||
|
src/beval.h \
|
||||||
src/blowfish.c \
|
src/blowfish.c \
|
||||||
src/buffer.c \
|
src/buffer.c \
|
||||||
src/channel.c \
|
src/channel.c \
|
||||||
@ -41,7 +45,6 @@ SRC_ALL = \
|
|||||||
src/gui.c \
|
src/gui.c \
|
||||||
src/gui.h \
|
src/gui.h \
|
||||||
src/gui_beval.c \
|
src/gui_beval.c \
|
||||||
src/gui_beval.h \
|
|
||||||
src/hardcopy.c \
|
src/hardcopy.c \
|
||||||
src/hashtab.c \
|
src/hashtab.c \
|
||||||
src/json.c \
|
src/json.c \
|
||||||
@ -109,6 +112,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 \
|
||||||
@ -118,7 +122,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 \
|
||||||
@ -134,10 +137,14 @@ 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/if_ver*.vim \
|
src/testdir/if_ver*.vim \
|
||||||
|
src/testdir/color_ramp.vim \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
src/proto/arabic.pro \
|
src/proto/arabic.pro \
|
||||||
|
src/proto/beval.pro \
|
||||||
src/proto/blowfish.pro \
|
src/proto/blowfish.pro \
|
||||||
src/proto/buffer.pro \
|
src/proto/buffer.pro \
|
||||||
src/proto/channel.pro \
|
src/proto/channel.pro \
|
||||||
@ -405,6 +412,9 @@ SRC_DOS = \
|
|||||||
src/msvcsetup.bat \
|
src/msvcsetup.bat \
|
||||||
src/msvc2008.bat \
|
src/msvc2008.bat \
|
||||||
src/msvc2010.bat \
|
src/msvc2010.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 \
|
||||||
@ -449,6 +459,7 @@ SRC_DOS = \
|
|||||||
src/xxd/Make_mvc.mak \
|
src/xxd/Make_mvc.mak \
|
||||||
nsis/gvim.nsi \
|
nsis/gvim.nsi \
|
||||||
nsis/gvim_version.nsh \
|
nsis/gvim_version.nsh \
|
||||||
|
nsis/vimrc.ini \
|
||||||
nsis/README.txt \
|
nsis/README.txt \
|
||||||
uninstal.txt \
|
uninstal.txt \
|
||||||
src/VisVim/Commands.cpp \
|
src/VisVim/Commands.cpp \
|
||||||
@ -579,6 +590,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 \
|
||||||
@ -638,6 +650,7 @@ RT_ALL = \
|
|||||||
runtime/pack/dist/opt/matchit/doc/tags \
|
runtime/pack/dist/opt/matchit/doc/tags \
|
||||||
runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim \
|
runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim \
|
||||||
runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim \
|
runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim \
|
||||||
|
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim \
|
||||||
|
|
||||||
# runtime files for all distributions without CR-NL translation
|
# runtime files for all distributions without CR-NL translation
|
||||||
RT_ALL_BIN = \
|
RT_ALL_BIN = \
|
||||||
@ -655,9 +668,11 @@ RT_SCRIPTS = \
|
|||||||
runtime/makemenu.vim \
|
runtime/makemenu.vim \
|
||||||
runtime/autoload/*.vim \
|
runtime/autoload/*.vim \
|
||||||
runtime/autoload/README.txt \
|
runtime/autoload/README.txt \
|
||||||
|
runtime/autoload/dist/*.vim \
|
||||||
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 \
|
||||||
@ -695,6 +710,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 \
|
||||||
@ -835,6 +851,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 \
|
||||||
@ -895,6 +913,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 \
|
||||||
|
55
Makefile
55
Makefile
@ -68,7 +68,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:
|
||||||
#
|
#
|
||||||
@ -120,28 +120,28 @@ MINOR = 0
|
|||||||
#
|
#
|
||||||
# MS-Windows:
|
# MS-Windows:
|
||||||
# - Run make on Unix to update the ".mo" files.
|
# - Run make on Unix to update the ".mo" files.
|
||||||
# - Get libintl-8.dll, libiconv-2.dll and libgcc_s_sjlj-1.dll. E.g. from
|
# - Get 32 bit libintl-8.dll, libiconv-2.dll and libgcc_s_sjlj-1.dll. E.g. from
|
||||||
# https://mlocati.github.io/gettext-iconv-windows/ .
|
# https://mlocati.github.io/gettext-iconv-windows/ .
|
||||||
# Use the "shared-32.zip file and extract the archive to get the files.
|
# Use the "shared-32.zip file and extract the archive to get the files.
|
||||||
# Put them in the top directory, "make dosrt" uses them.
|
# Put them in the gettext32 directory, "make dosrt" uses them.
|
||||||
|
# - Get 64 bit libintl-8.dll and libiconv-2.dll. E.g. from
|
||||||
|
# https://mlocati.github.io/gettext-iconv-windows/ .
|
||||||
|
# Use the "shared-64.zip file and extract the archive to get the files.
|
||||||
|
# Put them in the gettext64 directory, "make dosrt" uses them.
|
||||||
# - > 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/vim81 and puts all files in there.
|
||||||
# Win32 console version build:
|
# Win32 console version build:
|
||||||
# - Set environment for Visual C++ 2008, e.g.:
|
# - See src/INSTALLpc.txt for installing the compiler and SDK.
|
||||||
# > src/msvc2008.bat
|
# - Set environment for Visual C++ 2015:
|
||||||
# Or:
|
# > cd src
|
||||||
# > C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat
|
# > msvc2015.bat
|
||||||
# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
|
# - Build the console binary:
|
||||||
# paths when necessary).
|
|
||||||
# For Windows 98/ME the 2003 version is required, but then the executable
|
|
||||||
# won't work on Windows 7 and 64 bit systems.
|
|
||||||
# - > cd src
|
|
||||||
# > nmake -f Make_mvc.mak
|
# > nmake -f Make_mvc.mak
|
||||||
# - Run the tests:
|
# - Run the tests and check the ouput:
|
||||||
# > nmake -f Make_mvc.mak testclean
|
# > nmake -f Make_mvc.mak testclean
|
||||||
# > nmake -f Make_mvc.mak test
|
# > nmake -f Make_mvc.mak test
|
||||||
# - check the output.
|
|
||||||
# - Rename (using ../tools/rename.bat):
|
# - Rename (using ../tools/rename.bat):
|
||||||
# vim.exe to vimw32.exe
|
# vim.exe to vimw32.exe
|
||||||
# tee/tee.exe to teew32.exe
|
# tee/tee.exe to teew32.exe
|
||||||
@ -152,19 +152,18 @@ MINOR = 0
|
|||||||
# Win32 GUI version build:
|
# Win32 GUI version build:
|
||||||
# - > cd src
|
# - > cd src
|
||||||
# > nmake -f Make_mvc.mak GUI=yes
|
# > nmake -f Make_mvc.mak GUI=yes
|
||||||
# - Run the tests:
|
# - Run the tests and check the output:
|
||||||
# > nmake -f Make_mvc.mak testclean
|
# > nmake -f Make_mvc.mak testclean
|
||||||
# > nmake -f Make_mvc.mak testgvim
|
# > nmake -f Make_mvc.mak testgvim
|
||||||
# - check the output.
|
|
||||||
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
|
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
|
||||||
# - Move gvim.pdb to here.
|
# - Move gvim.pdb to here.
|
||||||
# - Copy "GvimExt/gvimext.dll" to here.
|
# - Copy "GvimExt/gvimext.dll" to here.
|
||||||
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
||||||
# Win32 GUI version with OLE, PERL, Ruby, TCL, PYTHON and dynamic IME:
|
# Win32 GUI version with OLE, PERL, Ruby, TCL, PYTHON and dynamic IME:
|
||||||
# - Install the interfaces you want, see src/INSTALLpc.txt
|
# - Install the interfaces you want, see src/INSTALLpc.txt
|
||||||
|
# Adjust bigvim.bat to match the version of each interface you want.
|
||||||
# - Build:
|
# - Build:
|
||||||
# > cd src
|
# > cd src
|
||||||
# Adjust bigvim.bat to match the version of each interface you want.
|
|
||||||
# > bigvim.bat
|
# > bigvim.bat
|
||||||
# - Run the tests:
|
# - Run the tests:
|
||||||
# > nmake -f Make_mvc.mak testclean
|
# > nmake -f Make_mvc.mak testclean
|
||||||
@ -188,10 +187,11 @@ MINOR = 0
|
|||||||
# gvimext64.dll in src/GvimExt
|
# gvimext64.dll in src/GvimExt
|
||||||
# VisVim.dll in src/VisVim
|
# VisVim.dll in src/VisVim
|
||||||
# Note: VisVim needs to be build with MSVC 5, newer versions don't work.
|
# Note: VisVim needs to be build with MSVC 5, newer versions don't work.
|
||||||
# gvimext64.dll can be obtained from http://code.google.com/p/vim-win3264/
|
# gvimext64.dll can be obtained from:
|
||||||
# It is part of vim72.zip as vim72/gvimext.dll.
|
# https://github.com/vim/vim-win32-installer/releases
|
||||||
|
# It is part of gvim_8.0.*_x64.zip as vim/vim80/GvimExt/gvimext64.dll.
|
||||||
# - Make sure there is a diff.exe two levels up (get it from a previous Vim
|
# - Make sure there is a diff.exe two levels up (get it from a previous Vim
|
||||||
# version).
|
# version). Also put winpty32.dll and winpty-agent.exe there.
|
||||||
# - go to ../nsis and do:
|
# - go to ../nsis and do:
|
||||||
# > makensis gvim.nsi (takes a few minutes).
|
# > makensis gvim.nsi (takes a few minutes).
|
||||||
# ignore warning for libwinpthread-1.dll
|
# ignore warning for libwinpthread-1.dll
|
||||||
@ -467,9 +467,13 @@ dosrt_files: dist prepare no_title.vim
|
|||||||
cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \
|
cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \
|
||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
cp libintl-8.dll dist/vim/$(VIMRTDIR)/
|
mkdir dist/vim/$(VIMRTDIR)/gettext32
|
||||||
cp libiconv-2.dll dist/vim/$(VIMRTDIR)/
|
cp gettext32/libintl-8.dll dist/vim/$(VIMRTDIR)/gettext32/
|
||||||
cp libgcc_s_sjlj-1.dll dist/vim/$(VIMRTDIR)/
|
cp gettext32/libiconv-2.dll dist/vim/$(VIMRTDIR)/gettext32/
|
||||||
|
cp gettext32/libgcc_s_sjlj-1.dll dist/vim/$(VIMRTDIR)/gettext32/
|
||||||
|
mkdir dist/vim/$(VIMRTDIR)/gettext64
|
||||||
|
cp gettext64/libintl-8.dll dist/vim/$(VIMRTDIR)/gettext64/
|
||||||
|
cp gettext64/libiconv-2.dll dist/vim/$(VIMRTDIR)/gettext64/
|
||||||
|
|
||||||
|
|
||||||
# Used before uploading. Don't delete the AAPDIR/sign files!
|
# Used before uploading. Don't delete the AAPDIR/sign files!
|
||||||
@ -496,7 +500,10 @@ dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
|||||||
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
||||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||||
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
||||||
cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll
|
mkdir dist/vim/$(VIMRTDIR)/GvimExt32
|
||||||
|
cp gvimext.dll dist/vim/$(VIMRTDIR)/GvimExt32/gvimext.dll
|
||||||
|
mkdir dist/vim/$(VIMRTDIR)/GvimExt64
|
||||||
|
cp gvimext64.dll dist/vim/$(VIMRTDIR)/GvimExt64/gvimext.dll
|
||||||
cd dist && zip -9 -rD -z gvim$(VERSION).zip vim <$(COMMENT_GVIM)
|
cd dist && zip -9 -rD -z gvim$(VERSION).zip vim <$(COMMENT_GVIM)
|
||||||
cp gvim.pdb dist/gvim$(VERSION).pdb
|
cp gvim.pdb dist/gvim$(VERSION).pdb
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
`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)
|
||||||
|
|
||||||
|
|
||||||
## What is Vim? ##
|
## What is Vim? ##
|
||||||
@ -135,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_zOS.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
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
This builds a one-click install for Vim for Win32 using the Nullsoft
|
This builds a one-click install for Vim for Win32 using the Nullsoft
|
||||||
Installation System (NSIS), available at http://www.nullsoft.com/free/nsis/
|
Installation System (NSIS), available at http://nsis.sourceforge.net/
|
||||||
|
|
||||||
To build the installable .exe:
|
To build the installable .exe:
|
||||||
|
|
||||||
@ -17,8 +17,14 @@ To build the installable .exe:
|
|||||||
uninstal.exe,
|
uninstal.exe,
|
||||||
xxd/xxd.exe,
|
xxd/xxd.exe,
|
||||||
|
|
||||||
|
Then execute tools/rename.bat to rename the executables. (mv command is
|
||||||
|
required.)
|
||||||
|
|
||||||
3. Go to the GvimExt directory and build gvimext.dll (or get it from a binary
|
3. Go to the GvimExt directory and build gvimext.dll (or get it from a binary
|
||||||
archive).
|
archive). Both 64- and 32-bit versions are needed and should be placed
|
||||||
|
as follows:
|
||||||
|
64-bit: src/GvimExt/gvimext64.dll
|
||||||
|
32-bit: src/GvimExt/gvimext.dll
|
||||||
|
|
||||||
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).
|
||||||
@ -27,13 +33,35 @@ To build the installable .exe:
|
|||||||
get them from a binary archive).
|
get them from a binary archive).
|
||||||
|
|
||||||
6. Get a "diff.exe" program and put it in the "../.." directory (above the
|
6. Get a "diff.exe" program and put it in the "../.." directory (above the
|
||||||
"vim61" directory, 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.
|
||||||
|
|
||||||
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!
|
||||||
|
|
||||||
|
8. Get gettext and iconv DLLs from the following site:
|
||||||
|
https://github.com/mlocati/gettext-iconv-windows/releases
|
||||||
|
Both 64- and 32-bit versions are needed.
|
||||||
|
Download the files gettextX.X.X.X-iconvX.XX-shared-{32,64}.zip, extract
|
||||||
|
DLLs and place them as follows:
|
||||||
|
|
||||||
|
<GETTEXT directory>
|
||||||
|
|
|
||||||
|
+ gettext32/
|
||||||
|
| libintl-8.dll
|
||||||
|
| libiconv-2.dll
|
||||||
|
| libgcc_s_sjlj-1.dll
|
||||||
|
|
|
||||||
|
` gettext64/
|
||||||
|
libintl-8.dll
|
||||||
|
libiconv-2.dll
|
||||||
|
|
||||||
|
The default <GETTEXT directory> is "..", however, you can change it by
|
||||||
|
passing /DGETTEXT=... option to the makensis command.
|
||||||
|
|
||||||
|
|
||||||
Install NSIS if you didn't do that already.
|
Install NSIS if you didn't do that already.
|
||||||
Also install UPX, if you want a compressed file.
|
Also install UPX, if you want a compressed file.
|
||||||
|
|
||||||
|
152
nsis/gvim.nsi
152
nsis/gvim.nsi
@ -20,8 +20,15 @@
|
|||||||
!define VIMTOOLS ..\..
|
!define VIMTOOLS ..\..
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
# Location of gettext.
|
||||||
|
# It must contain two directories: gettext32 and gettext64.
|
||||||
|
# See README.txt for detail.
|
||||||
|
!ifndef GETTEXT
|
||||||
|
!define GETTEXT ${VIMRT}
|
||||||
|
!endif
|
||||||
|
|
||||||
# Comment the next line if you don't have UPX.
|
# Comment the next line if you don't have UPX.
|
||||||
# Get it at http://upx.sourceforge.net
|
# Get it at https://upx.github.io/
|
||||||
!define HAVE_UPX
|
!define HAVE_UPX
|
||||||
|
|
||||||
# comment the next line if you do not want to add Native Language Support
|
# comment the next line if you do not want to add Native Language Support
|
||||||
@ -76,11 +83,17 @@ SilentInstall normal
|
|||||||
# These are the pages we use
|
# These are the pages we use
|
||||||
Page license
|
Page license
|
||||||
Page components
|
Page components
|
||||||
|
Page custom SetCustom ValidateCustom ": _vimrc setting"
|
||||||
Page directory "" "" CheckInstallDir
|
Page directory "" "" CheckInstallDir
|
||||||
Page instfiles
|
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
|
||||||
|
|
||||||
@ -128,6 +141,10 @@ Function .onInit
|
|||||||
StrCpy $1 "-register-OLE"
|
StrCpy $1 "-register-OLE"
|
||||||
StrCpy $2 "gvim evim gview gvimdiff vimtutor"
|
StrCpy $2 "gvim evim gview gvimdiff vimtutor"
|
||||||
|
|
||||||
|
# Extract InstallOptions files
|
||||||
|
# $PLUGINSDIR will automatically be removed when the installer closes
|
||||||
|
InitPluginsDir
|
||||||
|
File /oname=$PLUGINSDIR\vimrc.ini "vimrc.ini"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function .onUserAbort
|
Function .onUserAbort
|
||||||
@ -179,7 +196,7 @@ FunctionEnd
|
|||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
Section "Vim executables and runtime files"
|
Section "Vim executables and runtime files"
|
||||||
SectionIn 1 2 3
|
SectionIn 1 2 3 RO
|
||||||
|
|
||||||
# we need also this here if the user changes the instdir
|
# we need also this here if the user changes the instdir
|
||||||
StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}"
|
StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}"
|
||||||
@ -219,6 +236,14 @@ Section "Vim executables and runtime files"
|
|||||||
|
|
||||||
SetOutPath $0\macros
|
SetOutPath $0\macros
|
||||||
File ${VIMRT}\macros\*.*
|
File ${VIMRT}\macros\*.*
|
||||||
|
SetOutPath $0\macros\hanoi
|
||||||
|
File ${VIMRT}\macros\hanoi\*.*
|
||||||
|
SetOutPath $0\macros\life
|
||||||
|
File ${VIMRT}\macros\life\*.*
|
||||||
|
SetOutPath $0\macros\maze
|
||||||
|
File ${VIMRT}\macros\maze\*.*
|
||||||
|
SetOutPath $0\macros\urm
|
||||||
|
File ${VIMRT}\macros\urm\*.*
|
||||||
|
|
||||||
SetOutPath $0\pack\dist\opt\dvorak\dvorak
|
SetOutPath $0\pack\dist\opt\dvorak\dvorak
|
||||||
File ${VIMRT}\pack\dist\opt\dvorak\dvorak\*.*
|
File ${VIMRT}\pack\dist\opt\dvorak\dvorak\*.*
|
||||||
@ -242,12 +267,18 @@ 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\*.*
|
||||||
|
|
||||||
SetOutPath $0\autoload
|
SetOutPath $0\autoload
|
||||||
File ${VIMRT}\autoload\*.*
|
File ${VIMRT}\autoload\*.*
|
||||||
|
|
||||||
|
SetOutPath $0\autoload\dist
|
||||||
|
File ${VIMRT}\autoload\dist\*.*
|
||||||
|
|
||||||
SetOutPath $0\autoload\xml
|
SetOutPath $0\autoload\xml
|
||||||
File ${VIMRT}\autoload\xml\*.*
|
File ${VIMRT}\autoload\xml\*.*
|
||||||
|
|
||||||
@ -320,24 +351,67 @@ Section "Add an Edit-with-Vim context menu entry"
|
|||||||
SetOutPath $0
|
SetOutPath $0
|
||||||
ClearErrors
|
ClearErrors
|
||||||
SetOverwrite try
|
SetOverwrite try
|
||||||
|
|
||||||
${If} ${RunningX64}
|
${If} ${RunningX64}
|
||||||
|
# Install 64-bit gvimext.dll into the GvimExt64 directory.
|
||||||
|
SetOutPath $0\GvimExt64
|
||||||
|
ClearErrors
|
||||||
File /oname=gvimext.dll ${VIMSRC}\GvimExt\gvimext64.dll
|
File /oname=gvimext.dll ${VIMSRC}\GvimExt\gvimext64.dll
|
||||||
${Else}
|
!ifdef HAVE_NLS
|
||||||
File /oname=gvimext.dll ${VIMSRC}\GvimExt\gvimext.dll
|
File ${GETTEXT}\gettext64\libintl-8.dll
|
||||||
|
File ${GETTEXT}\gettext64\libiconv-2.dll
|
||||||
|
!endif
|
||||||
|
|
||||||
|
IfErrors 0 GvimExt64Done
|
||||||
|
|
||||||
|
# Can't copy gvimext.dll, create it under another name and rename it
|
||||||
|
# on next reboot.
|
||||||
|
GetTempFileName $3 $0\GvimExt64
|
||||||
|
File /oname=$3 ${VIMSRC}\GvimExt\gvimext64.dll
|
||||||
|
Rename /REBOOTOK $3 $0\GvimExt64\gvimext.dll
|
||||||
|
!ifdef HAVE_NLS
|
||||||
|
GetTempFileName $3 $0\GvimExt64
|
||||||
|
File /oname=$3 ${GETTEXT}\gettext64\libintl-8.dll
|
||||||
|
Rename /REBOOTOK $3 $0\GvimExt64\libintl-8.dll
|
||||||
|
GetTempFileName $3 $0\GvimExt64
|
||||||
|
File /oname=$3 ${GETTEXT}\gettext64\libiconv-2.dll
|
||||||
|
Rename /REBOOTOK $3 $0\GvimExt64\libiconv-2.dll
|
||||||
|
!endif
|
||||||
${EndIf}
|
${EndIf}
|
||||||
IfErrors 0 GvimExtDone
|
|
||||||
|
GvimExt64Done:
|
||||||
|
|
||||||
|
# Install 32-bit gvimext.dll into the GvimExt32 directory.
|
||||||
|
SetOutPath $0\GvimExt32
|
||||||
|
ClearErrors
|
||||||
|
|
||||||
|
File /oname=gvimext.dll ${VIMSRC}\GvimExt\gvimext.dll
|
||||||
|
!ifdef HAVE_NLS
|
||||||
|
File ${GETTEXT}\gettext32\libintl-8.dll
|
||||||
|
File ${GETTEXT}\gettext32\libiconv-2.dll
|
||||||
|
File ${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll
|
||||||
|
!endif
|
||||||
|
|
||||||
|
IfErrors 0 GvimExt32Done
|
||||||
|
|
||||||
# Can't copy gvimext.dll, create it under another name and rename it on
|
# Can't copy gvimext.dll, create it under another name and rename it on
|
||||||
# next reboot.
|
# next reboot.
|
||||||
GetTempFileName $3 $0
|
GetTempFileName $3 $0\GvimExt32
|
||||||
${If} ${RunningX64}
|
File /oname=$3 ${VIMSRC}\GvimExt\gvimext.dll
|
||||||
File /oname=$3 ${VIMSRC}\GvimExt\gvimext64.dll
|
Rename /REBOOTOK $3 $0\GvimExt32\gvimext.dll
|
||||||
${Else}
|
!ifdef HAVE_NLS
|
||||||
File /oname=$3 ${VIMSRC}\GvimExt\gvimext.dll
|
GetTempFileName $3 $0\GvimExt32
|
||||||
${EndIf}
|
File /oname=$3 ${GETTEXT}\gettext32\libintl-8.dll
|
||||||
Rename /REBOOTOK $3 $0\gvimext.dll
|
Rename /REBOOTOK $3 $0\GvimExt32\libintl-8.dll
|
||||||
|
GetTempFileName $3 $0\GvimExt32
|
||||||
|
File /oname=$3 ${GETTEXT}\gettext32\libiconv-2.dll
|
||||||
|
Rename /REBOOTOK $3 $0\GvimExt32\libiconv-2.dll
|
||||||
|
GetTempFileName $3 $0\GvimExt32
|
||||||
|
File /oname=$3 ${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll
|
||||||
|
Rename /REBOOTOK $3 $0\GvimExt32\libgcc_s_sjlj-1.dll
|
||||||
|
!endif
|
||||||
|
|
||||||
GvimExtDone:
|
GvimExt32Done:
|
||||||
SetOverwrite lastused
|
SetOverwrite lastused
|
||||||
|
|
||||||
# We don't have a separate entry for the "Open With..." menu, assume
|
# We don't have a separate entry for the "Open With..." menu, assume
|
||||||
@ -346,7 +420,7 @@ Section "Add an Edit-with-Vim context menu entry"
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
Section "Create a _vimrc if it doesn't exist"
|
Section "Create a _vimrc if it doesn't exist" sec_vimrc_id
|
||||||
SectionIn 1 3
|
SectionIn 1 3
|
||||||
|
|
||||||
StrCpy $1 "$1 -create-vimrc"
|
StrCpy $1 "$1 -create-vimrc"
|
||||||
@ -386,10 +460,10 @@ SectionEnd
|
|||||||
File ${VIMRT}\keymap\README.txt
|
File ${VIMRT}\keymap\README.txt
|
||||||
File ${VIMRT}\keymap\*.vim
|
File ${VIMRT}\keymap\*.vim
|
||||||
SetOutPath $0
|
SetOutPath $0
|
||||||
File ${VIMRT}\libintl-8.dll
|
File ${GETTEXT}\gettext32\libintl-8.dll
|
||||||
File ${VIMRT}\libiconv-2.dll
|
File ${GETTEXT}\gettext32\libiconv-2.dll
|
||||||
File /nonfatal ${VIMRT}\libwinpthread-1.dll
|
#File /nonfatal ${VIMRT}\libwinpthread-1.dll
|
||||||
File /nonfatal ${VIMRT}\libgcc_s_sjlj-1.dll
|
File /nonfatal ${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll
|
||||||
SectionEnd
|
SectionEnd
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
@ -404,6 +478,43 @@ Section -post
|
|||||||
BringToFront
|
BringToFront
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
##########################################################
|
||||||
|
Function SetCustom
|
||||||
|
# Display the InstallOptions dialog
|
||||||
|
|
||||||
|
# Check if a _vimrc should be created
|
||||||
|
SectionGetFlags ${sec_vimrc_id} $3
|
||||||
|
IntOp $3 $3 & 1
|
||||||
|
StrCmp $3 "1" +2 0
|
||||||
|
Abort
|
||||||
|
|
||||||
|
InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
|
||||||
|
Pop $3
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
|
Function ValidateCustom
|
||||||
|
ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 2" "State"
|
||||||
|
StrCmp $3 "1" 0 +3
|
||||||
|
StrCpy $1 "$1 -vimrc-remap no"
|
||||||
|
Goto behave
|
||||||
|
|
||||||
|
StrCpy $1 "$1 -vimrc-remap win"
|
||||||
|
|
||||||
|
behave:
|
||||||
|
ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 5" "State"
|
||||||
|
StrCmp $3 "1" 0 +3
|
||||||
|
StrCpy $1 "$1 -vimrc-behave unix"
|
||||||
|
Goto done
|
||||||
|
|
||||||
|
ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 6" "State"
|
||||||
|
StrCmp $3 "1" 0 +3
|
||||||
|
StrCpy $1 "$1 -vimrc-behave mswin"
|
||||||
|
Goto done
|
||||||
|
|
||||||
|
StrCpy $1 "$1 -vimrc-behave default"
|
||||||
|
done:
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
Section Uninstall
|
Section Uninstall
|
||||||
# Apparently $INSTDIR is set to the directory where the uninstaller is
|
# Apparently $INSTDIR is set to the directory where the uninstaller is
|
||||||
@ -429,6 +540,11 @@ Section Uninstall
|
|||||||
$\nIt contains the Vim executables and runtime files." IDNO NoRemoveExes
|
$\nIt contains the Vim executables and runtime files." IDNO NoRemoveExes
|
||||||
|
|
||||||
Delete /REBOOTOK $0\*.dll
|
Delete /REBOOTOK $0\*.dll
|
||||||
|
Delete /REBOOTOK $0\GvimExt32\*.dll
|
||||||
|
${If} ${RunningX64}
|
||||||
|
Delete /REBOOTOK $0\GvimExt64\*.dll
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
ClearErrors
|
ClearErrors
|
||||||
# Remove everything but *.dll files. Avoids that
|
# Remove everything but *.dll files. Avoids that
|
||||||
# a lot remains when gvimext.dll cannot be deleted.
|
# a lot remains when gvimext.dll cannot be deleted.
|
||||||
|
@ -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 |
68
nsis/vimrc.ini
Normal file
68
nsis/vimrc.ini
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
[Settings]
|
||||||
|
NumFields=7
|
||||||
|
|
||||||
|
[Field 1]
|
||||||
|
Type=GroupBox
|
||||||
|
Left=0
|
||||||
|
Right=-1
|
||||||
|
Top=0
|
||||||
|
Bottom=53
|
||||||
|
Text=" Key remapping "
|
||||||
|
|
||||||
|
[Field 2]
|
||||||
|
Type=radiobutton
|
||||||
|
Text=Do not remap keys for Windows behavior (Default)
|
||||||
|
Left=10
|
||||||
|
Right=-10
|
||||||
|
Top=17
|
||||||
|
Bottom=25
|
||||||
|
State=1
|
||||||
|
Flags=GROUP
|
||||||
|
|
||||||
|
[Field 3]
|
||||||
|
Type=radiobutton
|
||||||
|
Text=Remap a few keys for Windows behavior (<C-V>, <C-C>, <C-A>, <C-S>, <C-F>, etc)
|
||||||
|
Left=10
|
||||||
|
Right=-10
|
||||||
|
Top=30
|
||||||
|
Bottom=47
|
||||||
|
State=0
|
||||||
|
Flags=NOTABSTOP
|
||||||
|
|
||||||
|
[Field 4]
|
||||||
|
Type=GroupBox
|
||||||
|
Left=0
|
||||||
|
Right=-1
|
||||||
|
Top=55
|
||||||
|
Bottom=-5
|
||||||
|
Text=" Mouse behavior "
|
||||||
|
|
||||||
|
[Field 5]
|
||||||
|
Type=radiobutton
|
||||||
|
Text=Right button extends selection, left button starts visual mode (Unix)
|
||||||
|
Left=10
|
||||||
|
Right=-5
|
||||||
|
Top=72
|
||||||
|
Bottom=80
|
||||||
|
State=0
|
||||||
|
Flags=GROUP
|
||||||
|
|
||||||
|
[Field 6]
|
||||||
|
Type=radiobutton
|
||||||
|
Text=Right button has a popup menu, left button starts select mode (Windows)
|
||||||
|
Left=10
|
||||||
|
Right=-5
|
||||||
|
Top=85
|
||||||
|
Bottom=93
|
||||||
|
State=0
|
||||||
|
Flags=NOTABSTOP
|
||||||
|
|
||||||
|
[Field 7]
|
||||||
|
Type=radiobutton
|
||||||
|
Text=Right button has a popup menu, left button starts visual mode (Default)
|
||||||
|
Left=10
|
||||||
|
Right=-5
|
||||||
|
Top=98
|
||||||
|
Bottom=106
|
||||||
|
State=1
|
||||||
|
Flags=NOTABSTOP
|
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
|
@ -591,7 +591,7 @@ function ada#Map_Menu (Text, Keys, Command)
|
|||||||
\" :" . a:Command
|
\" :" . a:Command
|
||||||
execute
|
execute
|
||||||
\ "inoremap <buffer>" .
|
\ "inoremap <buffer>" .
|
||||||
\ " <Learder>a" . a:Keys .
|
\ " <Leader>a" . a:Keys .
|
||||||
\" <C-O>:" . a:Command
|
\" <C-O>:" . a:Command
|
||||||
endif
|
endif
|
||||||
return
|
return
|
||||||
|
@ -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 = []
|
||||||
|
745
runtime/autoload/dist/ft.vim
vendored
Normal file
745
runtime/autoload/dist/ft.vim
vendored
Normal file
@ -0,0 +1,745 @@
|
|||||||
|
" Vim functions for file type detection
|
||||||
|
"
|
||||||
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
" Last Change: 2017 Dec 05
|
||||||
|
|
||||||
|
" These functions are moved here from runtime/filetype.vim to make startup
|
||||||
|
" faster.
|
||||||
|
|
||||||
|
" Line continuation is used here, remove 'C' from 'cpoptions'
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
func dist#ft#Check_inp()
|
||||||
|
if getline(1) =~ '^\*'
|
||||||
|
setf abaqus
|
||||||
|
else
|
||||||
|
let n = 1
|
||||||
|
if line("$") > 500
|
||||||
|
let nmax = 500
|
||||||
|
else
|
||||||
|
let nmax = line("$")
|
||||||
|
endif
|
||||||
|
while n <= nmax
|
||||||
|
if getline(n) =~? "^header surface data"
|
||||||
|
setf trasys
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" This function checks for the kind of assembly that is wanted by the user, or
|
||||||
|
" can be detected from the first five lines of the file.
|
||||||
|
func dist#ft#FTasm()
|
||||||
|
" make sure b:asmsyntax exists
|
||||||
|
if !exists("b:asmsyntax")
|
||||||
|
let b:asmsyntax = ""
|
||||||
|
endif
|
||||||
|
|
||||||
|
if b:asmsyntax == ""
|
||||||
|
call dist#ft#FTasmsyntax()
|
||||||
|
endif
|
||||||
|
|
||||||
|
" if b:asmsyntax still isn't set, default to asmsyntax or GNU
|
||||||
|
if b:asmsyntax == ""
|
||||||
|
if exists("g:asmsyntax")
|
||||||
|
let b:asmsyntax = g:asmsyntax
|
||||||
|
else
|
||||||
|
let b:asmsyntax = "asm"
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
exe "setf " . fnameescape(b:asmsyntax)
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTasmsyntax()
|
||||||
|
" see if file contains any asmsyntax=foo overrides. If so, change
|
||||||
|
" b:asmsyntax appropriately
|
||||||
|
let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4).
|
||||||
|
\" ".getline(5)." "
|
||||||
|
let match = matchstr(head, '\sasmsyntax=\zs[a-zA-Z0-9]\+\ze\s')
|
||||||
|
if match != ''
|
||||||
|
let b:asmsyntax = match
|
||||||
|
elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library'))
|
||||||
|
let b:asmsyntax = "vmasm"
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" Check if one of the first five lines contains "VB_Name". In that case it is
|
||||||
|
" probably a Visual Basic file. Otherwise it's assumed to be "alt" filetype.
|
||||||
|
func dist#ft#FTVB(alt)
|
||||||
|
if getline(1).getline(2).getline(3).getline(4).getline(5) =~? 'VB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)'
|
||||||
|
setf vb
|
||||||
|
else
|
||||||
|
exe "setf " . a:alt
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTbtm()
|
||||||
|
if exists("g:dosbatch_syntax_for_btm") && g:dosbatch_syntax_for_btm
|
||||||
|
setf dosbatch
|
||||||
|
else
|
||||||
|
setf btm
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#BindzoneCheck(default)
|
||||||
|
if getline(1).getline(2).getline(3).getline(4) =~ '^; <<>> DiG [0-9.]\+.* <<>>\|$ORIGIN\|$TTL\|IN\s\+SOA'
|
||||||
|
setf bindzone
|
||||||
|
elseif a:default != ''
|
||||||
|
exe 'setf ' . a:default
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTlpc()
|
||||||
|
if exists("g:lpc_syntax_for_c")
|
||||||
|
let lnum = 1
|
||||||
|
while lnum <= 12
|
||||||
|
if getline(lnum) =~# '^\(//\|inherit\|private\|protected\|nosave\|string\|object\|mapping\|mixed\)'
|
||||||
|
setf lpc
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let lnum = lnum + 1
|
||||||
|
endwhile
|
||||||
|
endif
|
||||||
|
setf c
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTheader()
|
||||||
|
if match(getline(1, min([line("$"), 200])), '^@\(interface\|end\|class\)') > -1
|
||||||
|
if exists("g:c_syntax_for_h")
|
||||||
|
setf objc
|
||||||
|
else
|
||||||
|
setf objcpp
|
||||||
|
endif
|
||||||
|
elseif exists("g:c_syntax_for_h")
|
||||||
|
setf c
|
||||||
|
elseif exists("g:ch_syntax_for_h")
|
||||||
|
setf ch
|
||||||
|
else
|
||||||
|
setf cpp
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" This function checks if one of the first ten lines start with a '@'. In
|
||||||
|
" that case it is probably a change 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.
|
||||||
|
" Otherwise CHILL is assumed.
|
||||||
|
func dist#ft#FTchange()
|
||||||
|
let lnum = 1
|
||||||
|
while lnum <= 10
|
||||||
|
if getline(lnum)[0] == '@'
|
||||||
|
setf change
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if lnum == 1 && (getline(1)[0] == '#' || getline(1)[0] == '!')
|
||||||
|
setf ch
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if getline(lnum) =~ "MODULE"
|
||||||
|
setf chill
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if getline(lnum) =~ 'main\s*(\|#\s*include\|//'
|
||||||
|
setf ch
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let lnum = lnum + 1
|
||||||
|
endwhile
|
||||||
|
setf chill
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTent()
|
||||||
|
" This function checks for valid cl syntax in the first five lines.
|
||||||
|
" Look for either an opening comment, '#', or a block start, '{".
|
||||||
|
" If not found, assume SGML.
|
||||||
|
let lnum = 1
|
||||||
|
while lnum < 6
|
||||||
|
let line = getline(lnum)
|
||||||
|
if line =~ '^\s*[#{]'
|
||||||
|
setf cl
|
||||||
|
return
|
||||||
|
elseif line !~ '^\s*$'
|
||||||
|
" Not a blank line, not a comment, and not a block start,
|
||||||
|
" so doesn't look like valid cl code.
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let lnum = lnum + 1
|
||||||
|
endw
|
||||||
|
setf dtd
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#EuphoriaCheck()
|
||||||
|
if exists('g:filetype_euphoria')
|
||||||
|
exe 'setf ' . g:filetype_euphoria
|
||||||
|
else
|
||||||
|
setf euphoria3
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#DtraceCheck()
|
||||||
|
let lines = getline(1, min([line("$"), 100]))
|
||||||
|
if match(lines, '^module\>\|^import\>') > -1
|
||||||
|
" D files often start with a module and/or import statement.
|
||||||
|
setf d
|
||||||
|
elseif match(lines, '^#!\S\+dtrace\|#pragma\s\+D\s\+option\|:\S\{-}:\S\{-}:') > -1
|
||||||
|
setf dtrace
|
||||||
|
else
|
||||||
|
setf d
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTe()
|
||||||
|
if exists('g:filetype_euphoria')
|
||||||
|
exe 'setf ' . g:filetype_euphoria
|
||||||
|
else
|
||||||
|
let n = 1
|
||||||
|
while n < 100 && n < line("$")
|
||||||
|
if getline(n) =~ "^\\s*\\(<'\\|'>\\)\\s*$"
|
||||||
|
setf specman
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
setf eiffel
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" Distinguish between HTML, XHTML and Django
|
||||||
|
func dist#ft#FThtml()
|
||||||
|
let n = 1
|
||||||
|
while n < 10 && n < line("$")
|
||||||
|
if getline(n) =~ '\<DTD\s\+XHTML\s'
|
||||||
|
setf xhtml
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if getline(n) =~ '{%\s*\(extends\|block\|load\)\>\|{#\s\+'
|
||||||
|
setf htmldjango
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
setf html
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" Distinguish between standard IDL and MS-IDL
|
||||||
|
func dist#ft#FTidl()
|
||||||
|
let n = 1
|
||||||
|
while n < 50 && n < line("$")
|
||||||
|
if getline(n) =~ '^\s*import\s\+"\(unknwn\|objidl\)\.idl"'
|
||||||
|
setf msidl
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
setf idl
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" Distinguish between "default" and Cproto prototype file. */
|
||||||
|
func dist#ft#ProtoCheck(default)
|
||||||
|
" Cproto files have a comment in the first line and a function prototype in
|
||||||
|
" the second line, it always ends in ";". Indent files may also have
|
||||||
|
" comments, thus we can't match comments to see the difference.
|
||||||
|
" IDL files can have a single ';' in the second line, require at least one
|
||||||
|
" chacter before the ';'.
|
||||||
|
if getline(2) =~ '.;$'
|
||||||
|
setf cpp
|
||||||
|
else
|
||||||
|
exe 'setf ' . a:default
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTm()
|
||||||
|
let n = 1
|
||||||
|
let saw_comment = 0 " Whether we've seen a multiline comment leader.
|
||||||
|
while n < 100
|
||||||
|
let line = getline(n)
|
||||||
|
if line =~ '^\s*/\*'
|
||||||
|
" /* ... */ is a comment in Objective C and Murphi, so we can't conclude
|
||||||
|
" it's either of them yet, but track this as a hint in case we don't see
|
||||||
|
" anything more definitive.
|
||||||
|
let saw_comment = 1
|
||||||
|
endif
|
||||||
|
if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|//\)'
|
||||||
|
setf objc
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if line =~ '^\s*%'
|
||||||
|
setf matlab
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if line =~ '^\s*(\*'
|
||||||
|
setf mma
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if line =~ '^\c\s*\(\(type\|var\)\>\|--\)'
|
||||||
|
setf murphi
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
if saw_comment
|
||||||
|
" We didn't see anything definitive, but this looks like either Objective C
|
||||||
|
" or Murphi based on the comment leader. Assume the former as it is more
|
||||||
|
" common.
|
||||||
|
setf objc
|
||||||
|
elseif exists("g:filetype_m")
|
||||||
|
" Use user specified default filetype for .m
|
||||||
|
exe "setf " . g:filetype_m
|
||||||
|
else
|
||||||
|
" Default is matlab
|
||||||
|
setf matlab
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTmms()
|
||||||
|
let n = 1
|
||||||
|
while n < 10
|
||||||
|
let line = getline(n)
|
||||||
|
if line =~ '^\s*\(%\|//\)' || line =~ '^\*'
|
||||||
|
setf mmix
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if line =~ '^\s*#'
|
||||||
|
setf make
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
setf mmix
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" This function checks if one of the first five lines start with a dot. In
|
||||||
|
" that case it is probably an nroff file: 'filetype' is set and 1 is returned.
|
||||||
|
func dist#ft#FTnroff()
|
||||||
|
if getline(1)[0] . getline(2)[0] . getline(3)[0] . getline(4)[0] . getline(5)[0] =~ '\.'
|
||||||
|
setf nroff
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
return 0
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTmm()
|
||||||
|
let n = 1
|
||||||
|
while n < 10
|
||||||
|
let line = getline(n)
|
||||||
|
if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)'
|
||||||
|
setf objcpp
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
setf nroff
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTpl()
|
||||||
|
if exists("g:filetype_pl")
|
||||||
|
exe "setf " . g:filetype_pl
|
||||||
|
else
|
||||||
|
" recognize Prolog by specific text in the first non-empty line
|
||||||
|
" require a blank after the '%' because Perl uses "%list" and "%translate"
|
||||||
|
let l = getline(nextnonblank(1))
|
||||||
|
if l =~ '\<prolog\>' || l =~ '^\s*\(%\+\(\s\|$\)\|/\*\)' || l =~ ':-'
|
||||||
|
setf prolog
|
||||||
|
else
|
||||||
|
setf perl
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTinc()
|
||||||
|
if exists("g:filetype_inc")
|
||||||
|
exe "setf " . g:filetype_inc
|
||||||
|
else
|
||||||
|
let lines = getline(1).getline(2).getline(3)
|
||||||
|
if lines =~? "perlscript"
|
||||||
|
setf aspperl
|
||||||
|
elseif lines =~ "<%"
|
||||||
|
setf aspvbs
|
||||||
|
elseif lines =~ "<?"
|
||||||
|
setf php
|
||||||
|
else
|
||||||
|
call dist#ft#FTasmsyntax()
|
||||||
|
if exists("b:asmsyntax")
|
||||||
|
exe "setf " . fnameescape(b:asmsyntax)
|
||||||
|
else
|
||||||
|
setf pov
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTprogress_cweb()
|
||||||
|
if exists("g:filetype_w")
|
||||||
|
exe "setf " . g:filetype_w
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if getline(1) =~ '&ANALYZE' || getline(3) =~ '&GLOBAL-DEFINE'
|
||||||
|
setf progress
|
||||||
|
else
|
||||||
|
setf cweb
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTprogress_asm()
|
||||||
|
if exists("g:filetype_i")
|
||||||
|
exe "setf " . g:filetype_i
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
" This function checks for an assembly comment the first ten lines.
|
||||||
|
" If not found, assume Progress.
|
||||||
|
let lnum = 1
|
||||||
|
while lnum <= 10 && lnum < line('$')
|
||||||
|
let line = getline(lnum)
|
||||||
|
if line =~ '^\s*;' || line =~ '^\*'
|
||||||
|
call dist#ft#FTasm()
|
||||||
|
return
|
||||||
|
elseif line !~ '^\s*$' || line =~ '^/\*'
|
||||||
|
" Not an empty line: Doesn't look like valid assembly code.
|
||||||
|
" Or it looks like a Progress /* comment
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let lnum = lnum + 1
|
||||||
|
endw
|
||||||
|
setf progress
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTprogress_pascal()
|
||||||
|
if exists("g:filetype_p")
|
||||||
|
exe "setf " . g:filetype_p
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
" This function checks for valid Pascal syntax in the first ten lines.
|
||||||
|
" Look for either an opening comment or a program start.
|
||||||
|
" If not found, assume Progress.
|
||||||
|
let lnum = 1
|
||||||
|
while lnum <= 10 && lnum < line('$')
|
||||||
|
let line = getline(lnum)
|
||||||
|
if line =~ '^\s*\(program\|unit\|procedure\|function\|const\|type\|var\)\>'
|
||||||
|
\ || line =~ '^\s*{' || line =~ '^\s*(\*'
|
||||||
|
setf pascal
|
||||||
|
return
|
||||||
|
elseif line !~ '^\s*$' || line =~ '^/\*'
|
||||||
|
" Not an empty line: Doesn't look like valid Pascal code.
|
||||||
|
" Or it looks like a Progress /* comment
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let lnum = lnum + 1
|
||||||
|
endw
|
||||||
|
setf progress
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTr()
|
||||||
|
let max = line("$") > 50 ? 50 : line("$")
|
||||||
|
|
||||||
|
for n in range(1, max)
|
||||||
|
" Rebol is easy to recognize, check for that first
|
||||||
|
if getline(n) =~? '\<REBOL\>'
|
||||||
|
setf rebol
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
for n in range(1, max)
|
||||||
|
" R has # comments
|
||||||
|
if getline(n) =~ '^\s*#'
|
||||||
|
setf r
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
" Rexx has /* comments */
|
||||||
|
if getline(n) =~ '^\s*/\*'
|
||||||
|
setf rexx
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" Nothing recognized, use user default or assume Rexx
|
||||||
|
if exists("g:filetype_r")
|
||||||
|
exe "setf " . g:filetype_r
|
||||||
|
else
|
||||||
|
" Rexx used to be the default, but R appears to be much more popular.
|
||||||
|
setf r
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#McSetf()
|
||||||
|
" Rely on the file to start with a comment.
|
||||||
|
" MS message text files use ';', Sendmail files use '#' or 'dnl'
|
||||||
|
for lnum in range(1, min([line("$"), 20]))
|
||||||
|
let line = getline(lnum)
|
||||||
|
if line =~ '^\s*\(#\|dnl\)'
|
||||||
|
setf m4 " Sendmail .mc file
|
||||||
|
return
|
||||||
|
elseif line =~ '^\s*;'
|
||||||
|
setf msmessages " MS Message text file
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
setf m4 " Default: Sendmail .mc file
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" Called from filetype.vim and scripts.vim.
|
||||||
|
func dist#ft#SetFileTypeSH(name)
|
||||||
|
if expand("<amatch>") =~ g:ft_ignore_pat
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if a:name =~ '\<csh\>'
|
||||||
|
" Some .sh scripts contain #!/bin/csh.
|
||||||
|
call dist#ft#SetFileTypeShell("csh")
|
||||||
|
return
|
||||||
|
elseif a:name =~ '\<tcsh\>'
|
||||||
|
" Some .sh scripts contain #!/bin/tcsh.
|
||||||
|
call dist#ft#SetFileTypeShell("tcsh")
|
||||||
|
return
|
||||||
|
elseif a:name =~ '\<zsh\>'
|
||||||
|
" Some .sh scripts contain #!/bin/zsh.
|
||||||
|
call dist#ft#SetFileTypeShell("zsh")
|
||||||
|
return
|
||||||
|
elseif a:name =~ '\<ksh\>'
|
||||||
|
let b:is_kornshell = 1
|
||||||
|
if exists("b:is_bash")
|
||||||
|
unlet b:is_bash
|
||||||
|
endif
|
||||||
|
if exists("b:is_sh")
|
||||||
|
unlet b:is_sh
|
||||||
|
endif
|
||||||
|
elseif exists("g:bash_is_sh") || a:name =~ '\<bash\>' || a:name =~ '\<bash2\>'
|
||||||
|
let b:is_bash = 1
|
||||||
|
if exists("b:is_kornshell")
|
||||||
|
unlet b:is_kornshell
|
||||||
|
endif
|
||||||
|
if exists("b:is_sh")
|
||||||
|
unlet b:is_sh
|
||||||
|
endif
|
||||||
|
elseif a:name =~ '\<sh\>'
|
||||||
|
let b:is_sh = 1
|
||||||
|
if exists("b:is_kornshell")
|
||||||
|
unlet b:is_kornshell
|
||||||
|
endif
|
||||||
|
if exists("b:is_bash")
|
||||||
|
unlet b:is_bash
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
call dist#ft#SetFileTypeShell("sh")
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" For shell-like file types, check for an "exec" command hidden in a comment,
|
||||||
|
" as used for Tcl.
|
||||||
|
" Also called from scripts.vim, thus can't be local to this script.
|
||||||
|
func dist#ft#SetFileTypeShell(name)
|
||||||
|
if expand("<amatch>") =~ g:ft_ignore_pat
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let l = 2
|
||||||
|
while l < 20 && l < line("$") && getline(l) =~ '^\s*\(#\|$\)'
|
||||||
|
" Skip empty and comment lines.
|
||||||
|
let l = l + 1
|
||||||
|
endwhile
|
||||||
|
if l < line("$") && getline(l) =~ '\s*exec\s' && getline(l - 1) =~ '^\s*#.*\\$'
|
||||||
|
" Found an "exec" line after a comment with continuation
|
||||||
|
let n = substitute(getline(l),'\s*exec\s\+\([^ ]*/\)\=', '', '')
|
||||||
|
if n =~ '\<tclsh\|\<wish'
|
||||||
|
setf tcl
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
exe "setf " . a:name
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#CSH()
|
||||||
|
if exists("g:filetype_csh")
|
||||||
|
call dist#ft#SetFileTypeShell(g:filetype_csh)
|
||||||
|
elseif &shell =~ "tcsh"
|
||||||
|
call dist#ft#SetFileTypeShell("tcsh")
|
||||||
|
else
|
||||||
|
call dist#ft#SetFileTypeShell("csh")
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
|
||||||
|
func dist#ft#FTRules()
|
||||||
|
let path = expand('<amatch>:p')
|
||||||
|
if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|lib/udev/\%(rules\.d/\)\=.*\.rules\)$'
|
||||||
|
setf udevrules
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if path =~ '^/etc/ufw/'
|
||||||
|
setf conf " Better than hog
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if path =~ '^/\(etc\|usr/share\)/polkit-1/rules\.d'
|
||||||
|
setf javascript
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
try
|
||||||
|
let config_lines = readfile('/etc/udev/udev.conf')
|
||||||
|
catch /^Vim\%((\a\+)\)\=:E484/
|
||||||
|
setf hog
|
||||||
|
return
|
||||||
|
endtry
|
||||||
|
let dir = expand('<amatch>:p:h')
|
||||||
|
for line in config_lines
|
||||||
|
if line =~ s:ft_rules_udev_rules_pattern
|
||||||
|
let udev_rules = substitute(line, s:ft_rules_udev_rules_pattern, '\1', "")
|
||||||
|
if dir == udev_rules
|
||||||
|
setf udevrules
|
||||||
|
endif
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
setf hog
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#SQL()
|
||||||
|
if exists("g:filetype_sql")
|
||||||
|
exe "setf " . g:filetype_sql
|
||||||
|
else
|
||||||
|
setf sql
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" If the file has an extension of 't' and is in a directory 't' or 'xt' then
|
||||||
|
" it is almost certainly a Perl test file.
|
||||||
|
" If the first line starts with '#' and contains 'perl' it's probably a Perl
|
||||||
|
" file.
|
||||||
|
" (Slow test) If a file contains a 'use' statement then it is almost certainly
|
||||||
|
" a Perl file.
|
||||||
|
func dist#ft#FTperl()
|
||||||
|
let dirname = expand("%:p:h:t")
|
||||||
|
if expand("%:e") == 't' && (dirname == 't' || dirname == 'xt')
|
||||||
|
setf perl
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
if getline(1)[0] == '#' && getline(1) =~ 'perl'
|
||||||
|
setf perl
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
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
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
return 0
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" Choose context, plaintex, or tex (LaTeX) based on these rules:
|
||||||
|
" 1. Check the first line of the file for "%&<format>".
|
||||||
|
" 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.
|
||||||
|
func dist#ft#FTtex()
|
||||||
|
let firstline = getline(1)
|
||||||
|
if firstline =~ '^%&\s*\a\+'
|
||||||
|
let format = tolower(matchstr(firstline, '\a\+'))
|
||||||
|
let format = substitute(format, 'pdf', '', '')
|
||||||
|
if format == 'tex'
|
||||||
|
let format = 'latex'
|
||||||
|
elseif format == 'plaintex'
|
||||||
|
let format = 'plain'
|
||||||
|
endif
|
||||||
|
elseif expand('%') =~ 'tex/context/.*/.*.tex'
|
||||||
|
let format = 'context'
|
||||||
|
else
|
||||||
|
" Default value, may be changed later:
|
||||||
|
let format = exists("g:tex_flavor") ? g:tex_flavor : 'plain'
|
||||||
|
" Save position, go to the top of the file, find first non-comment line.
|
||||||
|
let save_cursor = getpos('.')
|
||||||
|
call cursor(1,1)
|
||||||
|
let firstNC = search('^\s*[^[:space:]%]', 'c', 1000)
|
||||||
|
if firstNC " Check the next thousand lines for a LaTeX or ConTeXt keyword.
|
||||||
|
let lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>'
|
||||||
|
let cpat = 'start\a\+\|setup\a\+\|usemodule\|enablemode\|enableregime\|setvariables\|useencoding\|usesymbols\|stelle\a\+\|verwende\a\+\|stel\a\+\|gebruik\a\+\|usa\a\+\|imposta\a\+\|regle\a\+\|utilisemodule\>'
|
||||||
|
let kwline = search('^\s*\\\%(' . lpat . '\)\|^\s*\\\(' . cpat . '\)',
|
||||||
|
\ 'cnp', firstNC + 1000)
|
||||||
|
if kwline == 1 " lpat matched
|
||||||
|
let format = 'latex'
|
||||||
|
elseif kwline == 2 " cpat matched
|
||||||
|
let format = 'context'
|
||||||
|
endif " If neither matched, keep default set above.
|
||||||
|
" let lline = search('^\s*\\\%(' . lpat . '\)', 'cn', firstNC + 1000)
|
||||||
|
" let cline = search('^\s*\\\%(' . cpat . '\)', 'cn', firstNC + 1000)
|
||||||
|
" if cline > 0
|
||||||
|
" let format = 'context'
|
||||||
|
" endif
|
||||||
|
" if lline > 0 && (cline == 0 || cline > lline)
|
||||||
|
" let format = 'tex'
|
||||||
|
" endif
|
||||||
|
endif " firstNC
|
||||||
|
call setpos('.', save_cursor)
|
||||||
|
endif " firstline =~ '^%&\s*\a\+'
|
||||||
|
|
||||||
|
" Translation from formats to file types. TODO: add AMSTeX, RevTex, others?
|
||||||
|
if format == 'plain'
|
||||||
|
setf plaintex
|
||||||
|
elseif format == 'context'
|
||||||
|
setf context
|
||||||
|
else " probably LaTeX
|
||||||
|
setf tex
|
||||||
|
endif
|
||||||
|
return
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTxml()
|
||||||
|
let n = 1
|
||||||
|
while n < 100 && n < line("$")
|
||||||
|
let line = getline(n)
|
||||||
|
" DocBook 4 or DocBook 5.
|
||||||
|
let is_docbook4 = line =~ '<!DOCTYPE.*DocBook'
|
||||||
|
let is_docbook5 = line =~ ' xmlns="http://docbook.org/ns/docbook"'
|
||||||
|
if is_docbook4 || is_docbook5
|
||||||
|
let b:docbk_type = "xml"
|
||||||
|
if is_docbook5
|
||||||
|
let b:docbk_ver = 5
|
||||||
|
else
|
||||||
|
let b:docbk_ver = 4
|
||||||
|
endif
|
||||||
|
setf docbk
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if line =~ 'xmlns:xbl="http://www.mozilla.org/xbl"'
|
||||||
|
setf xbl
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n += 1
|
||||||
|
endwhile
|
||||||
|
setf xml
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#FTy()
|
||||||
|
let n = 1
|
||||||
|
while n < 100 && n < line("$")
|
||||||
|
let line = getline(n)
|
||||||
|
if line =~ '^\s*%'
|
||||||
|
setf yacc
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if getline(n) =~ '^\s*\(#\|class\>\)' && getline(n) !~ '^\s*#\s*include'
|
||||||
|
setf racc
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let n = n + 1
|
||||||
|
endwhile
|
||||||
|
setf yacc
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#Redif()
|
||||||
|
let lnum = 1
|
||||||
|
while lnum <= 5 && lnum < line('$')
|
||||||
|
if getline(lnum) =~ "^\ctemplate-type:"
|
||||||
|
setf redif
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let lnum = lnum + 1
|
||||||
|
endwhile
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
|
" Restore 'cpoptions'
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
@ -1,6 +1,6 @@
|
|||||||
" Vim support file to help with paste mappings and menus
|
" Vim support file to help with paste mappings and menus
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2006 Jun 23
|
" Last Change: 2017 Aug 30
|
||||||
|
|
||||||
" Define the string to use for items that are present both in Edit, Popup and
|
" Define the string to use for items that are present both in Edit, Popup and
|
||||||
" Toolbar menu. Also used in mswin.vim and macmap.vim.
|
" Toolbar menu. Also used in mswin.vim and macmap.vim.
|
||||||
@ -12,7 +12,7 @@
|
|||||||
if has("virtualedit")
|
if has("virtualedit")
|
||||||
let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
|
let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
|
||||||
let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
|
let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
|
||||||
let paste#paste_cmd['i'] = 'x<BS><Esc>' . paste#paste_cmd['n'] . 'gi'
|
let paste#paste_cmd['i'] = "\<c-\>\<c-o>\"+gP"
|
||||||
|
|
||||||
func! paste#Paste()
|
func! paste#Paste()
|
||||||
let ove = &ve
|
let ove = &ve
|
||||||
|
@ -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'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
" Language: SQL
|
" Language: SQL
|
||||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||||
" Version: 16.0
|
" Version: 16.0
|
||||||
" Last Change: 2015 Dec 29
|
" Last Change: 2017 Oct 15
|
||||||
" Homepage: http://www.vim.org/scripts/script.php?script_id=1572
|
" Homepage: http://www.vim.org/scripts/script.php?script_id=1572
|
||||||
" Usage: For detailed help
|
" Usage: For detailed help
|
||||||
" ":help sql.txt"
|
" ":help sql.txt"
|
||||||
@ -860,7 +860,7 @@ function! s:SQLCGetColumns(table_name, list_type)
|
|||||||
|
|
||||||
" Start characterwise visual mode
|
" Start characterwise visual mode
|
||||||
" Advance right one character
|
" Advance right one character
|
||||||
" Search foward until one of the following:
|
" Search forward until one of the following:
|
||||||
" 1. Another select/update/delete statement
|
" 1. Another select/update/delete statement
|
||||||
" 2. A ; at the end of a line (the delimiter)
|
" 2. A ; at the end of a line (the delimiter)
|
||||||
" 3. The end of the file (incase no delimiter)
|
" 3. The end of the file (incase no delimiter)
|
||||||
|
111
runtime/autoload/xmlformat.vim
Normal file
111
runtime/autoload/xmlformat.vim
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
" Vim plugin for formatting XML
|
||||||
|
" Last Change: Thu, 22 May 2018 21:26:55 +0100
|
||||||
|
" 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)
|
||||||
|
return a:tag =~? '^\s*<[^/?]'
|
||||||
|
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
|
@ -343,7 +343,7 @@ xxd.man: xxd.1
|
|||||||
nroff -man xxd.1 | sed -e s/.//g > xxd.man
|
nroff -man xxd.1 | sed -e s/.//g > xxd.man
|
||||||
|
|
||||||
uganda.nsis.txt: uganda.txt
|
uganda.nsis.txt: uganda.txt
|
||||||
sed -e 's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e 's/vim:tw=78://' \
|
sed -e 's/[ ]*\*[-a-zA-Z0-9.]*\*//g' -e 's/vim:tw=78:.*//' \
|
||||||
uganda.txt | uniq >uganda.nsis.txt
|
uganda.txt | uniq >uganda.nsis.txt
|
||||||
|
|
||||||
# Awk version of .txt to .html conversion.
|
# Awk version of .txt to .html conversion.
|
||||||
@ -375,6 +375,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 Jul 14
|
*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].
|
||||||
@ -68,7 +69,14 @@ Note: The ":autocmd" command can only be followed by another command when the
|
|||||||
'|' appears before {cmd}. This works: >
|
'|' appears before {cmd}. This works: >
|
||||||
:augroup mine | au! BufRead | augroup END
|
:augroup mine | au! BufRead | augroup END
|
||||||
But this sees "augroup" as part of the defined command: >
|
But this sees "augroup" as part of the defined command: >
|
||||||
|
:augroup mine | au! BufRead * | augroup END
|
||||||
:augroup mine | au BufRead * set tw=70 | augroup END
|
:augroup mine | au BufRead * set tw=70 | augroup END
|
||||||
|
Instead you can put the group name into the command: >
|
||||||
|
:au! mine BufRead *
|
||||||
|
:au mine BufRead * set tw=70
|
||||||
|
Or use `:execute`: >
|
||||||
|
:augroup mine | exe "au! BufRead *" | augroup END
|
||||||
|
:augroup mine | exe "au BufRead * set tw=70" | augroup END
|
||||||
|
|
||||||
Note that special characters (e.g., "%", "<cword>") in the ":autocmd"
|
Note that special characters (e.g., "%", "<cword>") in the ":autocmd"
|
||||||
arguments are not expanded when the autocommand is defined. These will be
|
arguments are not expanded when the autocommand is defined. These will be
|
||||||
@ -85,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
|
||||||
|
|
||||||
@ -139,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.
|
||||||
|
|
||||||
@ -251,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
|
||||||
@ -279,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
|
||||||
|
|
||||||
@ -288,6 +301,8 @@ 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
|
||||||
|
|
||||||
|
|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
|
||||||
|
|
||||||
@ -315,6 +330,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
|
||||||
@ -323,7 +342,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
|
||||||
@ -445,6 +469,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.
|
||||||
@ -492,6 +519,29 @@ 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 After moving the cursor to the command line,
|
||||||
|
where the user can type a command or search
|
||||||
|
string.
|
||||||
|
<afile> is set to a single character,
|
||||||
|
indicating the type of command-line.
|
||||||
|
|cmdwin-char|
|
||||||
|
*CmdlineLeave*
|
||||||
|
CmdlineLeave Before leaving the command line.
|
||||||
|
Also when abandoning the command line, after
|
||||||
|
typing CTRL-C or <Esc>.
|
||||||
|
When the commands result in an error the
|
||||||
|
command line is still executed.
|
||||||
|
<afile> is set to a single character,
|
||||||
|
indicating the type of command-line.
|
||||||
|
|cmdwin-char|
|
||||||
*CmdwinEnter*
|
*CmdwinEnter*
|
||||||
CmdwinEnter After entering the command-line window.
|
CmdwinEnter After entering the command-line window.
|
||||||
Useful for setting options specifically for
|
Useful for setting options specifically for
|
||||||
@ -516,6 +566,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
|
||||||
@ -602,6 +656,24 @@ 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.
|
||||||
|
*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.
|
||||||
@ -739,7 +811,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
|
||||||
@ -817,6 +889,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
|
||||||
@ -885,6 +958,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.
|
||||||
@ -911,6 +985,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|
|
||||||
@ -933,10 +1012,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! :-)
|
||||||
@ -981,9 +1089,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
|
||||||
@ -1293,7 +1402,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*
|
||||||
@ -1484,4 +1593,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 May 12
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
@ -533,6 +529,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
|
||||||
@ -986,6 +983,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 +1446,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 +1880,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.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@ -770,5 +771,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 Jul 11
|
*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
|
||||||
@ -826,14 +835,21 @@ Also see |`=|.
|
|||||||
*:<cword>* *:<cWORD>* *:<cfile>* *<cfile>*
|
*:<cword>* *:<cWORD>* *:<cfile>* *<cfile>*
|
||||||
*:<sfile>* *<sfile>* *:<afile>* *<afile>*
|
*:<sfile>* *<sfile>* *:<afile>* *<afile>*
|
||||||
*:<abuf>* *<abuf>* *:<amatch>* *<amatch>*
|
*:<abuf>* *<abuf>* *:<amatch>* *<amatch>*
|
||||||
|
*:<cexpr>* *<cexpr>*
|
||||||
*<slnum>* *E495* *E496* *E497* *E499* *E500*
|
*<slnum>* *E495* *E496* *E497* *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|)
|
||||||
|
<cexpr> is replaced with the word under the cursor, including more
|
||||||
|
to form a C expression. E.g., when the cursor is on "arg"
|
||||||
|
of "ptr->arg" then the result is "ptr->arg"; when the
|
||||||
|
cursor is on "]" of "list[idx]" then the result is
|
||||||
|
"list[idx]". This is used for |v:beval_text|.
|
||||||
<cfile> is replaced with the path name under the cursor (like what
|
<cfile> is replaced with the path name under the cursor (like what
|
||||||
|gf| uses)
|
|gf| uses)
|
||||||
<afile> When executing autocommands, is replaced with the file name
|
<afile> When executing autocommands, is replaced with the file name
|
||||||
for a file read or write.
|
of the buffer being manipulated, or the file for a read or
|
||||||
|
write.
|
||||||
<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
|
||||||
@ -878,7 +894,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.
|
||||||
@ -1147,4 +1164,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 Feb 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
|
||||||
@ -10,7 +10,7 @@ eight versions of the same file.
|
|||||||
|
|
||||||
The basics are explained in section |08.7| of the user manual.
|
The basics are explained in section |08.7| of the user manual.
|
||||||
|
|
||||||
1. Starting diff mode |vimdiff|
|
1. Starting diff mode |start-vimdiff|
|
||||||
2. Viewing diffs |view-diffs|
|
2. Viewing diffs |view-diffs|
|
||||||
3. Jumping to diffs |jumpto-diffs|
|
3. Jumping to diffs |jumpto-diffs|
|
||||||
4. Copying diffs |copy-diffs|
|
4. Copying diffs |copy-diffs|
|
||||||
@ -19,7 +19,7 @@ The basics are explained in section |08.7| of the user manual.
|
|||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Starting diff mode
|
1. Starting diff mode *start-vimdiff*
|
||||||
|
|
||||||
The easiest way to start editing in diff mode is with the "vimdiff" command.
|
The easiest way to start editing in diff mode is with the "vimdiff" command.
|
||||||
This starts Vim as usual, and additionally sets up for viewing the differences
|
This starts Vim as usual, and additionally sets up for viewing the differences
|
||||||
@ -226,8 +226,8 @@ The diffs are highlighted with these groups:
|
|||||||
(searching from the end of the line). The
|
(searching from the end of the line). The
|
||||||
text in between is highlighted. This means
|
text in between is highlighted. This means
|
||||||
that parts in the middle that are still the
|
that parts in the middle that are still the
|
||||||
same are highlighted anyway. Only "iwhite" of
|
same are highlighted anyway. The 'diffopt'
|
||||||
'diffopt' is used here.
|
flags "iwhite" and "icase" are used here.
|
||||||
|hl-DiffDelete| DiffDelete Deleted lines. Also called filler lines,
|
|hl-DiffDelete| DiffDelete Deleted lines. Also called filler lines,
|
||||||
because they don't really exist in this
|
because they don't really exist in this
|
||||||
buffer.
|
buffer.
|
||||||
@ -326,7 +326,7 @@ g:diff_translations to zero: >
|
|||||||
|
|
||||||
let g:diff_translations = 0
|
let g:diff_translations = 0
|
||||||
<
|
<
|
||||||
After setting this variable, Reload the syntax script: >
|
After setting this variable, reload the syntax script: >
|
||||||
|
|
||||||
set syntax=diff
|
set syntax=diff
|
||||||
<
|
<
|
||||||
@ -384,12 +384,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 +445,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: 2016 Nov 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1488,4 +1488,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 Mar 29
|
||||||
|
|
||||||
|
|
||||||
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}
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@ -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:
|
||||||
|
1203
runtime/doc/eval.txt
1203
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 Mar 28
|
*filetype.txt* For Vim version 8.1. Last change: 2018 Apr 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -43,7 +43,7 @@ Detail: The ":filetype on" command will load one of these files:
|
|||||||
BufNewFile and BufRead events. If the file type is not found by the
|
BufNewFile and BufRead events. If the file type is not found by the
|
||||||
name, the file $VIMRUNTIME/scripts.vim is used to detect it from the
|
name, the file $VIMRUNTIME/scripts.vim is used to detect it from the
|
||||||
contents of the file.
|
contents of the file.
|
||||||
When the GUI is running or will start soon, the menu.vim script is
|
When the GUI is running or will start soon, the |menu.vim| script is
|
||||||
also sourced. See |'go-M'| about avoiding that.
|
also sourced. See |'go-M'| about avoiding that.
|
||||||
|
|
||||||
To add your own file types, see |new-filetype| below. To search for help on a
|
To add your own file types, see |new-filetype| below. To search for help on a
|
||||||
@ -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,35 +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-]).
|
||||||
|
|
||||||
Works on:
|
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
|
||||||
|
|
||||||
- Linux
|
export MANPAGER="vim -M +MANPAGER -"
|
||||||
- Mac OS
|
|
||||||
- FreeBSD
|
|
||||||
- Cygwin
|
|
||||||
- Win 10 under Bash
|
|
||||||
|
|
||||||
Untested:
|
For (t)csh, add to the config file
|
||||||
|
|
||||||
- Amiga OS
|
setenv MANPAGER "vim -M +MANPAGER -"
|
||||||
- BeOS
|
|
||||||
- OS/2
|
|
||||||
|
|
||||||
For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...)
|
For fish, add to the config file
|
||||||
|
|
||||||
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
|
set -x MANPAGER "vim -M +MANPAGER -"
|
||||||
|
|
||||||
For (t)csh by adding to the config file
|
|
||||||
|
|
||||||
setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
|
|
||||||
|
|
||||||
For fish by adding to the config file
|
|
||||||
|
|
||||||
set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
|
|
||||||
|
|
||||||
If man sets the $MAN_PN environment variable, like man-db, the most common
|
|
||||||
implementation on Linux and Mac OS, then the "env MAN_PN=1 " part above is
|
|
||||||
superfluous.
|
|
||||||
|
|
||||||
PDF *ft-pdf-plugin*
|
PDF *ft-pdf-plugin*
|
||||||
|
|
||||||
@ -653,7 +639,7 @@ 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 behaviour, set the following variable in your vimrc: >
|
||||||
|
|
||||||
let g:python_recommended_style = 0
|
let g:python_recommended_style = 0
|
||||||
|
|
||||||
|
|
||||||
@ -690,4 +676,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*
|
||||||
@ -199,7 +201,7 @@ COMMANDS *rust-commands*
|
|||||||
|g:rust_playpen_url| is the base URL to the playpen, by default
|
|g:rust_playpen_url| is the base URL to the playpen, by default
|
||||||
"https://play.rust-lang.org/".
|
"https://play.rust-lang.org/".
|
||||||
|
|
||||||
|g:rust_shortener_url| is the base URL for the shorterner, by
|
|g:rust_shortener_url| is the base URL for the shortener, by
|
||||||
default "https://is.gd/"
|
default "https://is.gd/"
|
||||||
|
|
||||||
:RustFmt *:RustFmt*
|
:RustFmt *:RustFmt*
|
||||||
@ -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 Aug 27
|
*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.
|
||||||
@ -162,7 +162,7 @@ window Vim is running in with these commands: >
|
|||||||
*gui-IME* *iBus*
|
*gui-IME* *iBus*
|
||||||
Input methods for international characters in X that rely on the XIM
|
Input methods for international characters in X that rely on the XIM
|
||||||
framework, most notably iBus, have been known to produce undesirable results
|
framework, most notably iBus, have been known to produce undesirable results
|
||||||
in gVim. These may include an inability to enter spaces, or long delays
|
in gvim. These may include an inability to enter spaces, or long delays
|
||||||
between typing a character and it being recognized by the application.
|
between typing a character and it being recognized by the application.
|
||||||
|
|
||||||
One workaround that has been successful, for unknown reasons, is to prevent
|
One workaround that has been successful, for unknown reasons, is to prevent
|
||||||
@ -482,6 +482,7 @@ menus and menu items. They are most useful for things that you can't remember
|
|||||||
what the key sequence was.
|
what the key sequence was.
|
||||||
|
|
||||||
For creating menus in a different language, see |:menutrans|.
|
For creating menus in a different language, see |:menutrans|.
|
||||||
|
If you don't want to use menus at all, see |'go-M'|.
|
||||||
|
|
||||||
*menu.vim*
|
*menu.vim*
|
||||||
The default menus are read from the file "$VIMRUNTIME/menu.vim". See
|
The default menus are read from the file "$VIMRUNTIME/menu.vim". See
|
||||||
@ -498,7 +499,22 @@ in the menu (which can take a bit of time to load). If you want to have all
|
|||||||
filetypes already present at startup, add: >
|
filetypes already present at startup, add: >
|
||||||
:let do_syntax_sel_menu = 1
|
:let do_syntax_sel_menu = 1
|
||||||
|
|
||||||
<
|
The following menuitems show all available color schemes, keymaps and compiler
|
||||||
|
settings:
|
||||||
|
Edit > Color Scheme ~
|
||||||
|
Edit > Keymap ~
|
||||||
|
Tools > Set Compiler ~
|
||||||
|
However, they can also take a bit of time to load, because they search all
|
||||||
|
related files from the directories in 'runtimepath'. Therefore they are
|
||||||
|
loaded lazily (by the |CursorHold| event), or you can also load them manually.
|
||||||
|
If you want to have all these items already present at startup, add: >
|
||||||
|
:let do_no_lazyload_menus = 1
|
||||||
|
|
||||||
|
Note that the menu.vim is sourced when `:syntax on` or `:filetype on` is
|
||||||
|
executed or after your .vimrc file is sourced. This means that the 'encoding'
|
||||||
|
option and the language of messages (`:language messages`) must be set before
|
||||||
|
that (if you want to change them).
|
||||||
|
|
||||||
*console-menus*
|
*console-menus*
|
||||||
Although this documentation is in the GUI section, you can actually use menus
|
Although this documentation is in the GUI section, you can actually use menus
|
||||||
in console mode too. You will have to load |menu.vim| explicitly then, it is
|
in console mode too. You will have to load |menu.vim| explicitly then, it is
|
||||||
@ -784,10 +800,40 @@ In the Win32 and GTK+ GUI, starting a menu name with ']' excludes that menu
|
|||||||
from the main menu bar. You must then use the |:popup| or |:tearoff| command
|
from the main menu bar. You must then use the |:popup| or |:tearoff| command
|
||||||
to display it.
|
to display it.
|
||||||
|
|
||||||
|
*window-toolbar* *WinBar*
|
||||||
|
Each window can have a local toolbar. This uses the first line of the window,
|
||||||
|
thus reduces the space for the text by one line. The items in the toolbar
|
||||||
|
must start with "WinBar".
|
||||||
|
|
||||||
|
Only text can be used. When using Unicode, special characters can be used to
|
||||||
|
make the items look like icons.
|
||||||
|
|
||||||
|
If the items do not fit then the last ones cannot be used. The toolbar does
|
||||||
|
not wrap.
|
||||||
|
|
||||||
|
Note that Vim may be in any mode when executing these commands. The menu
|
||||||
|
should be defined for Normal mode and will be executed without changing the
|
||||||
|
current mode. Thus if the current window is in Visual mode and the menu
|
||||||
|
command does not intentionally change the mode, Vim will remain in Visual
|
||||||
|
mode. Best is to use `:nnoremenu` to avoid side effects.
|
||||||
|
|
||||||
|
Example for debugger tools: >
|
||||||
|
nnoremenu 1.10 WinBar.Step :Step<CR>
|
||||||
|
nnoremenu 1.20 WinBar.Next :Next<CR>
|
||||||
|
nnoremenu 1.30 WinBar.Finish :Finish<CR>
|
||||||
|
nnoremenu 1.40 WinBar.Cont :Continue<CR>
|
||||||
|
<
|
||||||
|
The window toolbar uses the ToolbarLine and ToolbarButton highlight groups.
|
||||||
|
|
||||||
|
When splitting the window the window toolbar is not copied to the new window.
|
||||||
|
|
||||||
*popup-menu*
|
*popup-menu*
|
||||||
In the Win32, GTK+, Motif, Athena and Photon GUI, you can define the
|
In the Win32, GTK+, Motif, Athena and Photon GUI, you can define the
|
||||||
special menu "PopUp". This is the menu that is displayed when the right mouse
|
special menu "PopUp". This is the menu that is displayed when the right mouse
|
||||||
button is pressed, if 'mousemodel' is set to popup or popup_setpos.
|
button is pressed, if 'mousemodel' is set to popup or popup_setpos.
|
||||||
|
Example: >
|
||||||
|
nnoremenu 1.40 PopUp.&Paste "+gP
|
||||||
|
menu PopUp
|
||||||
|
|
||||||
|
|
||||||
5.3 Showing What Menus Are Mapped To *showing-menus*
|
5.3 Showing What Menus Are Mapped To *showing-menus*
|
||||||
@ -946,10 +992,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
|
||||||
@ -960,6 +1010,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.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@ -1021,4 +1075,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: 2014 Dec 20
|
*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
|
||||||
@ -382,38 +382,8 @@ Note that a menu that starts with ']' will not be displayed.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
7. Command line arguments *gui-w32-cmdargs*
|
7. Command line arguments *gui-w32-cmdargs*
|
||||||
|
|
||||||
Analysis of a command line into parameters is not standardised in MS Windows.
|
Command line arguments behave the same way as with the console application,
|
||||||
Gvim has to provide logic to analyse a command line. This logic is likely to
|
see |win32-cmdargs|.
|
||||||
be different from the default logic provided by a compilation system used to
|
|
||||||
build vim. The differences relate to unusual double quote (") usage.
|
|
||||||
The arguments "C:\My Music\freude.txt" and "+/Sch\"iller" are handled in the
|
|
||||||
same way. The argument "+/Sch""iller" may be handled different by gvim and
|
|
||||||
vim, depending what it was compiled with.
|
|
||||||
|
|
||||||
The rules are:
|
|
||||||
a) A parameter is a sequence of graphic characters.
|
|
||||||
b) Parameters are separated by white space.
|
|
||||||
c) A parameter can be enclosed in double quotes to include white space.
|
|
||||||
d) A sequence of zero or more backslashes (\) and a double quote (")
|
|
||||||
is special. The effective number of backslashes is halved, rounded
|
|
||||||
down. An even number of backslashes reverses the acceptability of
|
|
||||||
spaces and tabs, an odd number of backslashes produces a literal
|
|
||||||
double quote.
|
|
||||||
|
|
||||||
So:
|
|
||||||
" is a special double quote
|
|
||||||
\" is a literal double quote
|
|
||||||
\\" is a literal backslash and a special double quote
|
|
||||||
\\\" is a literal backslash and a literal double quote
|
|
||||||
\\\\" is 2 literal backslashes and a special double quote
|
|
||||||
\\\\\" is 2 literal backslashes and a literal double quote
|
|
||||||
etc.
|
|
||||||
|
|
||||||
Example: >
|
|
||||||
gvim "C:\My Music\freude" +"set ignorecase" +/"\"foo\\" +\"bar\\\"
|
|
||||||
|
|
||||||
opens "C:\My Music\freude" and executes the line mode commands: >
|
|
||||||
set ignorecase; /"foo\ and /bar\"
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
8. Various *gui-w32-various*
|
8. Various *gui-w32-various*
|
||||||
@ -472,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: >
|
||||||
@ -481,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.
|
||||||
|
|
||||||
@ -718,4 +721,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: 2016 Sep 12
|
*help.txt* For Vim version 8.1. Last change: 2017 Oct 28
|
||||||
|
|
||||||
VIM - main help file
|
VIM - main help file
|
||||||
k
|
k
|
||||||
@ -142,6 +142,7 @@ Special issues ~
|
|||||||
|print.txt| printing
|
|print.txt| printing
|
||||||
|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
|
||||||
|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
|
||||||
@ -150,6 +151,7 @@ Special issues ~
|
|||||||
|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_ada.txt| Ada (the programming language) support
|
||||||
|
|ft_rust.txt| Filetype plugin for Rust
|
||||||
|ft_sql.txt| about the SQL filetype plugin
|
|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
|
|rileft.txt| right-to-left editing mode
|
||||||
@ -202,6 +204,7 @@ Standard plugins ~
|
|||||||
|pi_logipat.txt| Logical operators on patterns
|
|pi_logipat.txt| Logical operators on patterns
|
||||||
|pi_netrw.txt| Reading and writing files over a network
|
|pi_netrw.txt| Reading and writing files over a network
|
||||||
|pi_paren.txt| Highlight matching parens
|
|pi_paren.txt| Highlight matching parens
|
||||||
|
|pi_spec.txt| Filetype plugin to work with rpm spec files
|
||||||
|pi_tar.txt| Tar file explorer
|
|pi_tar.txt| Tar file explorer
|
||||||
|pi_vimball.txt| Create a self-installing Vim script
|
|pi_vimball.txt| Create a self-installing Vim script
|
||||||
|pi_zip.txt| Zip archive explorer
|
|pi_zip.txt| Zip archive explorer
|
||||||
@ -222,4 +225,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:fo=tcq2: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: 2016 Jan 24
|
*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
|
||||||
@ -278,12 +278,15 @@ When you don't use the MzScheme interface you don't need them, thus you can
|
|||||||
use Vim without these DLL files.
|
use Vim without these DLL files.
|
||||||
NOTE: Newer version of MzScheme (Racket) require earlier (trampolined)
|
NOTE: Newer version of MzScheme (Racket) require earlier (trampolined)
|
||||||
initialisation via scheme_main_setup. So Vim always loads the MzScheme DLL at
|
initialisation via scheme_main_setup. So Vim always loads the MzScheme DLL at
|
||||||
startup if possible.
|
startup if possible. This may make Vim startup slower.
|
||||||
|
|
||||||
To use the MzScheme interface the MzScheme DLLs must be in your search path.
|
To use the MzScheme interface the MzScheme DLLs must be in your search path.
|
||||||
In a console window type "path" to see what directories are used.
|
In a console window type "path" to see what directories are used.
|
||||||
|
|
||||||
The names of the DLLs must match the MzScheme version Vim was compiled with.
|
On MS-Windows the options 'mzschemedll' and 'mzschemegcdll' are used for the
|
||||||
|
name of the library to load. The initial value is specified at build time.
|
||||||
|
|
||||||
|
The version of the DLL must match the MzScheme version Vim was compiled with.
|
||||||
For MzScheme version 209 they will be "libmzsch209_000.dll" and
|
For MzScheme version 209 they will be "libmzsch209_000.dll" and
|
||||||
"libmzgc209_000.dll". To know for sure look at the output of the ":version"
|
"libmzgc209_000.dll". To know for sure look at the output of the ":version"
|
||||||
command, look for -DDYNAMIC_MZSCH_DLL="something" and
|
command, look for -DDYNAMIC_MZSCH_DLL="something" and
|
||||||
@ -309,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 Mar 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
|
||||||
@ -715,6 +715,8 @@ To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()|
|
|||||||
functions to evaluate Python expressions and pass their values to Vim script.
|
functions to evaluate Python expressions and pass their values to Vim script.
|
||||||
|pyxeval()| is also available.
|
|pyxeval()| is also available.
|
||||||
|
|
||||||
|
The Python value "None" is converted to v:none.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
9. Dynamic loading *python-dynamic*
|
9. Dynamic loading *python-dynamic*
|
||||||
|
|
||||||
@ -734,8 +736,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".
|
||||||
|
|
||||||
|
|
||||||
@ -807,7 +809,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
|
||||||
|
|
||||||
@ -816,6 +819,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*
|
||||||
|
|
||||||
@ -903,4 +924,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
|
||||||
@ -906,6 +907,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*
|
||||||
@ -1136,4 +1156,4 @@ indent for a continuation line, a line that starts with a backslash: >
|
|||||||
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,13 +1583,17 @@ 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
|
||||||
|
|:tmapclear| :tmapc[lear] remove all mappings 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
|
||||||
|:tnext| :tn[ext] jump to next matching tag
|
|:tnext| :tn[ext] jump to next matching tag
|
||||||
|
|:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode
|
||||||
|:topleft| :to[pleft] make split window appear at top or far left
|
|:topleft| :to[pleft] make split window appear at top or far left
|
||||||
|:tprevious| :tp[revious] jump to previous matching tag
|
|:tprevious| :tp[revious] jump to previous matching tag
|
||||||
|:trewind| :tr[ewind] jump to first matching tag
|
|:trewind| :tr[ewind] jump to first matching tag
|
||||||
|:try| :try execute commands, abort on error or exception
|
|:try| :try execute commands, abort on error or exception
|
||||||
|:tselect| :ts[elect] list matching tags and select one
|
|:tselect| :ts[elect] list matching tags and select one
|
||||||
|
|:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode
|
||||||
|:tunmenu| :tu[nmenu] remove menu tooltip
|
|:tunmenu| :tu[nmenu] remove menu tooltip
|
||||||
|:undo| :u[ndo] undo last change(s)
|
|:undo| :u[ndo] undo last change(s)
|
||||||
|:undojoin| :undoj[oin] join next change with previous undo block
|
|:undojoin| :undoj[oin] join next change with previous undo block
|
||||||
@ -1653,4 +1657,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)
|
||||||
|
|
||||||
@ -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 Aug 24
|
*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
|
||||||
@ -264,6 +264,10 @@ Vim would never have become what it is now, without the help of these people!
|
|||||||
Juergen Weigert Lattice version, AUX improvements, UNIX and
|
Juergen Weigert Lattice version, AUX improvements, UNIX and
|
||||||
MS-DOS ports, autoconf
|
MS-DOS ports, autoconf
|
||||||
Stefan 'Sec' Zehl Maintainer of vim.org
|
Stefan 'Sec' Zehl Maintainer of vim.org
|
||||||
|
Yasuhiro Matsumoto many MS-Windows improvements
|
||||||
|
Ken Takata fixes and features
|
||||||
|
Kazunobu Kuriyama GTK 3
|
||||||
|
Christian Brabandt many fixes, features, user support, etc.
|
||||||
|
|
||||||
I wish to thank all the people that sent me bug reports and suggestions. The
|
I wish to thank all the people that sent me bug reports and suggestions. The
|
||||||
list is too long to mention them all here. Vim would not be the same without
|
list is too long to mention them all here. Vim would not be the same without
|
||||||
@ -591,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.
|
||||||
|
|
||||||
@ -902,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 May 30
|
*map.txt* For Vim version 8.1. Last change: 2018 May 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -29,7 +29,7 @@ manual.
|
|||||||
1. Key mapping *key-mapping* *mapping* *macro*
|
1. Key mapping *key-mapping* *mapping* *macro*
|
||||||
|
|
||||||
Key mapping is used to change the meaning of typed keys. The most common use
|
Key mapping is used to change the meaning of typed keys. The most common use
|
||||||
is to define a sequence commands for a function key. Example: >
|
is to define a sequence of commands for a function key. Example: >
|
||||||
|
|
||||||
:map <F2> a<C-R>=strftime("%c")<CR><Esc>
|
:map <F2> a<C-R>=strftime("%c")<CR><Esc>
|
||||||
|
|
||||||
@ -55,6 +55,7 @@ modes.
|
|||||||
:im[ap] {lhs} {rhs} |mapmode-i| *:im* *:imap*
|
:im[ap] {lhs} {rhs} |mapmode-i| *:im* *:imap*
|
||||||
:lm[ap] {lhs} {rhs} |mapmode-l| *:lm* *:lmap*
|
:lm[ap] {lhs} {rhs} |mapmode-l| *:lm* *:lmap*
|
||||||
:cm[ap] {lhs} {rhs} |mapmode-c| *:cm* *:cmap*
|
:cm[ap] {lhs} {rhs} |mapmode-c| *:cm* *:cmap*
|
||||||
|
:tma[p] {lhs} {rhs} |mapmode-t| *:tma* *:tmap*
|
||||||
Map the key sequence {lhs} to {rhs} for the modes
|
Map the key sequence {lhs} to {rhs} for the modes
|
||||||
where the map command applies. The result, including
|
where the map command applies. The result, including
|
||||||
{rhs}, is then further scanned for mappings. This
|
{rhs}, is then further scanned for mappings. This
|
||||||
@ -71,6 +72,7 @@ modes.
|
|||||||
:ino[remap] {lhs} {rhs} |mapmode-i| *:ino* *:inoremap*
|
:ino[remap] {lhs} {rhs} |mapmode-i| *:ino* *:inoremap*
|
||||||
:ln[oremap] {lhs} {rhs} |mapmode-l| *:ln* *:lnoremap*
|
:ln[oremap] {lhs} {rhs} |mapmode-l| *:ln* *:lnoremap*
|
||||||
:cno[remap] {lhs} {rhs} |mapmode-c| *:cno* *:cnoremap*
|
:cno[remap] {lhs} {rhs} |mapmode-c| *:cno* *:cnoremap*
|
||||||
|
:tno[remap] {lhs} {rhs} |mapmode-t| *:tno* *:tnoremap*
|
||||||
Map the key sequence {lhs} to {rhs} for the modes
|
Map the key sequence {lhs} to {rhs} for the modes
|
||||||
where the map command applies. Disallow mapping of
|
where the map command applies. Disallow mapping of
|
||||||
{rhs}, to avoid nested and recursive mappings. Often
|
{rhs}, to avoid nested and recursive mappings. Often
|
||||||
@ -87,6 +89,7 @@ modes.
|
|||||||
:iu[nmap] {lhs} |mapmode-i| *:iu* *:iunmap*
|
:iu[nmap] {lhs} |mapmode-i| *:iu* *:iunmap*
|
||||||
:lu[nmap] {lhs} |mapmode-l| *:lu* *:lunmap*
|
:lu[nmap] {lhs} |mapmode-l| *:lu* *:lunmap*
|
||||||
:cu[nmap] {lhs} |mapmode-c| *:cu* *:cunmap*
|
:cu[nmap] {lhs} |mapmode-c| *:cu* *:cunmap*
|
||||||
|
:tunma[p] {lhs} |mapmode-t| *:tunma* *:tunmap*
|
||||||
Remove the mapping of {lhs} for the modes where the
|
Remove the mapping of {lhs} for the modes where the
|
||||||
map command applies. The mapping may remain defined
|
map command applies. The mapping may remain defined
|
||||||
for other modes where it applies.
|
for other modes where it applies.
|
||||||
@ -105,6 +108,7 @@ modes.
|
|||||||
:imapc[lear] |mapmode-i| *:imapc* *:imapclear*
|
:imapc[lear] |mapmode-i| *:imapc* *:imapclear*
|
||||||
:lmapc[lear] |mapmode-l| *:lmapc* *:lmapclear*
|
:lmapc[lear] |mapmode-l| *:lmapc* *:lmapclear*
|
||||||
:cmapc[lear] |mapmode-c| *:cmapc* *:cmapclear*
|
:cmapc[lear] |mapmode-c| *:cmapc* *:cmapclear*
|
||||||
|
:tmapc[lear] |mapmode-t| *:tmapc* *:tmapclear*
|
||||||
Remove ALL mappings for the modes where the map
|
Remove ALL mappings for the modes where the map
|
||||||
command applies. {not in Vi}
|
command applies. {not in Vi}
|
||||||
Use the <buffer> argument to remove buffer-local
|
Use the <buffer> argument to remove buffer-local
|
||||||
@ -121,6 +125,7 @@ modes.
|
|||||||
:im[ap] |mapmode-i|
|
:im[ap] |mapmode-i|
|
||||||
:lm[ap] |mapmode-l|
|
:lm[ap] |mapmode-l|
|
||||||
:cm[ap] |mapmode-c|
|
:cm[ap] |mapmode-c|
|
||||||
|
:tma[p] |mapmode-t|
|
||||||
List all key mappings for the modes where the map
|
List all key mappings for the modes where the map
|
||||||
command applies. Note that ":map" and ":map!" are
|
command applies. Note that ":map" and ":map!" are
|
||||||
used most often, because they include the other modes.
|
used most often, because they include the other modes.
|
||||||
@ -135,6 +140,7 @@ modes.
|
|||||||
:im[ap] {lhs} |mapmode-i| *:imap_l*
|
:im[ap] {lhs} |mapmode-i| *:imap_l*
|
||||||
:lm[ap] {lhs} |mapmode-l| *:lmap_l*
|
:lm[ap] {lhs} |mapmode-l| *:lmap_l*
|
||||||
:cm[ap] {lhs} |mapmode-c| *:cmap_l*
|
:cm[ap] {lhs} |mapmode-c| *:cmap_l*
|
||||||
|
:tma[p] {lhs} |mapmode-t| *:tmap_l*
|
||||||
List the key mappings for the key sequences starting
|
List the key mappings for the key sequences starting
|
||||||
with {lhs} in the modes where the map command applies.
|
with {lhs} in the modes where the map command applies.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
@ -318,6 +324,7 @@ Overview of which map command works in which mode. More details below.
|
|||||||
:imap :inoremap :iunmap Insert
|
:imap :inoremap :iunmap Insert
|
||||||
:lmap :lnoremap :lunmap Insert, Command-line, Lang-Arg
|
:lmap :lnoremap :lunmap Insert, Command-line, Lang-Arg
|
||||||
:cmap :cnoremap :cunmap Command-line
|
:cmap :cnoremap :cunmap Command-line
|
||||||
|
:tmap :tnoremap :tunmap Terminal-Job
|
||||||
|
|
||||||
|
|
||||||
COMMANDS MODES ~
|
COMMANDS MODES ~
|
||||||
@ -358,6 +365,10 @@ Therefore the ":map" and ":map!" commands enter and display mappings for
|
|||||||
several modes. In Vim you can use the ":nmap", ":vmap", ":omap", ":cmap" and
|
several modes. In Vim you can use the ":nmap", ":vmap", ":omap", ":cmap" and
|
||||||
":imap" commands to enter mappings for each mode separately.
|
":imap" commands to enter mappings for each mode separately.
|
||||||
|
|
||||||
|
*mapmode-t*
|
||||||
|
The terminal mappings are used in a terminal window, when typing keys for the
|
||||||
|
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: ":omap { w" makes "y{" work like "yw"
|
||||||
@ -418,6 +429,7 @@ When listing mappings the characters in the first two columns are:
|
|||||||
i Insert
|
i Insert
|
||||||
l ":lmap" mappings for Insert, Command-line and Lang-Arg
|
l ":lmap" mappings for Insert, Command-line and Lang-Arg
|
||||||
c Command-line
|
c Command-line
|
||||||
|
t Terminal-Job
|
||||||
|
|
||||||
Just before the {rhs} a special character can appear:
|
Just before the {rhs} a special character can appear:
|
||||||
* indicates that it is not remappable
|
* indicates that it is not remappable
|
||||||
@ -530,9 +542,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
|
||||||
@ -682,7 +694,7 @@ option). After that it assumes that the 'q' is to be interpreted as such. If
|
|||||||
you type slowly, or your system is slow, reset the 'timeout' option. Then you
|
you type slowly, or your system is slow, reset the 'timeout' option. Then you
|
||||||
might want to set the 'ttimeout' option.
|
might want to set the 'ttimeout' option.
|
||||||
|
|
||||||
*map-precedence*
|
*map-precedence*
|
||||||
Buffer-local mappings (defined using |:map-<buffer>|) take precedence over
|
Buffer-local mappings (defined using |:map-<buffer>|) take precedence over
|
||||||
global mappings. When a buffer-local mapping is the same as a global mapping,
|
global mappings. When a buffer-local mapping is the same as a global mapping,
|
||||||
Vim will use the buffer-local mapping. In addition, Vim will use a complete
|
Vim will use the buffer-local mapping. In addition, Vim will use a complete
|
||||||
@ -905,7 +917,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.
|
||||||
@ -1260,6 +1274,7 @@ 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
|
||||||
@ -1415,6 +1430,8 @@ The valid escape sequences are
|
|||||||
<line1> The starting line of the command range.
|
<line1> The starting line of the command range.
|
||||||
*<line2>*
|
*<line2>*
|
||||||
<line2> The final line of the command range.
|
<line2> The final line of the command range.
|
||||||
|
*<range>*
|
||||||
|
<range> The number of items in the command range: 0, 1 or 2
|
||||||
*<count>*
|
*<count>*
|
||||||
<count> Any count supplied (as described for the '-range'
|
<count> Any count supplied (as described for the '-range'
|
||||||
and '-count' attributes).
|
and '-count' attributes).
|
||||||
@ -1535,4 +1552,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 Mar 25
|
*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|
|
||||||
@ -463,12 +464,6 @@ changed. To avoid the message reset the 'warn' option.
|
|||||||
Something inside Vim went wrong and resulted in a NULL pointer. If you know
|
Something inside Vim went wrong and resulted in a NULL pointer. If you know
|
||||||
how to reproduce this problem, please report it. |bugs|
|
how to reproduce this problem, please report it. |bugs|
|
||||||
|
|
||||||
*E172* >
|
|
||||||
Only one file name allowed
|
|
||||||
|
|
||||||
The ":edit" command only accepts one file name. When you want to specify
|
|
||||||
several files for editing use ":next" |:next|.
|
|
||||||
|
|
||||||
*E41* *E82* *E83* *E342* >
|
*E41* *E82* *E83* *E342* >
|
||||||
Out of memory!
|
Out of memory!
|
||||||
Out of memory! (allocating {number} bytes)
|
Out of memory! (allocating {number} bytes)
|
||||||
@ -645,6 +640,9 @@ starts. It can be fixed in one of these ways:
|
|||||||
- Just write the file again the next day. Or set your clock to the next day,
|
- Just write the file again the next day. Or set your clock to the next day,
|
||||||
write the file twice and set the clock back.
|
write the file twice and set the clock back.
|
||||||
|
|
||||||
|
If you get W11 all the time, you may need to disable "Acronis Active
|
||||||
|
Protection" or register Vim as a trusted service/application.
|
||||||
|
|
||||||
*W12* >
|
*W12* >
|
||||||
Warning: File "{filename}" has changed and the buffer was changed in Vim as well
|
Warning: File "{filename}" has changed and the buffer was changed in Vim as well
|
||||||
|
|
||||||
@ -868,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
|
||||||
@ -190,8 +190,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 +210,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 Mar 12
|
*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
|
||||||
@ -1317,7 +1318,10 @@ the current line is included. You can then use "%" to go to the matching line.
|
|||||||
H To line [count] from top (Home) of window (default:
|
H To line [count] from top (Home) of window (default:
|
||||||
first line on the window) on the first non-blank
|
first line on the window) on the first non-blank
|
||||||
character |linewise|. See also 'startofline' option.
|
character |linewise|. See also 'startofline' option.
|
||||||
Cursor is adjusted for 'scrolloff' option.
|
Cursor is adjusted for 'scrolloff' option, unless an
|
||||||
|
operator is pending, in which case the text may
|
||||||
|
scroll. E.g. "yH" yanks from the first visible line
|
||||||
|
until the cursor line (inclusive).
|
||||||
|
|
||||||
*M*
|
*M*
|
||||||
M To Middle line of window, on the first non-blank
|
M To Middle line of window, on the first non-blank
|
||||||
@ -1327,11 +1331,14 @@ M To Middle line of window, on the first non-blank
|
|||||||
L To line [count] from bottom of window (default: Last
|
L To line [count] from bottom of window (default: Last
|
||||||
line on the window) on the first non-blank character
|
line on the window) on the first non-blank character
|
||||||
|linewise|. See also 'startofline' option.
|
|linewise|. See also 'startofline' option.
|
||||||
Cursor is adjusted for 'scrolloff' option.
|
Cursor is adjusted for 'scrolloff' option, unless an
|
||||||
|
operator is pending, in which case the text may
|
||||||
|
scroll. E.g. "yL" yanks from the cursor to the last
|
||||||
|
visible line.
|
||||||
|
|
||||||
<LeftMouse> Moves to the position on the screen where the mouse
|
<LeftMouse> Moves to the position on the screen where the mouse
|
||||||
click is |exclusive|. See also |<LeftMouse>|. If the
|
click is |exclusive|. See also |<LeftMouse>|. If the
|
||||||
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
|
||||||
@ -131,4 +131,4 @@ Also look at:
|
|||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
vim:tw=78:fo=tcq2:ts=8:ft=help:norl:
|
vim:tw=78:fo=tcq2: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.
|
||||||
@ -164,8 +164,9 @@ If you want to disable it, pass `--disable-darwin` to the configure script: >
|
|||||||
and then run `make` to build Vim. The order of the options doesn't matter.
|
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('macunix')` 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.
|
otherwise. For backward compatibility, you can still use `macunix` instead of
|
||||||
|
`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:
|
||||||
|
|
||||||
@ -178,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:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_msdos.txt* For Vim version 8.0. Last change: 2016 Feb 26
|
*os_msdos.txt* For Vim version 8.1. Last change: 2016 Feb 26
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -12,4 +12,4 @@ work, there is not enough memory. The DOS32 version (using DJGPP) might still
|
|||||||
work on older systems.
|
work on older systems.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_os2.txt* For Vim version 8.0. Last change: 2015 Dec 31
|
*os_os2.txt* For Vim version 8.1. Last change: 2015 Dec 31
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Slootman
|
VIM REFERENCE MANUAL by Paul Slootman
|
||||||
@ -10,4 +10,4 @@ This file used to contain the particularities for the OS/2 version of Vim.
|
|||||||
The OS/2 support was removed in patch 7.4.1008.
|
The OS/2 support was removed in patch 7.4.1008.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_qnx.txt* For Vim version 8.0. Last change: 2005 Mar 29
|
*os_qnx.txt* For Vim version 8.1. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Julian Kinraid
|
VIM REFERENCE MANUAL by Julian Kinraid
|
||||||
@ -135,4 +135,4 @@ Todo:
|
|||||||
- Replace usage of fork() with spawn() when launching external
|
- Replace usage of fork() with spawn() when launching external
|
||||||
programs.
|
programs.
|
||||||
|
|
||||||
vim:tw=78:sw=4:ts=8:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_risc.txt* For Vim version 8.0. Last change: 2011 May 10
|
*os_risc.txt* For Vim version 8.1. Last change: 2011 May 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Thomas Leonard
|
VIM REFERENCE MANUAL by Thomas Leonard
|
||||||
@ -9,4 +9,4 @@ The RISC OS support has been removed from Vim with patch 7.3.187.
|
|||||||
If you would like to use Vim on RISC OS get the files from before that patch.
|
If you would like to use Vim on RISC OS get the files from before that patch.
|
||||||
|
|
||||||
|
|
||||||
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