mirror of
https://github.com/vim/vim
synced 2025-07-21 22:02:30 +00:00
Compare commits
1214 Commits
Author | SHA1 | Date | |
---|---|---|---|
527a6785c7 | |||
140e995ed5 | |||
ae38d05271 | |||
36ff08479f | |||
6f2dd9e75e | |||
caad4f0a0b | |||
e3faf44bef | |||
c68c72ea7b | |||
b12db9f92e | |||
3f9be97015 | |||
ddfb925480 | |||
ef92390cb7 | |||
2d78cd7756 | |||
8340dd9b29 | |||
2f1e51a43c | |||
aff5c3a530 | |||
d96c52c71b | |||
cc2b9d5dc0 | |||
f1d6ccf2f9 | |||
b2a851fee4 | |||
ed32d9424d | |||
f8a447c6dc | |||
4d84d9325f | |||
0b10541606 | |||
76440e2efe | |||
f1e30ccb82 | |||
f240e181d7 | |||
2a0b33e284 | |||
9014074913 | |||
0a38396937 | |||
a3dfccc6e9 | |||
1c40a66bad | |||
b96a7f325c | |||
baf0344ed7 | |||
cbdf0a0b4a | |||
8c731505b0 | |||
66a3e797a2 | |||
b738c9a442 | |||
2683c8e7f7 | |||
2f3b510b0f | |||
b1e265045c | |||
4c7b2f50fd | |||
06e7ce1a01 | |||
57bc4633b2 | |||
dffa5b8ecf | |||
df46f6f07f | |||
a365091dbb | |||
1ba903fb92 | |||
c229967caa | |||
8a349ff944 | |||
54fb438134 | |||
ef6875be7a | |||
42d84f8aed | |||
b8e0bdbda3 | |||
3e9a161496 | |||
b103138b1e | |||
3a0c908983 | |||
983c4e93dc | |||
345326aa3d | |||
374bf024d2 | |||
f9e6c3b8b0 | |||
0434482e5a | |||
6b2e938f13 | |||
4391cf98ec | |||
c3940c76e8 | |||
32efaf6154 | |||
72971a2611 | |||
e90c853ff6 | |||
9c7d98d7c2 | |||
fda3729a06 | |||
4f7e821f26 | |||
666578b539 | |||
eda73607a7 | |||
086329d3f6 | |||
2f31e39978 | |||
b851a96d5c | |||
6a64365c95 | |||
fe3c410098 | |||
7a373dd0d4 | |||
a94618e16c | |||
482a2b5c9d | |||
958636c406 | |||
4920a44271 | |||
cb5ea1401a | |||
bdef518b0a | |||
f1b4622366 | |||
861d80a671 | |||
799d6abf3e | |||
7d76c804af | |||
1df52d798f | |||
1c85210d6d | |||
e962c6795b | |||
dcc1ce2f5a | |||
cbc246a331 | |||
2a9853925b | |||
e5ead831a2 | |||
7425b938cb | |||
f191d55ede | |||
6885694e82 | |||
4697ae00a7 | |||
9a95bdc52a | |||
404406ad6b | |||
56095e1ceb | |||
21d89b610f | |||
0f519a02c5 | |||
3a991dd001 | |||
56f6227224 | |||
84d17a6f9e | |||
7ddc642a0c | |||
da014b9441 | |||
cddc91ccb4 | |||
cfc216e7b0 | |||
1db60c47d9 | |||
b8ee25acab | |||
4b9d637e9c | |||
d355c50a2a | |||
91e15e13da | |||
3fa57e0d50 | |||
eb21e4ccf5 | |||
1ecfd9cb09 | |||
9c8d9e1952 | |||
5bfa2ed6e4 | |||
4ee40b0515 | |||
b4b43bb572 | |||
5d2bae8b1c | |||
714db3bb81 | |||
103650de90 | |||
3516928c75 | |||
3089a1068d | |||
6e932461cb | |||
58da707d24 | |||
834def3872 | |||
f638cbce76 | |||
5a4eceb02a | |||
fb03140730 | |||
371932a775 | |||
0026d47d8c | |||
0e2ea1beb4 | |||
13e2a0af66 | |||
14993322b1 | |||
120f4a878f | |||
5d5fbe7a2b | |||
84d8cdd769 | |||
c40bdee42a | |||
52a7246f01 | |||
96f3a49b3b | |||
34401cca5a | |||
773b158de8 | |||
d7408fa0ce | |||
e4df164692 | |||
49f9dd7b91 | |||
2d46e6075b | |||
a9537d238e | |||
f2d912e8bc | |||
26f08b06b6 | |||
285ed7e049 | |||
9576508975 | |||
7b61a546d8 | |||
92f4baace8 | |||
5a31b46bff | |||
d5005164e1 | |||
fb539273c9 | |||
d2e8087b53 | |||
ce2f2e061d | |||
1b338d2022 | |||
42f06f9dbc | |||
d5f62b14e1 | |||
2a5868ab1e | |||
b5cf6c34e8 | |||
1fc7e972b0 | |||
0ddd1b5e35 | |||
5307de0746 | |||
9b8f021d93 | |||
2be795084f | |||
5a669b9481 | |||
07cf382e22 | |||
d21e8b3a17 | |||
8f4ac01544 | |||
0106b4b891 | |||
e98cfe1cc9 | |||
6b1ee34aa0 | |||
04d17ae167 | |||
9b352c46f0 | |||
b5a7a8b545 | |||
8c1329cb59 | |||
e0f148270a | |||
ece29e8013 | |||
4e067c898e | |||
b81c85d8f3 | |||
4f5ce33d41 | |||
23fb7a9955 | |||
278eb5820d | |||
932e632de3 | |||
dbc2802251 | |||
2bace3e2fb | |||
20c3892e54 | |||
17529ae026 | |||
12a28d4b29 | |||
158a1b0748 | |||
fb60409a3f | |||
54368f2742 | |||
674fffe855 | |||
a1fae80371 | |||
4f88062c55 | |||
07d87790f1 | |||
a04854932e | |||
1f538355db | |||
5524aebf16 | |||
b5647f71c2 | |||
4e036c9e6f | |||
b643e77782 | |||
f1924a9d8c | |||
310e2dbaee | |||
b4d2135518 | |||
db6ea06335 | |||
3ed8b1332f | |||
455009122a | |||
1e1aca3784 | |||
c804515003 | |||
ff65ac84fd | |||
0d1e8c1203 | |||
6bf5548df2 | |||
0bed10a813 | |||
cc57bb2f85 | |||
8bb1c3e53e | |||
9f4fe7c4c3 | |||
b8b57460f0 | |||
86b17e914f | |||
ee739b42c0 | |||
c35e3de8cc | |||
81439a6d1b | |||
dab70c63e1 | |||
e7eb789ef0 | |||
b7d929a86f | |||
9d7a592c80 | |||
a40aa760a1 | |||
946e27ab65 | |||
b6da44ae82 | |||
41d7523986 | |||
db5ffaab5a | |||
e8a3492548 | |||
72e8f0bcc1 | |||
8dc907d7d3 | |||
597a422416 | |||
15a35c4f4a | |||
78159bbf9e | |||
e8d1f20cbd | |||
deae0f2566 | |||
de993ea629 | |||
58cbc914ea | |||
7ec83432b7 | |||
b3414595c7 | |||
ec1561cac5 | |||
7a54a90744 | |||
8502c704ba | |||
f0224c9f08 | |||
0ae36a5c85 | |||
822ff866bd | |||
2d54ec92d4 | |||
8e7048ca4b | |||
e639eb44e9 | |||
0e6c5ef7ef | |||
3be8585661 | |||
980e58f7b3 | |||
e3a8bab630 | |||
06e4a6df0a | |||
7116aa0f7d | |||
c35b0fb181 | |||
ea389e9103 | |||
6f6c0f8085 | |||
2d1fe05fc0 | |||
82c2585eb8 | |||
493c178a28 | |||
dd0402a759 | |||
846a2ff5f3 | |||
cbc17d66be | |||
9a665ba296 | |||
13600303c5 | |||
90013c6a75 | |||
b777618d11 | |||
e4c21e6899 | |||
bc6cf6c511 | |||
b42970535c | |||
7b129a5ac4 | |||
cf1b057939 | |||
cbc67723bd | |||
050fe7ebad | |||
1c5a2134db | |||
e968e36a00 | |||
715c286355 | |||
24dc230871 | |||
caca646bf0 | |||
8df5acfda9 | |||
6082bea6ac | |||
6e13207d82 | |||
9c235069b2 | |||
ee4825331a | |||
be578edae3 | |||
46ae3cedeb | |||
59838520c7 | |||
fd859c9878 | |||
ed7547da43 | |||
d442ec7fe2 | |||
b7547420a4 | |||
04ad7fe05c | |||
56b3bf89aa | |||
1b1063af58 | |||
3ec7f4e402 | |||
0d3d5e0483 | |||
75a8d74cc2 | |||
f4d7f167f3 | |||
a7611f60cd | |||
bcb9898eba | |||
b96c69d80e | |||
e512c8c049 | |||
121f9bdde4 | |||
1ff32c5c2c | |||
3d1956bcc9 | |||
355a95a079 | |||
d69bd9af3c | |||
33e87789a7 | |||
a4f317df89 | |||
eccb7fc315 | |||
163d0da508 | |||
2af78a1408 | |||
93fc481b57 | |||
9bdfb0025c | |||
62f167f716 | |||
c8836f7025 | |||
0eac828ab0 | |||
b21a29be56 | |||
e29b1feead | |||
c09551ab79 | |||
5a4e160ce4 | |||
7bcdb7d166 | |||
4c7ab1bb57 | |||
75b8156a44 | |||
7e38ea2fb6 | |||
e9a54227f9 | |||
7d647820ed | |||
39c29ed511 | |||
57ebe6e2f9 | |||
4ed89cdf41 | |||
21e854e5ce | |||
57a728d1df | |||
5a50c2255c | |||
b7cb42bc38 | |||
41571769c9 | |||
fe5aab63fe | |||
3e45159ceb | |||
5bd32f47ec | |||
6716d9af11 | |||
7f3be402ce | |||
c7f025536e | |||
a1706c958e | |||
31b7d38611 | |||
fd3fe98b78 | |||
efa304d760 | |||
e7a88a8d4e | |||
a392038db5 | |||
922a4664fe | |||
498af70e06 | |||
3d6db1467b | |||
76f3b1ad77 | |||
73b044dca9 | |||
2bcaec320a | |||
7db7784103 | |||
a6fd37be4f | |||
158864120d | |||
c666b5b467 | |||
b679875b29 | |||
327aa02dda | |||
1a3eb8e1b5 | |||
c410530637 | |||
7b44934037 | |||
03305f396f | |||
5803ae6c07 | |||
f7ff6e85e8 | |||
a687837516 | |||
ed287f9a4e | |||
4c9a949d00 | |||
529d2d6369 | |||
2fb9fa19e2 | |||
9c8c8c5d30 | |||
a0844a1170 | |||
f0bdd2f28d | |||
1d9ff43f58 | |||
8eded09bf7 | |||
b1692e2b8f | |||
af6c131bf7 | |||
24ff9e33a9 | |||
27bed20452 | |||
d8619997c4 | |||
206f011829 | |||
f7dc2b5517 | |||
038e5d4766 | |||
4064e24a0f | |||
0858917e43 | |||
4de6a212f9 | |||
47b8342abd | |||
251835e14f | |||
26df092843 | |||
581966e832 | |||
f30caaf08d | |||
a2aa31a926 | |||
7d311c52ce | |||
b1d90a3d77 | |||
631abc35df | |||
9feaf6206f | |||
c86438205b | |||
45e2bcc275 | |||
06811f33ce | |||
403b3cf0a1 | |||
0e4eebd425 | |||
f92d8a254a | |||
92dff1827a | |||
b8e2305656 | |||
2d5f38ff10 | |||
cd981f2e0f | |||
3b5226121d | |||
12a0f22340 | |||
4d504a3e11 | |||
0a36fece92 | |||
c467d9b274 | |||
10395d8d6c | |||
a1a118b159 | |||
4f943c09a5 | |||
f31ecce97e | |||
767568846b | |||
dd415a6c5a | |||
f50eb7882e | |||
09edc46d01 | |||
4315f26500 | |||
fcc3f46735 | |||
361aa50547 | |||
8af269186c | |||
b4d587cbd9 | |||
4a36bcf0d8 | |||
8d04317104 | |||
ac8400d483 | |||
8822a9c367 | |||
5395e7afe9 | |||
1028f4d75e | |||
063a46ba77 | |||
14177b77bf | |||
6d977d6c1c | |||
ca058dc71f | |||
6cd3aeee4c | |||
2cd3696c35 | |||
32b9201f37 | |||
9d1685d1cf | |||
e21b6b2a8d | |||
b0d5c96133 | |||
78cf3f0de9 | |||
a02471e295 | |||
bd2dc34774 | |||
4ea924e0a5 | |||
3a69e1135e | |||
b1cb35f785 | |||
438f67a004 | |||
2fda301469 | |||
5ec8305ea8 | |||
5f4c8406a2 | |||
3f1138e8ae | |||
4b550b4c50 | |||
dedd1b0aba | |||
0bd7b3f4ce | |||
959a143f2e | |||
207fd75cac | |||
7c0daf088e | |||
36c85b2c46 | |||
dfb18411cf | |||
175d0704df | |||
2cc8738f2f | |||
c8020ee825 | |||
910cffbb5e | |||
893b2d73d1 | |||
fcf94d3990 | |||
4ffa07081f | |||
1d633413e5 | |||
6b10721fa2 | |||
7ba0741451 | |||
b011af9696 | |||
5d7f9df8fa | |||
73c61633b6 | |||
b050c64186 | |||
c2401d62e0 | |||
ba2d44f338 | |||
b95186fd36 | |||
34b466edfe | |||
9fee7d4729 | |||
e88a5f3a2c | |||
dff54ac7e8 | |||
174a848b67 | |||
3678208477 | |||
c62a644eaf | |||
ace8d8ee2f | |||
438ee5bf60 | |||
272fb58236 | |||
cafaa8a950 | |||
d07c6e1e82 | |||
1e42f7ac16 | |||
ffa2220950 | |||
49b10273f0 | |||
49b6a57d19 | |||
9421bdc2cd | |||
4b60a6cdb3 | |||
2593e037c9 | |||
e874744e94 | |||
8f5610df73 | |||
0671de335f | |||
cc63c647ee | |||
efe06f4dd8 | |||
0f8de8dfb2 | |||
3f75e422be | |||
d6b8a5253b | |||
a939e43440 | |||
8e69b4a319 | |||
45d3b1454c | |||
815135e408 | |||
817a8801d7 | |||
8050efa07d | |||
e5878f4be9 | |||
03e228a623 | |||
fcea03ddd3 | |||
c1c023ecfc | |||
aa88732efd | |||
f5a2fd880a | |||
4c1e626103 | |||
84dbb62fca | |||
dce7c91de9 | |||
6bcbcc59be | |||
0958e0fbe7 | |||
f332a656c3 | |||
69c3500f96 | |||
332a2cadcd | |||
d9820538bd | |||
ba2d7ffc4b | |||
d5d015d457 | |||
18e5469b6e | |||
39766a7595 | |||
0b400087d0 | |||
9db1293317 | |||
92c2db8be6 | |||
0ffbbf9ea8 | |||
4cc95d1495 | |||
2b1b53f5d9 | |||
1180822670 | |||
b69a714bb7 | |||
2c019c8696 | |||
a951e35478 | |||
b133208080 | |||
4c7cb6b884 | |||
3eead7c227 | |||
0c6ccfdb62 | |||
35a7c681bc | |||
0b4db6b6e5 | |||
ceb84af027 | |||
8962fda1da | |||
386dcde30d | |||
7a18fdc8a4 | |||
033d8888e8 | |||
cca7413456 | |||
2ee95f7d13 | |||
134bf07ca0 | |||
f211884fa1 | |||
699c12076d | |||
18441ae2cd | |||
268b55b5fb | |||
ec11aef914 | |||
6848c8b561 | |||
baca7f705b | |||
595cad2ea1 | |||
00462ffb7d | |||
9952c102dd | |||
745c6eb29b | |||
917789fdf7 | |||
e6a2fa6573 | |||
dd40734800 | |||
95235e64d8 | |||
0300e465aa | |||
3b26239341 | |||
3b7ac49e26 | |||
7cba6c0636 | |||
bec9c20884 | |||
9be4481892 | |||
78c93e4b6a | |||
00b764aa41 | |||
f0d9e00537 | |||
966d71c852 | |||
65f04f67f1 | |||
4dee1bb0db | |||
4e4f529792 | |||
d2a203bb58 | |||
604729e75b | |||
b5ef5e1c21 | |||
195ef0ccb2 | |||
cf81aefd9c | |||
41f1205fef | |||
74cd624fde | |||
67652c2935 | |||
c56c459075 | |||
c93df6b075 | |||
ebefd997bb | |||
3f0df06c28 | |||
1cfad52a03 | |||
3b1db36689 | |||
b7512b79ce | |||
b09129684b | |||
f17968b54a | |||
86f931e1c3 | |||
a95d823554 | |||
d82db6046c | |||
026a445c40 | |||
01c458e438 | |||
9d98fe9cae | |||
f40f4ab8df | |||
48483dbaf7 | |||
fb332a2b33 | |||
c528b1d1ed | |||
364ab2ffd3 | |||
bc88a27537 | |||
4008f4fb08 | |||
aee1f4a5b5 | |||
a946afe075 | |||
542805a59d | |||
eec3e1e72a | |||
6dbe68cd9e | |||
398d53decf | |||
1b1b09449f | |||
1a42b4befb | |||
1a4a75c5dc | |||
16ea3676db | |||
a2320f43ea | |||
e855ccf90a | |||
e2db695d31 | |||
ff18df03c3 | |||
af003f6384 | |||
2b90ed294e | |||
ad875fb7ff | |||
e24a9c0b59 | |||
196ed14d15 | |||
9d48895e4c | |||
5f919ee8eb | |||
ac7c33e38c | |||
9ba7e17de1 | |||
e53c8616f1 | |||
a8f96397a1 | |||
b7a846d0e0 | |||
69b52456fc | |||
de9149ef18 | |||
4a3aef7b28 | |||
9e90219032 | |||
706d2de9c1 | |||
95064ece73 | |||
33ca6bf240 | |||
56667a5d3e | |||
6f2926692b | |||
6f394f88b8 | |||
91b2bdb083 | |||
ff52518969 | |||
3fb14bc734 | |||
ee31be64a3 | |||
690ae9c858 | |||
2b79bfdeab | |||
a0aa9070be | |||
a3fe8fe632 | |||
8e46f7264c | |||
3ff9b185fe | |||
fba2424cf2 | |||
fee496d882 | |||
e741f2714d | |||
fb97f28cc2 | |||
e032461eed | |||
b69510e889 | |||
dd007ed585 | |||
4ca8d5fefd | |||
04c5c9ee27 | |||
c64b85a348 | |||
f4c096b617 | |||
e8785f2c39 | |||
3c04cc09cd | |||
7b8c268fc1 | |||
913df81e74 | |||
dc8b25cbf3 | |||
0d86e9b568 | |||
254e028e90 | |||
91aeaf4cce | |||
bc488a76cc | |||
2c6f3dca4e | |||
266411aa8a | |||
ccf623f6f8 | |||
94f76b7fd6 | |||
ba46075731 | |||
249f0dda51 | |||
61214040e9 | |||
a3c084cbfa | |||
3c1e9c2a1f | |||
c84e3c1ee1 | |||
ee0ee2a046 | |||
3437b91102 | |||
32ac8cdaaa | |||
0f5a5ed8bb | |||
f4c5fcb3ad | |||
8968a31179 | |||
f4e1143697 | |||
a87aa8061c | |||
caf2dffd51 | |||
5e6d5ca16c | |||
e1fc4e2f0f | |||
79f7e1475a | |||
f9da680a0b | |||
2951b77e50 | |||
4100937474 | |||
c33916a6e0 | |||
f5901aa195 | |||
2982e70243 | |||
72fe56f298 | |||
bd65c46478 | |||
0e710d603e | |||
d05bf560ac | |||
673b9a3cae | |||
e057d40d96 | |||
5a4d51e692 | |||
85e932f2ca | |||
e78495de7e | |||
2486285546 | |||
730d2c0747 | |||
55480dccf4 | |||
a4c8dcbdae | |||
14b6945e27 | |||
10315b1201 | |||
6b487147ac | |||
39efa89afb | |||
2751592119 | |||
a8e3580be6 | |||
630a730f9b | |||
f3fe392760 | |||
4a46070365 | |||
fe17e7640d | |||
72179e1bd0 | |||
b751546636 | |||
560c52d32b | |||
4d9ae21a34 | |||
e3a0b53c2e | |||
f0327f67c7 | |||
22dbc77ef1 | |||
6470de83f2 | |||
a5f5c8be8f | |||
5737ca2350 | |||
c9dcb42704 | |||
9b846cb8ac | |||
877aa00811 | |||
c14621eafb | |||
abab85a499 | |||
a0169128d9 | |||
b893ac2098 | |||
31c31679e2 | |||
b052fe0e2c | |||
f05d81102c | |||
f86c0b01a7 | |||
daa270289b | |||
c8c13a0307 | |||
56b45b9b37 | |||
df2bc27b52 | |||
c1c3d68da9 | |||
d5e376eb3b | |||
7e85d3d432 | |||
dee2e315d7 | |||
ede3e6383d | |||
6f1404f8a8 | |||
841fbd2907 | |||
c4b99e0be7 | |||
141be8a585 | |||
c476e52fca | |||
0bd80ccd85 | |||
808c2bc8bf | |||
389a1793f4 | |||
6c85e7f3be | |||
3dbcd0c7ad | |||
fe70acb376 | |||
d73895ec00 | |||
22f93c700f | |||
a6cc03101e | |||
db250526bb | |||
a0c85c7ae1 | |||
555d2a8340 | |||
d79862599d | |||
6324c3b920 | |||
06ae70d07c | |||
01b626c26e | |||
8c0e322f18 | |||
6949eea7cc | |||
5246cd7a9b | |||
03e114b0f2 | |||
70baa405f2 | |||
427d51c23f | |||
a50d02d983 | |||
5ab9d98b9a | |||
926b5d3b30 | |||
d69497413f | |||
4ce239b0b1 | |||
3351679948 | |||
e66f06d819 | |||
52b91d801a | |||
df9259abce | |||
dab38d516e | |||
9be6e21575 | |||
ff1806f8da | |||
141f6bb341 | |||
4cff8faf05 | |||
44c71db771 | |||
1612b1abe7 | |||
c5089bb8ff | |||
580abea48a | |||
6e70736cbc | |||
4c46b5e001 | |||
9d438d3b38 | |||
0c6633a7ea | |||
5f87b23229 | |||
b62bcd1e05 | |||
484d241a4a | |||
98bfc2d5ee | |||
82850dd9cb | |||
12b559e7c3 | |||
2a876e40ce | |||
ec7944aaf2 | |||
cab465a6d7 | |||
0825c00f14 | |||
22971aaa45 | |||
6395af8018 | |||
edb07a2d88 | |||
2d473ab932 | |||
81c40c507c | |||
27610ed76c | |||
9f3685a527 | |||
0ea4a6b94b | |||
60bf1f58d0 | |||
a2947e2bea | |||
780c3e9b04 | |||
3c7ad013fb | |||
a9f2220176 | |||
16619a235b | |||
9a773488a7 | |||
c09a6d6c0c | |||
f9c9b32bd1 | |||
c1ba10c7f6 | |||
570064cf21 | |||
a2e14fc764 | |||
0bdda37fb4 | |||
bcf4d178ab | |||
4380d1ea23 | |||
11354759e2 | |||
927d4a1fb5 | |||
2a4e98ac1e | |||
a940aa6fc4 | |||
1e02e6620b | |||
e7766eeaa5 | |||
473de61b04 | |||
cd9c46265e | |||
87f764a891 | |||
b1b284fd5d | |||
f96d109827 | |||
2358403363 | |||
3798519b9e | |||
45fc539fe0 | |||
a238431302 | |||
43e0298416 | |||
decd9540fd | |||
8aca2e9bef | |||
417bad227a | |||
203d04d764 | |||
4cd92d5aae | |||
4e31296ffa | |||
cc908adac8 | |||
d89616ebb8 | |||
6d3a5d755a | |||
188c57bcd1 | |||
f751255283 | |||
8a7f5a2d43 | |||
cd2d8bb6ea | |||
2976c028ca | |||
c19b4b50a8 | |||
973fced763 | |||
d4209d203a | |||
e60c2e5e1c | |||
8795374bd3 | |||
67604aed75 | |||
5b84ddccea | |||
1cd3f2c450 | |||
e2b8cb3b15 | |||
d75799ab7f | |||
78eae9aaf7 | |||
5ebc09b450 | |||
b76591ef4a | |||
044aa290c5 | |||
dacd7de3fd | |||
f811509c03 | |||
a2d9510861 | |||
dd9a4a44a9 | |||
e9056b121d | |||
01d89dddfa | |||
dd2ccdf6ea | |||
f46da70603 | |||
f18fb7af75 | |||
f6de032afe | |||
9f5d600723 | |||
ac499e3116 | |||
78b5957439 | |||
f4258308e2 | |||
4f2109d782 | |||
bc41196bdc | |||
de71b5658f | |||
525666f282 | |||
307aa16a69 | |||
b122e9798e | |||
69afb7bf0a | |||
5de820b916 | |||
efb23f26e8 | |||
0418811869 | |||
61602c5bfe | |||
543b7ef700 | |||
3737fc1c30 | |||
75d7a06920 | |||
36b3a011d3 | |||
54dafde170 | |||
4b78063368 | |||
14f55c6f67 | |||
99dc19d1cc | |||
ca982c8d45 | |||
96c7dfd806 | |||
b06e20e6ba | |||
35eacd7180 | |||
2d5e112284 | |||
021e147b70 | |||
f62d942e54 | |||
16299b57cb | |||
4b6ebe6dce | |||
428e987b61 | |||
fdde880b02 | |||
fc714b35c6 | |||
018acca3bd | |||
305b2fde13 | |||
8600e40a67 | |||
bcb40977c3 | |||
494ff7e850 | |||
355fd9b468 | |||
78cddbe271 | |||
a9922d62e6 | |||
a5b725c3f6 | |||
1a3b56953e | |||
a1544c00c8 | |||
01a7a720ad | |||
9bb77d6fe6 | |||
bad704fa04 | |||
7e28384a9a | |||
07b8864111 | |||
1bcabe19a2 | |||
a03e631120 | |||
c8366790e8 | |||
c37b6ecd60 | |||
b38caae26c | |||
dd8aca664d | |||
432b09c84d | |||
21642ed1b4 | |||
9e822c00b1 | |||
3e734ea2c7 | |||
e9ba516be2 | |||
1bc2428e1f | |||
0014a53ad1 | |||
423532e10d | |||
28c2191949 | |||
75eb1610e1 | |||
f9e56b2b03 | |||
4ac6676cee | |||
51a2983904 | |||
5714b80032 | |||
e0fea9c405 | |||
eb3ecae23a | |||
2cb8feb880 | |||
26c2f3fc4e | |||
963fee2d69 | |||
c4912e555b | |||
e23febdb85 | |||
61db8b5108 | |||
57a285b105 | |||
3451d66244 | |||
7cd4d9c17c | |||
3f1682e808 | |||
fdb6dc1105 | |||
47196581b8 | |||
aae4883e01 | |||
4b41706477 | |||
f47ca63dbc | |||
56d58d51bf | |||
152e7890c1 | |||
d6c11cb3e0 | |||
fad8de084a | |||
3c577f26cd | |||
1d814754c0 | |||
425154d888 | |||
02e26d9807 | |||
a03dbed9e9 | |||
307d10a2fb | |||
35b2386a8e | |||
c96ebe75e5 | |||
2a0f3d3fb2 | |||
0b9aecc3a5 | |||
673af4d304 | |||
2eec59e30b | |||
f878bf0da2 | |||
e6ae6225b4 | |||
774267bbb9 | |||
a7b64ce74e | |||
cac867ad18 | |||
1dc28783fa | |||
182dc4f2ab | |||
e64faa6645 | |||
d6e391862c | |||
b52f4c02e6 | |||
b09d983c78 | |||
12e4014092 | |||
66e83d7db0 | |||
d2470e9fbe | |||
d7a06b1d71 | |||
8dd7901a66 | |||
9bad29decf | |||
080504921d | |||
0fabe3fdbe | |||
09ea9fcf3f | |||
745fc029ba | |||
e3c7b86aab | |||
7fcff1f781 | |||
ca12d7c004 | |||
053bb60f44 | |||
bc0ea8f75e | |||
10f3a79e89 | |||
ba40447ab1 | |||
097c992c46 | |||
884f6e44e0 | |||
fbc0d2ea1e | |||
6fa41fb374 | |||
7533fddd09 | |||
9e74e30b5f | |||
ad3b366c82 | |||
d620aa9be4 | |||
cfef5ff23e | |||
cabf80ff2f | |||
105bc355a6 | |||
55b8ad3dab | |||
c24c1acd82 | |||
07729b25bf | |||
54e8f00581 | |||
2cd7362e30 | |||
3dab2806fe | |||
71700b8903 | |||
a4720019cf | |||
b983f75d22 | |||
d5f729cada | |||
e761459eb6 | |||
8661b17843 | |||
4d188da22b | |||
5e538ecd5e | |||
03db85b398 | |||
b6c589a529 | |||
46a7561f3a | |||
dfa38d4e45 | |||
29607acff6 | |||
bd80f35bc5 | |||
8f1723de47 | |||
3d0c52db9c | |||
4e5dfb5700 | |||
99add41656 | |||
6d21645f46 | |||
971db46799 | |||
3b9abb6cc2 | |||
76a86063ca | |||
82e803b055 | |||
99685e6a7e | |||
6800186a03 | |||
09bb33dde9 | |||
290424868d | |||
51ac8a27e5 | |||
161fb5e302 | |||
531da5955e | |||
229f8dbf7a | |||
49e649fc2e | |||
84a05acc8c | |||
84e0f6ca9a | |||
d1864597a0 | |||
8fadd8b840 | |||
29f49ee8d7 | |||
4e0d974645 | |||
02938a970c | |||
ff0341946e | |||
7afea82f50 | |||
811fe63f39 | |||
567199b68f | |||
e8d9530b0e | |||
2ab0713279 | |||
f687cf3f36 | |||
ec38d6932c | |||
230bb3f09d | |||
335e0b6974 | |||
4d1da49cfe | |||
7a26dd860a | |||
af6abb9d93 | |||
3f99152276 | |||
b70a473e24 | |||
3bb28557e1 | |||
a8565fecc6 | |||
4c7e9db0d6 | |||
687a29c5e2 | |||
f6dcbb245b | |||
f8de161090 | |||
54c34fa6f5 | |||
768baacdc8 | |||
b376647bb1 | |||
332ac0621c | |||
84b0493c34 | |||
429fa85392 | |||
07219f911c | |||
6f852a557d | |||
7311c6932c | |||
0bcdd6e709 | |||
0187ca0bdf | |||
38ec50bea8 | |||
e3e6e573d1 | |||
8185111125 | |||
644cf03b7e | |||
126bdeeabe | |||
2a66a07b29 | |||
25a6df90df | |||
bf88493c09 | |||
68879258d9 | |||
24b11fb173 | |||
b3049f4a34 | |||
d7fbfe107d | |||
91fc43d3f9 | |||
7bcb30e913 | |||
cdffbeae2b | |||
95a5135118 | |||
d0e2d94589 | |||
c2c355df6f | |||
71afbfe6cd | |||
db333a5b8d | |||
af62ff3696 | |||
0c279bbb9c | |||
b59494cab1 | |||
186628f671 | |||
090cfc1b02 | |||
ac7bd63844 | |||
b897871ce9 | |||
a5be25e1db | |||
e533bbe094 | |||
2526ef276b | |||
20754027b3 | |||
1e284f5155 | |||
9584b31aae | |||
a390bb6ad3 | |||
4f8301f641 | |||
1a0316ca2a | |||
b3cb982162 | |||
3978e08fbe | |||
db813951c4 | |||
e2e663f67d | |||
210f3704f7 | |||
60abe75379 | |||
c389fd3a49 | |||
db3fbe5228 | |||
4e3c70d241 | |||
84e80b51d1 | |||
d999db2f1e | |||
34700a6a15 | |||
7534221eba | |||
b8f8461d94 | |||
988232fabb | |||
e17c260335 | |||
f5e44a7e90 | |||
e468e266c4 | |||
fdf447b286 | |||
f13f45d59b | |||
693e40c2cd | |||
53eb37e9f9 | |||
886ed691d2 | |||
40cf4b44ed | |||
5c9626301b | |||
26402cb2de | |||
63dbda1caa | |||
558ddad8e8 | |||
187d3acb7f | |||
8738fc1be8 | |||
995a8cd181 | |||
445f3037ea | |||
4d36987c25 | |||
2142e5d851 | |||
452ff5bdc7 | |||
6d47df7ca0 | |||
5004e8846e | |||
feeaa688eb | |||
b2c5a5ac79 | |||
707060e2ee | |||
caca92be8a | |||
f6ecd99cec | |||
af9aeb9250 | |||
c2149ea7cd | |||
ffeedec023 | |||
a3914327f7 | |||
00154508de | |||
8fe8d9ed06 | |||
be9c627666 | |||
f4e5e86627 | |||
181ace28ed | |||
76d711c3b5 |
19
.gitignore
vendored
19
.gitignore
vendored
@ -36,12 +36,29 @@ src/Obj*/pathdef.c
|
|||||||
gvimext.dll
|
gvimext.dll
|
||||||
gvimext.lib
|
gvimext.lib
|
||||||
|
|
||||||
|
# Borland C++
|
||||||
|
bcc.cfg
|
||||||
|
*.ilc
|
||||||
|
*.ild
|
||||||
|
*.ilf
|
||||||
|
*.ils
|
||||||
|
*.map
|
||||||
|
*.tds
|
||||||
|
|
||||||
|
# NetBeans
|
||||||
|
nbproject/*
|
||||||
|
|
||||||
|
# Mac OSX
|
||||||
|
src/xxd/xxd.dSYM
|
||||||
|
|
||||||
# All platforms
|
# All platforms
|
||||||
*.rej
|
*.rej
|
||||||
*.orig
|
*.orig
|
||||||
*.mo
|
*.mo
|
||||||
*.swp
|
*.swp
|
||||||
*~
|
*~
|
||||||
|
*.pyc
|
||||||
|
*.log
|
||||||
src/po/vim.pot
|
src/po/vim.pot
|
||||||
|
|
||||||
# Generated by "make test"
|
# Generated by "make test"
|
||||||
@ -52,3 +69,5 @@ src/testdir/lua.vim
|
|||||||
src/testdir/small.vim
|
src/testdir/small.vim
|
||||||
src/testdir/tiny.vim
|
src/testdir/tiny.vim
|
||||||
src/testdir/test*.out
|
src/testdir/test*.out
|
||||||
|
src/testdir/test.log
|
||||||
|
src/memfile_test
|
||||||
|
8
Contents
8
Contents
@ -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 7.3. Also runs under UNIX, MSDOS and other systems.
|
Version 7.4. Also runs under UNIX, MSDOS and other systems.
|
||||||
vim73rt.tgz contains the documentation and syntax files.
|
vim74rt.tgz contains the documentation and syntax files.
|
||||||
vim73bin.tgz contains the binaries.
|
vim74bin.tgz contains the binaries.
|
||||||
vim73src.tgz contains the sources.
|
vim74src.tgz contains the sources.
|
||||||
Author: Bram Moolenaar et al.
|
Author: Bram Moolenaar et al.
|
||||||
|
|
||||||
|
|
||||||
|
31
Filelist
31
Filelist
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# source files for all source archives
|
# source files for all source archives
|
||||||
SRC_ALL = \
|
SRC_ALL = \
|
||||||
|
.hgignore \
|
||||||
src/README.txt \
|
src/README.txt \
|
||||||
src/arabic.c \
|
src/arabic.c \
|
||||||
src/arabic.h \
|
src/arabic.h \
|
||||||
@ -10,6 +11,8 @@ SRC_ALL = \
|
|||||||
src/blowfish.c \
|
src/blowfish.c \
|
||||||
src/buffer.c \
|
src/buffer.c \
|
||||||
src/charset.c \
|
src/charset.c \
|
||||||
|
src/crypt.c \
|
||||||
|
src/crypt_zip.c \
|
||||||
src/diff.c \
|
src/diff.c \
|
||||||
src/digraph.c \
|
src/digraph.c \
|
||||||
src/edit.c \
|
src/edit.c \
|
||||||
@ -57,6 +60,7 @@ SRC_ALL = \
|
|||||||
src/popupmnu.c \
|
src/popupmnu.c \
|
||||||
src/quickfix.c \
|
src/quickfix.c \
|
||||||
src/regexp.c \
|
src/regexp.c \
|
||||||
|
src/regexp_nfa.c \
|
||||||
src/regexp.h \
|
src/regexp.h \
|
||||||
src/screen.c \
|
src/screen.c \
|
||||||
src/search.c \
|
src/search.c \
|
||||||
@ -73,19 +77,40 @@ SRC_ALL = \
|
|||||||
src/version.c \
|
src/version.c \
|
||||||
src/version.h \
|
src/version.h \
|
||||||
src/vim.h \
|
src/vim.h \
|
||||||
|
src/winclip.c \
|
||||||
src/window.c \
|
src/window.c \
|
||||||
src/xxd/xxd.c \
|
src/xxd/xxd.c \
|
||||||
src/main.aap \
|
src/main.aap \
|
||||||
src/testdir/main.aap \
|
src/testdir/main.aap \
|
||||||
|
src/testdir/README.txt \
|
||||||
src/testdir/*.in \
|
src/testdir/*.in \
|
||||||
|
src/testdir/sautest/autoload/*.vim \
|
||||||
src/testdir/test[0-9]*.ok \
|
src/testdir/test[0-9]*.ok \
|
||||||
|
src/testdir/test[0-9]*a.ok \
|
||||||
|
src/testdir/test_[a-z]*.ok \
|
||||||
src/testdir/test49.vim \
|
src/testdir/test49.vim \
|
||||||
src/testdir/test60.vim \
|
src/testdir/test60.vim \
|
||||||
src/testdir/test83-tags? \
|
src/testdir/test83-tags? \
|
||||||
|
src/testdir/test77a.com \
|
||||||
|
src/testdir/test_*.vim \
|
||||||
|
src/testdir/python2/*.py \
|
||||||
|
src/testdir/python3/*.py \
|
||||||
|
src/testdir/pythonx/*.py \
|
||||||
|
src/testdir/pythonx/topmodule/__init__.py \
|
||||||
|
src/testdir/pythonx/topmodule/submodule/__init__.py \
|
||||||
|
src/testdir/pythonx/topmodule/submodule/subsubmodule/__init__.py \
|
||||||
|
src/testdir/pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py \
|
||||||
|
src/testdir/python_after/*.py \
|
||||||
|
src/testdir/python_before/*.py \
|
||||||
|
src/testdir/bench*.in \
|
||||||
|
src/testdir/bench*.vim \
|
||||||
|
src/testdir/samples/*.txt \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
src/proto/blowfish.pro \
|
src/proto/blowfish.pro \
|
||||||
src/proto/buffer.pro \
|
src/proto/buffer.pro \
|
||||||
src/proto/charset.pro \
|
src/proto/charset.pro \
|
||||||
|
src/proto/crypt.pro \
|
||||||
|
src/proto/crypt_zip.pro \
|
||||||
src/proto/diff.pro \
|
src/proto/diff.pro \
|
||||||
src/proto/digraph.pro \
|
src/proto/digraph.pro \
|
||||||
src/proto/edit.pro \
|
src/proto/edit.pro \
|
||||||
@ -130,6 +155,7 @@ SRC_ALL = \
|
|||||||
src/proto/ui.pro \
|
src/proto/ui.pro \
|
||||||
src/proto/undo.pro \
|
src/proto/undo.pro \
|
||||||
src/proto/version.pro \
|
src/proto/version.pro \
|
||||||
|
src/proto/winclip.pro \
|
||||||
src/proto/window.pro \
|
src/proto/window.pro \
|
||||||
|
|
||||||
|
|
||||||
@ -254,6 +280,7 @@ SRC_DOS = \
|
|||||||
src/Make_bc3.mak \
|
src/Make_bc3.mak \
|
||||||
src/Make_bc5.mak \
|
src/Make_bc5.mak \
|
||||||
src/Make_cyg.mak \
|
src/Make_cyg.mak \
|
||||||
|
src/Make_cyg_ming.mak \
|
||||||
src/Make_djg.mak \
|
src/Make_djg.mak \
|
||||||
src/Make_ivc.mak \
|
src/Make_ivc.mak \
|
||||||
src/Make_dvc.mak \
|
src/Make_dvc.mak \
|
||||||
@ -271,6 +298,8 @@ SRC_DOS = \
|
|||||||
src/dosinst.h \
|
src/dosinst.h \
|
||||||
src/glbl_ime.cpp \
|
src/glbl_ime.cpp \
|
||||||
src/glbl_ime.h \
|
src/glbl_ime.h \
|
||||||
|
src/gui_dwrite.cpp \
|
||||||
|
src/gui_dwrite.h \
|
||||||
src/gui_w16.c \
|
src/gui_w16.c \
|
||||||
src/gui_w32.c \
|
src/gui_w32.c \
|
||||||
src/gui_w48.c \
|
src/gui_w48.c \
|
||||||
@ -444,6 +473,7 @@ SRC_EXTRA = \
|
|||||||
src/os_beos.c \
|
src/os_beos.c \
|
||||||
src/os_beos.h \
|
src/os_beos.h \
|
||||||
src/os_beos.rsrc \
|
src/os_beos.rsrc \
|
||||||
|
src/proto/os_beos.pro \
|
||||||
src/os_mint.h \
|
src/os_mint.h \
|
||||||
src/os_vms_fix.com \
|
src/os_vms_fix.com \
|
||||||
src/toolbar.phi \
|
src/toolbar.phi \
|
||||||
@ -681,6 +711,7 @@ LANG_GEN = \
|
|||||||
runtime/doc/*-fr.UTF-8.1 \
|
runtime/doc/*-fr.UTF-8.1 \
|
||||||
runtime/doc/*-it.1 \
|
runtime/doc/*-it.1 \
|
||||||
runtime/doc/*-it.UTF-8.1 \
|
runtime/doc/*-it.UTF-8.1 \
|
||||||
|
runtime/doc/*-ja.UTF-8.1 \
|
||||||
runtime/doc/*-pl.1 \
|
runtime/doc/*-pl.1 \
|
||||||
runtime/doc/*-pl.UTF-8.1 \
|
runtime/doc/*-pl.UTF-8.1 \
|
||||||
runtime/doc/*-ru.1 \
|
runtime/doc/*-ru.1 \
|
||||||
|
114
Makefile
114
Makefile
@ -74,14 +74,17 @@ 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 = 7
|
MAJOR = 7
|
||||||
MINOR = 3
|
MINOR = 4
|
||||||
|
|
||||||
# Uncomment this line if the Win32s version is to be included.
|
# Uncomment this line if the Win32s version is to be included.
|
||||||
DOSBIN_S = dosbin_s
|
# DOSBIN_S = dosbin_s
|
||||||
|
|
||||||
# Uncomment this line if the 16 bit DOS version is to be included.
|
# Uncomment this line if the 16 bit DOS version is to be included.
|
||||||
# DOSBIN_D16 = dosbin_d16
|
# DOSBIN_D16 = dosbin_d16
|
||||||
|
|
||||||
|
# Uncomment this line if the 32 bit DOS version is to be included.
|
||||||
|
# DOSBIN_D32 = dosbin_d32
|
||||||
|
|
||||||
# CHECKLIST for creating a new version:
|
# CHECKLIST for creating a new version:
|
||||||
#
|
#
|
||||||
# - Update Vim version number. For a test version in: src/version.h, Contents,
|
# - Update Vim version number. For a test version in: src/version.h, Contents,
|
||||||
@ -89,8 +92,6 @@ DOSBIN_S = dosbin_s
|
|||||||
# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
|
# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
|
||||||
# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def,
|
# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def,
|
||||||
# src/gvim.exe.mnf.
|
# src/gvim.exe.mnf.
|
||||||
# - Adjust the date and other info in src/version.h.
|
|
||||||
# - Correct included_patches[] in src/version.c.
|
|
||||||
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
|
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
|
||||||
# you can make it all work), Cscope and "huge" features. Exclude workshop
|
# you can make it all work), Cscope and "huge" features. Exclude workshop
|
||||||
# and SNiFF.
|
# and SNiFF.
|
||||||
@ -99,8 +100,14 @@ DOSBIN_S = dosbin_s
|
|||||||
# - With these features: "make depend" (works best with gcc).
|
# - With these features: "make depend" (works best with gcc).
|
||||||
# - If you have a lint program: "make lint" and check the output (ignore GTK
|
# - If you have a lint program: "make lint" and check the output (ignore GTK
|
||||||
# warnings).
|
# warnings).
|
||||||
# - Enable the efence library in "src/Makefile" and run "make test". Disable
|
# - If you have valgrind, enable it in src/testdir/Makefile and run "make
|
||||||
# Python and Ruby to avoid trouble with threads (efence is not threadsafe).
|
# test". Enable EXITFREE, disable GUI, scheme and tcl to avoid false alarms.
|
||||||
|
# Check the valgrind output.
|
||||||
|
# - If you have the efence library, enable it in "src/Makefile" and run "make
|
||||||
|
# test". Disable Python and Ruby to avoid trouble with threads (efence is
|
||||||
|
# not threadsafe).
|
||||||
|
# - Adjust the date and other info in src/version.h.
|
||||||
|
# - Correct included_patches[] in src/version.c.
|
||||||
# - Check for missing entries in runtime/makemenu.vim (with checkmenu script).
|
# - Check for missing entries in runtime/makemenu.vim (with checkmenu script).
|
||||||
# - Check for missing options in runtime/optwin.vim et al. (with check.vim).
|
# - Check for missing options in runtime/optwin.vim et al. (with check.vim).
|
||||||
# - Do "make menu" to update the runtime/synmenu.vim file.
|
# - Do "make menu" to update the runtime/synmenu.vim file.
|
||||||
@ -108,8 +115,8 @@ DOSBIN_S = dosbin_s
|
|||||||
# - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL
|
# - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL
|
||||||
# ADDITIONS".
|
# ADDITIONS".
|
||||||
# - In runtime/doc run "make" and "make html" to check for errors.
|
# - In runtime/doc run "make" and "make html" to check for errors.
|
||||||
# - Check if src/Makefile and src/feature.h don't contain any personal
|
# - Check if src/Makefile, src/testdir/Makefile and src/feature.h don't contain
|
||||||
# preferences or the GTK, Perl, etc. mentioned above.
|
# any personal preferences or the changes mentioned above.
|
||||||
# - Check file protections to be "644" for text and "755" for executables (run
|
# - Check file protections to be "644" for text and "755" for executables (run
|
||||||
# the "check" script).
|
# the "check" script).
|
||||||
# - Check compiling on Amiga, MS-DOS and MS-Windows.
|
# - Check compiling on Amiga, MS-DOS and MS-Windows.
|
||||||
@ -128,36 +135,20 @@ DOSBIN_S = dosbin_s
|
|||||||
# PC:
|
# PC:
|
||||||
# - Run make on Unix to update the ".mo" files.
|
# - Run make on Unix to update the ".mo" files.
|
||||||
# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
|
# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
|
||||||
# 16 bit DOS version: (OBSOLETE, 16 bit version doesn't build)
|
|
||||||
# - Set environment for compiling with Borland C++ 3.1.
|
|
||||||
# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
|
|
||||||
# case set environment for compiling with Borland C++ 4.0 and do
|
|
||||||
# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
|
|
||||||
# NOTE: this currently fails because Vim is too big.
|
|
||||||
# - "make test" and check the output.
|
|
||||||
# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
|
|
||||||
# "uninstald16.exe".
|
|
||||||
# 32 bit DOS version:
|
|
||||||
# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
|
|
||||||
# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
|
|
||||||
# "ALL DONE".
|
|
||||||
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
|
|
||||||
# "uninstald32.exe".
|
|
||||||
# Win32 console version:
|
# Win32 console version:
|
||||||
# - Set environment for Visual C++ 2008, e.g.:
|
# - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or:
|
||||||
# "E:\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat". Or, when using the
|
# "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
|
||||||
# Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the paths when necessary).
|
# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
|
||||||
# For Windows 98/ME the 2003 version is required, but then it won't work on
|
# paths when necessary).
|
||||||
# Windows 7 and 64 bit.
|
# For Windows 98/ME the 2003 version is required, but then the executable
|
||||||
# - "nmake -f Make_mvc.mak"
|
# won't work on Windows 7 and 64 bit systems.
|
||||||
|
# - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat)
|
||||||
# - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
|
# - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
|
||||||
# - Rename the executables to "vimw32.exe", "xxdw32.exe".
|
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
|
||||||
# - Rename vim.pdb to vimw32.pdb.
|
# - Rename vim.pdb to vimw32.pdb.
|
||||||
# - When building the Win32s version later, delete vimrun.exe, install.exe and
|
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
|
||||||
# uninstal.exe. Otherwise rename executables to installw32.exe and
|
|
||||||
# uninstalw32.exe.
|
|
||||||
# Win32 GUI version:
|
# Win32 GUI version:
|
||||||
# - "nmake -f Make_mvc.mak GUI=yes.
|
# - "nmake -f Make_mvc.mak GUI=yes"
|
||||||
# - 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.
|
||||||
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
||||||
@ -167,23 +158,13 @@ DOSBIN_S = dosbin_s
|
|||||||
# - Rename "gvim.exe" to "gvim_ole.exe".
|
# - Rename "gvim.exe" to "gvim_ole.exe".
|
||||||
# - Rename gvim.pdb to "gvim_ole.pdb".
|
# - Rename gvim.pdb to "gvim_ole.pdb".
|
||||||
# - Delete install.exe and uninstal.exe.
|
# - Delete install.exe and uninstal.exe.
|
||||||
# - If building the Win32s version delete vimrun.exe.
|
|
||||||
# Win32s GUI version:
|
|
||||||
# - Set environment for Visual C++ 4.1 (requires a new console window):
|
|
||||||
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
|
|
||||||
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
|
|
||||||
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
|
|
||||||
# - Rename "gvim.exe" to "gvim_w32s.exe".
|
|
||||||
# - Rename "install.exe" to "installw32.exe"
|
|
||||||
# - Rename "uninstal.exe" to "uninstalw32.exe"
|
|
||||||
# - The produced uninstalw32.exe and vimrun.exe are used.
|
|
||||||
# Create the archives:
|
# Create the archives:
|
||||||
# - Copy all the "*.exe" files to where this Makefile is.
|
# - Copy all the "*.exe" files to where this Makefile is.
|
||||||
# - Copy all the "*.pdb" files to where this Makefile is.
|
# - Copy all the "*.pdb" files to where this Makefile is.
|
||||||
# - "make dosbin".
|
# - "make dosbin".
|
||||||
# NSIS self installing exe:
|
# NSIS self installing exe:
|
||||||
# - To get NSIS see http://nsis.sourceforge.net
|
# - To get NSIS see http://nsis.sourceforge.net
|
||||||
# - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe,
|
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
|
||||||
# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
|
# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
|
||||||
# - copy these files (get them from a binary archive or build them):
|
# - copy these files (get them from a binary archive or build them):
|
||||||
# gvimext.dll in src/GvimExt
|
# gvimext.dll in src/GvimExt
|
||||||
@ -196,7 +177,44 @@ DOSBIN_S = dosbin_s
|
|||||||
# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
|
# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
|
||||||
# - Copy gvim##.exe to the dist directory.
|
# - Copy gvim##.exe to the dist directory.
|
||||||
#
|
#
|
||||||
# OS/2: (OBSOLETE, OS/2 version is no longer distributed)
|
# 64 bit builds (these are not in the normal distribution, the 32 bit build
|
||||||
|
# works just fine on 64 bit systems).
|
||||||
|
# Like the console and GUI version, but first run vcvars64.bat or
|
||||||
|
# "..\VC\vcvarsall.bat x86_amd64".
|
||||||
|
# - "nmake -f Make_mvc.mak"
|
||||||
|
# - "nmake -f Make_mvc.mak GUI=yes"
|
||||||
|
# Or run src/bigvim64.bat for an OLE version.
|
||||||
|
#
|
||||||
|
# OBSOLETE systems: You can build this if you have an appropriate system.
|
||||||
|
#
|
||||||
|
# 16 bit DOS version: (doesn't build anywhere)
|
||||||
|
# - Set environment for compiling with Borland C++ 3.1.
|
||||||
|
# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
|
||||||
|
# case set environment for compiling with Borland C++ 4.0 and do
|
||||||
|
# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
|
||||||
|
# NOTE: this currently fails because Vim is too big.
|
||||||
|
# - "make test" and check the output.
|
||||||
|
# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
|
||||||
|
# "uninstald16.exe".
|
||||||
|
#
|
||||||
|
# 32 bit DOS version: (requires Windows XP or earlier)
|
||||||
|
# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
|
||||||
|
# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
|
||||||
|
# "ALL DONE".
|
||||||
|
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
|
||||||
|
# "uninstald32.exe".
|
||||||
|
#
|
||||||
|
# Win32s GUI version: (requires very old compiler)
|
||||||
|
# - Set environment for Visual C++ 4.1 (requires a new console window):
|
||||||
|
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
|
||||||
|
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
|
||||||
|
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
|
||||||
|
# - Rename "gvim.exe" to "gvim_w32s.exe".
|
||||||
|
# - Rename "install.exe" to "installw32.exe"
|
||||||
|
# - Rename "uninstal.exe" to "uninstalw32.exe"
|
||||||
|
# - The produced uninstalw32.exe and vimrun.exe are used.
|
||||||
|
#
|
||||||
|
# OS/2: (requires an OS/2 system)
|
||||||
# - Unpack the Unix archive.
|
# - Unpack the Unix archive.
|
||||||
# - "make -f Make_os2.mak".
|
# - "make -f Make_os2.mak".
|
||||||
# - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
|
# - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
|
||||||
@ -295,6 +313,8 @@ unixall: dist prepare
|
|||||||
$(LANG_SRC) \
|
$(LANG_SRC) \
|
||||||
| (cd dist/$(VIMRTDIR); tar xf -)
|
| (cd dist/$(VIMRTDIR); tar xf -)
|
||||||
# Need to use a "distclean" config.mk file
|
# Need to use a "distclean" config.mk file
|
||||||
|
# Note: this file is not included in the repository to avoid problems, but it's
|
||||||
|
# OK to put it in the archive.
|
||||||
cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
|
cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
|
||||||
# Create an empty config.h file, make dependencies require it
|
# Create an empty config.h file, make dependencies require it
|
||||||
touch dist/$(VIMRTDIR)/src/auto/config.h
|
touch dist/$(VIMRTDIR)/src/auto/config.h
|
||||||
@ -450,7 +470,7 @@ runtime_unix2dos: dosrt_unix2dos
|
|||||||
cd dist/vim/$(VIMRTDIR); tar cf - * \
|
cd dist/vim/$(VIMRTDIR); tar cf - * \
|
||||||
| (cd ../../../runtime/dos; tar xf -)
|
| (cd ../../../runtime/dos; tar xf -)
|
||||||
|
|
||||||
dosbin: prepare dosbin_gvim dosbin_w32 dosbin_d32 dosbin_ole $(DOSBIN_S) $(DOSBIN_D16)
|
dosbin: prepare dosbin_gvim dosbin_w32 $(DOSBIN_D32) dosbin_ole $(DOSBIN_S) $(DOSBIN_D16)
|
||||||
|
|
||||||
# make Win32 gvim
|
# make Win32 gvim
|
||||||
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README.txt for version 7.3 of Vim: Vi IMproved.
|
README.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
|
|
||||||
WHAT IS VIM
|
WHAT IS VIM
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_ami.txt for version 7.3 of Vim: Vi IMproved.
|
README_ami.txt for version 7.4 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.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_amibin.txt for version 7.3 of Vim: Vi IMproved.
|
README_amibin.txt for version 7.4 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.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_amisrc.txt for version 7.3 of Vim: Vi IMproved.
|
README_amisrc.txt for version 7.4 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.
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
README_bindos.txt for version 7.3 of Vim: Vi IMproved.
|
README_bindos.txt for version 7.4 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 (vim73rt.zip).
|
These files are in the runtime archive (vim74rt.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):
|
||||||
vim73d16.zip 16 bit DOS version
|
vim74w32.zip Windows 95/98/NT/etc. console version
|
||||||
vim73d32.zip 32 bit DOS version
|
gvim74.zip Windows 95/98/NT/etc. GUI version
|
||||||
vim73w32.zip Windows 95/98/NT/etc. console version
|
gvim74ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
||||||
gvim73.zip Windows 95/98/NT/etc. GUI version
|
|
||||||
gvim73ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
|
||||||
gvim73_s.zip Windows 3.1 GUI version
|
|
||||||
|
|
||||||
You MUST also get the runtime archive (vim73rt.zip).
|
You MUST also get the runtime archive (vim74rt.zip).
|
||||||
The sources are also available (vim73src.zip).
|
The sources are also available (vim74src.zip).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_dos.txt for version 7.3 of Vim: Vi IMproved.
|
README_dos.txt for version 7.4 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.
|
||||||
@ -47,13 +47,13 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
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\vim73",
|
2. Unpack the zip archives. This will create a new directory "vim\vim74",
|
||||||
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 gvim73.zip
|
pkunzip -d gvim74.zip
|
||||||
unzip vim73w32.zip
|
unzip vim74w32.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\vim73
|
cd vim\vim74
|
||||||
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\vim73
|
set path=%path%;C:\vim\vim74
|
||||||
set path=%path%;D:\editors\vim\vim73
|
set path=%path%;D:\editors\vim\vim74
|
||||||
- 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 7.3 will look for your vimrc file in $VIM, and for the runtime
|
Vim version 7.4 will look for your vimrc file in $VIM, and for the runtime
|
||||||
files in $VIM/vim73. See ":help $VIM" for more information.
|
files in $VIM/vim74. 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\vim73\vim.exe The Vim version 7.3 executable.
|
C:\vim\vim74\vim.exe The Vim version 7.4 executable.
|
||||||
C:\vim\vim73\doc\*.txt The version 7.3 documentation files.
|
C:\vim\vim74\doc\*.txt The version 7.4 documentation files.
|
||||||
C:\vim\vim73\bugreport.vim A Vim version 7.3 script.
|
C:\vim\vim74\bugreport.vim A Vim version 7.4 script.
|
||||||
C:\vim\vim73\... Other version 7.3 distributed files.
|
C:\vim\vim74\... Other version 7.4 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\vim73". Don't add
|
Then $VIMRUNTIME will automatically be set to "$VIM\vim74". Don't add
|
||||||
"vim73" to $VIM, that won't work.
|
"vim74" 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\vim73\vim.exe
|
C:\command.com /c C:\vim\vim74\vim.exe
|
||||||
C:\command.com /c D:\editors\vim\vim73\vim.exe
|
C:\command.com /c D:\editors\vim\vim74\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 7.3 of Vim: Vi IMproved.
|
README_extra.txt for version 7.4 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 7.3 of Vim: Vi IMproved.
|
README_mac.txt for version 7.4 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 7.3 of Vim: Vi IMproved.
|
README_ole.txt for version 7.4 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,32 +1,32 @@
|
|||||||
README_os2.txt for version 7.3 of Vim: Vi IMproved.
|
README_os2.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on OS/2 systems.
|
This file explains the installation of Vim on OS/2 systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|
||||||
|
|
||||||
NOTE: You will need two archives:
|
NOTE: You will need two archives:
|
||||||
vim73rt.zip contains the runtime files (same as for the PC version)
|
vim74rt.zip contains the runtime files (same as for the PC version)
|
||||||
vim73os2.zip contains the OS/2 executables
|
vim74os2.zip contains the OS/2 executables
|
||||||
|
|
||||||
1. Go to the directory where you want to put the Vim files. Examples:
|
1. Go to the directory where you want to put the Vim files. Examples:
|
||||||
cd C:\
|
cd C:\
|
||||||
cd D:\editors
|
cd D:\editors
|
||||||
|
|
||||||
2. Unpack the zip archives. This will create a new directory "vim/vim73",
|
2. Unpack the zip archives. This will create a new directory "vim/vim74",
|
||||||
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 vim73os2.zip
|
pkunzip -d vim74os2.zip
|
||||||
unzip vim73os2.zip
|
unzip vim74os2.zip
|
||||||
|
|
||||||
After you unpacked the files, you can still move the whole directory tree
|
After you unpacked the files, you can still move the whole directory tree
|
||||||
to another location.
|
to another location.
|
||||||
|
|
||||||
3. Add the directory where vim.exe is to your path. The simplest is to add a
|
3. Add the directory where vim.exe is to your path. The simplest is to add a
|
||||||
line to your autoexec.bat. Examples:
|
line to your autoexec.bat. Examples:
|
||||||
set path=%path%;C:\vim\vim73
|
set path=%path%;C:\vim\vim74
|
||||||
set path=%path%;D:\editors\vim\vim73
|
set path=%path%;D:\editors\vim\vim74
|
||||||
|
|
||||||
That's it!
|
That's it!
|
||||||
|
|
||||||
@ -41,10 +41,10 @@ Extra remarks:
|
|||||||
C:\vim\_viminfo Dynamic info for 'viminfo'.
|
C:\vim\_viminfo Dynamic info for 'viminfo'.
|
||||||
C:\vim\... Other files you made.
|
C:\vim\... Other files you made.
|
||||||
Distributed files:
|
Distributed files:
|
||||||
C:\vim\vim73\vim.exe The Vim version 7.3 executable.
|
C:\vim\vim74\vim.exe The Vim version 7.4 executable.
|
||||||
C:\vim\vim73\doc\*.txt The version 7.3 documentation files.
|
C:\vim\vim74\doc\*.txt The version 7.4 documentation files.
|
||||||
C:\vim\vim73\bugreport.vim A Vim version 7.3 script.
|
C:\vim\vim74\bugreport.vim A Vim version 7.4 script.
|
||||||
C:\vim\vim73\... Other version 7.3 distributed files.
|
C:\vim\vim74\... Other version 7.4 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
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_zOS.txt for version 7.3 of Vim: Vi IMproved.
|
README_zOS.txt for version 7.4 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.
|
||||||
@ -29,7 +29,7 @@ console version).
|
|||||||
Compiling:
|
Compiling:
|
||||||
==========
|
==========
|
||||||
|
|
||||||
Vim can be compiled with or without GUI support. For 7.3 only the compilation
|
Vim can be compiled with or without GUI support. For 7.4 only the compilation
|
||||||
without GUI was tested. Below is a section about compiling with X11 but this
|
without GUI was tested. Below is a section about compiling with X11 but this
|
||||||
is from an earlier version of Vim.
|
is from an earlier version of Vim.
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ Change to the vim directory and do:
|
|||||||
With X11:
|
With X11:
|
||||||
---------
|
---------
|
||||||
|
|
||||||
WARNING: This instruction was not tested with Vim 7.3.
|
WARNING: This instruction was not tested with Vim 7.4.
|
||||||
|
|
||||||
There are two ways for building VIM with X11 support. The first way is simple
|
There are two ways for building VIM with X11 support. The first way is simple
|
||||||
and results in a big executable (~13 Mb), the second needs a few additional
|
and results in a big executable (~13 Mb), the second needs a few additional
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
README_src.txt for version 7.3 of Vim: Vi IMproved.
|
README_src.txt for version 7.4 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 also used for other
|
It is packed for Unix systems (NL line separator).
|
||||||
systems in combination with the extra archive (vim-7.3-extra.tar.gz, in the
|
|
||||||
"extra" directory of ftp.vim.org).
|
|
||||||
|
|
||||||
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-7.3-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
archive (vim-7.4-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 7.3 of Vim: Vi IMproved.
|
README_srcdos.txt for version 7.4 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 (vim73rt.zip).
|
These files are in the runtime archive (vim74rt.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 7.3 of Vim: Vi IMproved.
|
README_unix.txt for version 7.4 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 7.3 of Vim: Vi IMproved.
|
README_vms.txt for version 7.4 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 7.3 of Vim: Vi IMproved.
|
README_w32s.txt for version 7.4 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.
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# NSIS file to create a self-installing exe for Vim.
|
# NSIS file to create a self-installing exe for Vim.
|
||||||
# It requires NSIS version 2.0 or later.
|
# It requires NSIS version 2.0 or later.
|
||||||
# Last Change: 2010 Jul 30
|
# Last Change: 2014 Nov 5
|
||||||
|
|
||||||
# WARNING: if you make changes to this script, look out for $0 to be valid,
|
# WARNING: if you make changes to this script, look out for $0 to be valid,
|
||||||
# because uninstall deletes most files in $0.
|
# because uninstall deletes most files in $0.
|
||||||
|
|
||||||
# Location of gvim_ole.exe, vimd32.exe, GvimExt/*, etc.
|
# Location of gvim_ole.exe, vimw32.exe, GvimExt/*, etc.
|
||||||
!define VIMSRC "..\src"
|
!define VIMSRC "..\src"
|
||||||
|
|
||||||
# Location of runtime files
|
# Location of runtime files
|
||||||
@ -22,7 +22,7 @@
|
|||||||
!define HAVE_NLS
|
!define HAVE_NLS
|
||||||
|
|
||||||
!define VER_MAJOR 7
|
!define VER_MAJOR 7
|
||||||
!define VER_MINOR 3
|
!define VER_MINOR 4
|
||||||
|
|
||||||
# ----------- No configurable settings below this line -----------
|
# ----------- No configurable settings below this line -----------
|
||||||
|
|
||||||
@ -38,9 +38,9 @@ SetDatablockOptimize on
|
|||||||
RequestExecutionLevel highest
|
RequestExecutionLevel highest
|
||||||
|
|
||||||
ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer."
|
ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer."
|
||||||
DirText "Choose a directory to install Vim (must end in 'vim')"
|
DirText "Choose a directory to install Vim (should contain 'vim')"
|
||||||
Icon icons\vim_16c.ico
|
Icon icons\vim_16c.ico
|
||||||
# NSIS2 uses a different strategy with six diferent images in a strip...
|
# NSIS2 uses a different strategy with six different images in a strip...
|
||||||
#EnabledBitmap icons\enabled.bmp
|
#EnabledBitmap icons\enabled.bmp
|
||||||
#DisabledBitmap icons\disabled.bmp
|
#DisabledBitmap icons\disabled.bmp
|
||||||
UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system."
|
UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system."
|
||||||
@ -56,6 +56,9 @@ LicenseData ${VIMRT}\doc\uganda.nsis.txt
|
|||||||
!packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
|
!packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
SetCompressor /SOLID lzma
|
||||||
|
XPStyle on
|
||||||
|
|
||||||
# This adds '\vim' to the user choice automagically. The actual value is
|
# This adds '\vim' to the user choice automagically. The actual value is
|
||||||
# obtained below with ReadINIStr.
|
# obtained below with ReadINIStr.
|
||||||
InstallDir "$PROGRAMFILES\Vim"
|
InstallDir "$PROGRAMFILES\Vim"
|
||||||
@ -132,11 +135,6 @@ FunctionEnd
|
|||||||
# We only accept the directory if it ends in "vim". Using .onVerifyInstDir has
|
# We only accept the directory if it ends in "vim". Using .onVerifyInstDir has
|
||||||
# the disadvantage that the browse dialog is difficult to use.
|
# the disadvantage that the browse dialog is difficult to use.
|
||||||
Function CheckInstallDir
|
Function CheckInstallDir
|
||||||
StrCpy $0 $INSTDIR 3 -3
|
|
||||||
StrCmp $0 "vim" PathGood
|
|
||||||
MessageBox MB_OK "The path must end in 'vim'."
|
|
||||||
Abort
|
|
||||||
PathGood:
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function .onInstSuccess
|
Function .onInstSuccess
|
||||||
@ -247,11 +245,10 @@ Section "Vim console program (vim.exe)"
|
|||||||
ReadRegStr $R0 HKLM \
|
ReadRegStr $R0 HKLM \
|
||||||
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
||||||
IfErrors 0 lbl_winnt
|
IfErrors 0 lbl_winnt
|
||||||
# Windows 95/98/ME
|
# Windows 95/98/ME: not supported
|
||||||
File /oname=vim.exe ${VIMSRC}\vimd32.exe
|
|
||||||
Goto lbl_done
|
Goto lbl_done
|
||||||
lbl_winnt:
|
lbl_winnt:
|
||||||
# Windows NT/2000/XT
|
# Windows NT/2000/XP and later
|
||||||
File /oname=vim.exe ${VIMSRC}\vimw32.exe
|
File /oname=vim.exe ${VIMSRC}\vimw32.exe
|
||||||
lbl_done:
|
lbl_done:
|
||||||
StrCpy $2 "$2 vim view vimdiff"
|
StrCpy $2 "$2 vim view vimdiff"
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
|||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" getscript.vim
|
" getscript.vim
|
||||||
" Author: Charles E. Campbell, Jr.
|
" Author: Charles E. Campbell
|
||||||
" Date: Jan 17, 2012
|
" Date: Jan 21, 2014
|
||||||
" Version: 34
|
" Version: 36
|
||||||
" Installing: :help glvs-install
|
" Installing: :help glvs-install
|
||||||
" Usage: :help glvs
|
" Usage: :help glvs
|
||||||
"
|
"
|
||||||
@ -15,7 +15,7 @@
|
|||||||
if exists("g:loaded_getscript")
|
if exists("g:loaded_getscript")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_getscript= "v34"
|
let g:loaded_getscript= "v36"
|
||||||
if &cp
|
if &cp
|
||||||
echoerr "GetLatestVimScripts is not vi-compatible; not loaded (you need to set nocp)"
|
echoerr "GetLatestVimScripts is not vi-compatible; not loaded (you need to set nocp)"
|
||||||
finish
|
finish
|
||||||
@ -74,6 +74,11 @@ if !exists("g:GetLatestVimScripts_allowautoinstall")
|
|||||||
let g:GetLatestVimScripts_allowautoinstall= 1
|
let g:GetLatestVimScripts_allowautoinstall= 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" set up default scriptaddr address
|
||||||
|
if !exists("g:GetLatestVimScripts_scriptaddr")
|
||||||
|
let g:GetLatestVimScripts_scriptaddr = 'http://vim.sourceforge.net/script.php?script_id='
|
||||||
|
endif
|
||||||
|
|
||||||
"" For debugging:
|
"" For debugging:
|
||||||
"let g:GetLatestVimScripts_wget = "echo"
|
"let g:GetLatestVimScripts_wget = "echo"
|
||||||
"let g:GetLatestVimScripts_options = "options"
|
"let g:GetLatestVimScripts_options = "options"
|
||||||
@ -203,8 +208,8 @@ fun! getscript#GetLatestVimScripts()
|
|||||||
let lastline = line("$")
|
let lastline = line("$")
|
||||||
" call Decho("lastline#".lastline)
|
" call Decho("lastline#".lastline)
|
||||||
let firstdir = substitute(&rtp,',.*$','','')
|
let firstdir = substitute(&rtp,',.*$','','')
|
||||||
let plugins = split(globpath(firstdir,"plugin/*.vim"),'\n')
|
let plugins = split(globpath(firstdir,"plugin/**/*.vim"),'\n')
|
||||||
let plugins = plugins + split(globpath(firstdir,"AsNeeded/*.vim"),'\n')
|
let plugins = plugins + split(globpath(firstdir,"AsNeeded/**/*.vim"),'\n')
|
||||||
let foundscript = 0
|
let foundscript = 0
|
||||||
|
|
||||||
" this loop updates the GetLatestVimScripts.dat file
|
" this loop updates the GetLatestVimScripts.dat file
|
||||||
@ -314,7 +319,7 @@ fun! getscript#GetLatestVimScripts()
|
|||||||
if &mod
|
if &mod
|
||||||
silent! w!
|
silent! w!
|
||||||
endif
|
endif
|
||||||
q
|
q!
|
||||||
|
|
||||||
" restore events and current directory
|
" restore events and current directory
|
||||||
exe "cd ".fnameescape(substitute(origdir,'\','/','ge'))
|
exe "cd ".fnameescape(substitute(origdir,'\','/','ge'))
|
||||||
@ -415,7 +420,7 @@ fun! s:GetOneScript(...)
|
|||||||
echo 'considering <'.aicmmnt.'> scriptid='.scriptid.' srcid='.srcid
|
echo 'considering <'.aicmmnt.'> scriptid='.scriptid.' srcid='.srcid
|
||||||
|
|
||||||
" grab a copy of the plugin's vim.sourceforge.net webpage
|
" grab a copy of the plugin's vim.sourceforge.net webpage
|
||||||
let scriptaddr = 'http://vim.sourceforge.net/script.php?script_id='.scriptid
|
let scriptaddr = g:GetLatestVimScripts_scriptaddr.scriptid
|
||||||
let tmpfile = tempname()
|
let tmpfile = tempname()
|
||||||
let v:errmsg = ""
|
let v:errmsg = ""
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Vim autoload file for editing compressed files.
|
" Vim autoload file for editing compressed files.
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2008 Jul 04
|
" Last Change: 2014 Nov 05
|
||||||
|
|
||||||
" These functions are used by the gzip plugin.
|
" These functions are used by the gzip plugin.
|
||||||
|
|
||||||
@ -120,6 +120,8 @@ fun gzip#read(cmd)
|
|||||||
silent! exe "bwipe " . tmp_esc
|
silent! exe "bwipe " . tmp_esc
|
||||||
silent! exe "bwipe " . tmpe_esc
|
silent! exe "bwipe " . tmpe_esc
|
||||||
endif
|
endif
|
||||||
|
" Store the OK flag, so that we can use it when writing.
|
||||||
|
let b:uncompressOk = ok
|
||||||
|
|
||||||
" Restore saved option values.
|
" Restore saved option values.
|
||||||
let &pm = pm_save
|
let &pm = pm_save
|
||||||
@ -146,8 +148,10 @@ endfun
|
|||||||
|
|
||||||
" After writing compressed file: Compress written file with "cmd"
|
" After writing compressed file: Compress written file with "cmd"
|
||||||
fun gzip#write(cmd)
|
fun gzip#write(cmd)
|
||||||
|
if exists('b:uncompressOk') && !b:uncompressOk
|
||||||
|
echomsg "Not compressing file because uncompress failed; reset b:uncompressOk to compress anyway"
|
||||||
" don't do anything if the cmd is not supported
|
" don't do anything if the cmd is not supported
|
||||||
if s:check(a:cmd)
|
elseif s:check(a:cmd)
|
||||||
" Rename the file before compressing it.
|
" Rename the file before compressing it.
|
||||||
let nm = resolve(expand("<afile>"))
|
let nm = resolve(expand("<afile>"))
|
||||||
let nmt = s:tempname(nm)
|
let nmt = s:tempname(nm)
|
||||||
|
@ -1,7 +1,49 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: HTML and XHTML
|
" Language: HTML and XHTML
|
||||||
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2011 Apr 28
|
" Last Change: 2014 Jun 20
|
||||||
|
|
||||||
|
" Distinguish between HTML versions.
|
||||||
|
" To use with other HTML versions add another "elseif" condition to match
|
||||||
|
" proper DOCTYPE.
|
||||||
|
function! htmlcomplete#DetectOmniFlavor()
|
||||||
|
if &filetype == 'xhtml'
|
||||||
|
let b:html_omni_flavor = 'xhtml10s'
|
||||||
|
else
|
||||||
|
let b:html_omni_flavor = 'html401t'
|
||||||
|
endif
|
||||||
|
let i = 1
|
||||||
|
let line = ""
|
||||||
|
while i < 10 && i < line("$")
|
||||||
|
let line = getline(i)
|
||||||
|
if line =~ '<!DOCTYPE.*\<DTD '
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let i += 1
|
||||||
|
endwhile
|
||||||
|
if line =~ '<!DOCTYPE.*\<DTD ' " doctype line found above
|
||||||
|
if line =~ ' HTML 3\.2'
|
||||||
|
let b:html_omni_flavor = 'html32'
|
||||||
|
elseif line =~ ' XHTML 1\.1'
|
||||||
|
let b:html_omni_flavor = 'xhtml11'
|
||||||
|
else " two-step detection with strict/frameset/transitional
|
||||||
|
if line =~ ' XHTML 1\.0'
|
||||||
|
let b:html_omni_flavor = 'xhtml10'
|
||||||
|
elseif line =~ ' HTML 4\.01'
|
||||||
|
let b:html_omni_flavor = 'html401'
|
||||||
|
elseif line =~ ' HTML 4.0\>'
|
||||||
|
let b:html_omni_flavor = 'html40'
|
||||||
|
endif
|
||||||
|
if line =~ '\<Transitional\>'
|
||||||
|
let b:html_omni_flavor .= 't'
|
||||||
|
elseif line =~ '\<Frameset\>'
|
||||||
|
let b:html_omni_flavor .= 'f'
|
||||||
|
else
|
||||||
|
let b:html_omni_flavor .= 's'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! htmlcomplete#CompleteTags(findstart, base)
|
function! htmlcomplete#CompleteTags(findstart, base)
|
||||||
if a:findstart
|
if a:findstart
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,9 @@
|
|||||||
" netrwFileHandlers: contains various extension-based file handlers for
|
" netrwFileHandlers: contains various extension-based file handlers for
|
||||||
" netrw's browsers' x command ("eXecute launcher")
|
" netrw's browsers' x command ("eXecute launcher")
|
||||||
" Author: Charles E. Campbell, Jr.
|
" Author: Charles E. Campbell
|
||||||
" Date: Mar 14, 2012
|
" Date: May 03, 2013
|
||||||
" Version: 11a
|
" Version: 11b ASTRO-ONLY
|
||||||
" Copyright: Copyright (C) 1999-2012 Charles E. Campbell, Jr. {{{1
|
" Copyright: Copyright (C) 1999-2012 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
" notice is copied with it. Like anything else that's free,
|
" notice is copied with it. Like anything else that's free,
|
||||||
@ -20,7 +20,7 @@
|
|||||||
if exists("g:loaded_netrwFileHandlers") || &cp
|
if exists("g:loaded_netrwFileHandlers") || &cp
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_netrwFileHandlers= "v11a"
|
let g:loaded_netrwFileHandlers= "v11b"
|
||||||
if v:version < 702
|
if v:version < 702
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of netrwFileHandlers needs vim 7.2"
|
echo "***warning*** this version of netrwFileHandlers needs vim 7.2"
|
||||||
@ -34,10 +34,10 @@ set cpo&vim
|
|||||||
" netrwFileHandlers#Invoke: {{{1
|
" netrwFileHandlers#Invoke: {{{1
|
||||||
fun! netrwFileHandlers#Invoke(exten,fname)
|
fun! netrwFileHandlers#Invoke(exten,fname)
|
||||||
" call Dfunc("netrwFileHandlers#Invoke(exten<".a:exten."> fname<".a:fname.">)")
|
" call Dfunc("netrwFileHandlers#Invoke(exten<".a:exten."> fname<".a:fname.">)")
|
||||||
let fname= a:fname
|
let exten= a:exten
|
||||||
" list of supported special characters. Consider rcs,v --- that can be
|
" list of supported special characters. Consider rcs,v --- that can be
|
||||||
" supported with a NFH_rcsCOMMAv() handler
|
" supported with a NFH_rcsCOMMAv() handler
|
||||||
if a:fname =~ '[@:,$!=\-+%?;~]'
|
if exten =~ '[@:,$!=\-+%?;~]'
|
||||||
let specials= {
|
let specials= {
|
||||||
\ '@' : 'AT',
|
\ '@' : 'AT',
|
||||||
\ ':' : 'COLON',
|
\ ':' : 'COLON',
|
||||||
@ -51,18 +51,18 @@ fun! netrwFileHandlers#Invoke(exten,fname)
|
|||||||
\ '?' : 'QUESTION',
|
\ '?' : 'QUESTION',
|
||||||
\ ';' : 'SEMICOLON',
|
\ ';' : 'SEMICOLON',
|
||||||
\ '~' : 'TILDE'}
|
\ '~' : 'TILDE'}
|
||||||
let fname= substitute(a:fname,'[@:,$!=\-+%?;~]','\=specials[submatch(0)]','ge')
|
let exten= substitute(a:exten,'[@:,$!=\-+%?;~]','\=specials[submatch(0)]','ge')
|
||||||
" call Decho('fname<'.fname.'> done with dictionary')
|
" call Decho('fname<'.fname.'> done with dictionary')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:exten != "" && exists("*NFH_".a:exten)
|
if a:exten != "" && exists("*NFH_".exten)
|
||||||
" support user NFH_*() functions
|
" support user NFH_*() functions
|
||||||
" call Decho("let ret= netrwFileHandlers#NFH_".a:exten.'("'.fname.'")')
|
" call Decho("let ret= netrwFileHandlers#NFH_".a:exten.'("'.fname.'")')
|
||||||
exe "let ret= NFH_".a:exten.'("'.fname.'")'
|
exe "let ret= NFH_".exten.'("'.a:fname.'")'
|
||||||
elseif a:exten != "" && exists("*s:NFH_".a:exten)
|
elseif a:exten != "" && exists("*s:NFH_".exten)
|
||||||
" use builtin-NFH_*() functions
|
" use builtin-NFH_*() functions
|
||||||
" call Decho("let ret= netrwFileHandlers#NFH_".a:exten.'("'.fname.'")')
|
" call Decho("let ret= netrwFileHandlers#NFH_".a:exten.'("'.fname.'")')
|
||||||
exe "let ret= s:NFH_".a:exten.'("'.fname.'")'
|
exe "let ret= s:NFH_".a:exten.'("'.a:fname.'")'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" call Dret("netrwFileHandlers#Invoke 0 : ret=".ret)
|
" call Dret("netrwFileHandlers#Invoke 0 : ret=".ret)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
" netrwSettings.vim: makes netrw settings simpler
|
" netrwSettings.vim: makes netrw settings simpler
|
||||||
" Date: Sep 03, 2008
|
" Date: Aug 27, 2013
|
||||||
" Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz>
|
" Maintainer: Charles E Campbell <drchipNOSPAM at campbellfamily dot biz>
|
||||||
" Version: 13
|
" Version: 14
|
||||||
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell, Jr. {{{1
|
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
" notice is copied with it. Like anything else that's free,
|
" notice is copied with it. Like anything else that's free,
|
||||||
@ -19,7 +19,7 @@
|
|||||||
if exists("g:loaded_netrwSettings") || &cp
|
if exists("g:loaded_netrwSettings") || &cp
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_netrwSettings = "v13"
|
let g:loaded_netrwSettings = "v14"
|
||||||
if v:version < 700
|
if v:version < 700
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
||||||
@ -63,7 +63,7 @@ fun! netrwSettings#NetrwSettings()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
put ='+ ---------------------------------------------'
|
put ='+ ---------------------------------------------'
|
||||||
put ='+ NetrwSettings: by Charles E. Campbell, Jr.'
|
put ='+ NetrwSettings: by Charles E. Campbell'
|
||||||
put ='+ Press <F1> with cursor atop any line for help'
|
put ='+ Press <F1> with cursor atop any line for help'
|
||||||
put ='+ ---------------------------------------------'
|
put ='+ ---------------------------------------------'
|
||||||
let s:netrw_settings_stop= line(".")
|
let s:netrw_settings_stop= line(".")
|
||||||
@ -88,6 +88,7 @@ fun! netrwSettings#NetrwSettings()
|
|||||||
put = 'let g:netrw_ftpmode = '.g:netrw_ftpmode
|
put = 'let g:netrw_ftpmode = '.g:netrw_ftpmode
|
||||||
put = 'let g:netrw_ignorenetrc = '.g:netrw_ignorenetrc
|
put = 'let g:netrw_ignorenetrc = '.g:netrw_ignorenetrc
|
||||||
put = 'let g:netrw_sshport = '.g:netrw_sshport
|
put = 'let g:netrw_sshport = '.g:netrw_sshport
|
||||||
|
put = 'let g:netrw_silent = '.g:netrw_silent
|
||||||
put = 'let g:netrw_use_nt_rcp = '.g:netrw_use_nt_rcp
|
put = 'let g:netrw_use_nt_rcp = '.g:netrw_use_nt_rcp
|
||||||
put = 'let g:netrw_win95ftp = '.g:netrw_win95ftp
|
put = 'let g:netrw_win95ftp = '.g:netrw_win95ftp
|
||||||
let s:netrw_xfer_stop= line(".")
|
let s:netrw_xfer_stop= line(".")
|
||||||
@ -97,29 +98,57 @@ fun! netrwSettings#NetrwSettings()
|
|||||||
|
|
||||||
put = ''
|
put = ''
|
||||||
put ='+ Netrw Browser Control'
|
put ='+ Netrw Browser Control'
|
||||||
|
if exists("g:netrw_altfile")
|
||||||
|
put = 'let g:netrw_altfile = '.g:netrw_altfile
|
||||||
|
else
|
||||||
|
put = 'let g:netrw_altfile = 0'
|
||||||
|
endif
|
||||||
put = 'let g:netrw_alto = '.g:netrw_alto
|
put = 'let g:netrw_alto = '.g:netrw_alto
|
||||||
put = 'let g:netrw_altv = '.g:netrw_altv
|
put = 'let g:netrw_altv = '.g:netrw_altv
|
||||||
|
put = 'let g:netrw_banner = '.g:netrw_banner
|
||||||
|
if exists("g:netrw_bannerbackslash")
|
||||||
|
put = 'let g:netrw_bannerbackslash = '.g:netrw_bannerbackslash
|
||||||
|
else
|
||||||
|
put = '\" let g:netrw_bannerbackslash = (not defined)'
|
||||||
|
endif
|
||||||
put = 'let g:netrw_browse_split = '.g:netrw_browse_split
|
put = 'let g:netrw_browse_split = '.g:netrw_browse_split
|
||||||
if exists("g:netrw_browsex_viewer")
|
if exists("g:netrw_browsex_viewer")
|
||||||
put = 'let g:netrw_browsex_viewer = '.g:netrw_browsex_viewer
|
put = 'let g:netrw_browsex_viewer = '.g:netrw_browsex_viewer
|
||||||
else
|
else
|
||||||
put = 'let g:netrw_browsex_viewer = (not defined)'
|
put = '\" let g:netrw_browsex_viewer = (not defined)'
|
||||||
endif
|
endif
|
||||||
put = 'let g:netrw_compress = '.g:netrw_compress
|
put = 'let g:netrw_compress = '.g:netrw_compress
|
||||||
|
if exists("g:Netrw_corehandler")
|
||||||
|
put = 'let g:Netrw_corehandler = '.g:Netrw_corehandler
|
||||||
|
else
|
||||||
|
put = '\" let g:Netrw_corehandler = (not defined)'
|
||||||
|
endif
|
||||||
|
put = 'let g:netrw_ctags = '.g:netrw_ctags
|
||||||
put = 'let g:netrw_cursor = '.g:netrw_cursor
|
put = 'let g:netrw_cursor = '.g:netrw_cursor
|
||||||
let decompressline= line("$")
|
let decompressline= line("$")
|
||||||
put ='let g:netrw_decompress...'
|
put = 'let g:netrw_decompress = '.string(g:netrw_decompress)
|
||||||
|
if exists("g:netrw_dynamic_maxfilenamelen")
|
||||||
|
put = 'let g:netrw_dynamic_maxfilenamelen='.g:netrw_dynamic_maxfilenamelen
|
||||||
|
else
|
||||||
|
put = '\" let g:netrw_dynamic_maxfilenamelen= (not defined)'
|
||||||
|
endif
|
||||||
put = 'let g:netrw_dirhistmax = '.g:netrw_dirhistmax
|
put = 'let g:netrw_dirhistmax = '.g:netrw_dirhistmax
|
||||||
|
put = 'let g:netrw_errorlvl = '.g:netrw_errorlvl
|
||||||
put = 'let g:netrw_fastbrowse = '.g:netrw_fastbrowse
|
put = 'let g:netrw_fastbrowse = '.g:netrw_fastbrowse
|
||||||
let fnameescline= line("$")
|
let fnameescline= line("$")
|
||||||
put = 'let g:netrw_fname_escape...'
|
put = 'let g:netrw_fname_escape = '.string(g:netrw_fname_escape)
|
||||||
put = 'let g:netrw_ftp_browse_reject = '.g:netrw_ftp_browse_reject
|
put = 'let g:netrw_ftp_browse_reject = '.g:netrw_ftp_browse_reject
|
||||||
put = 'let g:netrw_ftp_list_cmd = '.g:netrw_ftp_list_cmd
|
put = 'let g:netrw_ftp_list_cmd = '.g:netrw_ftp_list_cmd
|
||||||
put = 'let g:netrw_ftp_sizelist_cmd = '.g:netrw_ftp_sizelist_cmd
|
put = 'let g:netrw_ftp_sizelist_cmd = '.g:netrw_ftp_sizelist_cmd
|
||||||
put = 'let g:netrw_ftp_timelist_cmd = '.g:netrw_ftp_timelist_cmd
|
put = 'let g:netrw_ftp_timelist_cmd = '.g:netrw_ftp_timelist_cmd
|
||||||
let globescline= line("$")
|
let globescline= line("$")
|
||||||
put ='let g:netrw_glob_escape...'
|
put = 'let g:netrw_glob_escape = '.string(g:netrw_glob_escape)
|
||||||
put = 'let g:netrw_hide = '.g:netrw_hide
|
put = 'let g:netrw_hide = '.g:netrw_hide
|
||||||
|
if exists("g:netrw_home")
|
||||||
|
put = 'let g:netrw_home = '.g:netrw_home
|
||||||
|
else
|
||||||
|
put = '\" let g:netrw_home = (not defined)'
|
||||||
|
endif
|
||||||
put = 'let g:netrw_keepdir = '.g:netrw_keepdir
|
put = 'let g:netrw_keepdir = '.g:netrw_keepdir
|
||||||
put = 'let g:netrw_list_cmd = '.g:netrw_list_cmd
|
put = 'let g:netrw_list_cmd = '.g:netrw_list_cmd
|
||||||
put = 'let g:netrw_list_hide = '.g:netrw_list_hide
|
put = 'let g:netrw_list_hide = '.g:netrw_list_hide
|
||||||
@ -127,23 +156,30 @@ fun! netrwSettings#NetrwSettings()
|
|||||||
put = 'let g:netrw_localcopycmd = '.g:netrw_localcopycmd
|
put = 'let g:netrw_localcopycmd = '.g:netrw_localcopycmd
|
||||||
put = 'let g:netrw_localmkdir = '.g:netrw_localmkdir
|
put = 'let g:netrw_localmkdir = '.g:netrw_localmkdir
|
||||||
put = 'let g:netrw_localmovecmd = '.g:netrw_localmovecmd
|
put = 'let g:netrw_localmovecmd = '.g:netrw_localmovecmd
|
||||||
put = 'let g:netrw_localrmdir = '.g:netrw_localrmdir
|
put = 'let g:netrw_localrmdir = '.g:netrw_localrmdir
|
||||||
put = 'let g:netrw_maxfilenamelen = '.g:netrw_maxfilenamelen
|
put = 'let g:netrw_maxfilenamelen = '.g:netrw_maxfilenamelen
|
||||||
put = 'let g:netrw_menu = '.g:netrw_menu
|
put = 'let g:netrw_menu = '.g:netrw_menu
|
||||||
|
put = 'let g:netrw_mousemaps = '.g:netrw_mousemaps
|
||||||
put = 'let g:netrw_mkdir_cmd = '.g:netrw_mkdir_cmd
|
put = 'let g:netrw_mkdir_cmd = '.g:netrw_mkdir_cmd
|
||||||
|
if exists("g:netrw_nobeval")
|
||||||
|
put = 'let g:netrw_nobeval = '.g:netrw_nobeval
|
||||||
|
else
|
||||||
|
put = '\" let g:netrw_nobeval = (not defined)'
|
||||||
|
endif
|
||||||
|
put = 'let g:netrw_remote_mkdir = '.g:netrw_remote_mkdir
|
||||||
put = 'let g:netrw_preview = '.g:netrw_preview
|
put = 'let g:netrw_preview = '.g:netrw_preview
|
||||||
put = 'let g:netrw_rename_cmd = '.g:netrw_rename_cmd
|
put = 'let g:netrw_rename_cmd = '.g:netrw_rename_cmd
|
||||||
put = 'let g:netrw_retmap = '.g:netrw_retmap
|
put = 'let g:netrw_retmap = '.g:netrw_retmap
|
||||||
put = 'let g:netrw_rm_cmd = '.g:netrw_rm_cmd
|
put = 'let g:netrw_rm_cmd = '.g:netrw_rm_cmd
|
||||||
put = 'let g:netrw_rmdir_cmd = '.g:netrw_rmdir_cmd
|
put = 'let g:netrw_rmdir_cmd = '.g:netrw_rmdir_cmd
|
||||||
put = 'let g:netrw_rmf_cmd = '.g:netrw_rmf_cmd
|
put = 'let g:netrw_rmf_cmd = '.g:netrw_rmf_cmd
|
||||||
put = 'let g:netrw_silent = '.g:netrw_silent
|
|
||||||
put = 'let g:netrw_sort_by = '.g:netrw_sort_by
|
put = 'let g:netrw_sort_by = '.g:netrw_sort_by
|
||||||
put = 'let g:netrw_sort_direction = '.g:netrw_sort_direction
|
put = 'let g:netrw_sort_direction = '.g:netrw_sort_direction
|
||||||
put = 'let g:netrw_sort_options = '.g:netrw_sort_options
|
put = 'let g:netrw_sort_options = '.g:netrw_sort_options
|
||||||
put = 'let g:netrw_sort_sequence = '.g:netrw_sort_sequence
|
put = 'let g:netrw_sort_sequence = '.g:netrw_sort_sequence
|
||||||
put = 'let g:netrw_special_syntax = '.g:netrw_special_syntax
|
put = 'let g:netrw_special_syntax = '.g:netrw_special_syntax
|
||||||
put = 'let g:netrw_ssh_browse_reject = '.g:netrw_ssh_browse_reject
|
put = 'let g:netrw_ssh_browse_reject = '.g:netrw_ssh_browse_reject
|
||||||
|
put = 'let g:netrw_ssh_cmd = '.g:netrw_ssh_cmd
|
||||||
put = 'let g:netrw_scpport = '.g:netrw_scpport
|
put = 'let g:netrw_scpport = '.g:netrw_scpport
|
||||||
put = 'let g:netrw_sepchr = '.g:netrw_sepchr
|
put = 'let g:netrw_sepchr = '.g:netrw_sepchr
|
||||||
put = 'let g:netrw_sshport = '.g:netrw_sshport
|
put = 'let g:netrw_sshport = '.g:netrw_sshport
|
||||||
|
71
runtime/autoload/netrw_gitignore.vim
Normal file
71
runtime/autoload/netrw_gitignore.vim
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
" netrw_gitignore#Hide: gitignore-based hiding
|
||||||
|
" Function returns a string of comma separated patterns convenient for
|
||||||
|
" assignment to `g:netrw_list_hide` option.
|
||||||
|
" Function can take additional filenames as arguments, example:
|
||||||
|
" netrw_gitignore#Hide('custom_gitignore1', 'custom_gitignore2')
|
||||||
|
"
|
||||||
|
" Usage examples:
|
||||||
|
" let g:netrw_list_hide = netrw_gitignore#Hide()
|
||||||
|
" let g:netrw_list_hide = netrw_gitignore#Hide() . 'more,hide,patterns'
|
||||||
|
"
|
||||||
|
" Copyright: Copyright (C) 2013 Bruno Sutic {{{1
|
||||||
|
" Permission is hereby granted to use and distribute this code,
|
||||||
|
" with or without modifications, provided that this copyright
|
||||||
|
" notice is copied with it. Like anything else that's free,
|
||||||
|
" netrw_gitignore.vim is provided *as is* and comes with no
|
||||||
|
" warranty of any kind, either expressed or implied. By using
|
||||||
|
" this plugin, you agree that in no event will the copyright
|
||||||
|
" holder be liable for any damages resulting from the use
|
||||||
|
" of this software.
|
||||||
|
function! netrw_gitignore#Hide(...)
|
||||||
|
let additional_files = a:000
|
||||||
|
|
||||||
|
let default_files = ['.gitignore', '.git/info/exclude']
|
||||||
|
|
||||||
|
" get existing global/system gitignore files
|
||||||
|
let global_gitignore = expand(substitute(system("git config --global core.excludesfile"), '\n', '', 'g'))
|
||||||
|
if global_gitignore !=# ''
|
||||||
|
let default_files = add(default_files, global_gitignore)
|
||||||
|
endif
|
||||||
|
let system_gitignore = expand(substitute(system("git config --system core.excludesfile"), '\n', '', 'g'))
|
||||||
|
if system_gitignore !=# ''
|
||||||
|
let default_files = add(default_files, system_gitignore)
|
||||||
|
endif
|
||||||
|
|
||||||
|
" append additional files if given as function arguments
|
||||||
|
if additional_files !=# []
|
||||||
|
let files = extend(default_files, additional_files)
|
||||||
|
else
|
||||||
|
let files = default_files
|
||||||
|
endif
|
||||||
|
|
||||||
|
" keep only existing/readable files
|
||||||
|
let gitignore_files = []
|
||||||
|
for file in files
|
||||||
|
if filereadable(file)
|
||||||
|
let gitignore_files = add(gitignore_files, file)
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" get contents of gitignore patterns from those files
|
||||||
|
let gitignore_lines = []
|
||||||
|
for file in gitignore_files
|
||||||
|
for line in readfile(file)
|
||||||
|
" filter empty lines and comments
|
||||||
|
if line !~# '^#' && line !~# '^$'
|
||||||
|
let gitignore_lines = add(gitignore_lines, line)
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" convert gitignore patterns to Netrw/Vim regex patterns
|
||||||
|
let escaped_lines = []
|
||||||
|
for line in gitignore_lines
|
||||||
|
let escaped = line
|
||||||
|
let escaped = substitute(escaped, '\.', '\\.', 'g')
|
||||||
|
let escaped = substitute(escaped, '*', '.*', 'g')
|
||||||
|
let escaped_lines = add(escaped_lines, escaped)
|
||||||
|
endfor
|
||||||
|
|
||||||
|
return join(escaped_lines, ',')
|
||||||
|
endfunction
|
File diff suppressed because one or more lines are too long
@ -1,9 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: Ruby
|
" Language: Ruby
|
||||||
" Maintainer: Mark Guzman <segfault@hasno.info>
|
" Maintainer: Mark Guzman <segfault@hasno.info>
|
||||||
" Last Change: 2009 Sep 28
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Maintainer Version: 0.8.1
|
" Maintainer Version: 0.8.1
|
||||||
" ----------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------
|
||||||
@ -12,16 +10,23 @@
|
|||||||
" ----------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------
|
||||||
|
|
||||||
" {{{ requirement checks
|
" {{{ requirement checks
|
||||||
|
|
||||||
|
function! s:ErrMsg(msg)
|
||||||
|
echohl ErrorMsg
|
||||||
|
echo a:msg
|
||||||
|
echohl None
|
||||||
|
endfunction
|
||||||
|
|
||||||
if !has('ruby')
|
if !has('ruby')
|
||||||
s:ErrMsg( "Error: Rubycomplete requires vim compiled with +ruby" )
|
call s:ErrMsg( "Error: Rubycomplete requires vim compiled with +ruby" )
|
||||||
s:ErrMsg( "Error: falling back to syntax completion" )
|
call s:ErrMsg( "Error: falling back to syntax completion" )
|
||||||
" lets fall back to syntax completion
|
" lets fall back to syntax completion
|
||||||
setlocal omnifunc=syntaxcomplete#Complete
|
setlocal omnifunc=syntaxcomplete#Complete
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if version < 700
|
if version < 700
|
||||||
s:ErrMsg( "Error: Required vim >= 7.0" )
|
call s:ErrMsg( "Error: Required vim >= 7.0" )
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
" }}} requirement checks
|
" }}} requirement checks
|
||||||
@ -51,12 +56,6 @@ endif
|
|||||||
" {{{ vim-side support functions
|
" {{{ vim-side support functions
|
||||||
let s:rubycomplete_debug = 0
|
let s:rubycomplete_debug = 0
|
||||||
|
|
||||||
function! s:ErrMsg(msg)
|
|
||||||
echohl ErrorMsg
|
|
||||||
echo a:msg
|
|
||||||
echohl None
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! s:dprint(msg)
|
function! s:dprint(msg)
|
||||||
if s:rubycomplete_debug == 1
|
if s:rubycomplete_debug == 1
|
||||||
echom a:msg
|
echom a:msg
|
||||||
@ -133,7 +132,7 @@ function! s:GetRubyVarType(v)
|
|||||||
let stopline = 1
|
let stopline = 1
|
||||||
let vtp = ''
|
let vtp = ''
|
||||||
let pos = getpos('.')
|
let pos = getpos('.')
|
||||||
let sstr = '^\s*#\s*@var\s*'.a:v.'\>\s\+[^ \t]\+\s*$'
|
let sstr = '^\s*#\s*@var\s*'.escape(a:v, '*').'\>\s\+[^ \t]\+\s*$'
|
||||||
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
|
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
|
||||||
if lnum != 0 && lcol != 0
|
if lnum != 0 && lcol != 0
|
||||||
call setpos('.',pos)
|
call setpos('.',pos)
|
||||||
@ -275,7 +274,7 @@ class VimRubyCompletion
|
|||||||
pare = /^\s*class\s*(.*)\s*<\s*(.*)\s*\n/.match( classdef )
|
pare = /^\s*class\s*(.*)\s*<\s*(.*)\s*\n/.match( classdef )
|
||||||
load_buffer_class( $2 ) if pare != nil && $2 != name # load parent class if needed
|
load_buffer_class( $2 ) if pare != nil && $2 != name # load parent class if needed
|
||||||
|
|
||||||
mixre = /.*\n\s*include\s*(.*)\s*\n/.match( classdef )
|
mixre = /.*\n\s*(include|prepend)\s*(.*)\s*\n/.match( classdef )
|
||||||
load_buffer_module( $2 ) if mixre != nil && $2 != name # load mixins if needed
|
load_buffer_module( $2 ) if mixre != nil && $2 != name # load mixins if needed
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -364,6 +363,10 @@ class VimRubyCompletion
|
|||||||
print txt if @@debug
|
print txt if @@debug
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def escape_vim_singlequote_string(str)
|
||||||
|
str.to_s.gsub(/'/,"\\'")
|
||||||
|
end
|
||||||
|
|
||||||
def get_buffer_entity_list( type )
|
def get_buffer_entity_list( type )
|
||||||
# this will be a little expensive.
|
# this will be a little expensive.
|
||||||
loading_allowed = VIM::evaluate("exists('g:rubycomplete_buffer_loading') && g:rubycomplete_buffer_loading")
|
loading_allowed = VIM::evaluate("exists('g:rubycomplete_buffer_loading') && g:rubycomplete_buffer_loading")
|
||||||
@ -526,9 +529,9 @@ class VimRubyCompletion
|
|||||||
end
|
end
|
||||||
|
|
||||||
def clean_sel(sel, msg)
|
def clean_sel(sel, msg)
|
||||||
sel.delete_if { |x| x == nil }
|
ret = sel.reject{|x|x.nil?}.uniq
|
||||||
sel.uniq!
|
ret = ret.grep(/^#{Regexp.quote(msg)}/) if msg != nil
|
||||||
sel.grep(/^#{Regexp.quote(msg)}/) if msg != nil
|
ret
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_rails_view_methods
|
def get_rails_view_methods
|
||||||
@ -767,10 +770,10 @@ class VimRubyCompletion
|
|||||||
constants = clean_sel( constants, message )
|
constants = clean_sel( constants, message )
|
||||||
|
|
||||||
valid = []
|
valid = []
|
||||||
valid += methods.collect { |m| { :name => m, :type => 'm' } }
|
valid += methods.collect { |m| { :name => m.to_s, :type => 'm' } }
|
||||||
valid += variables.collect { |v| { :name => v, :type => 'v' } }
|
valid += variables.collect { |v| { :name => v.to_s, :type => 'v' } }
|
||||||
valid += classes.collect { |c| { :name => c, :type => 't' } }
|
valid += classes.collect { |c| { :name => c.to_s, :type => 't' } }
|
||||||
valid += constants.collect { |d| { :name => d, :type => 'd' } }
|
valid += constants.collect { |d| { :name => d.to_s, :type => 'd' } }
|
||||||
valid.sort! { |x,y| x[:name] <=> y[:name] }
|
valid.sort! { |x,y| x[:name] <=> y[:name] }
|
||||||
|
|
||||||
outp = ""
|
outp = ""
|
||||||
@ -779,7 +782,7 @@ class VimRubyCompletion
|
|||||||
rg.step(150) do |x|
|
rg.step(150) do |x|
|
||||||
stpos = 0+x
|
stpos = 0+x
|
||||||
enpos = 150+x
|
enpos = 150+x
|
||||||
valid[stpos..enpos].each { |c| outp += "{'word':'%s','item':'%s','kind':'%s'}," % [ c[:name], c[:name], c[:type] ] }
|
valid[stpos..enpos].each { |c| outp += "{'word':'%s','item':'%s','kind':'%s'}," % [ c[:name], c[:name], c[:type] ].map{|x|escape_vim_singlequote_string(x)} }
|
||||||
outp.sub!(/,$/, '')
|
outp.sub!(/,$/, '')
|
||||||
|
|
||||||
VIM::command("call extend(g:rubycomplete_completions, [%s])" % outp)
|
VIM::command("call extend(g:rubycomplete_completions, [%s])" % outp)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
" Vim OMNI completion script for SQL
|
" Vim OMNI completion script for SQL
|
||||||
" 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: 14.0
|
" Version: 15.0
|
||||||
" Last Change: 2012 Dec 04
|
" Last Change: 2013 May 13
|
||||||
" 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"
|
||||||
@ -11,6 +11,18 @@
|
|||||||
|
|
||||||
" History
|
" History
|
||||||
"
|
"
|
||||||
|
" TODO
|
||||||
|
" - Jonas Enberg - if no table is found when using column completion
|
||||||
|
" look backwards to a FROM clause and find the first table
|
||||||
|
" and complete it.
|
||||||
|
"
|
||||||
|
" Version 15.0 (May 2013)
|
||||||
|
" - NF: Changed the SQL precached syntax items, omni_sql_precache_syntax_groups,
|
||||||
|
" to use regular expressions to pick up extended syntax group names.
|
||||||
|
" This requires an updated SyntaxComplete plugin version 13.0.
|
||||||
|
" If the required versions have not been installed, previous
|
||||||
|
" behaviour will not be impacted.
|
||||||
|
"
|
||||||
" Version 14.0 (Dec 2012)
|
" Version 14.0 (Dec 2012)
|
||||||
" - BF: Added check for cpo
|
" - BF: Added check for cpo
|
||||||
"
|
"
|
||||||
@ -91,7 +103,7 @@ endif
|
|||||||
if exists('g:loaded_sql_completion')
|
if exists('g:loaded_sql_completion')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_sql_completion = 130
|
let g:loaded_sql_completion = 150
|
||||||
let s:keepcpo= &cpo
|
let s:keepcpo= &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
@ -110,12 +122,14 @@ let s:syn_value = []
|
|||||||
" Used in conjunction with the syntaxcomplete plugin
|
" Used in conjunction with the syntaxcomplete plugin
|
||||||
let s:save_inc = ""
|
let s:save_inc = ""
|
||||||
let s:save_exc = ""
|
let s:save_exc = ""
|
||||||
if exists('g:omni_syntax_group_include_sql')
|
if !exists('g:omni_syntax_group_include_sql')
|
||||||
let s:save_inc = g:omni_syntax_group_include_sql
|
let g:omni_syntax_group_include_sql = ''
|
||||||
endif
|
endif
|
||||||
if exists('g:omni_syntax_group_exclude_sql')
|
if !exists('g:omni_syntax_group_exclude_sql')
|
||||||
let s:save_exc = g:omni_syntax_group_exclude_sql
|
let g:omni_syntax_group_exclude_sql = ''
|
||||||
endif
|
endif
|
||||||
|
let s:save_inc = g:omni_syntax_group_include_sql
|
||||||
|
let s:save_exc = g:omni_syntax_group_exclude_sql
|
||||||
|
|
||||||
" Used with the column list
|
" Used with the column list
|
||||||
let s:save_prev_table = ""
|
let s:save_prev_table = ""
|
||||||
@ -127,12 +141,12 @@ endif
|
|||||||
" Default syntax items to precache
|
" Default syntax items to precache
|
||||||
if !exists('g:omni_sql_precache_syntax_groups')
|
if !exists('g:omni_sql_precache_syntax_groups')
|
||||||
let g:omni_sql_precache_syntax_groups = [
|
let g:omni_sql_precache_syntax_groups = [
|
||||||
\ 'syntax',
|
\ 'syntax\w*',
|
||||||
\ 'sqlKeyword',
|
\ 'sqlKeyword\w*',
|
||||||
\ 'sqlFunction',
|
\ 'sqlFunction\w*',
|
||||||
\ 'sqlOption',
|
\ 'sqlOption\w*',
|
||||||
\ 'sqlType',
|
\ 'sqlType\w*',
|
||||||
\ 'sqlStatement'
|
\ 'sqlStatement\w*'
|
||||||
\ ]
|
\ ]
|
||||||
endif
|
endif
|
||||||
" Set ignorecase to the ftplugin standard
|
" Set ignorecase to the ftplugin standard
|
||||||
@ -621,19 +635,23 @@ function! s:SQLCGetSyntaxList(syn_group)
|
|||||||
" Return previously cached value
|
" Return previously cached value
|
||||||
let compl_list = s:syn_value[list_idx]
|
let compl_list = s:syn_value[list_idx]
|
||||||
else
|
else
|
||||||
|
let s:save_inc = g:omni_syntax_group_include_sql
|
||||||
|
let s:save_exc = g:omni_syntax_group_exclude_sql
|
||||||
|
let g:omni_syntax_group_include_sql = ''
|
||||||
|
let g:omni_syntax_group_exclude_sql = ''
|
||||||
|
|
||||||
" Request the syntax list items from the
|
" Request the syntax list items from the
|
||||||
" syntax completion plugin
|
" syntax completion plugin
|
||||||
if syn_group == 'syntax'
|
if syn_group == 'syntax'
|
||||||
" Handle this special case. This allows the user
|
" Handle this special case. This allows the user
|
||||||
" to indicate they want all the syntax items available,
|
" to indicate they want all the syntax items available,
|
||||||
" so do not specify a specific include list.
|
" so do not specify a specific include list.
|
||||||
let g:omni_syntax_group_include_sql = ''
|
let syn_value = syntaxcomplete#OmniSyntaxList()
|
||||||
else
|
else
|
||||||
" The user has specified a specific syntax group
|
" The user has specified a specific syntax group
|
||||||
let g:omni_syntax_group_include_sql = syn_group
|
let g:omni_syntax_group_include_sql = syn_group
|
||||||
|
let syn_value = syntaxcomplete#OmniSyntaxList(syn_group)
|
||||||
endif
|
endif
|
||||||
let g:omni_syntax_group_exclude_sql = ''
|
|
||||||
let syn_value = syntaxcomplete#OmniSyntaxList()
|
|
||||||
let g:omni_syntax_group_include_sql = s:save_inc
|
let g:omni_syntax_group_include_sql = s:save_inc
|
||||||
let g:omni_syntax_group_exclude_sql = s:save_exc
|
let g:omni_syntax_group_exclude_sql = s:save_exc
|
||||||
" Cache these values for later use
|
" Cache these values for later use
|
||||||
|
@ -1,18 +1,34 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: All languages, uses existing syntax highlighting rules
|
" Language: All languages, uses existing syntax highlighting rules
|
||||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||||
" Version: 11.0
|
" Version: 13.0
|
||||||
" Last Change: 2012 Dec 04
|
" Last Change: 2013 May 14
|
||||||
" Usage: For detailed help, ":help ft-syntax-omni"
|
" Usage: For detailed help, ":help ft-syntax-omni"
|
||||||
|
|
||||||
" History
|
" History
|
||||||
"
|
"
|
||||||
|
" Version 13.0
|
||||||
|
" - Extended the option omni_syntax_group_include_{filetype}
|
||||||
|
" to accept a comma separated list of regex's rather than
|
||||||
|
" string. For example, for the javascript filetype you could
|
||||||
|
" use:
|
||||||
|
" let g:omni_syntax_group_include_javascript = 'javascript\w\+,jquery\w\+'
|
||||||
|
" - Some syntax files (perl.vim) use the match // syntax as a mechanism
|
||||||
|
" to identify keywords. This update attempts to parse the
|
||||||
|
" match syntax and pull out syntax items which are at least
|
||||||
|
" 3 words or more.
|
||||||
|
"
|
||||||
|
" Version 12.0
|
||||||
|
" - It is possible to have '-' as part of iskeyword, when
|
||||||
|
" checking for character ranges, tighten up the regex.
|
||||||
|
" E688: More targets than List items.
|
||||||
|
"
|
||||||
" Version 11.0
|
" Version 11.0
|
||||||
" Corrected which characters required escaping during
|
" - Corrected which characters required escaping during
|
||||||
" substitution calls.
|
" substitution calls.
|
||||||
"
|
"
|
||||||
" Version 10.0
|
" Version 10.0
|
||||||
" Cycle through all the character ranges specified in the
|
" - Cycle through all the character ranges specified in the
|
||||||
" iskeyword option and build a list of valid word separators.
|
" iskeyword option and build a list of valid word separators.
|
||||||
" Prior to this change, only actual characters were used,
|
" Prior to this change, only actual characters were used,
|
||||||
" where for example ASCII "45" == "-". If "45" were used
|
" where for example ASCII "45" == "-". If "45" were used
|
||||||
@ -20,30 +36,30 @@
|
|||||||
" This introduces a new option, since the character ranges
|
" This introduces a new option, since the character ranges
|
||||||
" specified could be multibyte:
|
" specified could be multibyte:
|
||||||
" let g:omni_syntax_use_single_byte = 1
|
" let g:omni_syntax_use_single_byte = 1
|
||||||
" This by default will only allow single byte ASCII
|
" - This by default will only allow single byte ASCII
|
||||||
" characters to be added and an additional check to ensure
|
" characters to be added and an additional check to ensure
|
||||||
" the charater is printable (see documentation for isprint).
|
" the charater is printable (see documentation for isprint).
|
||||||
"
|
"
|
||||||
" Version 9.0
|
" Version 9.0
|
||||||
" Add the check for cpo.
|
" - Add the check for cpo.
|
||||||
"
|
"
|
||||||
" Version 8.0
|
" Version 8.0
|
||||||
" Updated SyntaxCSyntaxGroupItems()
|
" - Updated SyntaxCSyntaxGroupItems()
|
||||||
" - Some additional syntax items were also allowed
|
" - Some additional syntax items were also allowed
|
||||||
" on nextgroup= lines which were ignored by default.
|
" on nextgroup= lines which were ignored by default.
|
||||||
" Now these lines are processed independently.
|
" Now these lines are processed independently.
|
||||||
"
|
"
|
||||||
" Version 7.0
|
" Version 7.0
|
||||||
" Updated syntaxcomplete#OmniSyntaxList()
|
" - Updated syntaxcomplete#OmniSyntaxList()
|
||||||
" - Looking up the syntax groups defined from a syntax file
|
" - Looking up the syntax groups defined from a syntax file
|
||||||
" looked for only 1 format of {filetype}GroupName, but some
|
" looked for only 1 format of {filetype}GroupName, but some
|
||||||
" syntax writers use this format as well:
|
" syntax writers use this format as well:
|
||||||
" {b:current_syntax}GroupName
|
" {b:current_syntax}GroupName
|
||||||
" OmniSyntaxList() will now check for both if the first
|
" - OmniSyntaxList() will now check for both if the first
|
||||||
" method does not find a match.
|
" method does not find a match.
|
||||||
"
|
"
|
||||||
" Version 6.0
|
" Version 6.0
|
||||||
" Added syntaxcomplete#OmniSyntaxList()
|
" - Added syntaxcomplete#OmniSyntaxList()
|
||||||
" - Allows other plugins to use this for their own
|
" - Allows other plugins to use this for their own
|
||||||
" purposes.
|
" purposes.
|
||||||
" - It will return a List of all syntax items for the
|
" - It will return a List of all syntax items for the
|
||||||
@ -52,7 +68,7 @@
|
|||||||
" sqlcomplete plugin to populate a Choose box.
|
" sqlcomplete plugin to populate a Choose box.
|
||||||
"
|
"
|
||||||
" Version 5.0
|
" Version 5.0
|
||||||
" Updated SyntaxCSyntaxGroupItems()
|
" - Updated SyntaxCSyntaxGroupItems()
|
||||||
" - When processing a list of syntax groups, the final group
|
" - When processing a list of syntax groups, the final group
|
||||||
" was missed in function SyntaxCSyntaxGroupItems.
|
" was missed in function SyntaxCSyntaxGroupItems.
|
||||||
"
|
"
|
||||||
@ -70,7 +86,7 @@ endif
|
|||||||
if exists('g:loaded_syntax_completion')
|
if exists('g:loaded_syntax_completion')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntax_completion = 110
|
let g:loaded_syntax_completion = 130
|
||||||
|
|
||||||
" Turn on support for line continuations when creating the script
|
" Turn on support for line continuations when creating the script
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
@ -113,7 +129,8 @@ endif
|
|||||||
|
|
||||||
" This script will build a completion list based on the syntax
|
" This script will build a completion list based on the syntax
|
||||||
" elements defined by the files in $VIMRUNTIME/syntax.
|
" elements defined by the files in $VIMRUNTIME/syntax.
|
||||||
let s:syn_remove_words = 'match,matchgroup=,contains,'.
|
" let s:syn_remove_words = 'match,matchgroup=,contains,'.
|
||||||
|
let s:syn_remove_words = 'matchgroup=,contains,'.
|
||||||
\ 'links to,start=,end='
|
\ 'links to,start=,end='
|
||||||
" \ 'links to,start=,end=,nextgroup='
|
" \ 'links to,start=,end=,nextgroup='
|
||||||
|
|
||||||
@ -275,9 +292,19 @@ function! OmniSyntaxList(...)
|
|||||||
" sqlType
|
" sqlType
|
||||||
" sqlOperators
|
" sqlOperators
|
||||||
" sqlKeyword ...
|
" sqlKeyword ...
|
||||||
redir @l
|
if !empty(list_parms) && empty(substitute(join(list_parms), '[a-zA-Z ]', '', 'g'))
|
||||||
silent! exec 'syntax list '.join(list_parms)
|
" If list_parms only includes word characters, use it to limit
|
||||||
redir END
|
" the syntax elements.
|
||||||
|
" If using regex syntax list will fail to find those items, so
|
||||||
|
" simply grab the who syntax list.
|
||||||
|
redir @l
|
||||||
|
silent! exec 'syntax list '.join(list_parms)
|
||||||
|
redir END
|
||||||
|
else
|
||||||
|
redir @l
|
||||||
|
silent! exec 'syntax list'
|
||||||
|
redir END
|
||||||
|
endif
|
||||||
|
|
||||||
let syntax_full = "\n".@l
|
let syntax_full = "\n".@l
|
||||||
let @l = saveL
|
let @l = saveL
|
||||||
@ -311,82 +338,167 @@ function! OmniSyntaxList(...)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Sometimes filetypes can be composite names, like c.doxygen
|
if empty(list_parms)
|
||||||
" Loop through each individual part looking for the syntax
|
let list_parms = [&filetype.'\w\+']
|
||||||
" items specific to each individual filetype.
|
endif
|
||||||
|
|
||||||
let syn_list = ''
|
let syn_list = ''
|
||||||
let ftindex = 0
|
let index = 0
|
||||||
let ftindex = match(&filetype, '\w\+', ftindex)
|
for group_regex in list_parms
|
||||||
|
" Sometimes filetypes can be composite names, like c.doxygen
|
||||||
|
" Loop through each individual part looking for the syntax
|
||||||
|
" items specific to each individual filetype.
|
||||||
|
" let ftindex = 0
|
||||||
|
" let ftindex = match(syntax_full, group_regex, ftindex)
|
||||||
|
|
||||||
while ftindex > -1
|
" while ftindex > -1
|
||||||
let ft_part_name = matchstr( &filetype, '\w\+', ftindex )
|
" let ft_part_name = matchstr( syntax_full, '\w\+', ftindex )
|
||||||
|
|
||||||
" Syntax rules can contain items for more than just the current
|
" Syntax rules can contain items for more than just the current
|
||||||
" filetype. They can contain additional items added by the user
|
" filetype. They can contain additional items added by the user
|
||||||
" via autocmds or their vimrc.
|
" via autocmds or their vimrc.
|
||||||
" Some syntax files can be combined (html, php, jsp).
|
" Some syntax files can be combined (html, php, jsp).
|
||||||
" We want only items that begin with the filetype we are interested in.
|
" We want only items that begin with the filetype we are interested in.
|
||||||
let next_group_regex = '\n' .
|
|
||||||
\ '\zs'.ft_part_name.'\w\+\ze'.
|
|
||||||
\ '\s\+xxx\s\+'
|
|
||||||
let index = 0
|
|
||||||
let index = match(syntax_full, next_group_regex, index)
|
|
||||||
|
|
||||||
if index == -1 && exists('b:current_syntax') && ft_part_name != b:current_syntax
|
|
||||||
" There appears to be two standards when writing syntax files.
|
|
||||||
" Either items begin as:
|
|
||||||
" syn keyword {filetype}Keyword values ...
|
|
||||||
" let b:current_syntax = "sql"
|
|
||||||
" let b:current_syntax = "sqlanywhere"
|
|
||||||
" Or
|
|
||||||
" syn keyword {syntax_filename}Keyword values ...
|
|
||||||
" let b:current_syntax = "mysql"
|
|
||||||
" So, we will make the format of finding the syntax group names
|
|
||||||
" a bit more flexible and look for both if the first fails to
|
|
||||||
" find a match.
|
|
||||||
let next_group_regex = '\n' .
|
let next_group_regex = '\n' .
|
||||||
\ '\zs'.b:current_syntax.'\w\+\ze'.
|
\ '\zs'.group_regex.'\ze'.
|
||||||
\ '\s\+xxx\s\+'
|
\ '\s\+xxx\s\+'
|
||||||
let index = 0
|
|
||||||
let index = match(syntax_full, next_group_regex, index)
|
let index = match(syntax_full, next_group_regex, index)
|
||||||
endif
|
|
||||||
|
|
||||||
while index > -1
|
" For the matched group name, strip off any of the regex special
|
||||||
let group_name = matchstr( syntax_full, '\w\+', index )
|
" characters and see if we get a match with the current syntax
|
||||||
|
if index == -1 && exists('b:current_syntax') && substitute(group_regex, '[^a-zA-Z ]\+.*', '', 'g') !~ '^'.b:current_syntax
|
||||||
let get_syn_list = 1
|
" There appears to be two standards when writing syntax files.
|
||||||
for exclude_group_name in list_exclude_groups
|
" Either items begin as:
|
||||||
if '\<'.exclude_group_name.'\>' =~ '\<'.group_name.'\>'
|
" syn keyword {filetype}Keyword values ...
|
||||||
let get_syn_list = 0
|
" let b:current_syntax = "sql"
|
||||||
endif
|
" let b:current_syntax = "sqlanywhere"
|
||||||
endfor
|
" Or
|
||||||
|
" syn keyword {syntax_filename}Keyword values ...
|
||||||
" This code is no longer needed in version 6.0 since we have
|
" let b:current_syntax = "mysql"
|
||||||
" augmented the syntax list command to only retrieve the syntax
|
" So, we will make the format of finding the syntax group names
|
||||||
" groups we are interested in.
|
" a bit more flexible and look for both if the first fails to
|
||||||
"
|
" find a match.
|
||||||
" if get_syn_list == 1
|
let next_group_regex = '\n' .
|
||||||
" if syntax_group_include_{filetype} != ''
|
\ '\zs'.b:current_syntax.'\w\+\ze'.
|
||||||
" if '\<'.syntax_group_include_{filetype}.'\>' !~ '\<'.group_name.'\>'
|
\ '\s\+xxx\s\+'
|
||||||
" let get_syn_list = 0
|
let index = 0
|
||||||
" endif
|
let index = match(syntax_full, next_group_regex, index)
|
||||||
" endif
|
|
||||||
" endif
|
|
||||||
|
|
||||||
if get_syn_list == 1
|
|
||||||
" Pass in the full syntax listing, plus the group name we
|
|
||||||
" are interested in.
|
|
||||||
let extra_syn_list = s:SyntaxCSyntaxGroupItems(group_name, syntax_full)
|
|
||||||
let syn_list = syn_list . extra_syn_list . "\n"
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let index = index + strlen(group_name)
|
while index > -1
|
||||||
let index = match(syntax_full, next_group_regex, index)
|
let group_name = matchstr( syntax_full, '\w\+', index )
|
||||||
endwhile
|
|
||||||
|
|
||||||
let ftindex = ftindex + len(ft_part_name)
|
let get_syn_list = 1
|
||||||
let ftindex = match( &filetype, '\w\+', ftindex )
|
for exclude_group_name in list_exclude_groups
|
||||||
endwhile
|
if '\<'.exclude_group_name.'\>' =~ '\<'.group_name.'\>'
|
||||||
|
let get_syn_list = 0
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" This code is no longer needed in version 6.0 since we have
|
||||||
|
" augmented the syntax list command to only retrieve the syntax
|
||||||
|
" groups we are interested in.
|
||||||
|
"
|
||||||
|
" if get_syn_list == 1
|
||||||
|
" if syntax_group_include_{filetype} != ''
|
||||||
|
" if '\<'.syntax_group_include_{filetype}.'\>' !~ '\<'.group_name.'\>'
|
||||||
|
" let get_syn_list = 0
|
||||||
|
" endif
|
||||||
|
" endif
|
||||||
|
" endif
|
||||||
|
|
||||||
|
if get_syn_list == 1
|
||||||
|
" Pass in the full syntax listing, plus the group name we
|
||||||
|
" are interested in.
|
||||||
|
let extra_syn_list = s:SyntaxCSyntaxGroupItems(group_name, syntax_full)
|
||||||
|
let syn_list = syn_list . extra_syn_list . "\n"
|
||||||
|
endif
|
||||||
|
|
||||||
|
let index = index + strlen(group_name)
|
||||||
|
let index = match(syntax_full, next_group_regex, index)
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
" let ftindex = ftindex + len(ft_part_name)
|
||||||
|
" let ftindex = match( syntax_full, group_regex, ftindex )
|
||||||
|
" endwhile
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" " Sometimes filetypes can be composite names, like c.doxygen
|
||||||
|
" " Loop through each individual part looking for the syntax
|
||||||
|
" " items specific to each individual filetype.
|
||||||
|
" let syn_list = ''
|
||||||
|
" let ftindex = 0
|
||||||
|
" let ftindex = match(&filetype, '\w\+', ftindex)
|
||||||
|
|
||||||
|
" while ftindex > -1
|
||||||
|
" let ft_part_name = matchstr( &filetype, '\w\+', ftindex )
|
||||||
|
|
||||||
|
" " Syntax rules can contain items for more than just the current
|
||||||
|
" " filetype. They can contain additional items added by the user
|
||||||
|
" " via autocmds or their vimrc.
|
||||||
|
" " Some syntax files can be combined (html, php, jsp).
|
||||||
|
" " We want only items that begin with the filetype we are interested in.
|
||||||
|
" let next_group_regex = '\n' .
|
||||||
|
" \ '\zs'.ft_part_name.'\w\+\ze'.
|
||||||
|
" \ '\s\+xxx\s\+'
|
||||||
|
" let index = 0
|
||||||
|
" let index = match(syntax_full, next_group_regex, index)
|
||||||
|
|
||||||
|
" if index == -1 && exists('b:current_syntax') && ft_part_name != b:current_syntax
|
||||||
|
" " There appears to be two standards when writing syntax files.
|
||||||
|
" " Either items begin as:
|
||||||
|
" " syn keyword {filetype}Keyword values ...
|
||||||
|
" " let b:current_syntax = "sql"
|
||||||
|
" " let b:current_syntax = "sqlanywhere"
|
||||||
|
" " Or
|
||||||
|
" " syn keyword {syntax_filename}Keyword values ...
|
||||||
|
" " let b:current_syntax = "mysql"
|
||||||
|
" " So, we will make the format of finding the syntax group names
|
||||||
|
" " a bit more flexible and look for both if the first fails to
|
||||||
|
" " find a match.
|
||||||
|
" let next_group_regex = '\n' .
|
||||||
|
" \ '\zs'.b:current_syntax.'\w\+\ze'.
|
||||||
|
" \ '\s\+xxx\s\+'
|
||||||
|
" let index = 0
|
||||||
|
" let index = match(syntax_full, next_group_regex, index)
|
||||||
|
" endif
|
||||||
|
|
||||||
|
" while index > -1
|
||||||
|
" let group_name = matchstr( syntax_full, '\w\+', index )
|
||||||
|
|
||||||
|
" let get_syn_list = 1
|
||||||
|
" for exclude_group_name in list_exclude_groups
|
||||||
|
" if '\<'.exclude_group_name.'\>' =~ '\<'.group_name.'\>'
|
||||||
|
" let get_syn_list = 0
|
||||||
|
" endif
|
||||||
|
" endfor
|
||||||
|
|
||||||
|
" " This code is no longer needed in version 6.0 since we have
|
||||||
|
" " augmented the syntax list command to only retrieve the syntax
|
||||||
|
" " groups we are interested in.
|
||||||
|
" "
|
||||||
|
" " if get_syn_list == 1
|
||||||
|
" " if syntax_group_include_{filetype} != ''
|
||||||
|
" " if '\<'.syntax_group_include_{filetype}.'\>' !~ '\<'.group_name.'\>'
|
||||||
|
" " let get_syn_list = 0
|
||||||
|
" " endif
|
||||||
|
" " endif
|
||||||
|
" " endif
|
||||||
|
|
||||||
|
" if get_syn_list == 1
|
||||||
|
" " Pass in the full syntax listing, plus the group name we
|
||||||
|
" " are interested in.
|
||||||
|
" let extra_syn_list = s:SyntaxCSyntaxGroupItems(group_name, syntax_full)
|
||||||
|
" let syn_list = syn_list . extra_syn_list . "\n"
|
||||||
|
" endif
|
||||||
|
|
||||||
|
" let index = index + strlen(group_name)
|
||||||
|
" let index = match(syntax_full, next_group_regex, index)
|
||||||
|
" endwhile
|
||||||
|
|
||||||
|
" let ftindex = ftindex + len(ft_part_name)
|
||||||
|
" let ftindex = match( &filetype, '\w\+', ftindex )
|
||||||
|
" endwhile
|
||||||
|
|
||||||
" Convert the string to a List and sort it.
|
" Convert the string to a List and sort it.
|
||||||
let compl_list = sort(split(syn_list))
|
let compl_list = sort(split(syn_list))
|
||||||
@ -454,10 +566,65 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
|||||||
\ , "\n", 'g'
|
\ , "\n", 'g'
|
||||||
\ )
|
\ )
|
||||||
|
|
||||||
|
" Attempt to deal with lines using the match syntax
|
||||||
|
" javaScriptDocTags xxx match /@\(param\|argument\|requires\|file\)\>/
|
||||||
|
" Though it can use any types of regex, so this plugin will attempt
|
||||||
|
" to restrict it
|
||||||
|
" 1. Only use \( or \%( constructs remove all else
|
||||||
|
" 2 Remove and []s
|
||||||
|
" 3. Account for match //constructs
|
||||||
|
" \%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?
|
||||||
|
" 4. Hope for the best
|
||||||
|
"
|
||||||
|
"
|
||||||
|
let syn_list_old = syn_list
|
||||||
|
while syn_list =~ '\<match\>\s\+\/'
|
||||||
|
if syn_list =~ 'perlElseIfError'
|
||||||
|
let syn_list = syn_list
|
||||||
|
endif
|
||||||
|
" Check if the match has words at least 3 characters long
|
||||||
|
if syn_list =~ '\<match \/\zs.\{-}\<\w\{3,}\>.\{-}\ze\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+'
|
||||||
|
" Remove everything after / and before the first \(
|
||||||
|
let syn_list = substitute( syn_list, '\<match \/\zs.\{-}\ze\\%\?(.\{-}\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '', 'g' )
|
||||||
|
" Remove everything after \) and up to the ending /
|
||||||
|
let syn_list = substitute( syn_list, '\<match \/.\{-}\\)\zs.\{-}\ze\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '', 'g' )
|
||||||
|
|
||||||
|
" Remove any character classes
|
||||||
|
" let syn_list = substitute( syn_list, '\<match /\zs.\{-}\[[^]]*\].\{-}\ze\/ ', '', 'g' )
|
||||||
|
let syn_list = substitute( syn_list, '\%(\<match \/[^/]\{-}\)\@<=\[[^]]*\]\ze.\{-}\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?', '', 'g' )
|
||||||
|
" Remove any words < 3 characters
|
||||||
|
let syn_list = substitute( syn_list, '\%(\<match \/[^/]\{-}\)\@<=\<\w\{1,2}\>\ze.\{-}\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '', 'g' )
|
||||||
|
" Remove all non-word characters
|
||||||
|
" let syn_list = substitute( syn_list, '\<match /\zs.\{-}\<\W\+\>.\{-}\ze\/ ', "", 'g' )
|
||||||
|
" let syn_list = substitute( syn_list, '\%(\<match \/[^/]\{-}\)\@<=\W\+\ze.\{-}\/ ', ' ', 'g' )
|
||||||
|
" Do this by using the outer substitue() call to gather all
|
||||||
|
" text between the match /.../ tags.
|
||||||
|
" The inner substitute() call operates on the text selected
|
||||||
|
" and replaces all non-word characters.
|
||||||
|
let syn_list = substitute( syn_list, '\<match \/\zs\(.\{-}\)\ze\\\@<!\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+'
|
||||||
|
\ , '\=substitute(submatch(1), "\\W\\+", " ", "g")'
|
||||||
|
\ , 'g' )
|
||||||
|
" Remove the match / / syntax
|
||||||
|
let syn_list = substitute( syn_list, '\<match \/\(.\{-}\)\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '\1', 'g' )
|
||||||
|
else
|
||||||
|
" No words long enough, remove the match
|
||||||
|
" Remove the match syntax
|
||||||
|
" let syn_list = substitute( syn_list, '\<match \/[^\/]*\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '', 'g' )
|
||||||
|
let syn_list = substitute( syn_list, '\<match \/\%(.\{-}\)\?\/\%(\%(ms\|me\|hs\|he\|rs\|re\|lc\)\S\+\)\?\s\+', '', 'g' )
|
||||||
|
endif
|
||||||
|
if syn_list =~ '\<match\>\s\+\/'
|
||||||
|
" Problem removing the match / / tags
|
||||||
|
let syn_list = ''
|
||||||
|
endif
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
|
||||||
" Now strip off the newline + blank space + contained.
|
" Now strip off the newline + blank space + contained.
|
||||||
" Also include lines with nextgroup=@someName skip_key_words syntax_element
|
" Also include lines with nextgroup=@someName skip_key_words syntax_element
|
||||||
|
" \ syn_list, '\%(^\|\n\)\@<=\s*\<\(contained\|nextgroup=\)'
|
||||||
|
" \ syn_list, '\%(^\|\n\)\@<=\s*\<\(contained\|nextgroup=[@a-zA-Z,]*\)'
|
||||||
let syn_list = substitute(
|
let syn_list = substitute(
|
||||||
\ syn_list, '\%(^\|\n\)\@<=\s*\<\(contained\|nextgroup=\)'
|
\ syn_list, '\<\(contained\|nextgroup=[@a-zA-Z,]*\)'
|
||||||
\ , "", 'g'
|
\ , "", 'g'
|
||||||
\ )
|
\ )
|
||||||
|
|
||||||
@ -497,7 +664,7 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
|||||||
" If so, add it to the list.
|
" If so, add it to the list.
|
||||||
let accepted_chars = ''
|
let accepted_chars = ''
|
||||||
for item in split(&iskeyword, ',')
|
for item in split(&iskeyword, ',')
|
||||||
if item =~ '-'
|
if item =~ '\d-\d'
|
||||||
" This is a character range (ie 47-58),
|
" This is a character range (ie 47-58),
|
||||||
" cycle through each character within the range
|
" cycle through each character within the range
|
||||||
let [b:start, b:end] = split(item, '-')
|
let [b:start, b:end] = split(item, '-')
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
" tar.vim: Handles browsing tarfiles
|
" tar.vim: Handles browsing tarfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Jan 17, 2012
|
" Date: Apr 17, 2013
|
||||||
" Version: 28
|
" Version: 29
|
||||||
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||||
" License: Vim License (see vim's :help license)
|
" License: Vim License (see vim's :help license)
|
||||||
"
|
"
|
||||||
" Contains many ideas from Michael Toren's <tar.vim>
|
" Contains many ideas from Michael Toren's <tar.vim>
|
||||||
"
|
"
|
||||||
" Copyright: Copyright (C) 2005-2011 Charles E. Campbell, Jr. {{{1
|
" Copyright: Copyright (C) 2005-2011 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
" notice is copied with it. Like anything else that's free,
|
" notice is copied with it. Like anything else that's free,
|
||||||
@ -22,7 +22,7 @@
|
|||||||
if &cp || exists("g:loaded_tar")
|
if &cp || exists("g:loaded_tar")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_tar= "v28"
|
let g:loaded_tar= "v29"
|
||||||
if v:version < 702
|
if v:version < 702
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of tar needs vim 7.2"
|
echo "***warning*** this version of tar needs vim 7.2"
|
||||||
@ -31,6 +31,7 @@ if v:version < 702
|
|||||||
endif
|
endif
|
||||||
let s:keepcpo= &cpo
|
let s:keepcpo= &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
"DechoTabOn
|
||||||
"call Decho("loading autoload/tar.vim")
|
"call Decho("loading autoload/tar.vim")
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
@ -80,7 +81,7 @@ endif
|
|||||||
|
|
||||||
" set up shell quoting character
|
" set up shell quoting character
|
||||||
if !exists("g:tar_shq")
|
if !exists("g:tar_shq")
|
||||||
if exists("&shq") && &shq != ""
|
if exists("+shq") && exists("&shq") && &shq != ""
|
||||||
let g:tar_shq= &shq
|
let g:tar_shq= &shq
|
||||||
elseif has("win32") || has("win95") || has("win64") || has("win16")
|
elseif has("win32") || has("win95") || has("win64") || has("win16")
|
||||||
if exists("g:netrw_cygwin") && g:netrw_cygwin
|
if exists("g:netrw_cygwin") && g:netrw_cygwin
|
||||||
@ -147,7 +148,7 @@ fun! tar#Browse(tarfile)
|
|||||||
keepj $
|
keepj $
|
||||||
|
|
||||||
let tarfile= a:tarfile
|
let tarfile= a:tarfile
|
||||||
if has("win32") && executable("cygpath")
|
if has("win32unix") && executable("cygpath")
|
||||||
" assuming cygwin
|
" assuming cygwin
|
||||||
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
||||||
endif
|
endif
|
||||||
@ -227,7 +228,7 @@ fun! s:TarBrowseSelect()
|
|||||||
" about to make a new window, need to use b:tarfile
|
" about to make a new window, need to use b:tarfile
|
||||||
let tarfile= b:tarfile
|
let tarfile= b:tarfile
|
||||||
let curfile= expand("%")
|
let curfile= expand("%")
|
||||||
if has("win32") && executable("cygpath")
|
if has("win32unix") && executable("cygpath")
|
||||||
" assuming cygwin
|
" assuming cygwin
|
||||||
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
||||||
endif
|
endif
|
||||||
@ -239,6 +240,8 @@ fun! s:TarBrowseSelect()
|
|||||||
let s:tblfile_{winnr()}= curfile
|
let s:tblfile_{winnr()}= curfile
|
||||||
call tar#Read("tarfile:".tarfile.'::'.fname,1)
|
call tar#Read("tarfile:".tarfile.'::'.fname,1)
|
||||||
filetype detect
|
filetype detect
|
||||||
|
set nomod
|
||||||
|
exe 'com! -buffer -nargs=? -complete=file TarDiff :call tar#Diff(<q-args>,"'.fnameescape(fname).'")'
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
" call Dret("TarBrowseSelect : s:tblfile_".winnr()."<".s:tblfile_{winnr()}.">")
|
" call Dret("TarBrowseSelect : s:tblfile_".winnr()."<".s:tblfile_{winnr()}.">")
|
||||||
@ -252,7 +255,7 @@ fun! tar#Read(fname,mode)
|
|||||||
set report=10
|
set report=10
|
||||||
let tarfile = substitute(a:fname,'tarfile:\(.\{-}\)::.*$','\1','')
|
let tarfile = substitute(a:fname,'tarfile:\(.\{-}\)::.*$','\1','')
|
||||||
let fname = substitute(a:fname,'tarfile:.\{-}::\(.*\)$','\1','')
|
let fname = substitute(a:fname,'tarfile:.\{-}::\(.*\)$','\1','')
|
||||||
if has("win32") && executable("cygpath")
|
if has("win32unix") && executable("cygpath")
|
||||||
" assuming cygwin
|
" assuming cygwin
|
||||||
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
let tarfile=substitute(system("cygpath -u ".shellescape(tarfile,0)),'\n$','','e')
|
||||||
endif
|
endif
|
||||||
@ -425,7 +428,7 @@ fun! tar#Write(fname)
|
|||||||
|
|
||||||
if fname =~ '/'
|
if fname =~ '/'
|
||||||
let dirpath = substitute(fname,'/[^/]\+$','','e')
|
let dirpath = substitute(fname,'/[^/]\+$','','e')
|
||||||
if executable("cygpath")
|
if has("win32unix") && executable("cygpath")
|
||||||
let dirpath = substitute(system("cygpath ".shellescape(dirpath, 0)),'\n','','e')
|
let dirpath = substitute(system("cygpath ".shellescape(dirpath, 0)),'\n','','e')
|
||||||
endif
|
endif
|
||||||
call mkdir(dirpath,"p")
|
call mkdir(dirpath,"p")
|
||||||
@ -445,7 +448,7 @@ fun! tar#Write(fname)
|
|||||||
let tar_secure= " "
|
let tar_secure= " "
|
||||||
endif
|
endif
|
||||||
exe "w! ".fnameescape(fname)
|
exe "w! ".fnameescape(fname)
|
||||||
if executable("cygpath")
|
if has("win32unix") && executable("cygpath")
|
||||||
let tarfile = substitute(system("cygpath ".shellescape(tarfile,0)),'\n','','e')
|
let tarfile = substitute(system("cygpath ".shellescape(tarfile,0)),'\n','','e')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -500,6 +503,30 @@ fun! tar#Write(fname)
|
|||||||
" call Dret("tar#Write")
|
" call Dret("tar#Write")
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" tar#Diff: {{{2
|
||||||
|
fun! tar#Diff(userfname,fname)
|
||||||
|
" call Dfunc("tar#Diff(userfname<".a:userfname."> fname<".a:fname.")")
|
||||||
|
let fname= a:fname
|
||||||
|
if a:userfname != ""
|
||||||
|
let fname= a:userfname
|
||||||
|
endif
|
||||||
|
if filereadable(fname)
|
||||||
|
" sets current file (from tarball) for diff'ing
|
||||||
|
" splits window vertically
|
||||||
|
" opens original file, sets it for diff'ing
|
||||||
|
" sets up b:tardiff_otherbuf variables so each buffer knows about the other (for closing purposes)
|
||||||
|
diffthis
|
||||||
|
wincmd v
|
||||||
|
exe "e ".fnameescape(fname)
|
||||||
|
diffthis
|
||||||
|
else
|
||||||
|
redraw!
|
||||||
|
echo "***warning*** unable to read file<".fname.">"
|
||||||
|
endif
|
||||||
|
" call Dret("tar#Diff")
|
||||||
|
endfun
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" s:Rmdir: {{{2
|
" s:Rmdir: {{{2
|
||||||
fun! s:Rmdir(fname)
|
fun! s:Rmdir(fname)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Vim autoload file for the tohtml plugin.
|
" Vim autoload file for the tohtml plugin.
|
||||||
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
||||||
" Last Change: 2012 Jun 30
|
" Last Change: 2013 Jun 19
|
||||||
"
|
"
|
||||||
" Additional contributors:
|
" Additional contributors:
|
||||||
"
|
"
|
||||||
@ -401,15 +401,15 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
call add(html, '</head>')
|
call add(html, '</head>')
|
||||||
let body_line_num = len(html)
|
let body_line_num = len(html)
|
||||||
if !empty(s:settings.prevent_copy)
|
if !empty(s:settings.prevent_copy)
|
||||||
call add(html, "<body onload='FixCharWidth();'>")
|
call add(html, "<body onload='FixCharWidth();".(s:settings.line_ids ? " JumpToLine();" : "")."'>")
|
||||||
call add(html, "<!-- hidden divs used by javascript to get the width of a char -->")
|
call add(html, "<!-- hidden divs used by javascript to get the width of a char -->")
|
||||||
call add(html, "<div id='oneCharWidth'>0</div>")
|
call add(html, "<div id='oneCharWidth'>0</div>")
|
||||||
call add(html, "<div id='oneInputWidth'><input size='1' value='0'".tag_close."</div>")
|
call add(html, "<div id='oneInputWidth'><input size='1' value='0'".tag_close."</div>")
|
||||||
call add(html, "<div id='oneEmWidth' style='width: 1em;'></div>")
|
call add(html, "<div id='oneEmWidth' style='width: 1em;'></div>")
|
||||||
else
|
else
|
||||||
call add(html, '<body>')
|
call add(html, '<body'.(s:settings.line_ids ? ' onload="JumpToLine();"' : '').'>')
|
||||||
endif
|
endif
|
||||||
call add(html, "<table border='1' width='100%' id='vimCodeElement'>")
|
call add(html, "<table border='1' width='100%' id='vimCodeElement".s:settings.id_suffix."'>")
|
||||||
|
|
||||||
call add(html, '<tr>')
|
call add(html, '<tr>')
|
||||||
for buf in a:win_list
|
for buf in a:win_list
|
||||||
@ -475,7 +475,7 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
let temp = getline(1,'$')
|
let temp = getline(1,'$')
|
||||||
" clean out id on the main content container because we already set it on
|
" clean out id on the main content container because we already set it on
|
||||||
" the table
|
" the table
|
||||||
let temp[0] = substitute(temp[0], " id='vimCodeElement'", "", "")
|
let temp[0] = substitute(temp[0], " id='vimCodeElement[^']*'", "", "")
|
||||||
" undo deletion of start and end part
|
" undo deletion of start and end part
|
||||||
" so we can later save the file as valid html
|
" so we can later save the file as valid html
|
||||||
" TODO: restore using grabbed lines if undolevel is 1?
|
" TODO: restore using grabbed lines if undolevel is 1?
|
||||||
@ -503,6 +503,11 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
call add(html, s:body_end_line)
|
call add(html, s:body_end_line)
|
||||||
call add(html, '</html>')
|
call add(html, '</html>')
|
||||||
|
|
||||||
|
" The generated HTML is admittedly ugly and takes a LONG time to fold.
|
||||||
|
" Make sure the user doesn't do syntax folding when loading a generated file,
|
||||||
|
" using a modeline.
|
||||||
|
call add(html, '<!-- vim: set foldmethod=manual : -->')
|
||||||
|
|
||||||
let i = 1
|
let i = 1
|
||||||
let name = "Diff" . (s:settings.use_xhtml ? ".xhtml" : ".html")
|
let name = "Diff" . (s:settings.use_xhtml ? ".xhtml" : ".html")
|
||||||
" Find an unused file name if current file name is already in use
|
" Find an unused file name if current file name is already in use
|
||||||
@ -539,14 +544,12 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
" add required javascript in reverse order so we can just call append again
|
" add required javascript in reverse order so we can just call append again
|
||||||
" and again without adjusting {{{
|
" and again without adjusting {{{
|
||||||
|
|
||||||
" insert script closing tag if any javascript is needed
|
" insert script closing tag
|
||||||
if s:settings.dynamic_folds || !empty(s:settings.prevent_copy)
|
call append(style_start, [
|
||||||
call append(style_start, [
|
\ '',
|
||||||
\ '',
|
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
||||||
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
\ "</script>"
|
||||||
\ "</script>"
|
\ ])
|
||||||
\ ])
|
|
||||||
endif
|
|
||||||
|
|
||||||
" insert script which corrects the size of small input elements in
|
" insert script which corrects the size of small input elements in
|
||||||
" prevent_copy mode. See 2html.vim for details on why this is needed and how
|
" prevent_copy mode. See 2html.vim for details on why this is needed and how
|
||||||
@ -565,13 +568,62 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
\ ' var emWidth = document.getElementById("oneEmWidth").clientWidth;',
|
\ ' var emWidth = document.getElementById("oneEmWidth").clientWidth;',
|
||||||
\ ' if (inputWidth > goodWidth) {',
|
\ ' if (inputWidth > goodWidth) {',
|
||||||
\ ' while (ratio < 100*goodWidth/emWidth && ratio < 100) {',
|
\ ' while (ratio < 100*goodWidth/emWidth && ratio < 100) {',
|
||||||
\ ' ratio += 5;',
|
\ ' ratio += 5;',
|
||||||
\ ' }',
|
\ ' }',
|
||||||
\ ' document.getElementById("vimCodeElement").className = "em"+ratio;',
|
\ ' document.getElementById("vimCodeElement'.s:settings.id_suffix.'").className = "em"+ratio;',
|
||||||
\ ' }',
|
\ ' }',
|
||||||
\ '}'
|
\ '}'
|
||||||
\ ])
|
\ ])
|
||||||
endif
|
endif
|
||||||
|
"
|
||||||
|
" insert javascript to get IDs from line numbers, and to open a fold before
|
||||||
|
" jumping to any lines contained therein
|
||||||
|
call append(style_start, [
|
||||||
|
\ " /* Always jump to new location even if the line was hidden inside a fold, or",
|
||||||
|
\ " * we corrected the raw number to a line ID.",
|
||||||
|
\ " */",
|
||||||
|
\ " if (lineElem) {",
|
||||||
|
\ " lineElem.scrollIntoView(true);",
|
||||||
|
\ " }",
|
||||||
|
\ " return true;",
|
||||||
|
\ "}",
|
||||||
|
\ "if ('onhashchange' in window) {",
|
||||||
|
\ " window.onhashchange = JumpToLine;",
|
||||||
|
\ "}"
|
||||||
|
\ ])
|
||||||
|
if s:settings.dynamic_folds
|
||||||
|
call append(style_start, [
|
||||||
|
\ "",
|
||||||
|
\ " /* navigate upwards in the DOM tree to open all folds containing the line */",
|
||||||
|
\ " var node = lineElem;",
|
||||||
|
\ " while (node && node.id != 'vimCodeElement".s:settings.id_suffix."')",
|
||||||
|
\ " {",
|
||||||
|
\ " if (node.className == 'closed-fold')",
|
||||||
|
\ " {",
|
||||||
|
\ " /* toggle open the fold ID (remove window ID) */",
|
||||||
|
\ " toggleFold(node.id.substr(4));",
|
||||||
|
\ " }",
|
||||||
|
\ " node = node.parentNode;",
|
||||||
|
\ " }",
|
||||||
|
\ ])
|
||||||
|
endif
|
||||||
|
call append(style_start, [
|
||||||
|
\ "",
|
||||||
|
\ "/* function to open any folds containing a jumped-to line before jumping to it */",
|
||||||
|
\ "function JumpToLine()",
|
||||||
|
\ "{",
|
||||||
|
\ " var lineNum;",
|
||||||
|
\ " lineNum = window.location.hash;",
|
||||||
|
\ " lineNum = lineNum.substr(1); /* strip off '#' */",
|
||||||
|
\ "",
|
||||||
|
\ " if (lineNum.indexOf('L') == -1) {",
|
||||||
|
\ " lineNum = 'L'+lineNum;",
|
||||||
|
\ " }",
|
||||||
|
\ " if (lineNum.indexOf('W') == -1) {",
|
||||||
|
\ " lineNum = 'W1'+lineNum;",
|
||||||
|
\ " }",
|
||||||
|
\ " lineElem = document.getElementById(lineNum);"
|
||||||
|
\ ])
|
||||||
|
|
||||||
" Insert javascript to toggle matching folds open and closed in all windows,
|
" Insert javascript to toggle matching folds open and closed in all windows,
|
||||||
" if dynamic folding is active.
|
" if dynamic folding is active.
|
||||||
@ -596,12 +648,11 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
\ ])
|
\ ])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" insert script tag if any javascript is needed
|
" insert script tag; javascript is always needed for the line number
|
||||||
if s:settings.dynamic_folds || s:settings.prevent_copy != ""
|
" normalization for URL hashes
|
||||||
call append(style_start, [
|
call append(style_start, [
|
||||||
\ "<script type='text/javascript'>",
|
\ "<script type='text/javascript'>",
|
||||||
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
||||||
endif "}}}
|
|
||||||
|
|
||||||
" Insert styles from all the generated html documents and additional styles
|
" Insert styles from all the generated html documents and additional styles
|
||||||
" for the table-based layout of the side-by-side diff. The diff should take
|
" for the table-based layout of the side-by-side diff. The diff should take
|
||||||
@ -671,6 +722,7 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
call tohtml#GetOption(user_settings, 'no_invalid', 0 )
|
call tohtml#GetOption(user_settings, 'no_invalid', 0 )
|
||||||
call tohtml#GetOption(user_settings, 'whole_filler', 0 )
|
call tohtml#GetOption(user_settings, 'whole_filler', 0 )
|
||||||
call tohtml#GetOption(user_settings, 'use_xhtml', 0 )
|
call tohtml#GetOption(user_settings, 'use_xhtml', 0 )
|
||||||
|
call tohtml#GetOption(user_settings, 'line_ids', user_settings.number_lines )
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" override those settings that need it {{{
|
" override those settings that need it {{{
|
||||||
@ -804,6 +856,20 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
let user_settings.no_invalid = 0
|
let user_settings.no_invalid = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if exists('g:html_id_expr')
|
||||||
|
let user_settings.id_suffix = eval(g:html_id_expr)
|
||||||
|
if user_settings.id_suffix !~ '^[-_:.A-Za-z0-9]*$'
|
||||||
|
echohl WarningMsg
|
||||||
|
echomsg '2html: g:html_id_expr evaluated to invalid string for HTML id attributes'
|
||||||
|
echomsg '2html: Omitting user-specified suffix'
|
||||||
|
echohl None
|
||||||
|
sleep 3
|
||||||
|
let user_settings.id_suffix=""
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let user_settings.id_suffix=""
|
||||||
|
endif
|
||||||
|
|
||||||
" TODO: font
|
" TODO: font
|
||||||
|
|
||||||
return user_settings
|
return user_settings
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: XML
|
" Language: XML
|
||||||
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2006 Aug 15
|
" Last Change: 2013 Jun 29
|
||||||
" Version: 1.9
|
" Version: 1.9
|
||||||
"
|
"
|
||||||
" Changelog:
|
" Changelog:
|
||||||
@ -475,12 +475,12 @@ function! s:InCommentAt(line, col)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SetKeywords()
|
function! s:SetKeywords()
|
||||||
let g:IsKeywordBak=&iskeyword
|
let s:IsKeywordBak=&l:iskeyword
|
||||||
let &iskeyword='33-255'
|
let &l:iskeyword='33-255'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:RestoreKeywords()
|
function! s:RestoreKeywords()
|
||||||
let &iskeyword=g:IsKeywordBak
|
let &l:iskeyword=s:IsKeywordBak
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Push(el, sname)
|
function! s:Push(el, sname)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
" zip.vim: Handles browsing zipfiles
|
" zip.vim: Handles browsing zipfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Jan 17, 2012
|
" Date: Jul 02, 2013
|
||||||
" Version: 25
|
" Version: 27
|
||||||
" Maintainer: Charles E Campbell, Jr <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||||
" License: Vim License (see vim's :help license)
|
" License: Vim License (see vim's :help license)
|
||||||
" Copyright: Copyright (C) 2005-2012 Charles E. Campbell, Jr. {{{1
|
" Copyright: Copyright (C) 2005-2013 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
" notice is copied with it. Like anything else that's free,
|
" notice is copied with it. Like anything else that's free,
|
||||||
@ -13,13 +13,14 @@
|
|||||||
" this plugin, you agree that in no event will the copyright
|
" this plugin, you agree that in no event will the copyright
|
||||||
" holder be liable for any damages resulting from the use
|
" holder be liable for any damages resulting from the use
|
||||||
" of this software.
|
" of this software.
|
||||||
|
"redraw!|call DechoSep()|call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" Load Once: {{{1
|
" Load Once: {{{1
|
||||||
if &cp || exists("g:loaded_zip")
|
if &cp || exists("g:loaded_zip")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_zip= "v25"
|
let g:loaded_zip= "v27"
|
||||||
if v:version < 702
|
if v:version < 702
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of zip needs vim 7.2"
|
echo "***warning*** this version of zip needs vim 7.2"
|
||||||
@ -28,6 +29,7 @@ if v:version < 702
|
|||||||
endif
|
endif
|
||||||
let s:keepcpo= &cpo
|
let s:keepcpo= &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
"DechoTabOn
|
||||||
|
|
||||||
let s:zipfile_escape = ' ?&;\'
|
let s:zipfile_escape = ' ?&;\'
|
||||||
let s:ERROR = 2
|
let s:ERROR = 2
|
||||||
@ -60,6 +62,16 @@ endif
|
|||||||
" zip#Browse: {{{2
|
" zip#Browse: {{{2
|
||||||
fun! zip#Browse(zipfile)
|
fun! zip#Browse(zipfile)
|
||||||
" call Dfunc("zip#Browse(zipfile<".a:zipfile.">)")
|
" call Dfunc("zip#Browse(zipfile<".a:zipfile.">)")
|
||||||
|
" sanity check: insure that the zipfile has "PK" as its first two letters
|
||||||
|
" (zipped files have a leading PK as a "magic cookie")
|
||||||
|
if !filereadable(a:zipfile) || readfile(a:zipfile, "", 1)[0] !~ '^PK'
|
||||||
|
exe "noautocmd e ".fnameescape(a:zipfile)
|
||||||
|
" call Dret("zip#Browse : not a zipfile<".a:zipfile.">")
|
||||||
|
return
|
||||||
|
" else " Decho
|
||||||
|
" call Decho("zip#Browse: a:zipfile<".a:zipfile."> passed PK test - its a zip file")
|
||||||
|
endif
|
||||||
|
|
||||||
let repkeep= &report
|
let repkeep= &report
|
||||||
set report=10
|
set report=10
|
||||||
|
|
||||||
@ -188,17 +200,28 @@ fun! zip#Read(fname,mode)
|
|||||||
else
|
else
|
||||||
let zipfile = substitute(a:fname,'^.\{-}zipfile:\(.\{-}\)::[^\\].*$','\1','')
|
let zipfile = substitute(a:fname,'^.\{-}zipfile:\(.\{-}\)::[^\\].*$','\1','')
|
||||||
let fname = substitute(a:fname,'^.\{-}zipfile:.\{-}::\([^\\].*\)$','\1','')
|
let fname = substitute(a:fname,'^.\{-}zipfile:.\{-}::\([^\\].*\)$','\1','')
|
||||||
let fname = substitute(fname, '[', '[[]', 'g')
|
let fname = substitute(fname, '[', '[[]', 'g')
|
||||||
endif
|
endif
|
||||||
" call Decho("zipfile<".zipfile.">")
|
" call Decho("zipfile<".zipfile.">")
|
||||||
" call Decho("fname <".fname.">")
|
" call Decho("fname <".fname.">")
|
||||||
|
|
||||||
" call Decho("exe r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1))
|
" the following code does much the same thing as
|
||||||
exe "keepj sil! r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
|
" exe "keepj sil! r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
|
||||||
|
" but allows zipfile:... entries in quickfix lists
|
||||||
|
let temp = tempname()
|
||||||
|
" call Decho("using temp file<".temp.">")
|
||||||
|
let fn = expand('%:p')
|
||||||
|
exe "sil! !".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1).' > '.temp
|
||||||
|
" call Decho("exe sil! !".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1).' > '.temp)
|
||||||
|
sil exe 'keepalt file '.temp
|
||||||
|
sil keepj e!
|
||||||
|
sil exe 'keepalt file '.fnameescape(fn)
|
||||||
|
call delete(temp)
|
||||||
|
|
||||||
filetype detect
|
filetype detect
|
||||||
|
|
||||||
" cleanup
|
" cleanup
|
||||||
keepj 0d
|
" keepj 0d " used to be needed for the ...r! ... method
|
||||||
set nomod
|
set nomod
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
@ -267,7 +290,7 @@ fun! zip#Write(fname)
|
|||||||
|
|
||||||
if fname =~ '/'
|
if fname =~ '/'
|
||||||
let dirpath = substitute(fname,'/[^/]\+$','','e')
|
let dirpath = substitute(fname,'/[^/]\+$','','e')
|
||||||
if executable("cygpath")
|
if has("win32unix") && executable("cygpath")
|
||||||
let dirpath = substitute(system("cygpath ".s:Escape(dirpath,0)),'\n','','e')
|
let dirpath = substitute(system("cygpath ".s:Escape(dirpath,0)),'\n','','e')
|
||||||
endif
|
endif
|
||||||
" call Decho("mkdir(dirpath<".dirpath.">,p)")
|
" call Decho("mkdir(dirpath<".dirpath.">,p)")
|
||||||
@ -279,7 +302,7 @@ fun! zip#Write(fname)
|
|||||||
" call Decho("zipfile<".zipfile."> fname<".fname.">")
|
" call Decho("zipfile<".zipfile."> fname<".fname.">")
|
||||||
|
|
||||||
exe "w! ".fnameescape(fname)
|
exe "w! ".fnameescape(fname)
|
||||||
if executable("cygpath")
|
if has("win32unix") && executable("cygpath")
|
||||||
let zipfile = substitute(system("cygpath ".s:Escape(zipfile,0)),'\n','','e')
|
let zipfile = substitute(system("cygpath ".s:Escape(zipfile,0)),'\n','','e')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -36,6 +36,14 @@ Some attributes (e.g., bold) might be set in the defaults that you want
|
|||||||
removed in your color scheme. Use something like "gui=NONE" to remove the
|
removed in your color scheme. Use something like "gui=NONE" to remove the
|
||||||
attributes.
|
attributes.
|
||||||
|
|
||||||
|
In case you want to set 'background' depending on the colorscheme selected,
|
||||||
|
this autocmd might be useful:
|
||||||
|
autocmd SourcePre */colors/blue_sky.vim set background=dark
|
||||||
|
Replace "blue_sky" with the name of the colorscheme.
|
||||||
|
|
||||||
|
In case you want to tweak a colorscheme after it was loaded, check out that
|
||||||
|
ColorScheme autocmd event.
|
||||||
|
|
||||||
To see which highlight group is used where, find the help for
|
To see which highlight group is used where, find the help for
|
||||||
"highlight-groups" and "group-name".
|
"highlight-groups" and "group-name".
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
" Vim color file
|
" Vim color file
|
||||||
" Maintainer: David Schweikert <dws@ee.ethz.ch>
|
" Maintainer: David Schweikert <david@schweikert.ch>
|
||||||
" Last Change: 2006 Apr 30
|
" Last Change: 2014 Mar 19
|
||||||
|
|
||||||
hi clear
|
hi clear
|
||||||
|
|
||||||
let colors_name = "delek"
|
let g:colors_name = "delek"
|
||||||
|
|
||||||
" Normal should come first
|
" Normal should come first
|
||||||
hi Normal guifg=Black guibg=White
|
hi Normal guifg=Black guibg=White
|
||||||
@ -28,7 +28,11 @@ hi NonText ctermfg=Blue gui=bold guifg=gray guibg=white
|
|||||||
hi Pmenu guibg=LightBlue
|
hi Pmenu guibg=LightBlue
|
||||||
hi PmenuSel ctermfg=White ctermbg=DarkBlue guifg=White guibg=DarkBlue
|
hi PmenuSel ctermfg=White ctermbg=DarkBlue guifg=White guibg=DarkBlue
|
||||||
hi Question ctermfg=DarkGreen gui=bold guifg=SeaGreen
|
hi Question ctermfg=DarkGreen gui=bold guifg=SeaGreen
|
||||||
hi Search ctermfg=NONE ctermbg=Yellow guibg=Yellow guifg=NONE
|
if &background == "light"
|
||||||
|
hi Search ctermfg=NONE ctermbg=Yellow guibg=Yellow guifg=NONE
|
||||||
|
else
|
||||||
|
hi Search ctermfg=Black ctermbg=Yellow guibg=Yellow guifg=Black
|
||||||
|
endif
|
||||||
hi SpecialKey ctermfg=DarkBlue guifg=Blue
|
hi SpecialKey ctermfg=DarkBlue guifg=Blue
|
||||||
hi StatusLine cterm=bold ctermbg=blue ctermfg=yellow guibg=gold guifg=blue
|
hi StatusLine cterm=bold ctermbg=blue ctermfg=yellow guibg=gold guifg=blue
|
||||||
hi StatusLineNC cterm=bold ctermbg=blue ctermfg=black guibg=gold guifg=blue
|
hi StatusLineNC cterm=bold ctermbg=blue ctermfg=black guibg=gold guifg=blue
|
||||||
|
40
runtime/colors/industry.vim
Normal file
40
runtime/colors/industry.vim
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
" Vim color file
|
||||||
|
" Maintainer: Shian Lee
|
||||||
|
" Last Change: 2014 Mar 6 (for vim 7.4)
|
||||||
|
" Remark: "industry" stands for 'industrial' color scheme. In industrial
|
||||||
|
" HMI (Human-Machine-Interface) programming, using a standard color
|
||||||
|
" scheme is mandatory in many cases (in traffic-lights for example):
|
||||||
|
" LIGHT_RED is 'Warning'
|
||||||
|
" LIGHT_YELLOW is 'Attention'
|
||||||
|
" LIGHT_GREEN is 'Normal'
|
||||||
|
" LIGHT_MAGENTA is 'Warning-Attention' (light RED-YELLOW)
|
||||||
|
" LIGHT_CYAN is 'Attention-Normal' (light YELLOW-GREEN).
|
||||||
|
" BLACK is Dark-High-Contrast Background for maximum safety.
|
||||||
|
" BLUE is Shade of BLACK (not supposed to get attention).
|
||||||
|
"
|
||||||
|
" Industrial color scheme is by nature clear, safe and productive.
|
||||||
|
" Yet, depends on the file type's syntax, it might appear incorrect.
|
||||||
|
|
||||||
|
" Reset to dark background, then reset everything to defaults:
|
||||||
|
set background=dark
|
||||||
|
highlight clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "industry"
|
||||||
|
|
||||||
|
" First set Normal to regular white on black text colors:
|
||||||
|
hi Normal ctermfg=LightGray ctermbg=Black guifg=#dddddd guibg=Black
|
||||||
|
|
||||||
|
" Syntax highlighting (other color-groups using default, see :help group-name):
|
||||||
|
hi Comment cterm=NONE ctermfg=DarkCyan gui=NONE guifg=#00aaaa
|
||||||
|
hi Constant cterm=NONE ctermfg=LightCyan gui=NONE guifg=#00ffff
|
||||||
|
hi Identifier cterm=NONE ctermfg=LightMagenta gui=NONE guifg=#ff00ff
|
||||||
|
hi Function cterm=NONE ctermfg=LightGreen gui=NONE guifg=#00ff00
|
||||||
|
hi Statement cterm=NONE ctermfg=White gui=bold guifg=#ffffff
|
||||||
|
hi PreProc cterm=NONE ctermfg=Yellow gui=NONE guifg=#ffff00
|
||||||
|
hi Type cterm=NONE ctermfg=LightGreen gui=bold guifg=#00ff00
|
||||||
|
hi Special cterm=NONE ctermfg=LightRed gui=NONE guifg=#ff0000
|
||||||
|
hi Delimiter cterm=NONE ctermfg=Yellow gui=NONE guifg=#ffff00
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
" vim: tw=0 ts=4 sw=4
|
" vim: tw=0 ts=4 sw=4
|
||||||
" Vim color file
|
" Vim color file
|
||||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||||
" Last Change: 2006 Dec 10
|
" Last Change: 2013 May 23
|
||||||
|
|
||||||
hi clear
|
hi clear
|
||||||
set background=dark
|
set background=dark
|
||||||
@ -43,6 +43,8 @@ hi MatchParen term=reverse ctermfg=blue guibg=Blue
|
|||||||
hi TabLine term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
hi TabLine term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
||||||
hi TabLineFill term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
hi TabLineFill term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
||||||
hi TabLineSel term=reverse ctermfg=white ctermbg=lightblue guifg=white guibg=blue
|
hi TabLineSel term=reverse ctermfg=white ctermbg=lightblue guifg=white guibg=blue
|
||||||
|
hi Underlined term=underline cterm=bold,underline ctermfg=lightblue guifg=lightblue gui=bold,underline
|
||||||
|
hi Ignore ctermfg=black ctermbg=black guifg=black guibg=black
|
||||||
hi link IncSearch Visual
|
hi link IncSearch Visual
|
||||||
hi link String Constant
|
hi link String Constant
|
||||||
hi link Character Constant
|
hi link Character Constant
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
" vim: tw=0 ts=4 sw=4
|
" vim: tw=0 ts=4 sw=4
|
||||||
" Vim color file
|
" Vim color file
|
||||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||||
" Last Change: 2003 May 02
|
" Last Change: 2013 May 24
|
||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
hi clear
|
hi clear
|
||||||
@ -11,7 +11,7 @@ if exists("syntax_on")
|
|||||||
endif
|
endif
|
||||||
let g:colors_name = "ron"
|
let g:colors_name = "ron"
|
||||||
hi Normal guifg=cyan guibg=black
|
hi Normal guifg=cyan guibg=black
|
||||||
hi NonText guifg=brown
|
hi NonText guifg=yellow guibg=#303030
|
||||||
hi comment guifg=green
|
hi comment guifg=green
|
||||||
hi constant guifg=cyan gui=bold
|
hi constant guifg=cyan gui=bold
|
||||||
hi identifier guifg=cyan gui=NONE
|
hi identifier guifg=cyan gui=NONE
|
||||||
@ -24,10 +24,11 @@ hi WarningMsg guifg=Black guibg=Green
|
|||||||
hi Error guibg=Red
|
hi Error guibg=Red
|
||||||
hi Todo guifg=Black guibg=orange
|
hi Todo guifg=Black guibg=orange
|
||||||
hi Cursor guibg=#60a060 guifg=#00ff00
|
hi Cursor guibg=#60a060 guifg=#00ff00
|
||||||
hi Search guibg=lightslateblue
|
hi Search guibg=darkgray guifg=black gui=bold
|
||||||
hi IncSearch gui=NONE guibg=steelblue
|
hi IncSearch gui=NONE guibg=steelblue
|
||||||
hi LineNr guifg=darkgrey
|
hi LineNr guifg=darkgrey
|
||||||
hi title guifg=darkgrey
|
hi title guifg=darkgrey
|
||||||
|
hi ShowMarksHL ctermfg=cyan ctermbg=lightblue cterm=bold guifg=yellow guibg=black gui=bold
|
||||||
hi StatusLineNC gui=NONE guifg=lightblue guibg=darkblue
|
hi StatusLineNC gui=NONE guifg=lightblue guibg=darkblue
|
||||||
hi StatusLine gui=bold guifg=cyan guibg=blue
|
hi StatusLine gui=bold guifg=cyan guibg=blue
|
||||||
hi label guifg=gold2
|
hi label guifg=gold2
|
||||||
@ -41,3 +42,4 @@ hi DiffDelete guibg=coral
|
|||||||
hi Folded guibg=gray30
|
hi Folded guibg=gray30
|
||||||
hi FoldColumn guibg=gray30 guifg=white
|
hi FoldColumn guibg=gray30 guifg=white
|
||||||
hi cIf0 guifg=gray
|
hi cIf0 guifg=gray
|
||||||
|
hi diffOnly guifg=red gui=bold
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Checkstyle
|
" Compiler: Checkstyle
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/checkstyle.vim
|
" Last Change: 2013 Jun 26
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -17,4 +16,4 @@ CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain
|
|||||||
|
|
||||||
" sample error: WebTable.java:282: '+=' is not preceeded with whitespace.
|
" sample error: WebTable.java:282: '+=' is not preceeded with whitespace.
|
||||||
" WebTable.java:201:1: '{' should be on the previous line.
|
" WebTable.java:201:1: '{' should be on the previous line.
|
||||||
CompilerSet errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%#
|
CompilerSet errorformat=%f:%l:%v:\ %m,%f:%l:\ %m,%-G%.%#
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: eRuby
|
" Language: eRuby
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2008 Aug 1
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
@ -25,10 +25,10 @@ CompilerSet errorformat=
|
|||||||
\%f:%l:\ %tarning:\ %m,
|
\%f:%l:\ %tarning:\ %m,
|
||||||
\%f:%l:\ %m,
|
\%f:%l:\ %m,
|
||||||
\\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
|
\\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
|
||||||
\%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
|
\%D%*\\a[%*\\d]:\ Entering\ directory\ [`']%f',
|
||||||
\%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
|
\%X%*\\a[%*\\d]:\ Leaving\ directory\ [`']%f',
|
||||||
\%D%*\\a:\ Entering\ directory\ `%f',
|
\%D%*\\a:\ Entering\ directory\ [`']%f',
|
||||||
\%X%*\\a:\ Leaving\ directory\ `%f',
|
\%X%*\\a:\ Leaving\ directory\ [`']%f',
|
||||||
\%DMaking\ %*\\a\ in\ %f
|
\%DMaking\ %*\\a\ in\ %f
|
||||||
|
|
||||||
if exists('g:compiler_gcc_ignore_unmatched_lines')
|
if exists('g:compiler_gcc_ignore_unmatched_lines')
|
||||||
|
29
runtime/compiler/go.vim
Normal file
29
runtime/compiler/go.vim
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Go
|
||||||
|
" Maintainer: David Barnett (https://github.com/google/vim-ft-go)
|
||||||
|
" Last Change: 2014 Aug 16
|
||||||
|
|
||||||
|
if exists('current_compiler')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = 'go'
|
||||||
|
|
||||||
|
if exists(':CompilerSet') != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
CompilerSet makeprg=go\ build
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%-G#\ %.%#,
|
||||||
|
\%A%f:%l:%c:\ %m,
|
||||||
|
\%A%f:%l:\ %m,
|
||||||
|
\%C%*\\s%m,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
" vim: sw=2 sts=2 et
|
28
runtime/compiler/haml.vim
Normal file
28
runtime/compiler/haml.vim
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Haml
|
||||||
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
|
" Last Change: 2013 May 30
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "haml"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
CompilerSet makeprg=haml\ -c
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\Haml\ %trror\ on\ line\ %l:\ %m,
|
||||||
|
\Syntax\ %trror\ on\ line\ %l:\ %m,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim:set sw=2 sts=2:
|
@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: javac
|
" Compiler: javac
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/javac.vim
|
" Last Change: 2004 Nov 27
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
21
runtime/compiler/msbuild.vim
Normal file
21
runtime/compiler/msbuild.vim
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Microsoft Visual Studio C#
|
||||||
|
" Maintainer: Chiel ten Brinke (ctje92@gmail.com)
|
||||||
|
" Last Change: 2013 May 13
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "msbuild"
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet errorformat=\ %#%f(%l\\\,%c):\ %m
|
||||||
|
CompilerSet makeprg=msbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true
|
||||||
|
|
||||||
|
let &cpo = s:keepcpo
|
||||||
|
unlet s:keepcpo
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Miscrosoft Visual C
|
" Compiler: Microsoft Visual C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2005 Nov 30
|
" Last Change: 2014 Sep 20
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
44
runtime/compiler/ocaml.vim
Normal file
44
runtime/compiler/ocaml.vim
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
" Vim Compiler File
|
||||||
|
" Compiler: ocaml
|
||||||
|
" Maintainer: See ftplugin/ocaml.vim (?)
|
||||||
|
" Last Change: June 2013 by Marc Weber
|
||||||
|
"
|
||||||
|
" Marc Weber's comments:
|
||||||
|
" Setting makeprg doesn't make sense, because there is ocamlc, ocamlopt,
|
||||||
|
" ocamake and whatnot. So which one to use?
|
||||||
|
"
|
||||||
|
" This error format was moved from ftplugin/ocaml.vim to this file,
|
||||||
|
" because ftplugin is the wrong file to set an error format
|
||||||
|
" and the error format itself is annoying because it joins many lines in this
|
||||||
|
" error case:
|
||||||
|
"
|
||||||
|
" Error: The implementation foo.ml does not match the interface foo.cmi:
|
||||||
|
" Modules do not match case.
|
||||||
|
"
|
||||||
|
" So having it here makes people opt-in
|
||||||
|
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "ocaml"
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
CompilerSet errorformat =
|
||||||
|
\%EFile\ \"%f\"\\,\ line\ %l\\,\ characters\ %c-%*\\d:,
|
||||||
|
\%EFile\ \"%f\"\\,\ line\ %l\\,\ character\ %c:%m,
|
||||||
|
\%+EReference\ to\ unbound\ regexp\ name\ %m,
|
||||||
|
\%Eocamlyacc:\ e\ -\ line\ %l\ of\ \"%f\"\\,\ %m,
|
||||||
|
\%Wocamlyacc:\ w\ -\ %m,
|
||||||
|
\%-Zmake%.%#,
|
||||||
|
\%C%m,
|
||||||
|
\%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
|
||||||
|
\%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
|
||||||
|
\%D%*\\a:\ Entering\ directory\ `%f',
|
||||||
|
\%X%*\\a:\ Leaving\ directory\ `%f',
|
||||||
|
\%DMaking\ %*\\a\ in\ %f
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: PHP
|
" Compiler: PHP CLI
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/php.vim
|
" Last Change: 2013 Jun 25
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -17,12 +16,11 @@ let s:cpo_save = &cpo
|
|||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=php\ -lq
|
CompilerSet makeprg=php\ -lq
|
||||||
|
CompilerSet errorformat=%E<b>%.%#Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
||||||
CompilerSet errorformat=%E<b>Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
\%W<b>%.%#Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
||||||
\%W<b>Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
\%E%.%#Parse\ error:\ %m\ in\ %f\ on\ line\ %l,
|
||||||
\%EParse\ error:\ %m\ in\ %f\ on\ line\ %l,
|
\%W%.%#Notice:\ %m\ in\ %f\ on\ line\ %l,
|
||||||
\%WNotice:\ %m\ in\ %f</b>\ on\ line\ %l,
|
\%-G%.%#
|
||||||
\%-G%.%#
|
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
35
runtime/compiler/rake.vim
Normal file
35
runtime/compiler/rake.vim
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Language: Rake
|
||||||
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "rake"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
CompilerSet makeprg=rake
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%D(in\ %f),
|
||||||
|
\%\\s%#from\ %f:%l:%m,
|
||||||
|
\%\\s%#from\ %f:%l:,
|
||||||
|
\%\\s%##\ %f:%l:%m,
|
||||||
|
\%\\s%##\ %f:%l,
|
||||||
|
\%\\s%#[%f:%l:\ %#%m,
|
||||||
|
\%\\s%#%f:%l:\ %#%m,
|
||||||
|
\%\\s%#%f:%l:,
|
||||||
|
\%m\ [%f:%l]:
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim: nowrap sw=2 sts=2 ts=8:
|
@ -1,9 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: RSpec
|
" Language: RSpec
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2009 Dec 22
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
@ -18,21 +16,15 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=spec
|
CompilerSet makeprg=rspec
|
||||||
|
|
||||||
CompilerSet errorformat=
|
CompilerSet errorformat=
|
||||||
\%+W'%.%#'\ FAILED,
|
\%f:%l:\ %tarning:\ %m,
|
||||||
\%+I'%.%#'\ FIXED,
|
|
||||||
\%-Cexpected:%.%#,
|
|
||||||
\%-C\ \ \ \ \ got:%.%#,
|
|
||||||
\%E%.%#:in\ `load':\ %f:%l:%m,
|
\%E%.%#:in\ `load':\ %f:%l:%m,
|
||||||
\%C%f:%l:,
|
\%E%f:%l:in\ `%*[^']':\ %m,
|
||||||
\%W%f:%l:\ warning:\ %m,
|
\%-Z\ \ \ \ \ \#\ %f:%l:%.%#,
|
||||||
\%E%f:%l:in\ %*[^:]:\ %m,
|
\%E\ \ %\\d%\\+)%.%#,
|
||||||
\%E%f:%l:\ %m,
|
\%C\ \ \ \ \ %m,
|
||||||
\%-Z%\tfrom\ %f:%l,
|
|
||||||
\%-Z%p^%.%#,
|
|
||||||
\%-C%.%#,
|
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
@ -1,33 +1,10 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: Ruby
|
" Language: Ruby
|
||||||
" Function: Syntax check and/or error reporting
|
" Function: Syntax check and/or error reporting
|
||||||
" Maintainer: Tim Hammerquist <timh at rubyforge.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2008 Aug 1
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
" ----------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------
|
||||||
"
|
|
||||||
" Changelog:
|
|
||||||
" 0.2: script saves and restores 'cpoptions' value to prevent problems with
|
|
||||||
" line continuations
|
|
||||||
" 0.1: initial release
|
|
||||||
"
|
|
||||||
" Contributors:
|
|
||||||
" Hugh Sasse <hgs@dmu.ac.uk>
|
|
||||||
" Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
|
||||||
"
|
|
||||||
" Todo:
|
|
||||||
" match error type %m
|
|
||||||
"
|
|
||||||
" Comments:
|
|
||||||
" I know this file isn't perfect. If you have any questions, suggestions,
|
|
||||||
" patches, etc., please don't hesitate to let me know.
|
|
||||||
"
|
|
||||||
" This is my first experience with 'errorformat' and compiler plugins and
|
|
||||||
" I welcome any input from more experienced (or clearer-thinking)
|
|
||||||
" individuals.
|
|
||||||
" ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: Test::Unit - Ruby Unit Testing Framework
|
" Language: Test::Unit - Ruby Unit Testing Framework
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2008 Aug 1
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
30
runtime/compiler/sass.vim
Normal file
30
runtime/compiler/sass.vim
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Sass
|
||||||
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
|
" Last Change: 2013 May 30
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "sass"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
CompilerSet makeprg=sass\ -c
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%f:%l:%m\ (Sass::Syntax%trror),
|
||||||
|
\%ESyntax\ %trror:%m,
|
||||||
|
\%C%\\s%\\+on\ line\ %l\ of\ %f,
|
||||||
|
\%Z%.%#,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim:set sw=2 sts=2:
|
@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: se (SmartEiffel Compiler)
|
" Compiler: se (Liberty Eiffel Compiler)
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/se.vim
|
" Last Change: 2013 Jun 29
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -16,12 +15,15 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=compile\ %
|
CompilerSet makeprg=se\ c
|
||||||
|
|
||||||
CompilerSet errorformat=%W******\ Warning:\ %m,
|
CompilerSet errorformat=%W******\ Warning:\ %m,
|
||||||
\%E******\ Fatal\ Error:\ %m,
|
\%E******\ Fatal\ Error:\ %m,
|
||||||
\%E******\ Error:\ %m,
|
\%E******\ Error:\ %m,
|
||||||
\%CLine\ %l\ column\ %c\ in\ %\\w%\\+\ (%f)\ :,
|
\%ZLine\ %l\ column\ %c\ in\ %.%#\ (%f)\ %\\=:,
|
||||||
|
\%ZLine\ %l\ columns\ %c\\,\ %\\d%\\+\ %.%#\ (%f)\ %\\=:,
|
||||||
|
\%+C%*[^\ ]%.%#,
|
||||||
|
\%-GThe\ source\ lines\ involved,
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: tcl
|
" Compiler: tcl
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/tcl.vim
|
|
||||||
" Last Change: 2004 Nov 27
|
" Last Change: 2004 Nov 27
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: HTML Tidy
|
" Compiler: HTML Tidy
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/tidy.vim
|
" Last Change: 2013 Jul 7
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
" NOTE: set 'tidy_compiler_040800' if you are using the 4th August 2000 release
|
|
||||||
" of HTML Tidy.
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -16,13 +12,7 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|||||||
command -nargs=* CompilerSet setlocal <args>
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" this is needed to work around a bug in the 04/08/00 release of tidy which
|
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
|
||||||
" failed to set the filename if the -quiet option was used
|
|
||||||
if exists("tidy_compiler_040800")
|
|
||||||
CompilerSet makeprg=tidy\ -errors\ --gnu-emacs\ yes\ %
|
|
||||||
else
|
|
||||||
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
|
|
||||||
endif
|
|
||||||
|
|
||||||
" sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
|
" sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
|
||||||
" sample error: foo.html:9:2: Error: <foobar> is not recognized!
|
" sample error: foo.html:9:2: Error: <foobar> is not recognized!
|
||||||
|
22
runtime/compiler/xbuild.vim
Normal file
22
runtime/compiler/xbuild.vim
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Mono C#
|
||||||
|
" Maintainer: Chiel ten Brinke (ctje92@gmail.com)
|
||||||
|
" Last Change: 2013 May 13
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
let current_compiler = "xbuild"
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet errorformat=\ %#%f(%l\\\,%c):\ %m
|
||||||
|
CompilerSet makeprg=xbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true
|
||||||
|
|
||||||
|
let &cpo = s:keepcpo
|
||||||
|
unlet s:keepcpo
|
@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: xmllint
|
" Compiler: xmllint
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/xmllint.vim
|
" Last Change: 2013 Jul 8
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -16,12 +15,10 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=xmllint\ --valid\ --noout\
|
CompilerSet makeprg=xmllint\ --valid\ --noout
|
||||||
|
|
||||||
CompilerSet errorformat=%E%f:%l:\ error:\ %m,
|
CompilerSet errorformat=%+E%f:%l:\ %.%#\ error\ :\ %m,
|
||||||
\%W%f:%l:\ warning:\ %m,
|
\%+W%f:%l:\ %.%#\ warning\ :\ %m,
|
||||||
\%E%f:%l:\ validity\ error:\ %m,
|
|
||||||
\%W%f:%l:\ validity\ warning:\ %m,
|
|
||||||
\%-Z%p^,
|
\%-Z%p^,
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*arabic.txt* For Vim version 7.3. Last change: 2010 Nov 13
|
*arabic.txt* For Vim version 7.4. Last change: 2010 Nov 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*autocmd.txt* For Vim version 7.3. Last change: 2012 Sep 05
|
*autocmd.txt* For Vim version 7.4. Last change: 2014 Sep 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -266,7 +266,7 @@ 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 quit
|
||||||
|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
|
||||||
|
|
||||||
@ -278,6 +278,7 @@ Name triggered by ~
|
|||||||
|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
|
||||||
|
|
||||||
|
|CmdUndefined| a user command is used but it isn't defined
|
||||||
|FuncUndefined| a user function is used but it isn't defined
|
|FuncUndefined| a user function is used but it isn't defined
|
||||||
|SpellFileMissing| a spell file is used but it can't be found
|
|SpellFileMissing| a spell file is used but it can't be found
|
||||||
|SourcePre| before sourcing a Vim script
|
|SourcePre| before sourcing a Vim script
|
||||||
@ -304,6 +305,9 @@ Name triggered by ~
|
|||||||
|InsertCharPre| when a character was typed in Insert mode, before
|
|InsertCharPre| when a character was typed in Insert mode, before
|
||||||
inserting it
|
inserting it
|
||||||
|
|
||||||
|
|TextChanged| after a change was made to the text in Normal mode
|
||||||
|
|TextChangedI| after a change was made to the text in Insert mode
|
||||||
|
|
||||||
|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
|
||||||
@ -462,6 +466,16 @@ BufWriteCmd Before writing the whole buffer to a file.
|
|||||||
*BufWritePost*
|
*BufWritePost*
|
||||||
BufWritePost After writing the whole buffer to a file
|
BufWritePost After writing the whole buffer to a file
|
||||||
(should undo the commands for BufWritePre).
|
(should undo the commands for BufWritePre).
|
||||||
|
*CmdUndefined*
|
||||||
|
CmdUndefined When a user command is used but it isn't
|
||||||
|
defined. Useful for defining a command only
|
||||||
|
when it's used. The pattern is matched
|
||||||
|
against the command name. Both <amatch> and
|
||||||
|
<afile> are set to the name of the command.
|
||||||
|
NOTE: Autocompletion won't work until the
|
||||||
|
command is defined. An alternative is to
|
||||||
|
always define the user command and have it
|
||||||
|
invoke an autoloaded function. See |autoload|.
|
||||||
*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
|
||||||
@ -480,6 +494,12 @@ CmdwinLeave Before leaving the command-line window.
|
|||||||
|cmdwin-char|
|
|cmdwin-char|
|
||||||
*ColorScheme*
|
*ColorScheme*
|
||||||
ColorScheme After loading a color scheme. |:colorscheme|
|
ColorScheme After loading a color scheme. |:colorscheme|
|
||||||
|
The pattern is matched against the
|
||||||
|
colorscheme name. <afile> can be used for the
|
||||||
|
name of the actual file where this option was
|
||||||
|
set, and <amatch> for the new colorscheme
|
||||||
|
name.
|
||||||
|
|
||||||
|
|
||||||
*CompleteDone*
|
*CompleteDone*
|
||||||
CompleteDone After Insert mode completion is done. Either
|
CompleteDone After Insert mode completion is done. Either
|
||||||
@ -499,6 +519,11 @@ CursorHold When the user doesn't press a key for the time
|
|||||||
operator.
|
operator.
|
||||||
While recording the CursorHold event is not
|
While recording the CursorHold event is not
|
||||||
triggered. |q|
|
triggered. |q|
|
||||||
|
*<CursorHold>*
|
||||||
|
Internally the autocommand is triggered by the
|
||||||
|
<CursorHold> key. In an expression mapping
|
||||||
|
|getchar()| may see this character.
|
||||||
|
|
||||||
Note: Interactive commands cannot be used for
|
Note: Interactive commands cannot be used for
|
||||||
this event. There is no hit-enter prompt,
|
this event. There is no hit-enter prompt,
|
||||||
the screen is updated directly (when needed).
|
the screen is updated directly (when needed).
|
||||||
@ -513,14 +538,15 @@ CursorHold When the user doesn't press a key for the time
|
|||||||
CursorHoldI Just like CursorHold, but in Insert mode.
|
CursorHoldI Just like CursorHold, but in Insert mode.
|
||||||
|
|
||||||
*CursorMoved*
|
*CursorMoved*
|
||||||
CursorMoved After the cursor was moved in Normal mode.
|
CursorMoved After the cursor was moved in Normal or Visual
|
||||||
Also when the text of the cursor line has been
|
mode. Also when the text of the cursor line
|
||||||
changed, e.g., with "x", "rx" or "p".
|
has been changed, e.g., with "x", "rx" or "p".
|
||||||
Not triggered when there is typeahead or when
|
Not triggered when there is typeahead or when
|
||||||
an operator is pending.
|
an operator is pending.
|
||||||
For an example see |match-parens|.
|
For an example see |match-parens|.
|
||||||
Careful: Don't do anything that the user does
|
Careful: This is triggered very often, don't
|
||||||
not expect or that is slow.
|
do anything that the user does not expect or
|
||||||
|
that is slow.
|
||||||
*CursorMovedI*
|
*CursorMovedI*
|
||||||
CursorMovedI After the cursor was moved in Insert mode.
|
CursorMovedI After the cursor was moved in Insert mode.
|
||||||
Not triggered when the popup menu is visible.
|
Not triggered when the popup menu is visible.
|
||||||
@ -552,11 +578,15 @@ FileChangedRO Before making the first change to a read-only
|
|||||||
It is not allowed to change to another buffer
|
It is not allowed to change to another buffer
|
||||||
here. You can reload the buffer but not edit
|
here. You can reload the buffer but not edit
|
||||||
another one.
|
another one.
|
||||||
|
*E881*
|
||||||
|
If the number of lines changes saving for undo
|
||||||
|
may fail and the change will be aborted.
|
||||||
*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.
|
||||||
Also when the file attributes of the file
|
Also when the file attributes of the file
|
||||||
change. |timestamp|
|
change or when the size of the file changes.
|
||||||
|
|timestamp|
|
||||||
Mostly triggered after executing a shell
|
Mostly triggered after executing a shell
|
||||||
command, but also with a |:checktime| command
|
command, but also with a |:checktime| command
|
||||||
or when Gvim regains input focus.
|
or when Gvim regains input focus.
|
||||||
@ -656,6 +686,8 @@ FuncUndefined When a user function is used but it isn't
|
|||||||
when it's used. The pattern is matched
|
when it's used. The pattern is matched
|
||||||
against the function name. Both <amatch> and
|
against the function name. Both <amatch> and
|
||||||
<afile> are set to the name of the function.
|
<afile> are set to the name of the function.
|
||||||
|
NOTE: When writing Vim scripts a better
|
||||||
|
alternative is to use an autoloaded function.
|
||||||
See |autoload-functions|.
|
See |autoload-functions|.
|
||||||
*GUIEnter*
|
*GUIEnter*
|
||||||
GUIEnter After starting the GUI successfully, and after
|
GUIEnter After starting the GUI successfully, and after
|
||||||
@ -690,8 +722,11 @@ InsertCharPre When a character is typed in Insert mode,
|
|||||||
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
|
||||||
|v:insertmode| variable indicates the mode.
|
|v:insertmode| variable indicates the mode.
|
||||||
Be careful not to move the cursor or do
|
Be careful not to do anything else that the
|
||||||
anything else that the user does not expect.
|
user does not expect.
|
||||||
|
The cursor is restored afterwards. If you do
|
||||||
|
not want that set |v:char| to a non-empty
|
||||||
|
string.
|
||||||
*InsertLeave*
|
*InsertLeave*
|
||||||
InsertLeave When leaving Insert mode. Also when using
|
InsertLeave When leaving Insert mode. Also when using
|
||||||
CTRL-O |i_CTRL-O|. But not for |i_CTRL-C|.
|
CTRL-O |i_CTRL-O|. But not for |i_CTRL-C|.
|
||||||
@ -730,11 +765,11 @@ QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
|
|||||||
moving to the first error.
|
moving to the first error.
|
||||||
See |QuickFixCmdPost-example|.
|
See |QuickFixCmdPost-example|.
|
||||||
*QuitPre*
|
*QuitPre*
|
||||||
QuitPre When using `:quit`, before deciding whether it
|
QuitPre When using `:quit`, `:wq` or `:qall`, before
|
||||||
closes the current window or quits Vim. Can
|
deciding whether it closes the current window
|
||||||
be used to close any non-essential window if
|
or quits Vim. Can be used to close any
|
||||||
the current window is the last ordinary
|
non-essential window if the current window is
|
||||||
window.
|
the last ordinary window.
|
||||||
*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
|
||||||
@ -831,12 +866,27 @@ TermResponse After the response to |t_RV| is received from
|
|||||||
triggered halfway executing another event,
|
triggered halfway executing another event,
|
||||||
especially if file I/O, a shell command or
|
especially if file I/O, a shell command or
|
||||||
anything else that takes time is involved.
|
anything else that takes time is involved.
|
||||||
|
*TextChanged*
|
||||||
|
TextChanged After a change was made to the text in the
|
||||||
|
current buffer in Normal mode. That is when
|
||||||
|
|b:changedtick| has changed.
|
||||||
|
Not triggered when there is typeahead or when
|
||||||
|
an operator is pending.
|
||||||
|
Careful: This is triggered very often, don't
|
||||||
|
do anything that the user does not expect or
|
||||||
|
that is slow.
|
||||||
|
*TextChangedI*
|
||||||
|
TextChangedI After a change was made to the text in the
|
||||||
|
current buffer in Insert mode.
|
||||||
|
Not triggered when the popup menu is visible.
|
||||||
|
Otherwise the same as TextChanged.
|
||||||
*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".
|
||||||
*UserGettingBored*
|
*UserGettingBored*
|
||||||
UserGettingBored When the user hits CTRL-C. Just kidding! :-)
|
UserGettingBored When the user presses the same key 42 times.
|
||||||
|
Just kidding! :-)
|
||||||
*VimEnter*
|
*VimEnter*
|
||||||
VimEnter After doing all the startup stuff, including
|
VimEnter After doing all the startup stuff, including
|
||||||
loading .vimrc files, executing the "-c cmd"
|
loading .vimrc files, executing the "-c cmd"
|
||||||
@ -933,7 +983,8 @@ the autocommand is executed. This is different from the command!
|
|||||||
|
|
||||||
*file-pattern*
|
*file-pattern*
|
||||||
The pattern is interpreted like mostly used in file names:
|
The pattern is interpreted like mostly used in file names:
|
||||||
* matches any sequence of characters
|
* matches any sequence of characters; Unusual: includes path
|
||||||
|
separators
|
||||||
? matches any single character
|
? matches any single character
|
||||||
\? matches a '?'
|
\? matches a '?'
|
||||||
. matches a '.'
|
. matches a '.'
|
||||||
@ -942,6 +993,9 @@ The pattern is interpreted like mostly used in file names:
|
|||||||
\, matches a ','
|
\, matches a ','
|
||||||
{ } like \( \) in a |pattern|
|
{ } like \( \) in a |pattern|
|
||||||
, inside { }: like \| in a |pattern|
|
, inside { }: like \| in a |pattern|
|
||||||
|
\} literal }
|
||||||
|
\{ literal {
|
||||||
|
\\\{n,m\} like \{n,m} in a |pattern|
|
||||||
\ special meaning like in a |pattern|
|
\ special meaning like in a |pattern|
|
||||||
[ch] matches 'c' or 'h'
|
[ch] matches 'c' or 'h'
|
||||||
[^ch] match any character but 'c' and 'h'
|
[^ch] match any character but 'c' and 'h'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*change.txt* For Vim version 7.3. Last change: 2012 Nov 02
|
*change.txt* For Vim version 7.4. Last change: 2014 Jun 26
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -71,9 +71,21 @@ For inserting text see |insert.txt|.
|
|||||||
"D" deletes the highlighted text plus all text until
|
"D" deletes the highlighted text plus all text until
|
||||||
the end of the line. {not in Vi}
|
the end of the line. {not in Vi}
|
||||||
|
|
||||||
*:d* *:de* *:del* *:delete* *:dl*
|
*:d* *:de* *:del* *:delete* *:dl* *:dp*
|
||||||
:[range]d[elete] [x] Delete [range] lines (default: current line) [into
|
:[range]d[elete] [x] Delete [range] lines (default: current line) [into
|
||||||
register x].
|
register x].
|
||||||
|
Note these weird abbreviations:
|
||||||
|
:dl delete and list
|
||||||
|
:dell idem
|
||||||
|
:delel idem
|
||||||
|
:deletl idem
|
||||||
|
:deletel idem
|
||||||
|
:dp delete and print
|
||||||
|
:dep idem
|
||||||
|
:delp idem
|
||||||
|
:delep idem
|
||||||
|
:deletp idem
|
||||||
|
:deletep idem
|
||||||
|
|
||||||
:[range]d[elete] [x] {count}
|
:[range]d[elete] [x] {count}
|
||||||
Delete {count} lines, starting with [range]
|
Delete {count} lines, starting with [range]
|
||||||
@ -144,6 +156,9 @@ only after a '.').
|
|||||||
The 'B' and 'M' flags in 'formatoptions' change the behavior for inserting
|
The 'B' and 'M' flags in 'formatoptions' change the behavior for inserting
|
||||||
spaces before and after a multi-byte character |fo-table|.
|
spaces before and after a multi-byte character |fo-table|.
|
||||||
|
|
||||||
|
The '[ mark is set at the end of the first line that was joined, '] at the end
|
||||||
|
of the resulting line.
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Delete and insert *delete-insert* *replacing*
|
2. Delete and insert *delete-insert* *replacing*
|
||||||
@ -463,8 +478,8 @@ If the 'shiftround' option is on, the indent is rounded to a multiple of
|
|||||||
'shiftwidth'.
|
'shiftwidth'.
|
||||||
|
|
||||||
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
|
||||||
'#', shift right does not affect lines starting with '#' (these are supposed
|
'#' with a zero value, shift right does not affect lines starting with '#'
|
||||||
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).
|
||||||
|
|
||||||
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
|
||||||
@ -600,7 +615,7 @@ For other systems the tmpnam() library function is used.
|
|||||||
*g&*
|
*g&*
|
||||||
g& Synonym for `:%s//~/&` (repeat last substitute with
|
g& Synonym for `:%s//~/&` (repeat last substitute with
|
||||||
last search pattern on all lines with the same flags).
|
last search pattern on all lines with the same flags).
|
||||||
For exaple, when you first do a substitution with
|
For example, when you first do a substitution with
|
||||||
`:s/pattern/repl/flags` and then `/search` for
|
`:s/pattern/repl/flags` and then `/search` for
|
||||||
something else, `g&` will do `:%s/search/repl/flags`.
|
something else, `g&` will do `:%s/search/repl/flags`.
|
||||||
Mnemonic: global substitute. {not in Vi}
|
Mnemonic: global substitute. {not in Vi}
|
||||||
@ -784,6 +799,11 @@ Examples: >
|
|||||||
:s/abcde/abc^Mde/ modifies "abcde" to "abc", "de" (two lines)
|
:s/abcde/abc^Mde/ modifies "abcde" to "abc", "de" (two lines)
|
||||||
:s/$/\^M/ modifies "abcde" to "abcde^M"
|
:s/$/\^M/ modifies "abcde" to "abcde^M"
|
||||||
:s/\w\+/\u\0/g modifies "bla bla" to "Bla Bla"
|
:s/\w\+/\u\0/g modifies "bla bla" to "Bla Bla"
|
||||||
|
:s/\w\+/\L\u/g modifies "BLA bla" to "Bla Bla"
|
||||||
|
|
||||||
|
Note: "\L\u" can be used to capitalize the first letter of a word. This is
|
||||||
|
not compatible with Vi and older versions of Vim, where the "\u" would cancel
|
||||||
|
out the "\L". Same for "\U\l".
|
||||||
|
|
||||||
Note: In previous versions CTRL-V was handled in a special way. Since this is
|
Note: In previous versions CTRL-V was handled in a special way. Since this is
|
||||||
not Vi compatible, this was removed. Use a backslash instead.
|
not Vi compatible, this was removed. Use a backslash instead.
|
||||||
@ -807,7 +827,7 @@ either the first or second pattern in parentheses did not match, so either
|
|||||||
<
|
<
|
||||||
|
|
||||||
Substitute with an expression *sub-replace-expression*
|
Substitute with an expression *sub-replace-expression*
|
||||||
*sub-replace-\=*
|
*sub-replace-\=* *s/\=*
|
||||||
When the substitute string starts with "\=" the remainder is interpreted as an
|
When the substitute string starts with "\=" the remainder is interpreted as an
|
||||||
expression. This does not work recursively: a |substitute()| function inside
|
expression. This does not work recursively: a |substitute()| function inside
|
||||||
the expression cannot use "\=" for the substitute string.
|
the expression cannot use "\=" for the substitute string.
|
||||||
@ -1052,6 +1072,11 @@ another register. E.g., yank the text to copy, Visually select the text to
|
|||||||
replace and use "0p . You can repeat this as many times as you like, the
|
replace and use "0p . You can repeat this as many times as you like, the
|
||||||
unnamed register will be changed each time.
|
unnamed register will be changed each time.
|
||||||
|
|
||||||
|
When you use a blockwise Visual mode command and yank only a single line into
|
||||||
|
a register, a paste on a visual selected area will paste that single line on
|
||||||
|
each of the selected lines (thus replacing the blockwise selected region by a
|
||||||
|
block of the pasted line).
|
||||||
|
|
||||||
*blockwise-register*
|
*blockwise-register*
|
||||||
If you use a blockwise Visual mode command to get the text into the register,
|
If you use a blockwise Visual mode command to get the text into the register,
|
||||||
the block of text will be inserted before ("P") or after ("p") the cursor
|
the block of text will be inserted before ("P") or after ("p") the cursor
|
||||||
@ -1109,6 +1134,8 @@ less than one line (the small delete register is used then). An exception is
|
|||||||
made for the delete operator with these movement commands: |%|, |(|, |)|, |`|,
|
made for the delete operator with these movement commands: |%|, |(|, |)|, |`|,
|
||||||
|/|, |?|, |n|, |N|, |{| and |}|. Register "1 is always used then (this is Vi
|
|/|, |?|, |n|, |N|, |{| and |}|. Register "1 is always used then (this is Vi
|
||||||
compatible). The "- register is used as well if the delete is within a line.
|
compatible). The "- register is used as well if the delete is within a line.
|
||||||
|
Note that these characters may be mapped. E.g. |%| is mapped by the matchit
|
||||||
|
plugin.
|
||||||
With each successive deletion or change, Vim shifts the previous contents
|
With each successive deletion or change, Vim shifts the previous contents
|
||||||
of register 1 into register 2, 2 into 3, and so forth, losing the previous
|
of register 1 into register 2, 2 into 3, and so forth, losing the previous
|
||||||
contents of register 9.
|
contents of register 9.
|
||||||
@ -1623,7 +1650,7 @@ And a few warnings:
|
|||||||
7. Sorting text *sorting*
|
7. Sorting text *sorting*
|
||||||
|
|
||||||
Vim has a sorting function and a sorting command. The sorting function can be
|
Vim has a sorting function and a sorting command. The sorting function can be
|
||||||
found here: |sort()|.
|
found here: |sort()|, |uniq()|.
|
||||||
|
|
||||||
*:sor* *:sort*
|
*:sor* *:sort*
|
||||||
:[range]sor[t][!] [i][u][r][n][x][o] [/{pattern}/]
|
:[range]sor[t][!] [i][u][r][n][x][o] [/{pattern}/]
|
||||||
@ -1690,8 +1717,8 @@ Note that using `:sort` with `:global` doesn't sort the matching lines, it's
|
|||||||
quite useless.
|
quite useless.
|
||||||
|
|
||||||
The details about sorting depend on the library function used. There is no
|
The details about sorting depend on the library function used. There is no
|
||||||
guarantee that sorting is "stable" or obeys the current locale. You will have
|
guarantee that sorting obeys the current locale. You will have to try it out.
|
||||||
to try it out.
|
Vim does do a "stable" sort.
|
||||||
|
|
||||||
The sorting can be interrupted, but if you interrupt it too late in the
|
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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 7.3. Last change: 2013 Jan 17
|
*cmdline.txt* For Vim version 7.4. Last change: 2014 Sep 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -56,7 +56,7 @@ history tables:
|
|||||||
These are completely separate. Each history can only be accessed when
|
These are completely separate. Each history can only be accessed when
|
||||||
entering the same type of line.
|
entering the same type of line.
|
||||||
Use the 'history' option to set the number of lines that are remembered
|
Use the 'history' option to set the number of lines that are remembered
|
||||||
(default: 20).
|
(default: 50).
|
||||||
Notes:
|
Notes:
|
||||||
- When you enter a command-line that is exactly the same as an older one, the
|
- When you enter a command-line that is exactly the same as an older one, the
|
||||||
old one is removed (to avoid repeated commands moving older commands out of
|
old one is removed (to avoid repeated commands moving older commands out of
|
||||||
@ -356,6 +356,10 @@ terminals)
|
|||||||
List the recent five entries from all histories: >
|
List the recent five entries from all histories: >
|
||||||
:history all -5,
|
:history all -5,
|
||||||
|
|
||||||
|
:keepp[atterns] {command} *:keepp* *:keeppatterns*
|
||||||
|
Execute {command}, without adding anything to the search
|
||||||
|
history
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Command-line completion *cmdline-completion*
|
2. Command-line completion *cmdline-completion*
|
||||||
|
|
||||||
@ -754,6 +758,7 @@ characters have a special meaning. These can also be used in the expression
|
|||||||
function expand() |expand()|.
|
function expand() |expand()|.
|
||||||
% Is replaced with the current file name. *:_%* *c_%*
|
% Is replaced with the current file name. *:_%* *c_%*
|
||||||
# Is replaced with the alternate file name. *:_#* *c_#*
|
# Is replaced with the alternate file name. *:_#* *c_#*
|
||||||
|
This is remembered for every window.
|
||||||
#n (where n is a number) is replaced with *:_#0* *:_#n*
|
#n (where n is a number) is replaced with *:_#0* *:_#n*
|
||||||
the file name of buffer n. "#0" is the same as "#". *c_#n*
|
the file name of buffer n. "#0" is the same as "#". *c_#n*
|
||||||
## Is replaced with all names in the argument list *:_##* *c_##*
|
## Is replaced with all names in the argument list *:_##* *c_##*
|
||||||
@ -819,8 +824,8 @@ Note: these are typed literally, they are not special keys!
|
|||||||
the start of the function.
|
the start of the function.
|
||||||
|
|
||||||
*filename-modifiers*
|
*filename-modifiers*
|
||||||
*:_%:* *::8* *::p* *::.* *::~* *::h* *::t* *::r* *::e* *::s* *::gs*
|
*:_%:* *::8* *::p* *::.* *::~* *::h* *::t* *::r* *::e* *::s* *::gs* *::S*
|
||||||
*%:8* *%:p* *%:.* *%:~* *%:h* *%:t* *%:r* *%:e* *%:s* *%:gs*
|
*%:8* *%:p* *%:.* *%:~* *%:h* *%:t* *%:r* *%:e* *%:s* *%:gs* *%:S*
|
||||||
The file name modifiers can be used after "%", "#", "#n", "<cfile>", "<sfile>",
|
The file name modifiers can be used after "%", "#", "#n", "<cfile>", "<sfile>",
|
||||||
"<afile>" or "<abuf>". They are also used with the |fnamemodify()| function.
|
"<afile>" or "<abuf>". They are also used with the |fnamemodify()| function.
|
||||||
These are not available when Vim has been compiled without the |+modify_fname|
|
These are not available when Vim has been compiled without the |+modify_fname|
|
||||||
@ -875,6 +880,10 @@ These modifiers can be given, in this order:
|
|||||||
:gs?pat?sub?
|
:gs?pat?sub?
|
||||||
Substitute all occurrences of "pat" with "sub". Otherwise
|
Substitute all occurrences of "pat" with "sub". Otherwise
|
||||||
this works like ":s".
|
this works like ":s".
|
||||||
|
:S Escape special characters for use with a shell command (see
|
||||||
|
|shellescape()|). Must be the last one. Examples: >
|
||||||
|
:!dir <cfile>:S
|
||||||
|
:call system('chmod +w -- ' . expand('%:S'))
|
||||||
|
|
||||||
Examples, when the file name is "src/version.c", current dir
|
Examples, when the file name is "src/version.c", current dir
|
||||||
"/home/mool/vim": >
|
"/home/mool/vim": >
|
||||||
@ -964,7 +973,7 @@ for the file "$home" in the root directory. A few examples:
|
|||||||
\\$home file "\\", followed by expanded $home
|
\\$home file "\\", followed by expanded $home
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Command-line window *cmdline-window* *cmdwin*
|
7. Command-line window *cmdline-window* *cmdwin*
|
||||||
*command-line-window*
|
*command-line-window*
|
||||||
In the command-line window the command line can be edited just like editing
|
In the command-line window the command line can be edited just like editing
|
||||||
text in any window. It is a special kind of window, because you cannot leave
|
text in any window. It is a special kind of window, because you cannot leave
|
||||||
@ -1075,6 +1084,9 @@ another window, or drag statuslines of other windows. You can drag the
|
|||||||
statusline of the command-line window itself and the statusline above it.
|
statusline of the command-line window itself and the statusline above it.
|
||||||
Thus you can resize the command-line window, but not others.
|
Thus you can resize the command-line window, but not others.
|
||||||
|
|
||||||
|
The |getcmdwintype()| function returns the type of the command-line being
|
||||||
|
edited as described in |cmdwin-char|.
|
||||||
|
|
||||||
|
|
||||||
AUTOCOMMANDS
|
AUTOCOMMANDS
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*debug.txt* For Vim version 7.3. Last change: 2012 Feb 11
|
*debug.txt* For Vim version 7.4. Last change: 2012 Feb 11
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*debugger.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*debugger.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur
|
VIM REFERENCE MANUAL by Gordon Prieur
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*develop.txt* For Vim version 7.3. Last change: 2012 Jan 10
|
*develop.txt* For Vim version 7.4. Last change: 2014 Mar 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -19,7 +19,7 @@ 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 context diff "diff -c" is preferred.
|
||||||
Also see http://www.vim.org/tips/tip.php?tip_id=618.
|
Also see http://vim.wikia.com/wiki/How_to_make_and_submit_a_patch.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Design goals *design-goals*
|
1. Design goals *design-goals*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*diff.txt* For Vim version 7.3. Last change: 2012 Sep 05
|
*diff.txt* For Vim version 7.4. Last change: 2014 Oct 31
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -95,7 +95,7 @@ While already in Vim you can start diff mode in three ways.
|
|||||||
:difft[his] Make the current window part of the diff windows. This sets
|
:difft[his] Make the current window part of the diff windows. This sets
|
||||||
the options like for "vimdiff".
|
the options like for "vimdiff".
|
||||||
|
|
||||||
:diffp[atch] {patchfile} *E816* *:diffp* *:diffpatch*
|
:diffp[atch] {patchfile} *E816* *:diffp* *:diffpatch*
|
||||||
Use the current buffer, patch it with the diff found in
|
Use the current buffer, patch it with the diff found in
|
||||||
{patchfile} and open a buffer on the result. The options are
|
{patchfile} and open a buffer on the result. The options are
|
||||||
set as for "vimdiff".
|
set as for "vimdiff".
|
||||||
@ -123,14 +123,18 @@ Since the option values are remembered with the buffer, you can edit another
|
|||||||
file for a moment and come back to the same file and be in diff mode again.
|
file for a moment and come back to the same file and be in diff mode again.
|
||||||
|
|
||||||
*:diffo* *:diffoff*
|
*:diffo* *:diffoff*
|
||||||
:diffo[ff] Switch off diff mode for the current window.
|
:diffo[ff] Switch off diff mode for the current window. Resets related
|
||||||
|
options also when 'diff' was not set.
|
||||||
|
|
||||||
:diffo[ff]! Switch off diff mode for the current window and in all windows
|
:diffo[ff]! Switch off diff mode for the current window and in all windows
|
||||||
in the current tab page where 'diff' is set.
|
in the current tab page where 'diff' is set. Resetting
|
||||||
|
related options only happens in a window that has 'diff' set,
|
||||||
|
if the current window does not have 'diff' set then no options
|
||||||
|
in it are changed.
|
||||||
|
|
||||||
The ":diffoff" command resets the relevant options to their default value.
|
The ":diffoff" command resets the relevant options to the values they had when
|
||||||
This may be different from what the values were before diff mode was started,
|
using |:diffsplit|, |:diffpatch| , |:diffthis|. or starting Vim in diff mode.
|
||||||
the old values are not remembered.
|
Otherwise they are set to their default value:
|
||||||
|
|
||||||
'diff' off
|
'diff' off
|
||||||
'scrollbind' off
|
'scrollbind' off
|
||||||
@ -262,13 +266,17 @@ that the buffers will be equal within the specified range.
|
|||||||
See below for [range].
|
See below for [range].
|
||||||
|
|
||||||
*do*
|
*do*
|
||||||
do Same as ":diffget" without argument or range. The "o" stands
|
[count]do Same as ":diffget" without range. The "o" stands for "obtain"
|
||||||
for "obtain" ("dg" can't be used, it could be the start of
|
("dg" can't be used, it could be the start of "dgg"!). Note:
|
||||||
"dgg"!). Note: this doesn't work in Visual mode.
|
this doesn't work in Visual mode.
|
||||||
|
If you give a [count], it is used as the [bufspec] argument
|
||||||
|
for ":diffget".
|
||||||
|
|
||||||
*dp*
|
*dp*
|
||||||
dp Same as ":diffput" without argument or range.
|
[count]dp Same as ":diffput" without range. Note: this doesn't work in
|
||||||
Note: this doesn't work in Visual mode.
|
Visual mode.
|
||||||
|
If you give a [count], it is used as the [bufspec] argument
|
||||||
|
for ":diffput".
|
||||||
|
|
||||||
|
|
||||||
When no [range] is given, the diff at the cursor position or just above it is
|
When no [range] is given, the diff at the cursor position or just above it is
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*digraph.txt* For Vim version 7.3. Last change: 2011 Jan 15
|
*digraph.txt* For Vim version 7.4. Last change: 2014 Jun 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -147,7 +147,7 @@ a standard meaning:
|
|||||||
Two 2 Hook
|
Two 2 Hook
|
||||||
Nine 9 Horn
|
Nine 9 Horn
|
||||||
|
|
||||||
Equals = Cyrillic
|
Equals = Cyrillic (= used as second char)
|
||||||
Asterisk * Greek
|
Asterisk * Greek
|
||||||
Percent sign % Greek/Cyrillic special
|
Percent sign % Greek/Cyrillic special
|
||||||
Plus + smalls: Arabic, capitals: Hebrew
|
Plus + smalls: Arabic, capitals: Hebrew
|
||||||
@ -170,6 +170,11 @@ used for the currency sign, and latin9 (iso-8859-15), where the digraph =e is
|
|||||||
used for the euro sign, while both of them are the character 164, 0xa4. For
|
used for the euro sign, while both of them are the character 164, 0xa4. For
|
||||||
compatibility with zsh Eu can also be used for the euro sign.
|
compatibility with zsh Eu can also be used for the euro sign.
|
||||||
|
|
||||||
|
ROUBLE
|
||||||
|
|
||||||
|
The rouble sign was added in 2014 as 0x20bd. Vim supports the digraphs =R and
|
||||||
|
=P for this. Note that R= and P= are other characters.
|
||||||
|
|
||||||
*digraph-table*
|
*digraph-table*
|
||||||
char digraph hex dec official name ~
|
char digraph hex dec official name ~
|
||||||
^@ NU 0x00 0 NULL (NUL)
|
^@ NU 0x00 0 NULL (NUL)
|
||||||
@ -966,6 +971,8 @@ char digraph hex dec official name ~
|
|||||||
₧ Pt 20A7 8359 PESETA SIGN
|
₧ Pt 20A7 8359 PESETA SIGN
|
||||||
₩ W= 20A9 8361 WON SIGN
|
₩ W= 20A9 8361 WON SIGN
|
||||||
€ Eu 20AC 8364 EURO SIGN
|
€ Eu 20AC 8364 EURO SIGN
|
||||||
|
₽ =R 20BD 8381 ROUBLE SIGN
|
||||||
|
₽ =P 20BD 8381 ROUBLE SIGN
|
||||||
℃ oC 2103 8451 DEGREE CELSIUS
|
℃ oC 2103 8451 DEGREE CELSIUS
|
||||||
℅ co 2105 8453 CARE OF
|
℅ co 2105 8453 CARE OF
|
||||||
℉ oF 2109 8457 DEGREE FAHRENHEIT
|
℉ oF 2109 8457 DEGREE FAHRENHEIT
|
||||||
@ -1077,7 +1084,7 @@ char digraph hex dec official name ~
|
|||||||
⊥ -T 22A5 8869 UP TACK
|
⊥ -T 22A5 8869 UP TACK
|
||||||
⋅ .P 22C5 8901 DOT OPERATOR
|
⋅ .P 22C5 8901 DOT OPERATOR
|
||||||
⋮ :3 22EE 8942 VERTICAL ELLIPSIS
|
⋮ :3 22EE 8942 VERTICAL ELLIPSIS
|
||||||
⋯ .3 22EF 8943 MIDLINE HORIZONTAL ELLIPSIS
|
⋯ .3 22EF 8943 MIDLINE HORIZONTAL ELLIPSIS
|
||||||
⌂ Eh 2302 8962 HOUSE
|
⌂ Eh 2302 8962 HOUSE
|
||||||
⌈ <7 2308 8968 LEFT CEILING
|
⌈ <7 2308 8968 LEFT CEILING
|
||||||
⌉ >7 2309 8969 RIGHT CEILING
|
⌉ >7 2309 8969 RIGHT CEILING
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 7.3. Last change: 2012 Aug 08
|
*editing.txt* For Vim version 7.4. Last change: 2014 Dec 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -38,6 +38,7 @@ If there already was a current file name, then that one becomes the alternate
|
|||||||
file name. It can be used with "#" on the command line |:_#| and you can use
|
file name. It can be used with "#" on the command line |:_#| and you can use
|
||||||
the |CTRL-^| command to toggle between the current and the alternate file.
|
the |CTRL-^| command to toggle between the current and the alternate file.
|
||||||
However, the alternate file name is not changed when |:keepalt| is used.
|
However, the alternate file name is not changed when |:keepalt| is used.
|
||||||
|
An alternate file name is remembered for each window.
|
||||||
|
|
||||||
*:keepalt* *:keepa*
|
*:keepalt* *:keepa*
|
||||||
:keepalt {cmd} Execute {cmd} while keeping the current alternate file
|
:keepalt {cmd} Execute {cmd} while keeping the current alternate file
|
||||||
@ -185,12 +186,13 @@ If you want to automatically save the changes without asking, switch on the
|
|||||||
that does not work for all commands.
|
that does not work for all commands.
|
||||||
|
|
||||||
If you want to keep the changed buffer without saving it, switch on the
|
If you want to keep the changed buffer without saving it, switch on the
|
||||||
'hidden' option. See |hidden-buffer|.
|
'hidden' option. See |hidden-buffer|. Some commands work like this even when
|
||||||
|
'hidden' is not set, check the help for the command.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Editing a file *edit-a-file*
|
2. Editing a file *edit-a-file*
|
||||||
|
|
||||||
*:e* *:edit*
|
*:e* *:edit* *reload*
|
||||||
:e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the
|
:e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the
|
||||||
current file, when it has been changed outside of Vim.
|
current file, when it has been changed outside of Vim.
|
||||||
This fails when changes have been made to the current
|
This fails when changes have been made to the current
|
||||||
@ -199,7 +201,7 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
{Vi: no ++opt}
|
||||||
|
|
||||||
*:edit!*
|
*:edit!* *discard*
|
||||||
:e[dit]! [++opt] [+cmd]
|
:e[dit]! [++opt] [+cmd]
|
||||||
Edit the current file always. Discard any changes to
|
Edit the current file always. Discard any changes to
|
||||||
the current buffer. This is useful if you want to
|
the current buffer. This is useful if you want to
|
||||||
@ -424,7 +426,7 @@ external command, by using the syntax `={expr}` e.g.: >
|
|||||||
:e `=tempname()`
|
:e `=tempname()`
|
||||||
The expression can contain just about anything, thus this can also be used to
|
The expression can contain just about anything, thus this can also be used to
|
||||||
avoid the special meaning of '"', '|', '%' and '#'. However, 'wildignore'
|
avoid the special meaning of '"', '|', '%' and '#'. However, 'wildignore'
|
||||||
does apply like to other wildcars.
|
does apply like to other wildcards.
|
||||||
If the expression returns a string then names are to be separated with line
|
If the expression returns a string then names are to be separated with line
|
||||||
breaks. When the result is a |List| then each item is used as a name. Line
|
breaks. When the result is a |List| then each item is used as a name. Line
|
||||||
breaks also separate names.
|
breaks also separate names.
|
||||||
@ -607,7 +609,10 @@ list of the current window.
|
|||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
:[count]arga[dd] {name} .. *:arga* *:argadd* *E479*
|
:[count]arga[dd] {name} .. *:arga* *:argadd* *E479*
|
||||||
Add the {name}s to the argument list.
|
:[count]arga[dd]
|
||||||
|
Add the {name}s to the argument list. When {name} is
|
||||||
|
omitted add the current buffer name to the argument
|
||||||
|
list.
|
||||||
If [count] is omitted, the {name}s are added just
|
If [count] is omitted, the {name}s are added just
|
||||||
after the current entry in the argument list.
|
after the current entry in the argument list.
|
||||||
Otherwise they are added after the [count]'th file.
|
Otherwise they are added after the [count]'th file.
|
||||||
@ -617,7 +622,8 @@ list of the current window.
|
|||||||
:argadd x a b x c
|
:argadd x a b x c
|
||||||
:0argadd x x a b c
|
:0argadd x x a b c
|
||||||
:1argadd x a x b c
|
:1argadd x a x b c
|
||||||
:99argadd x a b c x
|
:$argadd x a b c x
|
||||||
|
:+2argadd y a b c x y
|
||||||
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.
|
||||||
@ -639,11 +645,19 @@ list of the current window.
|
|||||||
< {not in Vi} {not available when compiled without the
|
< {not in Vi} {not available when compiled without the
|
||||||
|+listcmds| feature}
|
|+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: >
|
||||||
|
:10,$argdel
|
||||||
|
< Deletes arguments 10 and further, keeping 1-9. >
|
||||||
|
:$argd
|
||||||
|
< Deletes just the last one. >
|
||||||
|
:argd
|
||||||
|
:.argd
|
||||||
|
< Deletes the current argument. >
|
||||||
|
:%argd
|
||||||
|
< 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. Example: >
|
the last argument is deleted.
|
||||||
:10,1000argdel
|
|
||||||
< Deletes arguments 10 and further, keeping 1-9.
|
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi} {not available when compiled without the
|
||||||
|+listcmds| feature}
|
|+listcmds| feature}
|
||||||
|
|
||||||
@ -1075,9 +1089,12 @@ The names can be in upper- or lowercase.
|
|||||||
the last file in the argument list has not been
|
the last file in the argument list has not been
|
||||||
edited. See |:confirm| and 'confirm'. {not in Vi}
|
edited. See |:confirm| and 'confirm'. {not in Vi}
|
||||||
|
|
||||||
:q[uit]! Quit without writing, also when visible buffers have
|
:q[uit]! Quit without writing, also when currently visible
|
||||||
changes. Does not exit when there are changed hidden
|
buffers have changes. Does not exit when this is the
|
||||||
buffers. Use ":qall!" to exit always.
|
last window and there is a changed hidden buffer.
|
||||||
|
In this case, the first changed hidden buffer becomes
|
||||||
|
the current buffer.
|
||||||
|
Use ":qall!" to exit always.
|
||||||
|
|
||||||
:cq[uit] Quit always, without writing, and return an error
|
:cq[uit] Quit always, without writing, and return an error
|
||||||
code. See |:cq|. Used for Manx's QuickFix mode (see
|
code. See |:cq|. Used for Manx's QuickFix mode (see
|
||||||
@ -1360,11 +1377,21 @@ cannot be read without the right key.
|
|||||||
{only available when compiled with the |+cryptv| feature} *E833*
|
{only available when compiled with the |+cryptv| feature} *E833*
|
||||||
|
|
||||||
The text in the swap file and the undo file is also encrypted. *E843*
|
The text in the swap file and the undo file is also encrypted. *E843*
|
||||||
|
However, this is done block-by-block and may reduce the time needed to crack a
|
||||||
|
password. You can disable the swap file, but then a crash will cause you to
|
||||||
|
lose your work. The undo file can be disabled without much disadvantage. >
|
||||||
|
:set noundofile
|
||||||
|
:noswapfile edit secrets
|
||||||
|
|
||||||
Note: The text in memory is not encrypted. A system administrator may be able
|
Note: The text in memory is not encrypted. A system administrator may be able
|
||||||
to see your text while you are editing it. When filtering text with
|
to see your text while you are editing it. When filtering text with
|
||||||
":!filter" or using ":w !command" the text is not encrypted, this may reveal
|
":!filter" or using ":w !command" the text is also not encrypted, this may
|
||||||
it to others. The 'viminfo' file is not encrypted.
|
reveal it to others. The 'viminfo' file is not encrypted.
|
||||||
|
|
||||||
|
You could do this to edit very secret text: >
|
||||||
|
:set noundofile viminfo=
|
||||||
|
:noswapfile edit secrets.txt
|
||||||
|
Keep in mind that without a swap file you risk loosing your work in a crash.
|
||||||
|
|
||||||
WARNING: If you make a typo when entering the key and then write the file and
|
WARNING: If you make a typo when entering the key and then write the file and
|
||||||
exit, the text will be lost!
|
exit, the text will be lost!
|
||||||
@ -1391,18 +1418,23 @@ To disable the encryption, reset the 'key' option to an empty value: >
|
|||||||
:set key=
|
:set key=
|
||||||
|
|
||||||
You can use the 'cryptmethod' option to select the type of encryption, use one
|
You can use the 'cryptmethod' option to select the type of encryption, use one
|
||||||
of these two: >
|
of these: >
|
||||||
:setlocal cm=zip " weak method, backwards compatible
|
:setlocal cm=zip " weak method, backwards compatible
|
||||||
:setlocal cm=blowfish " strong method
|
:setlocal cm=blowfish " method with flaws
|
||||||
|
:setlocal cm=blowfish2 " medium strong method
|
||||||
|
|
||||||
Do this before writing the file. When reading an encrypted file it will be
|
Do this before writing the file. When reading an encrypted file it will be
|
||||||
set automatically to the method used when that file was written. You can
|
set automatically to the method used when that file was written. You can
|
||||||
change 'cryptmethod' before writing that file to change the method.
|
change 'cryptmethod' before writing that file to change the method.
|
||||||
To set the default method, used for new files, use one of these in your
|
|
||||||
|vimrc| file: >
|
To set the default method, used for new files, use this in your |vimrc|
|
||||||
set cm=zip
|
file: >
|
||||||
set cm=blowfish
|
set cm=blowfish2
|
||||||
|
Using "blowfish2" is highly recommended. Only use another method if you
|
||||||
|
must use an older Vim version that does not support it.
|
||||||
|
|
||||||
The message given for reading and writing a file will show "[crypted]" when
|
The message given for reading and writing a file will show "[crypted]" when
|
||||||
using zip, "[blowfish]" when using blowfish.
|
using zip, "[blowfish]" when using blowfish, etc.
|
||||||
|
|
||||||
When writing an undo file, the same key and method will be used for the text
|
When writing an undo file, the same key and method will be used for the text
|
||||||
in the undo file. |persistent-undo|.
|
in the undo file. |persistent-undo|.
|
||||||
@ -1437,7 +1469,7 @@ lines to "/etc/magic", "/usr/share/misc/magic" or wherever your system has the
|
|||||||
0 string VimCrypt~ Vim encrypted file
|
0 string VimCrypt~ Vim encrypted file
|
||||||
>9 string 01 - "zip" cryptmethod
|
>9 string 01 - "zip" cryptmethod
|
||||||
>9 string 02 - "blowfish" cryptmethod
|
>9 string 02 - "blowfish" cryptmethod
|
||||||
|
>9 string 03 - "blowfish2" cryptmethod
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- Encryption is not possible when doing conversion with 'charconvert'.
|
- Encryption is not possible when doing conversion with 'charconvert'.
|
||||||
@ -1461,20 +1493,25 @@ Notes:
|
|||||||
- Pkzip uses the same encryption as 'cryptmethod' "zip", and US Govt has no
|
- Pkzip uses the same encryption as 'cryptmethod' "zip", and US Govt has no
|
||||||
objection to its export. Pkzip's public file APPNOTE.TXT describes this
|
objection to its export. Pkzip's public file APPNOTE.TXT describes this
|
||||||
algorithm in detail.
|
algorithm in detail.
|
||||||
|
- The implementation of 'cryptmethod' "blowfish" has a flaw. It is possible
|
||||||
|
to crack the first 64 bytes of a file and in some circumstances more of the
|
||||||
|
file. Use of it is not recommended, but it's still the strongest method
|
||||||
|
supported by Vim 7.3 and 7.4. The "zip" method is even weaker.
|
||||||
- Vim originates from the Netherlands. That is where the sources come from.
|
- Vim originates from the Netherlands. That is where the sources come from.
|
||||||
Thus the encryption code is not exported from the USA.
|
Thus the encryption code is not exported from the USA.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
10. Timestamps *timestamp* *timestamps*
|
10. Timestamps *timestamp* *timestamps*
|
||||||
|
|
||||||
Vim remembers the modification timestamp of a file when you begin editing it.
|
Vim remembers the modification timestamp, mode and size of a file when you
|
||||||
This is used to avoid that you have two different versions of the same file
|
begin editing it. This is used to avoid that you have two different versions
|
||||||
(without you knowing this).
|
of the same file (without you knowing this).
|
||||||
|
|
||||||
After a shell command is run (|:!cmd| |suspend| |:read!| |K|) timestamps are
|
After a shell command is run (|:!cmd| |suspend| |:read!| |K|) timestamps,
|
||||||
compared for all buffers in a window. Vim will run any associated
|
file modes and file sizes are compared for all buffers in a window. Vim will
|
||||||
|FileChangedShell| autocommands or display a warning for any files that have
|
run any associated |FileChangedShell| autocommands or display a warning for
|
||||||
changed. In the GUI this happens when Vim regains input focus.
|
any files that have changed. In the GUI this happens when Vim regains input
|
||||||
|
focus.
|
||||||
|
|
||||||
*E321* *E462*
|
*E321* *E462*
|
||||||
If you want to automatically reload a file when it has been changed outside of
|
If you want to automatically reload a file when it has been changed outside of
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
.TH EVIM 1 "16 f<>vrier 2002 February 16"
|
.TH EVIM 1 "16 f<>vrier 2002"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
evim \- <20> Easy Vim <20>, <20>dite un fichier avec Vim sans utiliser les modes
|
evim \- <20> Easy Vim <20>, <20>dite un fichier avec Vim sans utiliser les modes
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -54,4 +54,4 @@ Voir le menu Aide/Remerciements ou ":help credits" dans
|
|||||||
.SH TRADUCTION
|
.SH TRADUCTION
|
||||||
Cette page de manuel a <20>t<EFBFBD> traduite David Blanchet.
|
Cette page de manuel a <20>t<EFBFBD> traduite David Blanchet.
|
||||||
<david.blanchet@free.fr> 2005-03-26.
|
<david.blanchet@free.fr> 2005-03-26.
|
||||||
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>
|
Mise <20> jour 2013-05-10, Dominique Pell<6C> <dominique.pelle@gmail.com>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.TH EVIM 1 "16 février 2002 February 16"
|
.TH EVIM 1 "16 février 2002"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
evim \- « Easy Vim », édite un fichier avec Vim sans utiliser les modes
|
evim \- « Easy Vim », édite un fichier avec Vim sans utiliser les modes
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -54,4 +54,4 @@ Voir le menu Aide/Remerciements ou ":help credits" dans
|
|||||||
.SH TRADUCTION
|
.SH TRADUCTION
|
||||||
Cette page de manuel a été traduite David Blanchet.
|
Cette page de manuel a été traduite David Blanchet.
|
||||||
<david.blanchet@free.fr> 2005-03-26.
|
<david.blanchet@free.fr> 2005-03-26.
|
||||||
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>
|
Mise à jour 2013-05-10, Dominique Pellé <dominique.pelle@gmail.com>
|
||||||
|
51
runtime/doc/evim-ja.UTF-8.1
Normal file
51
runtime/doc/evim-ja.UTF-8.1
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
.TH EVIM 1 "2002 February 16"
|
||||||
|
.SH 名前
|
||||||
|
evim \- easy Vim, モードレスエディタ Vim
|
||||||
|
.SH 書式
|
||||||
|
.br
|
||||||
|
.B evim
|
||||||
|
[options] [file ..]
|
||||||
|
.br
|
||||||
|
.B eview
|
||||||
|
.SH 説明
|
||||||
|
.B eVim
|
||||||
|
は
|
||||||
|
.B Vim
|
||||||
|
を起動して、モードレスエディタとして動作するためのオプションを設定します。
|
||||||
|
Vim の動作が point-and-click エディタのような動作になります。
|
||||||
|
MS-Windows のメモ帳のような動作です。
|
||||||
|
.B eVim
|
||||||
|
は常に GUI で起動し、メニューとツールバーを表示します。
|
||||||
|
.PP
|
||||||
|
どうしても Vim の操作に馴染めない場合に使ってください。
|
||||||
|
編集効率は下がります。
|
||||||
|
.PP
|
||||||
|
.B eview
|
||||||
|
は同様に、読み込み専用モードで起動します。evim \-R と同じです。
|
||||||
|
.PP
|
||||||
|
引数や Vim についての詳細は vim(1) を参照してください。
|
||||||
|
.PP
|
||||||
|
オプション 'insertmode' が設定され、テキストを直接、入力できるようになりま
|
||||||
|
す。
|
||||||
|
.br
|
||||||
|
コピーとペーストのキー操作が MS-Windows と同じになるように、マップが設定され
|
||||||
|
ます。
|
||||||
|
CTRL-X が切り取り、CTRL-C がコピー、CTRL-V がペーストです。
|
||||||
|
標準の CTRL-V の操作は CTRL-Q に割り当てられます。
|
||||||
|
.SH オプション
|
||||||
|
vim(1) を参照してください。
|
||||||
|
.SH ファイル
|
||||||
|
.TP 15
|
||||||
|
/usr/local/lib/vim/evim.vim
|
||||||
|
eVim の初期化スクリプト。
|
||||||
|
.SH 別名
|
||||||
|
evim は "gumbies のための Vim" とも呼ばれています。
|
||||||
|
evim を使っているあなたはきっと、頭にハンカチをかぶっているのです。
|
||||||
|
(訳注: gumbies は Monty Python に登場するおもしろ集団。ハンカチをかぶっ
|
||||||
|
ている。)
|
||||||
|
.SH 関連項目
|
||||||
|
vim(1)
|
||||||
|
.SH 著者
|
||||||
|
.B Vim
|
||||||
|
のほとんどの機能は Bram Moolenaar が開発し、多くの人が協力しました。
|
||||||
|
メニューの Help/Credits を参照してください。
|
@ -1,4 +1,4 @@
|
|||||||
*farsi.txt* For Vim version 7.3. Last change: 2010 Aug 07
|
*farsi.txt* For Vim version 7.4. Last change: 2010 Aug 07
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 7.3. Last change: 2011 Jun 19
|
*filetype.txt* For Vim version 7.4. Last change: 2013 Dec 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -447,23 +447,25 @@ g:changelog_new_date_format
|
|||||||
%% insert a single '%' character
|
%% insert a single '%' character
|
||||||
%d insert the date from above
|
%d insert the date from above
|
||||||
%u insert the user from above
|
%u insert the user from above
|
||||||
|
%p insert result of b:changelog_entry_prefix
|
||||||
%c where to position cursor when done
|
%c where to position cursor when done
|
||||||
The default is "%d %u\n\n\t* %c\n\n", which produces
|
The default is "%d %u\n\n\t* %p%c\n\n", which produces
|
||||||
something like (| is where cursor will be, unless at
|
something like (| is where cursor will be, unless at
|
||||||
the start of the line where it denotes the beginning
|
the start of the line where it denotes the beginning
|
||||||
of the line) >
|
of the line) >
|
||||||
|2003-01-14 Full Name <user@host>
|
|2003-01-14 Full Name <user@host>
|
||||||
|
|
|
|
||||||
| * |
|
| * prefix|
|
||||||
<
|
<
|
||||||
g:changelog_new_entry_format
|
g:changelog_new_entry_format
|
||||||
The format used when creating a new entry.
|
The format used when creating a new entry.
|
||||||
The following table describes special tokens in the
|
The following table describes special tokens in the
|
||||||
string:
|
string:
|
||||||
|
%p insert result of b:changelog_entry_prefix
|
||||||
%c where to position cursor when done
|
%c where to position cursor when done
|
||||||
The default is "\t*%c", which produces something
|
The default is "\t*%c", which produces something
|
||||||
similar to >
|
similar to >
|
||||||
| * |
|
| * prefix|
|
||||||
<
|
<
|
||||||
g:changelog_date_entry_search
|
g:changelog_date_entry_search
|
||||||
The search pattern to use when searching for a
|
The search pattern to use when searching for a
|
||||||
@ -603,7 +605,7 @@ Since the text for this plugin is rather long it has been put in a separate
|
|||||||
file: |ft_sql.txt|.
|
file: |ft_sql.txt|.
|
||||||
|
|
||||||
|
|
||||||
TEX *ft-tex-plugin*
|
TEX *ft-tex-plugin* *g:tex_flavor*
|
||||||
|
|
||||||
If the first line of a *.tex file has the form >
|
If the first line of a *.tex file has the form >
|
||||||
%&<format>
|
%&<format>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*fold.txt* For Vim version 7.3. Last change: 2010 May 13
|
*fold.txt* For Vim version 7.4. Last change: 2013 Dec 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -285,9 +285,10 @@ zF Create a fold for [count] lines. Works like "zf".
|
|||||||
*zd* *E351*
|
*zd* *E351*
|
||||||
zd Delete one fold at the cursor. When the cursor is on a folded
|
zd Delete one fold at the cursor. When the cursor is on a folded
|
||||||
line, that fold is deleted. Nested folds are moved one level
|
line, that fold is deleted. Nested folds are moved one level
|
||||||
up. In Visual mode all folds (partially) in the selected area
|
up. In Visual mode one level of all folds (partially) in the
|
||||||
are deleted. Careful: This easily deletes more folds than you
|
selected area are deleted.
|
||||||
expect and there is no undo.
|
Careful: This easily deletes more folds than you expect and
|
||||||
|
there is no undo for manual folding.
|
||||||
This only works when 'foldmethod' is "manual" or "marker".
|
This only works when 'foldmethod' is "manual" or "marker".
|
||||||
Also see |fold-delete-marker|.
|
Also see |fold-delete-marker|.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*ft_ada.txt* For Vim version 7.3. Last change: 2010 Jul 20
|
*ft_ada.txt* For Vim version 7.4. Last change: 2010 Jul 20
|
||||||
|
|
||||||
|
|
||||||
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*ft_sql.txt* For Vim version 7.3. Last change: 2010 Jul 20
|
*ft_sql.txt* For Vim version 7.4. Last change: 2013 May 15
|
||||||
|
|
||||||
by David Fishburn
|
by David Fishburn
|
||||||
|
|
||||||
@ -349,6 +349,7 @@ may not work properly on all platforms: >
|
|||||||
The static maps (which are based on the syntax highlight groups) follow this
|
The static maps (which are based on the syntax highlight groups) follow this
|
||||||
format: >
|
format: >
|
||||||
imap <buffer> <C-C>k <C-\><C-O>:call sqlcomplete#Map('sqlKeyword')<CR><C-X><C-O>
|
imap <buffer> <C-C>k <C-\><C-O>:call sqlcomplete#Map('sqlKeyword')<CR><C-X><C-O>
|
||||||
|
imap <buffer> <C-C>k <C-\><C-O>:call sqlcomplete#Map('sqlKeyword\w*')<CR><C-X><C-O>
|
||||||
|
|
||||||
This command breaks down as: >
|
This command breaks down as: >
|
||||||
imap - Create an insert map
|
imap - Create an insert map
|
||||||
@ -369,6 +370,9 @@ This command breaks down as: >
|
|||||||
command while editing a SQL file.
|
command while editing a SQL file.
|
||||||
'sqlKeyword' - Display the items for the sqlKeyword highlight
|
'sqlKeyword' - Display the items for the sqlKeyword highlight
|
||||||
group
|
group
|
||||||
|
'sqlKeyword\w*' - A second option available with Vim 7.4 which
|
||||||
|
uses a regular expression to determine which
|
||||||
|
syntax groups to use
|
||||||
)<CR> - Execute the :let command
|
)<CR> - Execute the :let command
|
||||||
<C-X><C-O> - Trigger the standard omni completion key stroke.
|
<C-X><C-O> - Trigger the standard omni completion key stroke.
|
||||||
Passing in 'sqlKeyword' instructs the SQL
|
Passing in 'sqlKeyword' instructs the SQL
|
||||||
@ -435,7 +439,7 @@ the space bar):
|
|||||||
of columns, you can press <Left>, this will
|
of columns, you can press <Left>, this will
|
||||||
replace the column list with the list of tables.
|
replace the column list with the list of tables.
|
||||||
- This allows you to quickly drill down into a
|
- This allows you to quickly drill down into a
|
||||||
table to view it's columns and back again.
|
table to view its columns and back again.
|
||||||
- <Right> and <Left> can be also be chosen via
|
- <Right> and <Left> can be also be chosen via
|
||||||
your |.vimrc| >
|
your |.vimrc| >
|
||||||
let g:ftplugin_sql_omni_key_right = '<Right>'
|
let g:ftplugin_sql_omni_key_right = '<Right>'
|
||||||
@ -645,7 +649,7 @@ your |vimrc|: >
|
|||||||
- When completing tables, procedure or views and using dbext.vim 3.00
|
- When completing tables, procedure or views and using dbext.vim 3.00
|
||||||
or higher the list of objects will also include the owner name.
|
or higher the list of objects will also include the owner name.
|
||||||
When completing these objects and omni_sql_include_owner is enabled
|
When completing these objects and omni_sql_include_owner is enabled
|
||||||
the owner name will be be replaced. >
|
the owner name will be replaced. >
|
||||||
|
|
||||||
omni_sql_precache_syntax_groups
|
omni_sql_precache_syntax_groups
|
||||||
< - Default:
|
< - Default:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui.txt* For Vim version 7.3. Last change: 2011 Jul 22
|
*gui.txt* For Vim version 7.4. Last change: 2014 Mar 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -93,10 +93,16 @@ and initialize other things that you may want to set up differently from the
|
|||||||
terminal version.
|
terminal version.
|
||||||
|
|
||||||
Recommended place for your personal GUI initializations:
|
Recommended place for your personal GUI initializations:
|
||||||
Unix $HOME/.gvimrc
|
Unix $HOME/.gvimrc or $HOME/.vim/gvimrc
|
||||||
OS/2 $HOME/.gvimrc or $VIM/.gvimrc
|
OS/2 $HOME/.gvimrc, $HOME/vimfiles/gvimrc
|
||||||
MS-DOS and Win32 $HOME/_gvimrc or $VIM/_gvimrc
|
or $VIM/.gvimrc
|
||||||
Amiga s:.gvimrc or $VIM/.gvimrc
|
MS-DOS and Win32 $HOME/_gvimrc, $HOME/vimfiles/gvimrc
|
||||||
|
or $VIM/_gvimrc
|
||||||
|
Amiga s:.gvimrc, home:.gvimrc, home:vimfiles:gvimrc
|
||||||
|
or $VIM/.gvimrc
|
||||||
|
|
||||||
|
The personal initialization files are searched in the order specified above
|
||||||
|
and only the first one that is found is read.
|
||||||
|
|
||||||
There are a number of options which only have meaning in the GUI version of
|
There are a number of options which only have meaning in the GUI version of
|
||||||
Vim. These are 'guicursor', 'guifont', 'guipty' and 'guioptions'. They are
|
Vim. These are 'guicursor', 'guifont', 'guipty' and 'guioptions'. They are
|
||||||
@ -127,6 +133,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()|.
|
||||||
|
|
||||||
: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.
|
||||||
@ -145,8 +152,11 @@ task bar with the 'guiheadroom' option.
|
|||||||
option.
|
option.
|
||||||
|
|
||||||
If you are running the X Window System, you can get information about the
|
If you are running the X Window System, you can get information about the
|
||||||
window Vim is running in with this command: >
|
window Vim is running in with these commands: >
|
||||||
:!xwininfo -id $WINDOWID
|
:!xwininfo -id $WINDOWID
|
||||||
|
:!xprop -id $WINDOWID
|
||||||
|
:execute '!xwininfo -id ' . v:windowid
|
||||||
|
:execute '!xprop -id ' . v:windowid
|
||||||
<
|
<
|
||||||
*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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui_w16.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*gui_w16.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui_w32.txt* For Vim version 7.3. Last change: 2012 Aug 04
|
*gui_w32.txt* For Vim version 7.4. Last change: 2012 Aug 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui_x11.txt* For Vim version 7.3. Last change: 2011 Sep 14
|
*gui_x11.txt* For Vim version 7.4. Last change: 2014 Mar 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -442,7 +442,7 @@ command line argument).
|
|||||||
*gui-x11-kde*
|
*gui-x11-kde*
|
||||||
There is no KDE version of Vim. There has been some work on a port using the
|
There is no KDE version of Vim. There has been some work on a port using the
|
||||||
Qt toolkit, but it never worked properly and it has been abandoned. Work
|
Qt toolkit, but it never worked properly and it has been abandoned. Work
|
||||||
continues on Yzis: www.yzis.org.
|
continues on Yzis: https://github.com/chrizel/Yzis.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
8. Compiling *gui-x11-compiling*
|
8. Compiling *gui-x11-compiling*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*hangulin.txt* For Vim version 7.3. Last change: 2009 Jun 24
|
*hangulin.txt* For Vim version 7.4. Last change: 2009 Jun 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*hebrew.txt* For Vim version 7.3. Last change: 2007 Jun 14
|
*hebrew.txt* For Vim version 7.4. Last change: 2007 Jun 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*help.txt* For Vim version 7.3. Last change: 2012 Dec 06
|
*help.txt* For Vim version 7.4. Last change: 2012 Dec 06
|
||||||
|
|
||||||
VIM - main help file
|
VIM - main help file
|
||||||
k
|
k
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*helphelp.txt* For Vim version 7.3. Last change: 2012 Nov 28
|
*helphelp.txt* For Vim version 7.4. Last change: 2014 Sep 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -96,6 +96,9 @@ Help on help files *helphelp*
|
|||||||
find a tag in a file with the same language as the
|
find a tag in a file with the same language as the
|
||||||
current file. See |help-translated|.
|
current file. See |help-translated|.
|
||||||
|
|
||||||
|
*:helpc* *:helpclose*
|
||||||
|
:helpc[lose] Close one help window, if there is one.
|
||||||
|
|
||||||
*:helpg* *:helpgrep*
|
*:helpg* *:helpgrep*
|
||||||
:helpg[rep] {pattern}[@xx]
|
:helpg[rep] {pattern}[@xx]
|
||||||
Search all help text files and make a list of lines
|
Search all help text files and make a list of lines
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*howto.txt* For Vim version 7.3. Last change: 2006 Apr 02
|
*howto.txt* For Vim version 7.4. Last change: 2006 Apr 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_cscop.txt* For Vim version 7.3. Last change: 2011 Jun 12
|
*if_cscop.txt* For Vim version 7.4. Last change: 2011 Jun 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Andy Kahn
|
VIM REFERENCE MANUAL by Andy Kahn
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_lua.txt* For Vim version 7.3. Last change: 2012 Jun 29
|
*if_lua.txt* For Vim version 7.4. Last change: 2013 Sep 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Luis Carvalho
|
VIM REFERENCE MANUAL by Luis Carvalho
|
||||||
@ -10,9 +10,10 @@ The Lua Interface to Vim *lua* *Lua*
|
|||||||
2. The vim module |lua-vim|
|
2. The vim module |lua-vim|
|
||||||
3. List userdata |lua-list|
|
3. List userdata |lua-list|
|
||||||
4. Dict userdata |lua-dict|
|
4. Dict userdata |lua-dict|
|
||||||
5. Buffer userdata |lua-buffer|
|
5. Funcref userdata |lua-funcref|
|
||||||
6. Window userdata |lua-window|
|
6. Buffer userdata |lua-buffer|
|
||||||
7. The luaeval function |lua-luaeval|
|
7. Window userdata |lua-window|
|
||||||
|
8. The luaeval function |lua-luaeval|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
{Vi does not have any of these commands}
|
||||||
|
|
||||||
@ -110,9 +111,31 @@ input range are stored in "vim.firstline" and "vim.lastline" respectively. The
|
|||||||
module also includes routines for buffer, window, and current line queries,
|
module also includes routines for buffer, window, and current line queries,
|
||||||
Vim evaluation and command execution, and others.
|
Vim evaluation and command execution, and others.
|
||||||
|
|
||||||
vim.list() Returns an empty list (see |List|).
|
vim.list([arg]) Returns an empty list or, if "arg" is a Lua
|
||||||
|
table with numeric keys 1, ..., n (a
|
||||||
vim.dict() Returns an empty dictionary (see |Dictionary|).
|
"sequence"), returns a list l such that l[i] =
|
||||||
|
arg[i] for i = 1, ..., n (see |List|).
|
||||||
|
Non-numeric keys are not used to initialize
|
||||||
|
the list. See also |lua-eval| for conversion
|
||||||
|
rules. Example: >
|
||||||
|
:lua t = {math.pi, false, say = 'hi'}
|
||||||
|
:echo luaeval('vim.list(t)')
|
||||||
|
:" [3.141593, 0], 'say' is ignored
|
||||||
|
<
|
||||||
|
vim.dict([arg]) Returns an empty dictionary or, if "arg" is a
|
||||||
|
Lua table, returns a dict d such that d[k] =
|
||||||
|
arg[k] for all string keys k in "arg" (see
|
||||||
|
|Dictionary|). Number keys are converted to
|
||||||
|
strings. Keys that are not strings are not
|
||||||
|
used to initialize the dictionary. See also
|
||||||
|
|lua-eval| for conversion rules. Example: >
|
||||||
|
:lua t = {math.pi, false, say = 'hi'}
|
||||||
|
:echo luaeval('vim.dict(t)')
|
||||||
|
:" {'say': 'hi'}, numeric keys ignored
|
||||||
|
<
|
||||||
|
vim.funcref({name}) Returns a Funcref to function {name} (see
|
||||||
|
|Funcref|). It is equivalent to Vim's
|
||||||
|
"function". NOT IMPLEMENTED YET
|
||||||
|
|
||||||
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"
|
||||||
@ -131,9 +154,9 @@ Vim evaluation and command execution, and others.
|
|||||||
|
|
||||||
vim.type({arg}) Returns the type of {arg}. It is equivalent to
|
vim.type({arg}) Returns the type of {arg}. It is equivalent to
|
||||||
Lua's "type" function, but returns "list",
|
Lua's "type" function, but returns "list",
|
||||||
"dict", "buffer", or "window" if {arg} is a
|
"dict", "funcref", "buffer", or "window" if
|
||||||
list, dictionary, buffer, or window,
|
{arg} is a list, dictionary, funcref, buffer,
|
||||||
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
|
:" userdata list
|
||||||
@ -229,7 +252,40 @@ Examples:
|
|||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
5. Buffer userdata *lua-buffer*
|
5. Funcref userdata *lua-funcref*
|
||||||
|
|
||||||
|
Funcref userdata represent funcref variables in Vim. Funcrefs that were
|
||||||
|
defined with a "dict" attribute need to be obtained as a dictionary key
|
||||||
|
in order to have "self" properly assigned to the dictionary (see examples
|
||||||
|
below.) A funcref "f" has the following properties:
|
||||||
|
|
||||||
|
Properties
|
||||||
|
----------
|
||||||
|
o "#f" is the name of the function referenced by "f"
|
||||||
|
o "f(...)" calls the function referenced by "f" (with arguments)
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
>
|
||||||
|
:function I(x)
|
||||||
|
: return a:x
|
||||||
|
: endfunction
|
||||||
|
:let R = function('I')
|
||||||
|
:lua i1 = vim.funcref('I')
|
||||||
|
:lua i2 = vim.eval('R')
|
||||||
|
:lua print(#i1, #i2) -- both 'I'
|
||||||
|
:lua print(i1, i2, #i2(i1) == #i1(i2))
|
||||||
|
:function Mylen() dict
|
||||||
|
: return len(self.data)
|
||||||
|
: endfunction
|
||||||
|
:let mydict = {'data': [0, 1, 2, 3]}
|
||||||
|
:lua d = vim.eval('mydict'); d.len = vim.funcref('Mylen')
|
||||||
|
:echo mydict.len()
|
||||||
|
:lua l = d.len -- assign d as 'self'
|
||||||
|
:lua print(l())
|
||||||
|
<
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
6. Buffer userdata *lua-buffer*
|
||||||
|
|
||||||
Buffer userdata represent vim buffers. A buffer userdata "b" has the following
|
Buffer userdata represent vim buffers. A buffer userdata "b" has the following
|
||||||
properties and methods:
|
properties and methods:
|
||||||
@ -281,7 +337,7 @@ Examples:
|
|||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Window userdata *lua-window*
|
7. Window userdata *lua-window*
|
||||||
|
|
||||||
Window objects represent vim windows. A window userdata "w" has the following
|
Window objects represent vim windows. A window userdata "w" has the following
|
||||||
properties and methods:
|
properties and methods:
|
||||||
@ -313,7 +369,7 @@ Examples:
|
|||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
7. The luaeval function *lua-luaeval* *lua-eval*
|
8. The luaeval function *lua-luaeval* *lua-eval*
|
||||||
|
|
||||||
The (dual) equivalent of "vim.eval" for passing Lua values to Vim is
|
The (dual) equivalent of "vim.eval" for passing Lua values to Vim is
|
||||||
"luaeval". "luaeval" takes an expression string and an optional argument and
|
"luaeval". "luaeval" takes an expression string and an optional argument and
|
||||||
@ -325,7 +381,13 @@ returns the result of the expression. It is semantically equivalent in Lua to:
|
|||||||
return chunk(arg) -- return typval
|
return chunk(arg) -- return typval
|
||||||
end
|
end
|
||||||
<
|
<
|
||||||
Note that "_A" receives the argument to "luaeval". Examples: >
|
Note that "_A" receives the argument to "luaeval". Lua numbers, strings, and
|
||||||
|
list, dict, and funcref userdata are converted to their Vim respective types,
|
||||||
|
while Lua booleans are converted to numbers. An error is thrown if conversion
|
||||||
|
of any of the remaining Lua types, including userdata other than lists, dicts,
|
||||||
|
and funcrefs, is attempted.
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
|
||||||
:echo luaeval('math.pi')
|
:echo luaeval('math.pi')
|
||||||
:lua a = vim.list():add('newlist')
|
:lua a = vim.list():add('newlist')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_mzsch.txt* For Vim version 7.3. Last change: 2012 Dec 17
|
*if_mzsch.txt* For Vim version 7.4. Last change: 2012 Dec 17
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sergey Khorev
|
VIM REFERENCE MANUAL by Sergey Khorev
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_ole.txt* For Vim version 7.3. Last change: 2008 Aug 16
|
*if_ole.txt* For Vim version 7.4. Last change: 2008 Aug 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_perl.txt* For Vim version 7.3. Last change: 2012 Oct 25
|
*if_perl.txt* For Vim version 7.4. Last change: 2013 Oct 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sven Verdoolaege
|
VIM REFERENCE MANUAL by Sven Verdoolaege
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_pyth.txt* For Vim version 7.3. Last change: 2013 Feb 03
|
*if_pyth.txt* For Vim version 7.4. Last change: 2014 Jul 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@ -11,9 +11,11 @@ The Python Interface to Vim *python* *Python*
|
|||||||
3. Buffer objects |python-buffer|
|
3. Buffer objects |python-buffer|
|
||||||
4. Range objects |python-range|
|
4. Range objects |python-range|
|
||||||
5. Window objects |python-window|
|
5. Window objects |python-window|
|
||||||
6. pyeval(), py3eval() Vim functions |python-pyeval|
|
6. Tab page objects |python-tabpage|
|
||||||
7. Dynamic loading |python-dynamic|
|
7. vim.bindeval objects |python-bindeval-objects|
|
||||||
8. Python 3 |python3|
|
8. pyeval(), py3eval() Vim functions |python-pyeval|
|
||||||
|
9. Dynamic loading |python-dynamic|
|
||||||
|
10. Python 3 |python3|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
{Vi does not have any of these commands}
|
||||||
|
|
||||||
@ -21,11 +23,12 @@ The Python 2.x interface is available only when Vim was compiled with the
|
|||||||
|+python| feature.
|
|+python| feature.
|
||||||
The Python 3 interface is available only when Vim was compiled with the
|
The Python 3 interface is available only when Vim was compiled with the
|
||||||
|+python3| feature.
|
|+python3| feature.
|
||||||
|
Both can be available at the same time, but read |python-2-and-3|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Commands *python-commands*
|
1. Commands *python-commands*
|
||||||
|
|
||||||
*:python* *:py* *E205* *E263* *E264*
|
*:python* *:py* *E263* *E264* *E887*
|
||||||
:[range]py[thon] {stmt}
|
:[range]py[thon] {stmt}
|
||||||
Execute Python statement {stmt}. A simple check if
|
Execute Python statement {stmt}. A simple check if
|
||||||
the `:python` command is working: >
|
the `:python` command is working: >
|
||||||
@ -57,6 +60,22 @@ Example: >
|
|||||||
Note: Python is very sensitive to the indenting. Make sure the "class" line
|
Note: Python is very sensitive to the indenting. Make sure the "class" line
|
||||||
and "EOF" do not have any indent.
|
and "EOF" do not have any indent.
|
||||||
|
|
||||||
|
*:pydo*
|
||||||
|
:[range]pydo {body} Execute Python function "def _vim_pydo(line, linenr):
|
||||||
|
{body}" for each line in the [range], with the
|
||||||
|
function arguments being set to the text of each line
|
||||||
|
in turn, without a trailing <EOL>, and the current
|
||||||
|
line number. The function should return a string or
|
||||||
|
None. If a string is returned, it becomes the text of
|
||||||
|
the line in the current turn. The default for [range]
|
||||||
|
is the whole file: "1,$".
|
||||||
|
{not in Vi}
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
>
|
||||||
|
:pydo return "%s\t%d" % (line[::-1], len(line))
|
||||||
|
:pydo if line: return "%4d: %s" % (linenr, line)
|
||||||
|
<
|
||||||
*:pyfile* *:pyf*
|
*:pyfile* *:pyf*
|
||||||
:[range]pyf[ile] {file}
|
:[range]pyf[ile] {file}
|
||||||
Execute the Python script in {file}. The whole
|
Execute the Python script in {file}. The whole
|
||||||
@ -154,42 +173,26 @@ vim.eval(str) *python-eval*
|
|||||||
'eval_expr', 'kind': 'f', 'filename': './src/eval.c'}]
|
'eval_expr', 'kind': 'f', 'filename': './src/eval.c'}]
|
||||||
|
|
||||||
vim.bindeval(str) *python-bindeval*
|
vim.bindeval(str) *python-bindeval*
|
||||||
Like |python-eval|, but
|
Like |python-eval|, but returns special objects described in
|
||||||
1. if expression evaluates to |List| or |Dictionary| it is returned as
|
|python-bindeval-objects|. These python objects let you modify (|List|
|
||||||
vimlist or vimdictionary python type that are connected to original
|
or |Dictionary|) or call (|Funcref|) vim objects.
|
||||||
list or dictionary. Thus modifications to these objects imply
|
|
||||||
modifications of the original.
|
|
||||||
|
|
||||||
Additionally, vimlist and vimdictionary type have read-write
|
vim.strwidth(str) *python-strwidth*
|
||||||
`.locked` attribute that returns
|
Like |strwidth()|: returns number of display cells str occupies, tab
|
||||||
Value Meaning ~
|
is counted as one cell.
|
||||||
zero Variable is not locked
|
|
||||||
vim.VAR_LOCKED Variable is locked, but can be unlocked
|
|
||||||
vim.VAR_FIXED Variable is locked and can't be unlocked
|
|
||||||
integer constants. If variable is not fixed, you can do
|
|
||||||
`var.locked=True` to lock it and `var.locked=False` to unlock.
|
|
||||||
There is no recursive locking like |:lockvar|! does. There is also
|
|
||||||
no way to lock a specific key or check whether it is locked (in any
|
|
||||||
case these locks are ignored by anything except |:let|: |extend()|
|
|
||||||
does not care, neither does python interface).
|
|
||||||
|
|
||||||
Vimdictionary type also supports `.scope` attribute which is one of
|
|
||||||
Value Meaning ~
|
|
||||||
zero Dictionary is not a scope one
|
|
||||||
vim.VAR_DEF_SCOPE Function-local or global scope dictionary
|
|
||||||
vim.VAR_SCOPE Other scope dictionary
|
|
||||||
|
|
||||||
2. if expression evaluates to a function reference, then it returns
|
|
||||||
callable vimfunction object. Use self keyword argument to assign
|
|
||||||
|self| object for dictionary functions.
|
|
||||||
|
|
||||||
Note: this function has the same behavior as |lua-eval| (except that
|
|
||||||
lua does not support running vim functions), |python-eval| is
|
|
||||||
kept for backwards compatibility in order not to make scripts
|
|
||||||
relying on outputs of vim.eval() being a copy of original or
|
|
||||||
vim.eval("1") returning a string.
|
|
||||||
|
|
||||||
|
vim.foreach_rtp(callable) *python-foreach_rtp*
|
||||||
|
Call the given callable for each path in 'runtimepath' until either
|
||||||
|
callable returns something but None, the exception is raised or there
|
||||||
|
are no longer paths. If stopped in case callable returned non-None,
|
||||||
|
vim.foreach_rtp function returns the value returned by callable.
|
||||||
|
|
||||||
|
vim.chdir(*args, **kwargs) *python-chdir*
|
||||||
|
vim.fchdir(*args, **kwargs) *python-fchdir*
|
||||||
|
Run os.chdir or os.fchdir, then all appropriate vim stuff.
|
||||||
|
Note: you should not use these functions directly, use os.chdir and
|
||||||
|
os.fchdir instead. Behavior of vim.fchdir is undefined in case
|
||||||
|
os.fchdir does not exist.
|
||||||
|
|
||||||
Error object of the "vim" module
|
Error object of the "vim" module
|
||||||
|
|
||||||
@ -209,12 +212,12 @@ Constants of the "vim" module
|
|||||||
to which the variables referred.
|
to which the variables referred.
|
||||||
|
|
||||||
vim.buffers *python-buffers*
|
vim.buffers *python-buffers*
|
||||||
A sequence object providing access to the list of vim buffers. The
|
A mapping object providing access to the list of vim buffers. The
|
||||||
object supports the following operations: >
|
object supports the following operations: >
|
||||||
:py b = vim.buffers[i] # Indexing (read-only)
|
:py b = vim.buffers[i] # Indexing (read-only)
|
||||||
:py b in vim.buffers # Membership test
|
:py b in vim.buffers # Membership test
|
||||||
:py n = len(vim.buffers) # Number of elements
|
:py n = len(vim.buffers) # Number of elements
|
||||||
:py for b in vim.buffers: # Sequential access
|
:py for b in vim.buffers: # Iterating over buffer list
|
||||||
<
|
<
|
||||||
vim.windows *python-windows*
|
vim.windows *python-windows*
|
||||||
A sequence object providing access to the list of vim windows. The
|
A sequence object providing access to the list of vim windows. The
|
||||||
@ -223,13 +226,28 @@ vim.windows *python-windows*
|
|||||||
:py w in vim.windows # Membership test
|
:py w in vim.windows # Membership test
|
||||||
:py n = len(vim.windows) # Number of elements
|
:py n = len(vim.windows) # Number of elements
|
||||||
:py for w in vim.windows: # Sequential access
|
:py for w in vim.windows: # Sequential access
|
||||||
|
< Note: vim.windows object always accesses current tab page.
|
||||||
|
|python-tabpage|.windows objects are bound to parent |python-tabpage|
|
||||||
|
object and always use windows from that tab page (or throw vim.error
|
||||||
|
in case tab page was deleted). You can keep a reference to both
|
||||||
|
without keeping a reference to vim module object or |python-tabpage|,
|
||||||
|
they will not lose their properties in this case.
|
||||||
|
|
||||||
|
vim.tabpages *python-tabpages*
|
||||||
|
A sequence object providing access to the list of vim tab pages. The
|
||||||
|
object supports the following operations: >
|
||||||
|
:py t = vim.tabpages[i] # Indexing (read-only)
|
||||||
|
:py t in vim.tabpages # Membership test
|
||||||
|
:py n = len(vim.tabpages) # Number of elements
|
||||||
|
:py for t in vim.tabpages: # Sequential access
|
||||||
<
|
<
|
||||||
vim.current *python-current*
|
vim.current *python-current*
|
||||||
An object providing access (via specific attributes) to various
|
An object providing access (via specific attributes) to various
|
||||||
"current" objects available in vim:
|
"current" objects available in vim:
|
||||||
vim.current.line The current line (RW) String
|
vim.current.line The current line (RW) String
|
||||||
vim.current.buffer The current buffer (RO) Buffer
|
vim.current.buffer The current buffer (RW) Buffer
|
||||||
vim.current.window The current window (RO) Window
|
vim.current.window The current window (RW) Window
|
||||||
|
vim.current.tabpage The current tab page (RW) TabPage
|
||||||
vim.current.range The current line range (RO) Range
|
vim.current.range The current line range (RO) Range
|
||||||
|
|
||||||
The last case deserves a little explanation. When the :python or
|
The last case deserves a little explanation. When the :python or
|
||||||
@ -237,6 +255,42 @@ vim.current *python-current*
|
|||||||
"current range". A range is a bit like a buffer, but with all access
|
"current range". A range is a bit like a buffer, but with all access
|
||||||
restricted to a subset of lines. See |python-range| for more details.
|
restricted to a subset of lines. See |python-range| for more details.
|
||||||
|
|
||||||
|
Note: When assigning to vim.current.{buffer,window,tabpage} it expects
|
||||||
|
valid |python-buffer|, |python-window| or |python-tabpage| objects
|
||||||
|
respectively. Assigning triggers normal (with |autocommand|s)
|
||||||
|
switching to given buffer, window or tab page. It is the only way to
|
||||||
|
switch UI objects in python: you can't assign to
|
||||||
|
|python-tabpage|.window attribute. To switch without triggering
|
||||||
|
autocommands use >
|
||||||
|
py << EOF
|
||||||
|
saved_eventignore = vim.options['eventignore']
|
||||||
|
vim.options['eventignore'] = 'all'
|
||||||
|
try:
|
||||||
|
vim.current.buffer = vim.buffers[2] # Switch to buffer 2
|
||||||
|
finally:
|
||||||
|
vim.options['eventignore'] = saved_eventignore
|
||||||
|
EOF
|
||||||
|
<
|
||||||
|
vim.vars *python-vars*
|
||||||
|
vim.vvars *python-vvars*
|
||||||
|
Dictionary-like objects holding dictionaries with global (|g:|) and
|
||||||
|
vim (|v:|) variables respectively. Identical to `vim.bindeval("g:")`,
|
||||||
|
but faster.
|
||||||
|
|
||||||
|
vim.options *python-options*
|
||||||
|
Object partly supporting mapping protocol (supports setting and
|
||||||
|
getting items) providing a read-write access to global options.
|
||||||
|
Note: unlike |:set| this provides access only to global options. You
|
||||||
|
cannot use this object to obtain or set local options' values or
|
||||||
|
access local-only options in any fashion. Raises KeyError if no global
|
||||||
|
option with such name exists (i.e. does not raise KeyError for
|
||||||
|
|global-local| options and global only options, but does for window-
|
||||||
|
and buffer-local ones). Use |python-buffer| objects to access to
|
||||||
|
buffer-local options and |python-window| objects to access to
|
||||||
|
window-local options.
|
||||||
|
|
||||||
|
Type of this object is available via "Options" attribute of vim
|
||||||
|
module.
|
||||||
|
|
||||||
Output from Python *python-output*
|
Output from Python *python-output*
|
||||||
Vim displays all Python code output in the Vim message area. Normal
|
Vim displays all Python code output in the Vim message area. Normal
|
||||||
@ -253,6 +307,88 @@ Output from Python *python-output*
|
|||||||
supported, and may cause the program to crash. This should probably be
|
supported, and may cause the program to crash. This should probably be
|
||||||
fixed.
|
fixed.
|
||||||
|
|
||||||
|
*python2-directory* *python3-directory* *pythonx-directory*
|
||||||
|
Python 'runtimepath' handling *python-special-path*
|
||||||
|
|
||||||
|
In python vim.VIM_SPECIAL_PATH special directory is used as a replacement for
|
||||||
|
the list of paths found in 'runtimepath': with this directory in sys.path and
|
||||||
|
vim.path_hooks in sys.path_hooks python will try to load module from
|
||||||
|
{rtp}/python2 (or python3) and {rtp}/pythonx (for both python versions) for
|
||||||
|
each {rtp} found in 'runtimepath'.
|
||||||
|
|
||||||
|
Implementation is similar to the following, but written in C: >
|
||||||
|
|
||||||
|
from imp import find_module, load_module
|
||||||
|
import vim
|
||||||
|
import sys
|
||||||
|
|
||||||
|
class VimModuleLoader(object):
|
||||||
|
def __init__(self, module):
|
||||||
|
self.module = module
|
||||||
|
|
||||||
|
def load_module(self, fullname, path=None):
|
||||||
|
return self.module
|
||||||
|
|
||||||
|
def _find_module(fullname, oldtail, path):
|
||||||
|
idx = oldtail.find('.')
|
||||||
|
if idx > 0:
|
||||||
|
name = oldtail[:idx]
|
||||||
|
tail = oldtail[idx+1:]
|
||||||
|
fmr = find_module(name, path)
|
||||||
|
module = load_module(fullname[:-len(oldtail)] + name, *fmr)
|
||||||
|
return _find_module(fullname, tail, module.__path__)
|
||||||
|
else:
|
||||||
|
fmr = find_module(fullname, path)
|
||||||
|
return load_module(fullname, *fmr)
|
||||||
|
|
||||||
|
# It uses vim module itself in place of VimPathFinder class: it does not
|
||||||
|
# matter for python which object has find_module function attached to as
|
||||||
|
# an attribute.
|
||||||
|
class VimPathFinder(object):
|
||||||
|
@classmethod
|
||||||
|
def find_module(cls, fullname, path=None):
|
||||||
|
try:
|
||||||
|
return VimModuleLoader(_find_module(fullname, fullname, path or vim._get_paths()))
|
||||||
|
except ImportError:
|
||||||
|
return None
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def load_module(cls, fullname, path=None):
|
||||||
|
return _find_module(fullname, fullname, path or vim._get_paths())
|
||||||
|
|
||||||
|
def hook(path):
|
||||||
|
if path == vim.VIM_SPECIAL_PATH:
|
||||||
|
return VimPathFinder
|
||||||
|
else:
|
||||||
|
raise ImportError
|
||||||
|
|
||||||
|
sys.path_hooks.append(hook)
|
||||||
|
|
||||||
|
vim.VIM_SPECIAL_PATH *python-VIM_SPECIAL_PATH*
|
||||||
|
String constant used in conjunction with vim path hook. If path hook
|
||||||
|
installed by vim is requested to handle anything but path equal to
|
||||||
|
vim.VIM_SPECIAL_PATH constant it raises ImportError. In the only other
|
||||||
|
case it uses special loader.
|
||||||
|
|
||||||
|
Note: you must not use value of this constant directly, always use
|
||||||
|
vim.VIM_SPECIAL_PATH object.
|
||||||
|
|
||||||
|
vim.find_module(...) *python-find_module*
|
||||||
|
vim.path_hook(path) *python-path_hook*
|
||||||
|
Methods or objects used to implement path loading as described above.
|
||||||
|
You should not be using any of these directly except for vim.path_hook
|
||||||
|
in case you need to do something with sys.meta_path. It is not
|
||||||
|
guaranteed that any of the objects will exist in the future vim
|
||||||
|
versions.
|
||||||
|
|
||||||
|
vim._get_paths *python-_get_paths*
|
||||||
|
Methods returning a list of paths which will be searched for by path
|
||||||
|
hook. You should not rely on this method being present in future
|
||||||
|
versions, but can use it for debugging.
|
||||||
|
|
||||||
|
It returns a list of {rtp}/python2 (or {rtp}/python3) and
|
||||||
|
{rtp}/pythonx directories for each {rtp} in 'runtimepath'.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Buffer objects *python-buffer*
|
3. Buffer objects *python-buffer*
|
||||||
|
|
||||||
@ -278,6 +414,24 @@ Buffer indexes start at zero, as is normal in Python. This differs from vim
|
|||||||
line numbers, which start from 1. This is particularly relevant when dealing
|
line numbers, which start from 1. This is particularly relevant when dealing
|
||||||
with marks (see below) which use vim line numbers.
|
with marks (see below) which use vim line numbers.
|
||||||
|
|
||||||
|
The buffer object attributes are:
|
||||||
|
b.vars Dictionary-like object used to access
|
||||||
|
|buffer-variable|s.
|
||||||
|
b.options Mapping object (supports item getting, setting and
|
||||||
|
deleting) that provides access to buffer-local options
|
||||||
|
and buffer-local values of |global-local| options. Use
|
||||||
|
|python-window|.options if option is window-local,
|
||||||
|
this object will raise KeyError. If option is
|
||||||
|
|global-local| and local value is missing getting it
|
||||||
|
will return None.
|
||||||
|
b.name String, RW. Contains buffer name (full path).
|
||||||
|
Note: when assigning to b.name |BufFilePre| and
|
||||||
|
|BufFilePost| autocommands are launched.
|
||||||
|
b.number Buffer number. Can be used as |python-buffers| key.
|
||||||
|
Read-only.
|
||||||
|
b.valid True or False. Buffer object becomes invalid when
|
||||||
|
corresponding buffer is wiped out.
|
||||||
|
|
||||||
The buffer object methods are:
|
The buffer object methods are:
|
||||||
b.append(str) Append a line to the buffer
|
b.append(str) Append a line to the buffer
|
||||||
b.append(str, nr) Idem, below line "nr"
|
b.append(str, nr) Idem, below line "nr"
|
||||||
@ -296,6 +450,8 @@ Note that when adding a line it must not contain a line break character '\n'.
|
|||||||
A trailing '\n' is allowed and ignored, so that you can do: >
|
A trailing '\n' is allowed and ignored, so that you can do: >
|
||||||
:py b.append(f.readlines())
|
:py b.append(f.readlines())
|
||||||
|
|
||||||
|
Buffer object type is available using "Buffer" attribute of vim module.
|
||||||
|
|
||||||
Examples (assume b is the current buffer) >
|
Examples (assume b is the current buffer) >
|
||||||
:py print b.name # write the buffer file name
|
:py print b.name # write the buffer file name
|
||||||
:py b[0] = "hello!!!" # replace the top line
|
:py b[0] = "hello!!!" # replace the top line
|
||||||
@ -307,6 +463,9 @@ Examples (assume b is the current buffer) >
|
|||||||
:py n = len(b) # number of lines
|
:py n = len(b) # number of lines
|
||||||
:py (row,col) = b.mark('a') # named mark
|
:py (row,col) = b.mark('a') # named mark
|
||||||
:py r = b.range(1,5) # a sub-range of the buffer
|
:py r = b.range(1,5) # a sub-range of the buffer
|
||||||
|
:py b.vars["foo"] = "bar" # assign b:foo variable
|
||||||
|
:py b.options["ff"] = "dos" # set fileformat
|
||||||
|
:py del b.options["ar"] # same as :set autoread<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. Range objects *python-range*
|
4. Range objects *python-range*
|
||||||
@ -334,6 +493,8 @@ The range object methods are:
|
|||||||
for Python's built-in list objects.
|
for Python's built-in list objects.
|
||||||
r.append(list, nr) Idem, after line "nr"
|
r.append(list, nr) Idem, after line "nr"
|
||||||
|
|
||||||
|
Range object type is available using "Range" attribute of vim module.
|
||||||
|
|
||||||
Example (assume r is the current range):
|
Example (assume r is the current range):
|
||||||
# Send all lines in a range to the default printer
|
# Send all lines in a range to the default printer
|
||||||
vim.command("%d,%dhardcopy!" % (r.start+1,r.end+1))
|
vim.command("%d,%dhardcopy!" % (r.start+1,r.end+1))
|
||||||
@ -344,6 +505,8 @@ Example (assume r is the current range):
|
|||||||
Window objects represent vim windows. You can obtain them in a number of ways:
|
Window objects represent vim windows. You can obtain them in a number of ways:
|
||||||
- via vim.current.window (|python-current|)
|
- via vim.current.window (|python-current|)
|
||||||
- from indexing vim.windows (|python-windows|)
|
- from indexing vim.windows (|python-windows|)
|
||||||
|
- from indexing "windows" attribute of a tab page (|python-tabpage|)
|
||||||
|
- from the "window" attribute of a tab page (|python-tabpage|)
|
||||||
|
|
||||||
You can manipulate window objects only through their attributes. They have no
|
You can manipulate window objects only through their attributes. They have no
|
||||||
methods, and no sequence or other interface.
|
methods, and no sequence or other interface.
|
||||||
@ -354,17 +517,167 @@ Window attributes are:
|
|||||||
This is a tuple, (row,col).
|
This is a tuple, (row,col).
|
||||||
height (read-write) The window height, in rows
|
height (read-write) The window height, in rows
|
||||||
width (read-write) The window width, in columns
|
width (read-write) The window width, in columns
|
||||||
|
vars (read-only) The window |w:| variables. Attribute is
|
||||||
|
unassignable, but you can change window
|
||||||
|
variables this way
|
||||||
|
options (read-only) The window-local options. Attribute is
|
||||||
|
unassignable, but you can change window
|
||||||
|
options this way. Provides access only to
|
||||||
|
window-local options, for buffer-local use
|
||||||
|
|python-buffer| and for global ones use
|
||||||
|
|python-options|. If option is |global-local|
|
||||||
|
and local value is missing getting it will
|
||||||
|
return None.
|
||||||
|
number (read-only) Window number. The first window has number 1.
|
||||||
|
This is zero in case it cannot be determined
|
||||||
|
(e.g. when the window object belongs to other
|
||||||
|
tab page).
|
||||||
|
row, col (read-only) On-screen window position in display cells.
|
||||||
|
First position is zero.
|
||||||
|
tabpage (read-only) Window tab page.
|
||||||
|
valid (read-write) True or False. Window object becomes invalid
|
||||||
|
when corresponding window is closed.
|
||||||
|
|
||||||
The height attribute is writable only if the screen is split horizontally.
|
The height attribute is writable only if the screen is split horizontally.
|
||||||
The width attribute is writable only if the screen is split vertically.
|
The width attribute is writable only if the screen is split vertically.
|
||||||
|
|
||||||
|
Window object type is available using "Window" attribute of vim module.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. pyeval() and py3eval() Vim functions *python-pyeval*
|
6. Tab page objects *python-tabpage*
|
||||||
|
|
||||||
|
Tab page objects represent vim tab pages. You can obtain them in a number of
|
||||||
|
ways:
|
||||||
|
- via vim.current.tabpage (|python-current|)
|
||||||
|
- from indexing vim.tabpages (|python-tabpages|)
|
||||||
|
|
||||||
|
You can use this object to access tab page windows. They have no methods and
|
||||||
|
no sequence or other interfaces.
|
||||||
|
|
||||||
|
Tab page attributes are:
|
||||||
|
number The tab page number like the one returned by
|
||||||
|
|tabpagenr()|.
|
||||||
|
windows Like |python-windows|, but for current tab page.
|
||||||
|
vars The tab page |t:| variables.
|
||||||
|
window Current tabpage window.
|
||||||
|
valid True or False. Tab page object becomes invalid when
|
||||||
|
corresponding tab page is closed.
|
||||||
|
|
||||||
|
TabPage object type is available using "TabPage" attribute of vim module.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
7. vim.bindeval objects *python-bindeval-objects*
|
||||||
|
|
||||||
|
vim.Dictionary object *python-Dictionary*
|
||||||
|
Dictionary-like object providing access to vim |Dictionary| type.
|
||||||
|
Attributes:
|
||||||
|
Attribute Description ~
|
||||||
|
locked One of *python-.locked*
|
||||||
|
Value Description ~
|
||||||
|
zero Variable is not locked
|
||||||
|
vim.VAR_LOCKED Variable is locked, but can be unlocked
|
||||||
|
vim.VAR_FIXED Variable is locked and can't be unlocked
|
||||||
|
Read-write. You can unlock locked variable by assigning
|
||||||
|
`True` or `False` to this attribute. No recursive locking
|
||||||
|
is supported.
|
||||||
|
scope One of
|
||||||
|
Value Description ~
|
||||||
|
zero Dictionary is not a scope one
|
||||||
|
vim.VAR_DEF_SCOPE |g:| or |l:| dictionary
|
||||||
|
vim.VAR_SCOPE Other scope dictionary,
|
||||||
|
see |internal-variables|
|
||||||
|
Methods (note: methods do not support keyword arguments):
|
||||||
|
Method Description ~
|
||||||
|
keys() Returns a list with dictionary keys.
|
||||||
|
values() Returns a list with dictionary values.
|
||||||
|
items() Returns a list of 2-tuples with dictionary contents.
|
||||||
|
update(iterable), update(dictionary), update(**kwargs)
|
||||||
|
Adds keys to dictionary.
|
||||||
|
get(key[, default=None])
|
||||||
|
Obtain key from dictionary, returning the default if it is
|
||||||
|
not present.
|
||||||
|
pop(key[, default])
|
||||||
|
Remove specified key from dictionary and return
|
||||||
|
corresponding value. If key is not found and default is
|
||||||
|
given returns the default, otherwise raises KeyError.
|
||||||
|
popitem()
|
||||||
|
Remove random key from dictionary and return (key, value)
|
||||||
|
pair.
|
||||||
|
has_key(key)
|
||||||
|
Check whether dictionary contains specified key, similar
|
||||||
|
to `key in dict`.
|
||||||
|
|
||||||
|
__new__(), __new__(iterable), __new__(dictionary), __new__(update)
|
||||||
|
You can use `vim.Dictionary()` to create new vim
|
||||||
|
dictionaries. `d=vim.Dictionary(arg)` is the same as
|
||||||
|
`d=vim.bindeval('{}');d.update(arg)`. Without arguments
|
||||||
|
constructs empty dictionary.
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
d = vim.Dictionary(food="bar") # Constructor
|
||||||
|
d['a'] = 'b' # Item assignment
|
||||||
|
print d['a'] # getting item
|
||||||
|
d.update({'c': 'd'}) # .update(dictionary)
|
||||||
|
d.update(e='f') # .update(**kwargs)
|
||||||
|
d.update((('g', 'h'), ('i', 'j'))) # .update(iterable)
|
||||||
|
for key in d.keys(): # .keys()
|
||||||
|
for val in d.values(): # .values()
|
||||||
|
for key, val in d.items(): # .items()
|
||||||
|
print isinstance(d, vim.Dictionary) # True
|
||||||
|
for key in d: # Iteration over keys
|
||||||
|
class Dict(vim.Dictionary): # Subclassing
|
||||||
|
<
|
||||||
|
Note: when iterating over keys you should not modify dictionary.
|
||||||
|
|
||||||
|
vim.List object *python-List*
|
||||||
|
Sequence-like object providing access to vim |List| type.
|
||||||
|
Supports `.locked` attribute, see |python-.locked|. Also supports the
|
||||||
|
following methods:
|
||||||
|
Method Description ~
|
||||||
|
extend(item) Add items to the list.
|
||||||
|
|
||||||
|
__new__(), __new__(iterable)
|
||||||
|
You can use `vim.List()` to create new vim lists.
|
||||||
|
`l=vim.List(iterable)` is the same as
|
||||||
|
`l=vim.bindeval('[]');l.extend(iterable)`. Without
|
||||||
|
arguments constructs empty list.
|
||||||
|
Examples: >
|
||||||
|
l = vim.List("abc") # Constructor, result: ['a', 'b', 'c']
|
||||||
|
l.extend(['abc', 'def']) # .extend() method
|
||||||
|
print l[1:] # slicing
|
||||||
|
l[:0] = ['ghi', 'jkl'] # slice assignment
|
||||||
|
print l[0] # getting item
|
||||||
|
l[0] = 'mno' # assignment
|
||||||
|
for i in l: # iteration
|
||||||
|
print isinstance(l, vim.List) # True
|
||||||
|
class List(vim.List): # Subclassing
|
||||||
|
|
||||||
|
vim.Function object *python-Function*
|
||||||
|
Function-like object, acting like vim |Funcref| object. Supports `.name`
|
||||||
|
attribute and is callable. Accepts special keyword argument `self`, see
|
||||||
|
|Dictionary-function|. You can also use `vim.Function(name)` constructor,
|
||||||
|
it is the same as `vim.bindeval('function(%s)'%json.dumps(name))`.
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
f = vim.Function('tr') # Constructor
|
||||||
|
print f('abc', 'a', 'b') # Calls tr('abc', 'a', 'b')
|
||||||
|
vim.command('''
|
||||||
|
function DictFun() dict
|
||||||
|
return self
|
||||||
|
endfunction
|
||||||
|
''')
|
||||||
|
f = vim.bindeval('function("DictFun")')
|
||||||
|
print f(self={}) # Like call('DictFun', [], {})
|
||||||
|
print isinstance(f, vim.Function) # True
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
8. pyeval() and py3eval() Vim functions *python-pyeval*
|
||||||
|
|
||||||
To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()|
|
To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()|
|
||||||
functions to evaluate Python expressions and pass their values to VimL.
|
functions to evaluate Python expressions and pass their values to VimL.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
7. Dynamic loading *python-dynamic*
|
9. Dynamic loading *python-dynamic*
|
||||||
|
|
||||||
On MS-Windows the Python library can be loaded dynamically. The |:version|
|
On MS-Windows the Python library can be loaded dynamically. The |:version|
|
||||||
output then includes |+python/dyn|.
|
output then includes |+python/dyn|.
|
||||||
@ -381,14 +694,16 @@ Currently the name is "python24.dll". That is for Python 2.4. To know for
|
|||||||
sure edit "gvim.exe" and search for "python\d*.dll\c".
|
sure edit "gvim.exe" and search for "python\d*.dll\c".
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
8. Python 3 *python3*
|
10. Python 3 *python3*
|
||||||
|
|
||||||
*:py3* *:python3*
|
*:py3* *:python3*
|
||||||
The |:py3| and |:python3| commands work similar to |:python|. A simple check
|
The `:py3` and `:python3` commands work similar to `:python`. A simple check
|
||||||
if the `:py3` command is working: >
|
if the `:py3` command is working: >
|
||||||
:py3 print("Hello")
|
:py3 print("Hello")
|
||||||
< *:py3file*
|
< *:py3file*
|
||||||
The |:py3file| command works similar to |:pyfile|.
|
The `:py3file` command works similar to `:pyfile`.
|
||||||
|
*:py3do* *E863*
|
||||||
|
The `:py3do` command works similar to `:pydo`.
|
||||||
|
|
||||||
|
|
||||||
Vim can be built in four ways (:version output):
|
Vim can be built in four ways (:version output):
|
||||||
@ -397,7 +712,7 @@ Vim can be built in four ways (:version output):
|
|||||||
3. Python 3 support only (-python, +python3 or +python3/dyn)
|
3. Python 3 support only (-python, +python3 or +python3/dyn)
|
||||||
4. Python 2 and 3 support (+python/dyn, +python3/dyn)
|
4. Python 2 and 3 support (+python/dyn, +python3/dyn)
|
||||||
|
|
||||||
Some more details on the special case 4:
|
Some more details on the special case 4: *python-2-and-3*
|
||||||
|
|
||||||
When Python 2 and Python 3 are both supported they must be loaded dynamically.
|
When Python 2 and Python 3 are both supported they must be loaded dynamically.
|
||||||
|
|
||||||
@ -426,6 +741,11 @@ To work around such problems there are these options:
|
|||||||
3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This
|
3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This
|
||||||
may crash Vim though.
|
may crash Vim though.
|
||||||
|
|
||||||
|
*E880*
|
||||||
|
Raising SystemExit exception in python isn't endorsed way to quit vim, use: >
|
||||||
|
:py vim.command("qall!")
|
||||||
|
<
|
||||||
|
|
||||||
*has-python*
|
*has-python*
|
||||||
You can test what Python version is available with: >
|
You can test what Python version is available with: >
|
||||||
if has('python')
|
if has('python')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_ruby.txt* For Vim version 7.3. Last change: 2012 Aug 02
|
*if_ruby.txt* For Vim version 7.4. Last change: 2012 Aug 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Shugo Maeda
|
VIM REFERENCE MANUAL by Shugo Maeda
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_sniff.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*if_sniff.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL
|
VIM REFERENCE MANUAL
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_tcl.txt* For Vim version 7.3. Last change: 2012 Aug 02
|
*if_tcl.txt* For Vim version 7.4. Last change: 2012 Aug 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ingo Wilken
|
VIM REFERENCE MANUAL by Ingo Wilken
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*indent.txt* For Vim version 7.3. Last change: 2012 Aug 30
|
*indent.txt* For Vim version 7.4. Last change: 2014 Dec 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -545,10 +545,12 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
(default 70 lines).
|
(default 70 lines).
|
||||||
|
|
||||||
*cino-#*
|
*cino-#*
|
||||||
#N When N is non-zero recognize shell/Perl comments, starting with
|
#N When N is non-zero recognize shell/Perl comments starting with
|
||||||
'#'. Default N is zero: don't recognize '#' comments. Note
|
'#', do not recognize preprocessor lines; allow right-shifting
|
||||||
that lines starting with # will still be seen as preprocessor
|
lines that start with "#".
|
||||||
lines.
|
When N is zero (default): don't recognize '#' comments, do
|
||||||
|
recognize preprocessor lines; right-shifting lines that start
|
||||||
|
with "#" does not work.
|
||||||
|
|
||||||
|
|
||||||
The defaults, spelled out in full, are:
|
The defaults, spelled out in full, are:
|
||||||
@ -556,7 +558,7 @@ The defaults, spelled out in full, are:
|
|||||||
c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0
|
c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0
|
||||||
|
|
||||||
Vim puts a line in column 1 if:
|
Vim puts a line in column 1 if:
|
||||||
- It starts with '#' (preprocessor directives), if 'cinkeys' contains '#'.
|
- It starts with '#' (preprocessor directives), if 'cinkeys' contains '#0'.
|
||||||
- It starts with a label (a keyword followed by ':', other than "case" and
|
- It starts with a label (a keyword followed by ':', other than "case" and
|
||||||
"default") and 'cinoptions' does not contain an 'L' entry with a positive
|
"default") and 'cinoptions' does not contain an 'L' entry with a positive
|
||||||
value.
|
value.
|
||||||
@ -581,8 +583,8 @@ CLOJURE *ft-clojure-indent* *clojure-indent*
|
|||||||
|
|
||||||
Clojure indentation differs somewhat from traditional Lisps, due in part to
|
Clojure indentation differs somewhat from traditional Lisps, due in part to
|
||||||
the use of square and curly brackets, and otherwise by community convention.
|
the use of square and curly brackets, and otherwise by community convention.
|
||||||
These conventions are not always universally followed, so the Clojure indent
|
These conventions are not universally followed, so the Clojure indent script
|
||||||
script offers a few configurable options, listed below.
|
offers a few configurable options, listed below.
|
||||||
|
|
||||||
If the current vim does not include searchpairpos(), the indent script falls
|
If the current vim does not include searchpairpos(), the indent script falls
|
||||||
back to normal 'lisp' indenting, and the following options are ignored.
|
back to normal 'lisp' indenting, and the following options are ignored.
|
||||||
@ -596,7 +598,6 @@ without limits.
|
|||||||
" Default
|
" Default
|
||||||
let g:clojure_maxlines = 100
|
let g:clojure_maxlines = 100
|
||||||
<
|
<
|
||||||
|
|
||||||
*g:clojure_fuzzy_indent*
|
*g:clojure_fuzzy_indent*
|
||||||
*g:clojure_fuzzy_indent_patterns*
|
*g:clojure_fuzzy_indent_patterns*
|
||||||
*g:clojure_fuzzy_indent_blacklist*
|
*g:clojure_fuzzy_indent_blacklist*
|
||||||
@ -650,7 +651,6 @@ default list below.
|
|||||||
let g:clojure_special_indent_words =
|
let g:clojure_special_indent_words =
|
||||||
\ 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
|
\ 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
|
||||||
<
|
<
|
||||||
|
|
||||||
*g:clojure_align_multiline_strings*
|
*g:clojure_align_multiline_strings*
|
||||||
|
|
||||||
Align subsequent lines in multiline strings to the column after the opening
|
Align subsequent lines in multiline strings to the column after the opening
|
||||||
@ -675,7 +675,28 @@ This option is off by default.
|
|||||||
" Default
|
" Default
|
||||||
let g:clojure_align_multiline_strings = 0
|
let g:clojure_align_multiline_strings = 0
|
||||||
<
|
<
|
||||||
|
*g:clojure_align_subforms*
|
||||||
|
|
||||||
|
By default, parenthesized compound forms that look like function calls and
|
||||||
|
whose head subform is on its own line have subsequent subforms indented by
|
||||||
|
two spaces relative to the opening paren:
|
||||||
|
>
|
||||||
|
(foo
|
||||||
|
bar
|
||||||
|
baz)
|
||||||
|
<
|
||||||
|
Setting this option changes this behavior so that all subforms are aligned to
|
||||||
|
the same column, emulating the default behavior of clojure-mode.el:
|
||||||
|
>
|
||||||
|
(foo
|
||||||
|
bar
|
||||||
|
baz)
|
||||||
|
<
|
||||||
|
This option is off by default.
|
||||||
|
>
|
||||||
|
" Default
|
||||||
|
let g:clojure_align_subforms = 0
|
||||||
|
<
|
||||||
|
|
||||||
FORTRAN *ft-fortran-indent*
|
FORTRAN *ft-fortran-indent*
|
||||||
|
|
||||||
@ -729,6 +750,50 @@ buffer-local variable as follows >
|
|||||||
let b:fortran_indent_less=1
|
let b:fortran_indent_less=1
|
||||||
|
|
||||||
|
|
||||||
|
HTML *ft-html-indent* *html-indent* *html-indenting*
|
||||||
|
|
||||||
|
This is about variables you can set in your vimrc to customize HTML indenting.
|
||||||
|
|
||||||
|
You can set the indent for the first line after <script> and <style>
|
||||||
|
"blocktags" (default "zero"): >
|
||||||
|
|
||||||
|
:let g:html_indent_script1 = "inc"
|
||||||
|
:let g:html_indent_style1 = "inc"
|
||||||
|
<
|
||||||
|
VALUE MEANING ~
|
||||||
|
"zero" zero indent
|
||||||
|
"auto" auto indent (same indent as the blocktag)
|
||||||
|
"inc" auto indent + one indent step
|
||||||
|
|
||||||
|
Many tags increase the indent for what follows per default (see "Add Indent
|
||||||
|
Tags" in the script). You can add further tags with: >
|
||||||
|
|
||||||
|
:let g:html_indent_inctags = "html,body,head,tbody"
|
||||||
|
|
||||||
|
You can also remove such tags with: >
|
||||||
|
|
||||||
|
:let g:html_indent_autotags = "th,td,tr,tfoot,thead"
|
||||||
|
|
||||||
|
Default value is empty for both variables. Note: the initial "inctags" are
|
||||||
|
only defined once per Vim session.
|
||||||
|
|
||||||
|
User variables are only read when the script is sourced. To enable your
|
||||||
|
changes during a session, without reloading the HTML file, you can manually
|
||||||
|
do: >
|
||||||
|
|
||||||
|
:call HtmlIndent_CheckUserSettings()
|
||||||
|
|
||||||
|
Detail:
|
||||||
|
Calculation of indent inside "blocktags" with "alien" content:
|
||||||
|
BLOCKTAG INDENT EXPR WHEN APPLICABLE ~
|
||||||
|
<script> : {customizable} if first line of block
|
||||||
|
: cindent(v:lnum) if attributes empty or contain "java"
|
||||||
|
: -1 else (vbscript, tcl, ...)
|
||||||
|
<style> : {customizable} if first line of block
|
||||||
|
: GetCSSIndent() else
|
||||||
|
<!-- --> : -1
|
||||||
|
|
||||||
|
|
||||||
PHP *ft-php-indent* *php-indent* *php-indenting*
|
PHP *ft-php-indent* *php-indent* *php-indenting*
|
||||||
|
|
||||||
NOTE: PHP files will be indented correctly only if PHP |syntax| is active.
|
NOTE: PHP files will be indented correctly only if PHP |syntax| is active.
|
||||||
@ -740,23 +805,36 @@ those useless characters first with a command like: >
|
|||||||
:%s /\r$//g
|
:%s /\r$//g
|
||||||
|
|
||||||
Or, you can simply |:let| the variable PHP_removeCRwhenUnix to 1 and the
|
Or, you can simply |:let| the variable PHP_removeCRwhenUnix to 1 and the
|
||||||
script will silently remove them when Vim loads a PHP file (at each|BufRead|).
|
script will silently remove them when Vim loads a PHP file (at each |BufRead|).
|
||||||
|
|
||||||
OPTIONS: ~
|
OPTIONS: ~
|
||||||
|
|
||||||
PHP indenting can be altered in several ways by modifying the values of some
|
PHP indenting can be altered in several ways by modifying the values of some
|
||||||
variables:
|
global variables:
|
||||||
|
|
||||||
*php-comment*
|
*php-comment* *PHP_autoformatcomment*
|
||||||
To not enable auto-formating of comments by default (if you want to use your
|
To not enable auto-formating of comments by default (if you want to use your
|
||||||
own 'formatoptions'): >
|
own 'formatoptions'): >
|
||||||
:let g:PHP_autoformatcomment = 0
|
:let g:PHP_autoformatcomment = 0
|
||||||
|
|
||||||
Else, 't' will be removed from the 'formatoptions' string and "qrowcb" will be
|
Else, 't' will be removed from the 'formatoptions' string and "qrowcb" will be
|
||||||
added, see|fo-table|for more information.
|
added, see |fo-table| for more information.
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
To add an extra indent to every PHP lines with N being the number of
|
*PHP_outdentSLComments*
|
||||||
|
To add extra indentation to single-line comments: >
|
||||||
|
:let g:PHP_outdentSLComments = N
|
||||||
|
|
||||||
|
With N being the number of 'shiftwidth' to add.
|
||||||
|
|
||||||
|
Only single-line comments will be affected such as: >
|
||||||
|
# Comment
|
||||||
|
// Comment
|
||||||
|
/* Comment */
|
||||||
|
-------------
|
||||||
|
|
||||||
|
*PHP_default_indenting*
|
||||||
|
To add extra indentation to every PHP lines with N being the number of
|
||||||
'shiftwidth' to add: >
|
'shiftwidth' to add: >
|
||||||
:let g:PHP_default_indenting = N
|
:let g:PHP_default_indenting = N
|
||||||
|
|
||||||
@ -772,17 +850,21 @@ For example, with N = 1, this will give:
|
|||||||
|
|
||||||
$command_hist = TRUE;
|
$command_hist = TRUE;
|
||||||
?>
|
?>
|
||||||
(Notice the extra indent between the PHP container markers and the code)
|
(Notice the extra indentation between the PHP container markers and the code)
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
To indent PHP tags as the surrounding code: >
|
*PHP_outdentphpescape*
|
||||||
:let g:PHP_outdentphpescape = 0
|
To indent PHP escape tags as the surrounding non-PHP code (only affects the
|
||||||
|
PHP escape tags): >
|
||||||
|
:let g:PHP_outdentphpescape = 0
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
*PHP_removeCRwhenUnix*
|
||||||
To automatically remove '\r' characters when the 'fileformat' is set to Unix: >
|
To automatically remove '\r' characters when the 'fileformat' is set to Unix: >
|
||||||
:let g:PHP_removeCRwhenUnix = 1
|
:let g:PHP_removeCRwhenUnix = 1
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
*PHP_BracesAtCodeLevel*
|
||||||
To indent braces at the same level than the code they contain: >
|
To indent braces at the same level than the code they contain: >
|
||||||
:let g:PHP_BracesAtCodeLevel = 1
|
:let g:PHP_BracesAtCodeLevel = 1
|
||||||
|
|
||||||
@ -801,11 +883,14 @@ NOTE: Indenting will be a bit slower if this option is used because some
|
|||||||
optimizations won't be available.
|
optimizations won't be available.
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
*PHP_vintage_case_default_indent*
|
||||||
To indent 'case:' and 'default:' statements in switch() blocks: >
|
To indent 'case:' and 'default:' statements in switch() blocks: >
|
||||||
:let g:PHP_vintage_case_default_indent = 1
|
:let g:PHP_vintage_case_default_indent = 1
|
||||||
|
|
||||||
(Since in PHP braces are not required inside 'case/default' blocks, by default they are indented at the same level than the 'switch()' to avoid
|
In PHP braces are not required inside 'case/default' blocks therefore 'case:'
|
||||||
unnecessary indentation)
|
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
|
||||||
|
traditional way.
|
||||||
|
|
||||||
|
|
||||||
PYTHON *ft-python-indent*
|
PYTHON *ft-python-indent*
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user