mirror of
https://github.com/vim/vim
synced 2025-08-28 19:01:56 +00:00
Compare commits
909 Commits
Author | SHA1 | Date | |
---|---|---|---|
d8492792f2 | |||
fe70c51983 | |||
42f45b850d | |||
88d298aed8 | |||
84be8b6660 | |||
26a280c47a | |||
ffea8c99d9 | |||
977d037336 | |||
025a6b708a | |||
1c46544412 | |||
91acfffc1e | |||
47ffb905f3 | |||
abb4d5f73f | |||
b5aedf3e22 | |||
8774845ce1 | |||
454709baff | |||
2fcf6688bc | |||
a95ab32120 | |||
38a3d6c960 | |||
1ef73e33c9 | |||
ad2cfb54b7 | |||
eb992cb90f | |||
69a92fb5ae | |||
056f700031 | |||
644df41c44 | |||
ee1dd1cdc1 | |||
41042f3cfd | |||
5f69fee26e | |||
c3c766ea8c | |||
12d1dc9155 | |||
7720ba8599 | |||
bb962262eb | |||
e8512d7fed | |||
65408f7dfb | |||
ad4187e6fc | |||
300af82eca | |||
a6c07603ca | |||
f7e894dfb6 | |||
6b64394f34 | |||
f411a3c5af | |||
f58a8475e1 | |||
2c7292dc5b | |||
214641f77d | |||
066029ef92 | |||
a382868115 | |||
0fbff646d5 | |||
4366319697 | |||
0f9ea22c11 | |||
d5841f28d4 | |||
a1c8ecfda9 | |||
5558d19432 | |||
11dd8c1201 | |||
a54d2fc0d3 | |||
595297d6d5 | |||
eadbc2b461 | |||
3f3897e41f | |||
7f73b54631 | |||
08cab96087 | |||
391b1dd040 | |||
24d7636e98 | |||
cf5fdf7d16 | |||
a0107bdf87 | |||
358f6b0a36 | |||
caf6434ac9 | |||
66727e1607 | |||
5a66dfb25e | |||
59716a27bd | |||
f8ab1b14fd | |||
abc39ab642 | |||
98e83b2956 | |||
e0c31f6a30 | |||
5f53dd3f74 | |||
cb03642399 | |||
5342f00ff9 | |||
1159b168dd | |||
b113c3a618 | |||
5b3af14b34 | |||
b5e8377364 | |||
d512e17ea4 | |||
10a8da0594 | |||
88e7688eda | |||
aeb661e1f4 | |||
38632faf63 | |||
74a47162a0 | |||
0c8485f0e4 | |||
3eb1637b1b | |||
6d3c8586fc | |||
5074a0e033 | |||
ba748c8a84 | |||
376407674f | |||
a713ff819d | |||
14c2e18b63 | |||
a12e40351d | |||
c43a8b8de0 | |||
2f5463df01 | |||
f7506cade4 | |||
92769c3928 | |||
95c526e1f6 | |||
d3f78dc9eb | |||
3834e3d039 | |||
10c6029e28 | |||
8be2fbb670 | |||
b544f3c81f | |||
dc9a081712 | |||
60629d6425 | |||
24922ec233 | |||
354796c19a | |||
187a4f2814 | |||
1c410400fa | |||
3457d295f4 | |||
f06e5a549f | |||
218426896c | |||
ae177b7166 | |||
fe344a9875 | |||
b7a59906d7 | |||
d099e03370 | |||
bfd30590f6 | |||
3a25773772 | |||
49439c4cdf | |||
e7877fe0de | |||
673911457d | |||
d56a79d339 | |||
5acff71d3b | |||
46522af724 | |||
803452046b | |||
c525e3a1c2 | |||
3df0173fa6 | |||
8c50d50b6e | |||
507647da31 | |||
79518e2ace | |||
226c534291 | |||
4e9dbc74df | |||
343b8c0429 | |||
84b2a38145 | |||
1043467482 | |||
23a5558cfd | |||
75c19464ed | |||
24f8f543d4 | |||
913727e567 | |||
f1f6f3f7df | |||
31eb139b88 | |||
399c297aa9 | |||
8cc2a9c062 | |||
4d8505155e | |||
190b04cdd9 | |||
a9f8ffb634 | |||
43dded8c59 | |||
dad7309dd2 | |||
a76f59d817 | |||
65189a1294 | |||
6f785749db | |||
88989cc381 | |||
544d3bc9f0 | |||
13c724fb3a | |||
059b7482a2 | |||
2f9e575583 | |||
955f198fc5 | |||
e971df39a5 | |||
aaaf57d8a9 | |||
1fb0d49803 | |||
a1891848d9 | |||
e353c402e6 | |||
698f8b207b | |||
25ea054458 | |||
6b40f30329 | |||
cbf20fbcd3 | |||
03ff9bcbc9 | |||
fd8983b09c | |||
7a073549a3 | |||
79da563cf9 | |||
e5f2a075e3 | |||
a2f28859bf | |||
23fa81d222 | |||
04e87b72c5 | |||
21d7c9b601 | |||
4e032e1b17 | |||
c7d9eacefa | |||
c10f0e7cb0 | |||
c386267ffe | |||
b245559fa9 | |||
e90858d022 | |||
0b5c93a7f2 | |||
1266d678bf | |||
7c23d1d9d9 | |||
168dd00f72 | |||
f1ab9c1370 | |||
56e6bd7ba2 | |||
3954e3c4b5 | |||
e3caa11090 | |||
070b33da93 | |||
c4a249a736 | |||
432c839ebd | |||
a4c906a4a1 | |||
c593fee0e5 | |||
85b5743d3e | |||
d58f03b1c2 | |||
6fe2eb43d2 | |||
c625155ea4 | |||
a58883b4ea | |||
d297f35eb0 | |||
80627cf51f | |||
ddf662a1c8 | |||
24c2e48ef8 | |||
dea2570740 | |||
2f72c70657 | |||
c9b56b2ceb | |||
e0b66da691 | |||
690afe1fef | |||
3a29abcb61 | |||
f13e00b2cf | |||
c7b831ca15 | |||
36ae89c550 | |||
4019cf90b8 | |||
f42dd3c390 | |||
0c0590d982 | |||
4bc2f2e9fd | |||
45600ce8f2 | |||
aed6d0b81a | |||
3a118be150 | |||
16038d50c4 | |||
d9c60648e5 | |||
cc5b22b3bf | |||
65c836e600 | |||
52c0de1de1 | |||
4f7090b93d | |||
1e07633a5d | |||
9e817c8a31 | |||
ba47b51ff8 | |||
6a717f17ec | |||
b031c4ea04 | |||
941c12da3c | |||
bff6ad1331 | |||
48c9f3b123 | |||
076e502199 | |||
915350edec | |||
24a2d416ec | |||
abbc448bc0 | |||
2aa5f696b9 | |||
1695f99d08 | |||
9957a10d0f | |||
7a2699e868 | |||
fffbf308dd | |||
c81299684b | |||
6a8ede99dd | |||
15eedf1d62 | |||
7a40ea2138 | |||
2b2207ba69 | |||
e2d74dbe19 | |||
e2c6037da3 | |||
e362c3d2c3 | |||
d7a96151e0 | |||
ca24e2cfcf | |||
423977d3ce | |||
560379d7ae | |||
ec2da36ca4 | |||
41baa7983a | |||
25b0e6b701 | |||
23c9e8b3bc | |||
8822744b4d | |||
5e4e1b1299 | |||
eb46f8fa14 | |||
6e78e27b8a | |||
4007ed4a5e | |||
d61e8aaae5 | |||
58f60ca2fc | |||
6d721c7e10 | |||
de318c5c35 | |||
369b6f57c4 | |||
97d62d4321 | |||
c011a3d083 | |||
a9d23c2087 | |||
e32bbded64 | |||
1b9750d805 | |||
42b8d916c7 | |||
4f391796b7 | |||
810f9c361c | |||
296b1f28ca | |||
9506cad7a1 | |||
fe6ce331d9 | |||
5869cf060e | |||
fad609d067 | |||
2b7bc567b9 | |||
7173b47958 | |||
e47683a091 | |||
519d7785f4 | |||
83381f7129 | |||
9be7c04e6c | |||
9b73c4a215 | |||
e13b9afe12 | |||
70bcd7336f | |||
972c3b8f1b | |||
b8f7bd68f6 | |||
a1fa892939 | |||
1d669c233c | |||
ee142add22 | |||
e32abbe42c | |||
8b2f19536f | |||
872004132f | |||
08243d26d2 | |||
03c60c1573 | |||
f446b48ff0 | |||
caa55b65c2 | |||
68563937f5 | |||
6abda995a5 | |||
009c7b2640 | |||
4d0504019c | |||
de33011ec6 | |||
c695cec469 | |||
6247361101 | |||
2d02839050 | |||
453b576ee5 | |||
a216255a4f | |||
31f19ce0a0 | |||
9d9c356517 | |||
04e94c7881 | |||
12c4492dd3 | |||
7069bf18e1 | |||
cbd4de44e8 | |||
c6aa475a27 | |||
6e450a5754 | |||
287266527a | |||
29891c4ed4 | |||
aaeabfbca5 | |||
14a612fa2e | |||
7034a83743 | |||
a4ce25bd98 | |||
294740d2ac | |||
9269315f63 | |||
f845b87f2b | |||
0cdb72aa38 | |||
bc2eada542 | |||
269aec7e61 | |||
f8eb9c51e5 | |||
5e1e6d265d | |||
b094ff4b2b | |||
777b30f827 | |||
54b2bfa399 | |||
ded2782783 | |||
c4bfedabe0 | |||
fe38b494ff | |||
4c8980b717 | |||
73b484c4da | |||
63de19e805 | |||
0df3c7f2a0 | |||
7089237885 | |||
73fd498886 | |||
6270660611 | |||
eaaa9bbda6 | |||
3421566376 | |||
a899e6ecc4 | |||
3fad98e8af | |||
a2477fd349 | |||
5643db84c6 | |||
21efc3633e | |||
99c5eb4fd7 | |||
5162822914 | |||
cf49790443 | |||
327054df45 | |||
6dbf66aa3e | |||
e3af763d5e | |||
b04a98f6c3 | |||
87f3d202a9 | |||
eca626fcdb | |||
eebd84eb94 | |||
5a030a540f | |||
b129a447f3 | |||
65e08ee1d2 | |||
958dc6923d | |||
0945eaface | |||
4b785f69c0 | |||
f422bcc7f9 | |||
8a8199e4a1 | |||
7554da4033 | |||
031cb743ae | |||
319afe3804 | |||
73095288da | |||
58c358753e | |||
833eb1d752 | |||
2cab0e1910 | |||
182707ac10 | |||
63e4344edc | |||
dda39aeafc | |||
ca8b8d6956 | |||
9f0e423c28 | |||
6c896867c4 | |||
a859f04b4d | |||
cc28e2d05d | |||
7df915d113 | |||
c0514bf477 | |||
2256c99471 | |||
8a01f969c1 | |||
7618e00d3b | |||
8e63905263 | |||
3f7d090726 | |||
d4db7719bd | |||
b6be3ea45b | |||
2b946c9f9b | |||
63bed3d319 | |||
e3505dfc85 | |||
79cbdcb1ee | |||
8a5883b748 | |||
95f096030e | |||
459ca56312 | |||
38bc495637 | |||
c4d4ac22f7 | |||
3f9ebf32a3 | |||
a1f4cb93ba | |||
25de4c232d | |||
21662be221 | |||
98500fdc61 | |||
4a08b0dc4d | |||
40d3f137e7 | |||
eb828d01d9 | |||
55952d4dd4 | |||
8161551724 | |||
aab3383e70 | |||
426f375422 | |||
de5e2c219b | |||
91e44a3305 | |||
9376f5f482 | |||
d0b5138ba4 | |||
3a117e19e0 | |||
b4ada79aa7 | |||
fb63090b62 | |||
60ef3e81f4 | |||
35a1f59d63 | |||
14207f487c | |||
01688ad545 | |||
2f97912800 | |||
6d5ad4c411 | |||
a350bab042 | |||
50e5376926 | |||
46fceaaa8d | |||
7756e7465d | |||
bb09ceb954 | |||
025e3e0baf | |||
9ec7fa82a2 | |||
cbd3bd6cbe | |||
869e35270e | |||
8507747600 | |||
156919f99a | |||
ca291aec99 | |||
0a9046fbcb | |||
97792de276 | |||
472e85970e | |||
9e507ca8a3 | |||
a6c27ee6db | |||
4575876dc8 | |||
3e8474dd50 | |||
e8ef3a0934 | |||
0ba407012c | |||
cea912af72 | |||
a7c023ec88 | |||
dc08328821 | |||
dc0ccaee68 | |||
9b45794818 | |||
936c48f8ca | |||
8ddef48d1e | |||
226630a030 | |||
ec68a99464 | |||
84dbd494dc | |||
6100d02aab | |||
2ec618c9fe | |||
b3435b0a3a | |||
b9c31e71f5 | |||
1777785751 | |||
890680ca63 | |||
0e77b7691e | |||
7ef3810d28 | |||
1eceadaf48 | |||
c79d6aa01d | |||
3e496b0ea3 | |||
9af4184276 | |||
20eeb6129d | |||
947000d6e4 | |||
680e015bfe | |||
3f1c15b24a | |||
50ba526fbf | |||
9e02cfa226 | |||
bbe917d9d4 | |||
ebdd90ac28 | |||
d07969093a | |||
3c4ebeba17 | |||
5582ef1438 | |||
789a5c0e3d | |||
b56e7ff0db | |||
9e1e7afc1f | |||
6401024869 | |||
bb76f24af2 | |||
edeb846c1f | |||
100f27721b | |||
1b01005823 | |||
220adb1e9f | |||
e1c8c7a674 | |||
cbeab96f87 | |||
7e1479b86c | |||
4930a76a03 | |||
ee39ef0b93 | |||
80c3fd7c55 | |||
26fe0d5691 | |||
d47d83745f | |||
46643713dc | |||
ea683da58c | |||
16b3578f35 | |||
d563883a1f | |||
2931f2a5df | |||
922a443cfd | |||
ff330ff2c4 | |||
cf703fe9d6 | |||
2321ca2a78 | |||
9a27c7fde6 | |||
c4a908e836 | |||
abd468ed0f | |||
f18c4dbbe5 | |||
0eaadec6b2 | |||
169ebb0804 | |||
53f1673cd9 | |||
1b0c1d050e | |||
aeac9006d5 | |||
64d8e25bf6 | |||
6384c5db8d | |||
100f5c90f4 | |||
7947312871 | |||
77b642501a | |||
df0db16cf7 | |||
72b4b870fc | |||
1b0c2fcf6e | |||
31845093b7 | |||
75537a93e9 | |||
33a80eeb85 | |||
030cddc7ec | |||
26b84339fd | |||
f9e687e068 | |||
c8fe338d64 | |||
d5824ce1b5 | |||
30180b8dad | |||
e0ab94e712 | |||
d77f9d595e | |||
bc54f3f3fe | |||
dac1947bb3 | |||
dda933d06c | |||
b07a82b6d5 | |||
349e7d94e6 | |||
0913a1089a | |||
f7f3e32fcc | |||
87bc3f7459 | |||
de653f0880 | |||
b62cc36a60 | |||
5a49789a9b | |||
dd905a2ae1 | |||
a5d4121eed | |||
11fbc2866c | |||
44f660c421 | |||
cd055da370 | |||
da9ce2cde1 | |||
19a1669ffc | |||
417ccd7138 | |||
779f2fc3a7 | |||
f1b512a0b6 | |||
641ad6c7ac | |||
5c80908ced | |||
04c4ce650f | |||
0874a83e9b | |||
d8b554904d | |||
f37506f60f | |||
c628fdcd46 | |||
89bcfda683 | |||
4792255eff | |||
64cefedfc8 | |||
edf3f97ae2 | |||
965ed14973 | |||
0418609534 | |||
7f7bd297d6 | |||
7683aaa506 | |||
cb03397aba | |||
6fc8227ebf | |||
fec246d2c5 | |||
36f44c21da | |||
d90b6c02e2 | |||
f4145d8e99 | |||
885c00eabe | |||
0abe0522d0 | |||
0426bae2ab | |||
e999782e36 | |||
46328f9a1c | |||
4427db9bb2 | |||
6a402edbeb | |||
1773ddfdcd | |||
e67d546f3c | |||
818078ddfb | |||
73d4e4c892 | |||
3056735ae8 | |||
9f8187c335 | |||
ffdf08c94e | |||
821179809d | |||
e17bdffff7 | |||
1195669f9e | |||
44ca54aeb9 | |||
9992237a3e | |||
76efafba2a | |||
2b529bb626 | |||
d29459baa6 | |||
2570957607 | |||
7df0f6313a | |||
e4a3bcf28d | |||
dd74ab9b46 | |||
4d6f32cbfb | |||
f1f0792e55 | |||
9f28953f0c | |||
db249f26ed | |||
ec42059b78 | |||
54b6352c6f | |||
78c7e274f2 | |||
424d74bb20 | |||
015efc32c1 | |||
5b30291785 | |||
ba2099034f | |||
358308dd99 | |||
b58fe4588c | |||
d6f2ee32dc | |||
77401add71 | |||
7b668e83d0 | |||
1b58cdd160 | |||
17f1347b86 | |||
973365dcc4 | |||
f267f8bdf7 | |||
9baf297c99 | |||
de7762a2c1 | |||
9b7f8ce9eb | |||
920694c1b6 | |||
989f592f7f | |||
dd1248143e | |||
843b884461 | |||
e07e797db0 | |||
e11d61a3b1 | |||
66e29d7112 | |||
f04507d132 | |||
9e4d8215d3 | |||
7571d55f7d | |||
1381d79147 | |||
3392883770 | |||
bfd096d020 | |||
af9c4c9b57 | |||
d3c907b5d2 | |||
6bff02eb53 | |||
91984b9034 | |||
e5a8f35b42 | |||
f5a39447a8 | |||
13d216d302 | |||
dc1f1645cb | |||
4f416e4124 | |||
22177f0c08 | |||
386600f0cb | |||
16350cb979 | |||
58b853460a | |||
e59215c7dc | |||
e56132bb41 | |||
cff50f5ec9 | |||
35a4cfa200 | |||
2d1a248762 | |||
d58b0f982a | |||
4ae209597c | |||
e9d58a6459 | |||
0952131376 | |||
b5ae48e9ff | |||
ebcccad573 | |||
b338483152 | |||
95ec9d6a6a | |||
d823fa910c | |||
107abd2ca5 | |||
0e5d3a2940 | |||
c257487035 | |||
91c5262b19 | |||
bcc1dcc981 | |||
446a973ce3 | |||
717e196060 | |||
a6b7a08ae0 | |||
a357e44ccd | |||
50fa8dd00c | |||
f71d7b9ee5 | |||
c9fb77c692 | |||
7547a78446 | |||
36d1c0fef4 | |||
71dd9744cf | |||
7a9a5f4019 | |||
09de17536d | |||
2147746cf8 | |||
a772ec5e91 | |||
b73598e2f0 | |||
e4a76ad0e7 | |||
3a93838339 | |||
ba98bef191 | |||
a8e691d449 | |||
812ad4f3a2 | |||
c8ce615299 | |||
3321e9d8a3 | |||
472a0a880a | |||
00ff380295 | |||
8e97bd74b5 | |||
446cce6d53 | |||
5b4a3767f6 | |||
c96a2f3b88 | |||
328604307b | |||
83b3c3d8a0 | |||
66459b7c98 | |||
d76a0c15f8 | |||
7522f69821 | |||
7ab6defcaf | |||
7dc5e2e486 | |||
5971dab112 | |||
b650b9878e | |||
46c4d4ac66 | |||
c90f2aedd0 | |||
9d5b876d45 | |||
fe9489233c | |||
877e957798 | |||
ee695f787a | |||
cf25fdb8f1 | |||
4c38d66d25 | |||
7cba71d7e3 | |||
edf634e0f1 | |||
abb71fbd39 | |||
472472898a | |||
86f2cd5bc5 | |||
796aa9c804 | |||
bc8801c931 | |||
bc7ce675b2 | |||
8dd3a43d75 | |||
ba96e9af38 | |||
acadbeabe1 | |||
0588d4f9d2 | |||
2d3d60a7d4 | |||
437bafe4c8 | |||
5801644819 | |||
89eaa4185e | |||
b54c3ff317 | |||
fc1f2015e8 | |||
31440a1f2b | |||
57e69ff2cc | |||
623e263ffb | |||
3ab14355ed | |||
1e2258297b | |||
3bcfca3ab4 | |||
90d121fa36 | |||
b20617b0b0 | |||
a5c0cc1133 | |||
623cf88f9c | |||
42093c0ec5 | |||
b822cb0f93 | |||
9532fe7fbe | |||
10ce39a0d5 | |||
1e96d9bf98 | |||
83a2a80d6f | |||
f2c4c39119 | |||
c73e4474b1 | |||
b9a46fec3e | |||
d05b191b91 | |||
170b10b421 | |||
b56195ed00 | |||
471a897569 | |||
8c08b5b569 | |||
eac784eced | |||
ad9c2a08f0 | |||
adfc5c2f9c | |||
d955a0971c | |||
ac77aec4da | |||
eec2981bbe | |||
97baee80f0 | |||
e99e84497b | |||
45a249513f | |||
2932359000 | |||
6835dc61ae | |||
73ac0c4281 | |||
6f1d9a096b | |||
00b24be454 | |||
d4f31dc454 | |||
b49edc11a1 | |||
61c04493b0 | |||
4658228262 | |||
a58c58b7e1 | |||
870b749ce1 | |||
2e45d21c81 | |||
df48fb456f | |||
36edf0685c | |||
f36213597d | |||
e25bc5abb4 | |||
ac105ed3c4 | |||
dfd63e30d1 | |||
6008433381 | |||
19df5cc04d | |||
397eadbe25 | |||
c1542744e7 | |||
b869c0da31 | |||
53bdec2ac9 | |||
ca8942c6e3 | |||
12c11d5530 | |||
4f0383bc3f | |||
c917da4b3e | |||
0a0f641b98 | |||
68015bbd84 | |||
72ab729c3d | |||
f562e72df7 | |||
6cfdb2a3ba | |||
9ccfebddc3 | |||
b9644433d2 | |||
16ec3c9be3 | |||
c1fb763184 | |||
69aa099641 | |||
4f5c5f2980 | |||
73dad1e64c | |||
840268400d | |||
e87e6dddc2 | |||
a9093fe094 | |||
6583c44857 | |||
a9b579f3d7 | |||
da861d631d | |||
1abc52c159 | |||
cd52459c38 | |||
42ebd06642 | |||
2cb70a2744 | |||
b2b050ab16 | |||
87776a1ac1 | |||
8de7465d77 | |||
1a9f947cde | |||
8211fcbdc9 | |||
e21d62435e | |||
c3e539fa70 | |||
502ae4ba63 | |||
015102e91e | |||
f6acffbe83 | |||
a06ecab7a5 | |||
bfafb4c4a0 | |||
269f595f9e | |||
e0d3797664 | |||
5ef2e76284 | |||
069c1e7fa9 | |||
93431df9eb | |||
fdadad994a | |||
603d657219 | |||
a6aa78a3e3 | |||
321efdd77a | |||
9280e3f95d | |||
7399895520 | |||
480778b805 | |||
da4127794a | |||
f62e797ffa | |||
6d20e17544 | |||
3e946fdc7b | |||
89b10421ca | |||
e048539195 | |||
38ee6b041e | |||
5498a41f5a | |||
4c06815c44 | |||
1436d8d51c | |||
da3a77d9ec | |||
7c0a2f367f | |||
ea3f2e7be4 | |||
25065ec375 | |||
19ff9bf454 | |||
453f37dbfd | |||
c4a927ca8d | |||
b25f9a97e9 | |||
8240433f48 | |||
2bc127f940 | |||
5c71994f4e | |||
32b808a4bd | |||
67081e5061 | |||
063b9d15ab | |||
0d3e24be56 | |||
aa4d73235b | |||
537ef08408 | |||
ed59aa60d3 | |||
79815f1ec7 | |||
fc4ad61607 | |||
30445cb6e9 | |||
ee1deb4a00 | |||
65549bdef5 | |||
144445d15f | |||
a06ec8f345 | |||
ba768495c2 | |||
245a7cb6d3 | |||
bc5d6dd1dd | |||
bf2cc5f36d | |||
dcb1700186 | |||
1e5e1231ac | |||
9d5d3c9c44 | |||
05e418d436 | |||
6bb450145e | |||
e381d3d5e0 | |||
00efded106 | |||
80632db65e | |||
b33c7eb5b8 | |||
ab9c89b68d | |||
dec85cf750 | |||
fef524bbff | |||
3b98b83001 | |||
e18dbe865d | |||
0fcc7c6dd1 | |||
75464dc434 | |||
951fa1819a | |||
ee2615af64 | |||
361c8f0e51 | |||
2acfbed9db | |||
c5af40ae64 | |||
bde9810d61 | |||
22fcfad292 | |||
8767f52fbf | |||
4a6c670b84 | |||
4c5717ed8a |
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,6 +5,7 @@ src/xxd/xxd
|
|||||||
src/auto/if_perl.c
|
src/auto/if_perl.c
|
||||||
src/auto/gui_gtk_gresources.c
|
src/auto/gui_gtk_gresources.c
|
||||||
src/auto/gui_gtk_gresources.h
|
src/auto/gui_gtk_gresources.h
|
||||||
|
src/objects/.dirstamp
|
||||||
src/tags
|
src/tags
|
||||||
|
|
||||||
# We do need src/auto/configure.
|
# We do need src/auto/configure.
|
||||||
@ -77,5 +78,8 @@ src/testdir/test.log
|
|||||||
src/testdir/dostmp/*
|
src/testdir/dostmp/*
|
||||||
src/testdir/messages
|
src/testdir/messages
|
||||||
src/testdir/viminfo
|
src/testdir/viminfo
|
||||||
|
src/testdir/opt_test.vim
|
||||||
src/memfile_test
|
src/memfile_test
|
||||||
src/json_test
|
src/json_test
|
||||||
|
src/message_test
|
||||||
|
src/kword_test
|
||||||
|
78
.travis.yml
78
.travis.yml
@ -1,19 +1,63 @@
|
|||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
os:
|
||||||
|
- osx
|
||||||
|
- linux
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src
|
- BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp'"
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp'"
|
||||||
CHECK_AUTOCONF=yes
|
- BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||||
- COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no
|
||||||
- COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
- COVERAGE=no FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
# Mac OSX build
|
||||||
|
- BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
||||||
|
# ASAN build
|
||||||
|
- BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||||
|
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan"
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
# instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env),
|
||||||
|
# exclude some builds on mac os x and linux
|
||||||
|
# linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
|
||||||
|
matrix:
|
||||||
|
exclude:
|
||||||
|
- os: osx
|
||||||
|
env: BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no
|
||||||
|
- os: osx
|
||||||
|
env: BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||||
|
- os: osx
|
||||||
|
env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
- os: osx
|
||||||
|
env: BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp'"
|
||||||
|
- os: osx
|
||||||
|
env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||||
|
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan"
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||||
|
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan"
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
env: BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
- os: linux
|
||||||
|
env: BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||||
|
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp'"
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
- /^v[0-9]/
|
- /^v[0-9]/
|
||||||
@ -28,18 +72,32 @@ addons:
|
|||||||
- python3-dev
|
- python3-dev
|
||||||
- liblua5.1-0-dev
|
- liblua5.1-0-dev
|
||||||
- lua5.1
|
- lua5.1
|
||||||
|
- cscope
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install --user cpp-coveralls
|
- if [ "$COVERAGE" = "yes" ]; then pip install --user cpp-coveralls; fi
|
||||||
|
# needed for https support for coveralls
|
||||||
|
# building cffi only works with gcc, not with clang
|
||||||
|
- if [ "$COVERAGE" = "yes" ]; then CC=gcc pip install --user pyopenssl ndg-httpsclient pyasn1; fi
|
||||||
|
# Lua is not installed on Travis OSX
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install lua; export LUA_PREFIX=/usr/local; fi
|
||||||
|
|
||||||
|
# Start virtual framebuffer to be able to test the GUI. Does not work on OS X.
|
||||||
|
before_script:
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export DISPLAY=:99.0 && sh -e /etc/init.d/xvfb start && sleep 3; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- NPROC=$(getconf _NPROCESSORS_ONLN)
|
- NPROC=$(getconf _NPROCESSORS_ONLN)
|
||||||
- if [ "$CHECK_AUTOCONF" = "yes" -a "$CC" = "gcc" ]; then make -C src autoconf; fi
|
- if [ "$CHECK_AUTOCONF" = "yes" -a "$CC" = "gcc" ]; then make -C src autoconf; fi
|
||||||
- if [ "x$SHADOWOPT" != x ]; then make -C src shadow; fi && (cd ${SRCDIR} && ./configure --with-features=$FEATURES $CONFOPT --enable-fail-if-missing && make -j$NPROC)
|
- if [ "x$SHADOWOPT" != x ]; then make -C src shadow; fi
|
||||||
- ${SRCDIR}/vim --version
|
- (cd ${SRCDIR} && ./configure --with-features=$FEATURES $CONFOPT --enable-fail-if-missing && if [ "$BUILD" = "yes" ]; then make -j$NPROC; fi)
|
||||||
- make $SHADOWOPT test
|
- if [ "$BUILD" = "yes" ]; then ${SRCDIR}/vim --version; fi
|
||||||
|
- if [ -n "$ASAN_OPTIONS" ]; then export PATH=/usr/lib/llvm-$(clang -v 2>&1 | sed -n 's/.*version \([1-9]\.[0-9][0-9]*\).*/\1/p')/bin:$PATH; fi
|
||||||
|
- make $SHADOWOPT $TEST
|
||||||
|
- if [ -n "$ASAN_OPTIONS" ]; then for log in $(find -type f -name 'asan.*' -size +0); do cat "$log"; err=1; done; fi
|
||||||
|
- if [ -n "$err" ]; then exit 1; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ x"$COVERAGE" = "xyes" ]; then ~/.local/bin/coveralls -b $SRCDIR -x .xs -e ${SRCDIR}/xxd -e ${SRCDIR}/if_perl.c --encodings utf-8 latin-1 EUC-KR; fi
|
- if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b $SRCDIR -x .xs -e ${SRCDIR}/xxd -e ${SRCDIR}/if_perl.c --encodings utf-8 latin-1 EUC-KR; fi
|
||||||
|
|
||||||
# vim:set sts=2 sw=2 tw=0 et:
|
# vim:set sts=2 sw=2 tw=0 et:
|
||||||
|
32
Filelist
32
Filelist
@ -18,10 +18,12 @@ SRC_ALL = \
|
|||||||
src/charset.c \
|
src/charset.c \
|
||||||
src/crypt.c \
|
src/crypt.c \
|
||||||
src/crypt_zip.c \
|
src/crypt_zip.c \
|
||||||
|
src/dict.c \
|
||||||
src/diff.c \
|
src/diff.c \
|
||||||
src/digraph.c \
|
src/digraph.c \
|
||||||
src/edit.c \
|
src/edit.c \
|
||||||
src/eval.c \
|
src/eval.c \
|
||||||
|
src/evalfunc.c \
|
||||||
src/ex_cmds.c \
|
src/ex_cmds.c \
|
||||||
src/ex_cmds.h \
|
src/ex_cmds.h \
|
||||||
src/ex_cmds2.c \
|
src/ex_cmds2.c \
|
||||||
@ -43,6 +45,8 @@ SRC_ALL = \
|
|||||||
src/hashtab.c \
|
src/hashtab.c \
|
||||||
src/json.c \
|
src/json.c \
|
||||||
src/json_test.c \
|
src/json_test.c \
|
||||||
|
src/kword_test.c \
|
||||||
|
src/list.c \
|
||||||
src/keymap.h \
|
src/keymap.h \
|
||||||
src/macros.h \
|
src/macros.h \
|
||||||
src/main.c \
|
src/main.c \
|
||||||
@ -53,6 +57,7 @@ SRC_ALL = \
|
|||||||
src/memline.c \
|
src/memline.c \
|
||||||
src/menu.c \
|
src/menu.c \
|
||||||
src/message.c \
|
src/message.c \
|
||||||
|
src/message_test.c \
|
||||||
src/misc1.c \
|
src/misc1.c \
|
||||||
src/misc2.c \
|
src/misc2.c \
|
||||||
src/move.c \
|
src/move.c \
|
||||||
@ -74,6 +79,8 @@ SRC_ALL = \
|
|||||||
src/sha256.c \
|
src/sha256.c \
|
||||||
src/structs.h \
|
src/structs.h \
|
||||||
src/spell.c \
|
src/spell.c \
|
||||||
|
src/spell.h \
|
||||||
|
src/spellfile.c \
|
||||||
src/syntax.c \
|
src/syntax.c \
|
||||||
src/tag.c \
|
src/tag.c \
|
||||||
src/term.c \
|
src/term.c \
|
||||||
@ -81,13 +88,16 @@ SRC_ALL = \
|
|||||||
src/termlib.c \
|
src/termlib.c \
|
||||||
src/ui.c \
|
src/ui.c \
|
||||||
src/undo.c \
|
src/undo.c \
|
||||||
|
src/userfunc.c \
|
||||||
src/version.c \
|
src/version.c \
|
||||||
src/version.h \
|
src/version.h \
|
||||||
src/vim.h \
|
src/vim.h \
|
||||||
src/winclip.c \
|
src/winclip.c \
|
||||||
src/window.c \
|
src/window.c \
|
||||||
|
src/tee/tee.c \
|
||||||
src/xxd/xxd.c \
|
src/xxd/xxd.c \
|
||||||
src/main.aap \
|
src/main.aap \
|
||||||
|
src/testdir/gen_opt_test.vim \
|
||||||
src/testdir/main.aap \
|
src/testdir/main.aap \
|
||||||
src/testdir/README.txt \
|
src/testdir/README.txt \
|
||||||
src/testdir/Make_all.mak \
|
src/testdir/Make_all.mak \
|
||||||
@ -95,6 +105,12 @@ SRC_ALL = \
|
|||||||
src/testdir/*.py \
|
src/testdir/*.py \
|
||||||
src/testdir/sautest/autoload/*.vim \
|
src/testdir/sautest/autoload/*.vim \
|
||||||
src/testdir/runtest.vim \
|
src/testdir/runtest.vim \
|
||||||
|
src/testdir/shared.vim \
|
||||||
|
src/testdir/view_util.vim \
|
||||||
|
src/testdir/setup.vim \
|
||||||
|
src/testdir/gui_init.vim \
|
||||||
|
src/testdir/setup_gui.vim \
|
||||||
|
src/testdir/gui_preinit.vim \
|
||||||
src/testdir/test[0-9]*.ok \
|
src/testdir/test[0-9]*.ok \
|
||||||
src/testdir/test[0-9]*a.ok \
|
src/testdir/test[0-9]*a.ok \
|
||||||
src/testdir/test_[a-z]*.ok \
|
src/testdir/test_[a-z]*.ok \
|
||||||
@ -112,25 +128,30 @@ SRC_ALL = \
|
|||||||
src/testdir/pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py \
|
src/testdir/pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py \
|
||||||
src/testdir/python_after/*.py \
|
src/testdir/python_after/*.py \
|
||||||
src/testdir/python_before/*.py \
|
src/testdir/python_before/*.py \
|
||||||
|
src/testdir/pyxfile/*.py \
|
||||||
src/testdir/bench*.in \
|
src/testdir/bench*.in \
|
||||||
src/testdir/bench*.vim \
|
src/testdir/bench*.vim \
|
||||||
src/testdir/samples/*.txt \
|
src/testdir/samples/*.txt \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
|
src/proto/arabic.pro \
|
||||||
src/proto/blowfish.pro \
|
src/proto/blowfish.pro \
|
||||||
src/proto/buffer.pro \
|
src/proto/buffer.pro \
|
||||||
src/proto/channel.pro \
|
src/proto/channel.pro \
|
||||||
src/proto/charset.pro \
|
src/proto/charset.pro \
|
||||||
src/proto/crypt.pro \
|
src/proto/crypt.pro \
|
||||||
src/proto/crypt_zip.pro \
|
src/proto/crypt_zip.pro \
|
||||||
|
src/proto/dict.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 \
|
||||||
src/proto/eval.pro \
|
src/proto/eval.pro \
|
||||||
|
src/proto/evalfunc.pro \
|
||||||
src/proto/ex_cmds.pro \
|
src/proto/ex_cmds.pro \
|
||||||
src/proto/ex_cmds2.pro \
|
src/proto/ex_cmds2.pro \
|
||||||
src/proto/ex_docmd.pro \
|
src/proto/ex_docmd.pro \
|
||||||
src/proto/ex_eval.pro \
|
src/proto/ex_eval.pro \
|
||||||
src/proto/ex_getln.pro \
|
src/proto/ex_getln.pro \
|
||||||
|
src/proto/farsi.pro \
|
||||||
src/proto/fileio.pro \
|
src/proto/fileio.pro \
|
||||||
src/proto/fold.pro \
|
src/proto/fold.pro \
|
||||||
src/proto/getchar.pro \
|
src/proto/getchar.pro \
|
||||||
@ -139,6 +160,7 @@ SRC_ALL = \
|
|||||||
src/proto/hardcopy.pro \
|
src/proto/hardcopy.pro \
|
||||||
src/proto/hashtab.pro \
|
src/proto/hashtab.pro \
|
||||||
src/proto/json.pro \
|
src/proto/json.pro \
|
||||||
|
src/proto/list.pro \
|
||||||
src/proto/main.pro \
|
src/proto/main.pro \
|
||||||
src/proto/mark.pro \
|
src/proto/mark.pro \
|
||||||
src/proto/mbyte.pro \
|
src/proto/mbyte.pro \
|
||||||
@ -160,12 +182,14 @@ SRC_ALL = \
|
|||||||
src/proto/search.pro \
|
src/proto/search.pro \
|
||||||
src/proto/sha256.pro \
|
src/proto/sha256.pro \
|
||||||
src/proto/spell.pro \
|
src/proto/spell.pro \
|
||||||
|
src/proto/spellfile.pro \
|
||||||
src/proto/syntax.pro \
|
src/proto/syntax.pro \
|
||||||
src/proto/tag.pro \
|
src/proto/tag.pro \
|
||||||
src/proto/term.pro \
|
src/proto/term.pro \
|
||||||
src/proto/termlib.pro \
|
src/proto/termlib.pro \
|
||||||
src/proto/ui.pro \
|
src/proto/ui.pro \
|
||||||
src/proto/undo.pro \
|
src/proto/undo.pro \
|
||||||
|
src/proto/userfunc.pro \
|
||||||
src/proto/version.pro \
|
src/proto/version.pro \
|
||||||
src/proto/winclip.pro \
|
src/proto/winclip.pro \
|
||||||
src/proto/window.pro \
|
src/proto/window.pro \
|
||||||
@ -190,7 +214,7 @@ SRC_UNIX = \
|
|||||||
src/config.mk.dist \
|
src/config.mk.dist \
|
||||||
src/config.mk.in \
|
src/config.mk.in \
|
||||||
src/configure \
|
src/configure \
|
||||||
src/configure.in \
|
src/configure.ac \
|
||||||
src/gui_at_fs.c \
|
src/gui_at_fs.c \
|
||||||
src/gui_at_sb.c \
|
src/gui_at_sb.c \
|
||||||
src/gui_at_sb.h \
|
src/gui_at_sb.h \
|
||||||
@ -247,6 +271,7 @@ SRC_UNIX = \
|
|||||||
src/workshop.h \
|
src/workshop.h \
|
||||||
src/wsdebug.c \
|
src/wsdebug.c \
|
||||||
src/wsdebug.h \
|
src/wsdebug.h \
|
||||||
|
src/tee/Makefile \
|
||||||
src/xxd/Makefile \
|
src/xxd/Makefile \
|
||||||
|
|
||||||
# source files for both DOS and Unix
|
# source files for both DOS and Unix
|
||||||
@ -298,6 +323,7 @@ SRC_DOS = \
|
|||||||
src/Make_dvc.mak \
|
src/Make_dvc.mak \
|
||||||
src/Make_ming.mak \
|
src/Make_ming.mak \
|
||||||
src/Make_mvc.mak \
|
src/Make_mvc.mak \
|
||||||
|
tools/rename.bat \
|
||||||
src/bigvim.bat \
|
src/bigvim.bat \
|
||||||
src/bigvim64.bat \
|
src/bigvim64.bat \
|
||||||
src/msvcsetup.bat \
|
src/msvcsetup.bat \
|
||||||
@ -341,6 +367,7 @@ SRC_DOS = \
|
|||||||
src/vimrun.c \
|
src/vimrun.c \
|
||||||
src/xpm_w32.c \
|
src/xpm_w32.c \
|
||||||
src/xpm_w32.h \
|
src/xpm_w32.h \
|
||||||
|
src/tee/Make_mvc.mak \
|
||||||
src/xxd/Make_bc5.mak \
|
src/xxd/Make_bc5.mak \
|
||||||
src/xxd/Make_ming.mak \
|
src/xxd/Make_ming.mak \
|
||||||
src/xxd/Make_mvc.mak \
|
src/xxd/Make_mvc.mak \
|
||||||
@ -510,8 +537,9 @@ RT_ALL = \
|
|||||||
runtime/macros/urm/examples \
|
runtime/macros/urm/examples \
|
||||||
runtime/macros/urm/urm \
|
runtime/macros/urm/urm \
|
||||||
runtime/macros/urm/urm.vim \
|
runtime/macros/urm/urm.vim \
|
||||||
runtime/mswin.vim \
|
runtime/defaults.vim \
|
||||||
runtime/evim.vim \
|
runtime/evim.vim \
|
||||||
|
runtime/mswin.vim \
|
||||||
runtime/optwin.vim \
|
runtime/optwin.vim \
|
||||||
runtime/ftplugin.vim \
|
runtime/ftplugin.vim \
|
||||||
runtime/ftplugof.vim \
|
runtime/ftplugof.vim \
|
||||||
|
133
Makefile
133
Makefile
@ -32,7 +32,7 @@ first:
|
|||||||
|
|
||||||
# Some make programs use the last target for the $@ default; put the other
|
# Some make programs use the last target for the $@ default; put the other
|
||||||
# targets separately to always let $@ expand to "first" by default.
|
# targets separately to always let $@ expand to "first" by default.
|
||||||
all install uninstall tools config configure reconfig proto depend lint tags types test testclean clean distclean:
|
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests unittests testclean clean distclean:
|
||||||
@if test ! -f src/auto/config.mk; then \
|
@if test ! -f src/auto/config.mk; then \
|
||||||
cp src/config.mk.dist src/auto/config.mk; \
|
cp src/config.mk.dist src/auto/config.mk; \
|
||||||
fi
|
fi
|
||||||
@ -51,12 +51,9 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
|||||||
#
|
#
|
||||||
# dossrc vim##src.zip sources for MS-DOS
|
# dossrc vim##src.zip sources for MS-DOS
|
||||||
# dosrt vim##rt.zip runtime for MS-DOS
|
# dosrt vim##rt.zip runtime for MS-DOS
|
||||||
# dosbin vim##d16.zip binary for MS-DOS 16 bits
|
# dosbin vim##w32.zip binary for Win32
|
||||||
# vim##d32.zip binary for MS-DOS 32 bits
|
|
||||||
# vim##w32.zip binary for Win32
|
|
||||||
# gvim##.zip binary for GUI Win32
|
# gvim##.zip binary for GUI Win32
|
||||||
# gvim##ole.zip OLE exe for Win32 GUI
|
# gvim##ole.zip OLE exe for Win32 GUI
|
||||||
# gvim##_s.zip exe for Win32s GUI
|
|
||||||
#
|
#
|
||||||
# OBSOLETE
|
# OBSOLETE
|
||||||
# amisrc vim##src.tgz sources for Amiga
|
# amisrc vim##src.tgz sources for Amiga
|
||||||
@ -70,25 +67,17 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
|||||||
# To do all this you need the Unix archive and compiled binaries.
|
# To do all this you need the Unix archive and compiled binaries.
|
||||||
# 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 = 8
|
||||||
MINOR = 4
|
MINOR = 0
|
||||||
|
|
||||||
# Uncomment this line if the Win32s version is to be included.
|
|
||||||
# DOSBIN_S = dosbin_s
|
|
||||||
|
|
||||||
# Uncomment this line if the 16 bit DOS version is to be included.
|
|
||||||
# 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,
|
||||||
# MAJOR/MINOR above, VIMMAJOR and VIMMINOR in src/Makefile, README*.txt,
|
# READMEdir/Contents, MAJOR/MINOR above, VIMMAJOR and VIMMINOR in
|
||||||
# runtime/doc/*.txt and nsis/gvim.nsi.
|
# src/Makefile, README.txt, README.md, READMEdir/README*.txt,
|
||||||
|
# runtime/doc/*.txt and make nsis/gvim_version.nsh.
|
||||||
# For a minor/major version: src/GvimExt/GvimExt.reg, src/vim.def,
|
# For a minor/major version: src/GvimExt/GvimExt.reg, src/vim.def,
|
||||||
# src/vim16.def, src/gvim.exe.mnf.
|
# src/gvim.exe.mnf.
|
||||||
# - 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.
|
||||||
@ -108,7 +97,7 @@ MINOR = 4
|
|||||||
# - 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.
|
||||||
# - Add remarks for changes to runtime/doc/version7.txt.
|
# - Add remarks for changes to runtime/doc/version8.txt.
|
||||||
# - 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.
|
||||||
@ -131,8 +120,9 @@ MINOR = 4
|
|||||||
#
|
#
|
||||||
# MS-Windows:
|
# MS-Windows:
|
||||||
# - Run make on Unix to update the ".mo" files.
|
# - Run make on Unix to update the ".mo" files.
|
||||||
# - Get libintl-8.dll and libiconv-2.dll. E.g. from
|
# - Get libintl-8.dll, libiconv-2.dll and libgcc_s_sjlj-1.dll. E.g. from
|
||||||
# https://mlocati.github.io/gettext-iconv-windows/ .
|
# https://mlocati.github.io/gettext-iconv-windows/ .
|
||||||
|
# Use the "shared-32.zip file and extract the archive to get the files.
|
||||||
# Put them in the top directory, "make dosrt" uses them.
|
# Put them in the top directory, "make dosrt" uses them.
|
||||||
# - > make dossrc
|
# - > make dossrc
|
||||||
# > make dosrt
|
# > make dosrt
|
||||||
@ -149,31 +139,35 @@ MINOR = 4
|
|||||||
# - > cd src
|
# - > cd src
|
||||||
# > nmake -f Make_mvc.mak
|
# > nmake -f Make_mvc.mak
|
||||||
# - Run the tests:
|
# - Run the tests:
|
||||||
# > rm testdir/*.out testdir/*.res
|
# > nmake -f Make_mvc.mak testclean
|
||||||
# > nmake -f Make_mvc.mak test
|
# > nmake -f Make_mvc.mak test
|
||||||
# - check the output.
|
# - check the output.
|
||||||
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
|
# - Rename (using ../tools/rename.bat):
|
||||||
# - Rename vim.pdb to vimw32.pdb.
|
# vim.exe to vimw32.exe
|
||||||
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
|
# tee/tee.exe to teew32.exe
|
||||||
|
# xxd/xxd.exe to xxdw32.exe
|
||||||
|
# vim.pdb to vimw32.pdb
|
||||||
|
# install.exe to installw32.exe
|
||||||
|
# uninstal.exe to uninstalw32.exe
|
||||||
# Win32 GUI version build:
|
# Win32 GUI version build:
|
||||||
# - > cd src
|
# - > cd src
|
||||||
# > nmake -f Make_mvc.mak GUI=yes
|
# > nmake -f Make_mvc.mak GUI=yes
|
||||||
# - Run the tests:
|
# - Run the tests:
|
||||||
# > rm testdir/*.out testdir/*.res
|
# > nmake -f Make_mvc.mak testclean
|
||||||
# > nmake -f Make_mvc.mak testgvim
|
# > nmake -f Make_mvc.mak testgvim
|
||||||
# - check the output.
|
# - check the output.
|
||||||
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
|
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
|
||||||
# - Move gvim.pdb to here.
|
# - Move gvim.pdb to here.
|
||||||
# - Copy "GvimExt/gvimext.dll" to here.
|
# - Copy "GvimExt/gvimext.dll" to here.
|
||||||
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
||||||
# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME:
|
# Win32 GUI version with OLE, PERL, Ruby, TCL, PYTHON and dynamic IME:
|
||||||
# - Install the interfaces you want, see src/INSTALLpc.txt
|
# - Install the interfaces you want, see src/INSTALLpc.txt
|
||||||
# - Build:
|
# - Build:
|
||||||
# > cd src
|
# > cd src
|
||||||
# Adjust bigvim.bat to match the version of each interface you want.
|
# Adjust bigvim.bat to match the version of each interface you want.
|
||||||
# > bigvim.bat
|
# > bigvim.bat
|
||||||
# - Run the tests:
|
# - Run the tests:
|
||||||
# > rm testdir/*.out testdir/*.res
|
# > nmake -f Make_mvc.mak testclean
|
||||||
# > nmake -f Make_mvc.mak testgvim
|
# > nmake -f Make_mvc.mak testgvim
|
||||||
# - check the output.
|
# - check the output.
|
||||||
# - Rename "gvim.exe" to "gvim_ole.exe".
|
# - Rename "gvim.exe" to "gvim_ole.exe".
|
||||||
@ -187,7 +181,8 @@ MINOR = 4
|
|||||||
# 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, 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, teew32.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
|
||||||
# gvimext64.dll in src/GvimExt
|
# gvimext64.dll in src/GvimExt
|
||||||
@ -199,6 +194,7 @@ MINOR = 4
|
|||||||
# version).
|
# version).
|
||||||
# - go to ../nsis and do:
|
# - go to ../nsis and do:
|
||||||
# > makensis gvim.nsi (takes a few minutes).
|
# > makensis gvim.nsi (takes a few minutes).
|
||||||
|
# ignore warning for libwinpthread-1.dll
|
||||||
# - Copy gvim##.exe to the dist directory.
|
# - Copy gvim##.exe to the dist directory.
|
||||||
#
|
#
|
||||||
# 64 bit builds (these are not in the normal distribution, the 32 bit build
|
# 64 bit builds (these are not in the normal distribution, the 32 bit build
|
||||||
@ -221,15 +217,7 @@ MINOR = 4
|
|||||||
# 32 bit DOS version: Support was removed in 7.4.1399. When syncing to before
|
# 32 bit DOS version: Support was removed in 7.4.1399. When syncing to before
|
||||||
# that it probably won't build.
|
# that it probably won't build.
|
||||||
#
|
#
|
||||||
# Win32s GUI version: (requires a very old compiler)
|
# Win32s GUI version: Support was removed in patch 7.4.1364.
|
||||||
# - 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 support was removed in patch 7.4.1008. If you want to give it a try
|
# OS/2 support was removed in patch 7.4.1008. If you want to give it a try
|
||||||
# sync to before that and check the old version of this Makefile for
|
# sync to before that and check the old version of this Makefile for
|
||||||
@ -268,12 +256,9 @@ dist/comment:
|
|||||||
mkdir dist/comment
|
mkdir dist/comment
|
||||||
|
|
||||||
COMMENT_RT = comment/$(VERSION)-rt
|
COMMENT_RT = comment/$(VERSION)-rt
|
||||||
COMMENT_D16 = comment/$(VERSION)-bin-d16
|
|
||||||
COMMENT_D32 = comment/$(VERSION)-bin-d32
|
|
||||||
COMMENT_W32 = comment/$(VERSION)-bin-w32
|
COMMENT_W32 = comment/$(VERSION)-bin-w32
|
||||||
COMMENT_GVIM = comment/$(VERSION)-bin-gvim
|
COMMENT_GVIM = comment/$(VERSION)-bin-gvim
|
||||||
COMMENT_OLE = comment/$(VERSION)-bin-ole
|
COMMENT_OLE = comment/$(VERSION)-bin-ole
|
||||||
COMMENT_W32S = comment/$(VERSION)-bin-w32s
|
|
||||||
COMMENT_SRC = comment/$(VERSION)-src
|
COMMENT_SRC = comment/$(VERSION)-src
|
||||||
COMMENT_HTML = comment/$(VERSION)-html
|
COMMENT_HTML = comment/$(VERSION)-html
|
||||||
COMMENT_FARSI = comment/$(VERSION)-farsi
|
COMMENT_FARSI = comment/$(VERSION)-farsi
|
||||||
@ -281,12 +266,6 @@ COMMENT_FARSI = comment/$(VERSION)-farsi
|
|||||||
dist/$(COMMENT_RT): dist/comment
|
dist/$(COMMENT_RT): dist/comment
|
||||||
echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT)
|
echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT)
|
||||||
|
|
||||||
dist/$(COMMENT_D16): dist/comment
|
|
||||||
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 16 bit real mode" > dist/$(COMMENT_D16)
|
|
||||||
|
|
||||||
dist/$(COMMENT_D32): dist/comment
|
|
||||||
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 32 bit protected mode" > dist/$(COMMENT_D32)
|
|
||||||
|
|
||||||
dist/$(COMMENT_W32): dist/comment
|
dist/$(COMMENT_W32): dist/comment
|
||||||
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows NT/95" > dist/$(COMMENT_W32)
|
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows NT/95" > dist/$(COMMENT_W32)
|
||||||
|
|
||||||
@ -296,9 +275,6 @@ dist/$(COMMENT_GVIM): dist/comment
|
|||||||
dist/$(COMMENT_OLE): dist/comment
|
dist/$(COMMENT_OLE): dist/comment
|
||||||
echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE)
|
echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE)
|
||||||
|
|
||||||
dist/$(COMMENT_W32S): dist/comment
|
|
||||||
echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows 3.1/3.11" > dist/$(COMMENT_W32S)
|
|
||||||
|
|
||||||
dist/$(COMMENT_SRC): dist/comment
|
dist/$(COMMENT_SRC): dist/comment
|
||||||
echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
|
echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
|
||||||
|
|
||||||
@ -493,6 +469,7 @@ dosrt_files: dist prepare no_title.vim
|
|||||||
done
|
done
|
||||||
cp libintl-8.dll dist/vim/$(VIMRTDIR)/
|
cp libintl-8.dll dist/vim/$(VIMRTDIR)/
|
||||||
cp libiconv-2.dll dist/vim/$(VIMRTDIR)/
|
cp libiconv-2.dll dist/vim/$(VIMRTDIR)/
|
||||||
|
cp libgcc_s_sjlj-1.dll dist/vim/$(VIMRTDIR)/
|
||||||
|
|
||||||
|
|
||||||
# Used before uploading. Don't delete the AAPDIR/sign files!
|
# Used before uploading. Don't delete the AAPDIR/sign files!
|
||||||
@ -501,7 +478,8 @@ runtime_unix2dos: dosrt_files
|
|||||||
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_ole $(DOSBIN_S)
|
||||||
|
-rm $(IN_README_DIR)
|
||||||
|
|
||||||
# make Win32 gvim
|
# make Win32 gvim
|
||||||
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
||||||
@ -512,8 +490,8 @@ dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
|||||||
tar cf - \
|
tar cf - \
|
||||||
$(BIN_DOS) \
|
$(BIN_DOS) \
|
||||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||||
-rm $(IN_README_DIR)
|
|
||||||
cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
||||||
|
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
|
||||||
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||||
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
||||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||||
@ -532,43 +510,13 @@ dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
|
|||||||
$(BIN_DOS) \
|
$(BIN_DOS) \
|
||||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||||
cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
|
cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
|
||||||
|
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
|
||||||
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||||
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
||||||
cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32)
|
cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32)
|
||||||
cp vimw32.pdb dist/vim$(VERSION)w32.pdb
|
cp vimw32.pdb dist/vim$(VERSION)w32.pdb
|
||||||
|
|
||||||
# make 32bit DOS
|
|
||||||
dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
|
|
||||||
-rm -rf dist/vim$(VERSION)d32.zip
|
|
||||||
-rm -rf dist/vim
|
|
||||||
mkdir dist/vim
|
|
||||||
mkdir dist/vim/$(VIMRTDIR)
|
|
||||||
tar cf - \
|
|
||||||
$(BIN_DOS) \
|
|
||||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
|
||||||
cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe
|
|
||||||
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
|
||||||
cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe
|
|
||||||
cp uninstald32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
|
||||||
cp csdpmi4b.zip dist/vim/$(VIMRTDIR)
|
|
||||||
cd dist && zip -9 -rD -z vim$(VERSION)d32.zip vim <$(COMMENT_D32)
|
|
||||||
|
|
||||||
# make 16bit DOS
|
|
||||||
dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
|
|
||||||
-rm -rf dist/vim$(VERSION)d16.zip
|
|
||||||
-rm -rf dist/vim
|
|
||||||
mkdir dist/vim
|
|
||||||
mkdir dist/vim/$(VIMRTDIR)
|
|
||||||
tar cf - \
|
|
||||||
$(BIN_DOS) \
|
|
||||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
|
||||||
cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe
|
|
||||||
cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
|
||||||
cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe
|
|
||||||
cp uninstald16.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
|
||||||
cd dist && zip -9 -rD -z vim$(VERSION)d16.zip vim <$(COMMENT_D16)
|
|
||||||
|
|
||||||
# make Win32 gvim with OLE
|
# make Win32 gvim with OLE
|
||||||
dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
|
dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
|
||||||
-rm -rf dist/gvim$(VERSION)ole.zip
|
-rm -rf dist/gvim$(VERSION)ole.zip
|
||||||
@ -579,6 +527,7 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
|
|||||||
$(BIN_DOS) \
|
$(BIN_DOS) \
|
||||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
||||||
cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
||||||
|
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
|
||||||
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
||||||
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
|
||||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
||||||
@ -590,22 +539,6 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
|
|||||||
cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE)
|
cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE)
|
||||||
cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb
|
cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb
|
||||||
|
|
||||||
# make Win32s gvim
|
|
||||||
dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
|
|
||||||
-rm -rf dist/gvim$(VERSION)_s.zip
|
|
||||||
-rm -rf dist/vim
|
|
||||||
mkdir dist/vim
|
|
||||||
mkdir dist/vim/$(VIMRTDIR)
|
|
||||||
tar cf - \
|
|
||||||
$(BIN_DOS) \
|
|
||||||
| (cd dist/vim/$(VIMRTDIR); tar xf -)
|
|
||||||
cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe
|
|
||||||
cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
|
|
||||||
cp README_w32s.txt dist/vim/$(VIMRTDIR)
|
|
||||||
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
|
|
||||||
cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
|
|
||||||
cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S)
|
|
||||||
|
|
||||||
html: dist dist/$(COMMENT_HTML)
|
html: dist dist/$(COMMENT_HTML)
|
||||||
-rm -rf dist/vim$(VERSION)html.zip
|
-rm -rf dist/vim$(VERSION)html.zip
|
||||||
cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)
|
cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
`README.md` for version 7.4 of Vim: Vi IMproved.
|
`README.md` for version 8.0 of Vim: Vi IMproved.
|
||||||
[](https://travis-ci.org/vim/vim)
|
[](https://travis-ci.org/vim/vim)
|
||||||
[](https://coveralls.io/github/vim/vim?branch=master)
|
[](https://coveralls.io/github/vim/vim?branch=master)
|
||||||
[](https://ci.appveyor.com/project/chrisbra/vim)
|
[](https://ci.appveyor.com/project/chrisbra/vim)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README.txt for version 7.4 of Vim: Vi IMproved.
|
README.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
|
|
||||||
WHAT IS VIM?
|
WHAT IS VIM?
|
||||||
|
@ -9,10 +9,10 @@ Vim Vi IMproved. A clone of the UNIX text editor Vi. Very useful
|
|||||||
messages, shows current file name in window title, on-line
|
messages, shows current file name in window title, on-line
|
||||||
help, rectangular cut/paste, etc., etc., etc...
|
help, rectangular cut/paste, etc., etc., etc...
|
||||||
|
|
||||||
Version 7.4. Also runs under UNIX, MS-Windows, Mac, etc.
|
Version 8.0. Also runs under UNIX, MS-Windows, Mac, etc.
|
||||||
vim74rt.tgz contains the documentation and syntax files.
|
vim80rt.tgz contains the documentation and syntax files.
|
||||||
vim74bin.tgz contains the binaries.
|
vim80bin.tgz contains the binaries.
|
||||||
vim74src.tgz contains the sources.
|
vim80src.tgz contains the sources.
|
||||||
Author: Bram Moolenaar et al.
|
Author: Bram Moolenaar et al.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_ami.txt for version 7.4 of Vim: Vi IMproved.
|
README_ami.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Amiga systems.
|
This file explains the installation of Vim on Amiga systems.
|
||||||
See README.txt for general information about Vim.
|
See README.txt for general information about Vim.
|
||||||
@ -16,8 +16,8 @@ easily upgrade to a new version. For example:
|
|||||||
You would then unpack the archives like this:
|
You would then unpack the archives like this:
|
||||||
|
|
||||||
cd dh0:editors
|
cd dh0:editors
|
||||||
tar xf t:vim60bin.tar
|
tar xf t:vim80bin.tar
|
||||||
tar xf t:vim60rt.tar
|
tar xf t:vim80rt.tar
|
||||||
|
|
||||||
Set the $VIM environment variable to point to the top directory of your Vim
|
Set the $VIM environment variable to point to the top directory of your Vim
|
||||||
files. For the above example:
|
files. For the above example:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
README_amibin.txt for version 7.4 of Vim: Vi IMproved.
|
README_amibin.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
These files are in the runtime archive (vim60rt.tgz).
|
These files are in the runtime archive (vim80rt.tgz).
|
||||||
|
|
||||||
|
|
||||||
The Amiga "bin" archive contains the Vim executable for the Amiga. It was
|
The Amiga "bin" archive contains the Vim executable for the Amiga. It was
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
README_amisrc.txt for version 7.4 of Vim: Vi IMproved.
|
README_amisrc.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
These files are in the runtime archive (vim60rt.tgz).
|
These files are in the runtime archive (vim80rt.tgz).
|
||||||
|
|
||||||
|
|
||||||
The Amiga source archive contains the files needed to compile Vim on the
|
The Amiga source archive contains the files needed to compile Vim on the
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
README_bindos.txt for version 7.4 of Vim: Vi IMproved.
|
README_bindos.txt for version 8.0 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 (vim74rt.zip).
|
These files are in the runtime archive (vim80rt.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):
|
||||||
vim74w32.zip Windows 95/98/NT/etc. console version
|
vim80w32.zip Windows 95/98/NT/etc. console version
|
||||||
gvim74.zip Windows 95/98/NT/etc. GUI version
|
gvim80.zip Windows 95/98/NT/etc. GUI version
|
||||||
gvim74ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
gvim80ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
||||||
|
|
||||||
You MUST also get the runtime archive (vim74rt.zip).
|
You MUST also get the runtime archive (vim80rt.zip).
|
||||||
The sources are also available (vim74src.zip).
|
The sources are also available (vim80src.zip).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_dos.txt for version 7.4 of Vim: Vi IMproved.
|
README_dos.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
@ -41,19 +41,19 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
located. Check the $VIM setting to see where it points to:
|
located. Check the $VIM setting to see where it points to:
|
||||||
set VIM
|
set VIM
|
||||||
For example, if you have
|
For example, if you have
|
||||||
C:\vim\vim54
|
C:\vim\vim80
|
||||||
do
|
do
|
||||||
cd C:\
|
cd C:\
|
||||||
Binary and runtime Vim archives are normally unpacked in the same location,
|
Binary and runtime Vim archives are normally unpacked in the same location,
|
||||||
on top of each other.
|
on top of each other.
|
||||||
|
|
||||||
2. Unpack the zip archives. This will create a new directory "vim\vim74",
|
2. Unpack the zip archives. This will create a new directory "vim\vim80",
|
||||||
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 gvim74.zip
|
pkunzip -d gvim80.zip
|
||||||
unzip vim74w32.zip
|
unzip vim80w32.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\vim74
|
cd vim\vim80
|
||||||
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\vim74
|
set path=%path%;C:\vim\vim80
|
||||||
set path=%path%;D:\editors\vim\vim74
|
set path=%path%;D:\editors\vim\vim80
|
||||||
- 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.4 will look for your vimrc file in $VIM, and for the runtime
|
Vim version 8.0 will look for your vimrc file in $VIM, and for the runtime
|
||||||
files in $VIM/vim74. See ":help $VIM" for more information.
|
files in $VIM/vim80. 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\vim74\vim.exe The Vim version 7.4 executable.
|
C:\vim\vim80\vim.exe The Vim version 8.0 executable.
|
||||||
C:\vim\vim74\doc\*.txt The version 7.4 documentation files.
|
C:\vim\vim80\doc\*.txt The version 8.0 documentation files.
|
||||||
C:\vim\vim74\bugreport.vim A Vim version 7.4 script.
|
C:\vim\vim80\bugreport.vim A Vim version 8.0 script.
|
||||||
C:\vim\vim74\... Other version 7.4 distributed files.
|
C:\vim\vim80\... Other version 8.0 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\vim74". Don't add
|
Then $VIMRUNTIME will automatically be set to "$VIM\vim80". Don't add
|
||||||
"vim74" to $VIM, that won't work.
|
"vim80" 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\vim74\vim.exe
|
C:\command.com /c C:\vim\vim80\vim.exe
|
||||||
C:\command.com /c D:\editors\vim\vim74\vim.exe
|
C:\command.com /c D:\editors\vim\vim80\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.4 of Vim: Vi IMproved.
|
README_extra.txt for version 8.0 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,8 +1,28 @@
|
|||||||
README_mac.txt for version 7.4 of Vim: Vi IMproved.
|
README_mac.txt for version 8.0 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.
|
||||||
|
|
||||||
|
|
||||||
Sorry, this text still needs to be written!
|
To build from sources, like on Unix
|
||||||
|
|
||||||
|
1. Get the build tools: "clang" and "make". These can be installed with the
|
||||||
|
"CommandLineTools" package. If you don't have one, do
|
||||||
|
xcode-select --install
|
||||||
|
Just like for any software development with OS X.
|
||||||
|
|
||||||
|
2. Get the source code. Best is to use git (which you need to install first),
|
||||||
|
see http://www.vim.org/git.php
|
||||||
|
Or you can download and unpack the Unix tar archive, see
|
||||||
|
http://www.vim.org/download.php
|
||||||
|
|
||||||
|
3. Go to the top directory of the source tree, do
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
A newly built vim will be installed under "/usr/local".
|
||||||
|
|
||||||
|
|
||||||
|
If you can't manage to make this work, there is a fallback using Homebrew:
|
||||||
|
|
||||||
|
1. Install Homebrew from http://brew.sh/
|
||||||
|
2. Install latest Vim with: brew install vim
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_ole.txt for version 7.4 of Vim: Vi IMproved.
|
README_ole.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains gvim.exe with OLE interface and VisVim.
|
This archive contains gvim.exe with OLE interface and VisVim.
|
||||||
This version of gvim.exe can also load a number of interface dynamically (you
|
This version of gvim.exe can also load a number of interface dynamically (you
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_os2.txt for version 7.4 of Vim: Vi IMproved.
|
README_os2.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file used to explain the installation of Vim on OS/2 systems.
|
This file used to explain the installation of Vim on OS/2 systems.
|
||||||
However, support for OS/2 has been removed in patch 7.4.1008.
|
However, support for OS/2 has been removed in patch 7.4.1008.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
README_zOS.txt for version 7.4 of Vim: Vi IMproved.
|
README_zOS.txt for version 8.0 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.
|
||||||
@ -78,7 +78,7 @@ Change to the vim directory and do:
|
|||||||
With X11:
|
With X11:
|
||||||
---------
|
---------
|
||||||
|
|
||||||
WARNING: This instruction was not tested with Vim 7.4.
|
WARNING: This instruction was not tested with Vim 7.4 or later.
|
||||||
|
|
||||||
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,8 +1,8 @@
|
|||||||
README_src.txt for version 7.4 of Vim: Vi IMproved.
|
README_src.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
The source archive contains the files needed to compile Vim on Unix systems.
|
The source archive contains the files needed to compile Vim on Unix systems.
|
||||||
It is packed for Unix systems (NL line separator).
|
It is packed for Unix systems (NL line separator).
|
||||||
|
|
||||||
For more information, see the README.txt file that comes with the runtime
|
For more information, see the README.txt file that comes with the runtime
|
||||||
archive (vim-7.4-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
archive (vim-8.0-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.4 of Vim: Vi IMproved.
|
README_srcdos.txt for version 8.0 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 (vim74rt.zip).
|
These files are in the runtime archive (vim80rt.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.4 of Vim: Vi IMproved.
|
README_unix.txt for version 8.0 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.4 of Vim: Vi IMproved.
|
README_vms.txt for version 8.0 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.4 of Vim: Vi IMproved.
|
README_w32s.txt for version 8.0 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains the gvim.exe that was specifically compiled for use in
|
This archive contains the gvim.exe that was specifically compiled for use in
|
||||||
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
||||||
|
@ -16,9 +16,6 @@ matrix:
|
|||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
|
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
|
||||||
# Work around for Python 2.7.11's bug
|
|
||||||
- reg copy HKLM\SOFTWARE\Python\PythonCore\2.7 HKLM\SOFTWARE\Python\PythonCore\2.7-32 /s /reg:32
|
|
||||||
- reg copy HKLM\SOFTWARE\Python\PythonCore\2.7 HKLM\SOFTWARE\Python\PythonCore\2.7-32 /s /reg:64
|
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- src/appveyor.bat
|
- src/appveyor.bat
|
||||||
@ -26,9 +23,10 @@ build_script:
|
|||||||
test_script:
|
test_script:
|
||||||
- cd src/testdir
|
- cd src/testdir
|
||||||
# Testing with MSVC gvim
|
# Testing with MSVC gvim
|
||||||
|
- path C:\Python35-x64;%PATH%
|
||||||
- nmake -f Make_dos.mak VIMPROG=..\gvim
|
- nmake -f Make_dos.mak VIMPROG=..\gvim
|
||||||
- nmake -f Make_dos.mak clean
|
- nmake -f Make_dos.mak clean
|
||||||
# Testing with MingW console version
|
# Testing with MingW console version
|
||||||
- nmake -f Make_dos.mak VIMPROG=..\vim
|
- nmake -f Make_dos.mak VIMPROG=..\vim
|
||||||
|
|
||||||
# vim: sw=2 sts=2 et ts=2 sr
|
# vim: sw=2 sts=2 et ts=8 sr
|
||||||
|
@ -188,6 +188,7 @@ Section "Vim executables and runtime files"
|
|||||||
File /oname=install.exe ${VIMSRC}\installw32.exe
|
File /oname=install.exe ${VIMSRC}\installw32.exe
|
||||||
File /oname=uninstal.exe ${VIMSRC}\uninstalw32.exe
|
File /oname=uninstal.exe ${VIMSRC}\uninstalw32.exe
|
||||||
File ${VIMSRC}\vimrun.exe
|
File ${VIMSRC}\vimrun.exe
|
||||||
|
File /oname=tee.exe ${VIMSRC}\teew32.exe
|
||||||
File /oname=xxd.exe ${VIMSRC}\xxdw32.exe
|
File /oname=xxd.exe ${VIMSRC}\xxdw32.exe
|
||||||
File ${VIMTOOLS}\diff.exe
|
File ${VIMTOOLS}\diff.exe
|
||||||
File ${VIMRT}\vimtutor.bat
|
File ${VIMRT}\vimtutor.bat
|
||||||
@ -384,6 +385,7 @@ SectionEnd
|
|||||||
File ${VIMRT}\libintl-8.dll
|
File ${VIMRT}\libintl-8.dll
|
||||||
File ${VIMRT}\libiconv-2.dll
|
File ${VIMRT}\libiconv-2.dll
|
||||||
File /nonfatal ${VIMRT}\libwinpthread-1.dll
|
File /nonfatal ${VIMRT}\libwinpthread-1.dll
|
||||||
|
File /nonfatal ${VIMRT}\libgcc_s_sjlj-1.dll
|
||||||
SectionEnd
|
SectionEnd
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Generated from Makefile: define the version numbers
|
# Generated from Makefile: define the version numbers
|
||||||
!ifndef __GVIM_VER__NSH__
|
!ifndef __GVIM_VER__NSH__
|
||||||
!define __GVIM_VER__NSH__
|
!define __GVIM_VER__NSH__
|
||||||
!define VER_MAJOR 7
|
!define VER_MAJOR 8
|
||||||
!define VER_MINOR 4
|
!define VER_MINOR 0
|
||||||
!endif
|
!endif
|
||||||
|
@ -2,12 +2,13 @@
|
|||||||
" Description: Perform Ada specific completion & tagging.
|
" Description: Perform Ada specific completion & tagging.
|
||||||
" Language: Ada (2005)
|
" Language: Ada (2005)
|
||||||
" $Id: ada.vim 887 2008-07-08 14:29:01Z krischik $
|
" $Id: ada.vim 887 2008-07-08 14:29:01Z krischik $
|
||||||
" Maintainer: Martin Krischik <krischik@users.sourceforge.net>
|
" Maintainer: Mathias Brousset <mathiasb17@gmail.com>
|
||||||
|
" Martin Krischik <krischik@users.sourceforge.net>
|
||||||
" Taylor Venable <taylor@metasyntax.net>
|
" Taylor Venable <taylor@metasyntax.net>
|
||||||
" Neil Bird <neil@fnxweb.com>
|
" Neil Bird <neil@fnxweb.com>
|
||||||
" Ned Okie <nokie@radford.edu>
|
" Ned Okie <nokie@radford.edu>
|
||||||
" $Author: krischik $
|
" $Author: krischik $
|
||||||
" $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
|
" $Date: 2017-01-31 20:20:05 +0200 (Mon, 01 Jan 2017) $
|
||||||
" Version: 4.6
|
" Version: 4.6
|
||||||
" $Revision: 887 $
|
" $Revision: 887 $
|
||||||
" $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/autoload/ada.vim $
|
" $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/autoload/ada.vim $
|
||||||
@ -23,6 +24,7 @@
|
|||||||
" 09.05.2007 MK Session just won't work no matter how much
|
" 09.05.2007 MK Session just won't work no matter how much
|
||||||
" tweaking is done
|
" tweaking is done
|
||||||
" 19.09.2007 NO still some mapleader problems
|
" 19.09.2007 NO still some mapleader problems
|
||||||
|
" 31.01.2017 MB fix more mapleader problems
|
||||||
" Help Page: ft-ada-functions
|
" Help Page: ft-ada-functions
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -447,7 +449,7 @@ function ada#Switch_Session (New_Session)
|
|||||||
|
|
||||||
if a:New_Session != v:this_session
|
if a:New_Session != v:this_session
|
||||||
"
|
"
|
||||||
" We actualy got a new session - otherwise there
|
" We actually got a new session - otherwise there
|
||||||
" is nothing to do.
|
" is nothing to do.
|
||||||
"
|
"
|
||||||
if strlen (v:this_session) > 0
|
if strlen (v:this_session) > 0
|
||||||
@ -585,11 +587,11 @@ function ada#Map_Menu (Text, Keys, Command)
|
|||||||
\ " :" . a:Command . "<CR>"
|
\ " :" . a:Command . "<CR>"
|
||||||
execute
|
execute
|
||||||
\ "nnoremap <buffer>" .
|
\ "nnoremap <buffer>" .
|
||||||
\ escape(l:leader . "a" . a:Keys , '\') .
|
\ " <Leader>a" . a:Keys .
|
||||||
\" :" . a:Command
|
\" :" . a:Command
|
||||||
execute
|
execute
|
||||||
\ "inoremap <buffer>" .
|
\ "inoremap <buffer>" .
|
||||||
\ escape(l:leader . "a" . a:Keys , '\') .
|
\ " <Learder>a" . a:Keys .
|
||||||
\" <C-O>:" . a:Command
|
\" <C-O>:" . a:Command
|
||||||
endif
|
endif
|
||||||
return
|
return
|
||||||
|
File diff suppressed because one or more lines are too long
184
runtime/autoload/context.vim
Normal file
184
runtime/autoload/context.vim
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
" Language: ConTeXt typesetting engine
|
||||||
|
" Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
|
||||||
|
" Latest Revision: 2016 Oct 21
|
||||||
|
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" Helper functions {{{
|
||||||
|
function! s:context_echo(message, mode)
|
||||||
|
redraw
|
||||||
|
echo "\r"
|
||||||
|
execute 'echohl' a:mode
|
||||||
|
echomsg '[ConTeXt]' a:message
|
||||||
|
echohl None
|
||||||
|
endf
|
||||||
|
|
||||||
|
function! s:sh()
|
||||||
|
return has('win32') || has('win64') || has('win16') || has('win95')
|
||||||
|
\ ? ['cmd.exe', '/C']
|
||||||
|
\ : ['/bin/sh', '-c']
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" For backward compatibility
|
||||||
|
if exists('*win_getid')
|
||||||
|
|
||||||
|
function! s:win_getid()
|
||||||
|
return win_getid()
|
||||||
|
endf
|
||||||
|
|
||||||
|
function! s:win_id2win(winid)
|
||||||
|
return win_id2win(a:winid)
|
||||||
|
endf
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
function! s:win_getid()
|
||||||
|
return winnr()
|
||||||
|
endf
|
||||||
|
|
||||||
|
function! s:win_id2win(winnr)
|
||||||
|
return a:winnr
|
||||||
|
endf
|
||||||
|
|
||||||
|
endif
|
||||||
|
" }}}
|
||||||
|
|
||||||
|
" ConTeXt jobs {{{
|
||||||
|
if has('job')
|
||||||
|
|
||||||
|
let g:context_jobs = []
|
||||||
|
|
||||||
|
" Print the status of ConTeXt jobs
|
||||||
|
function! context#job_status()
|
||||||
|
let l:jobs = filter(g:context_jobs, 'job_status(v:val) == "run"')
|
||||||
|
let l:n = len(l:jobs)
|
||||||
|
call s:context_echo(
|
||||||
|
\ 'There '.(l:n == 1 ? 'is' : 'are').' '.(l:n == 0 ? 'no' : l:n)
|
||||||
|
\ .' job'.(l:n == 1 ? '' : 's').' running'
|
||||||
|
\ .(l:n == 0 ? '.' : ' (' . join(l:jobs, ', ').').'),
|
||||||
|
\ 'ModeMsg')
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Stop all ConTeXt jobs
|
||||||
|
function! context#stop_jobs()
|
||||||
|
let l:jobs = filter(g:context_jobs, 'job_status(v:val) == "run"')
|
||||||
|
for job in l:jobs
|
||||||
|
call job_stop(job)
|
||||||
|
endfor
|
||||||
|
sleep 1
|
||||||
|
let l:tmp = []
|
||||||
|
for job in l:jobs
|
||||||
|
if job_status(job) == "run"
|
||||||
|
call add(l:tmp, job)
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
let g:context_jobs = l:tmp
|
||||||
|
if empty(g:context_jobs)
|
||||||
|
call s:context_echo('Done. No jobs running.', 'ModeMsg')
|
||||||
|
else
|
||||||
|
call s:context_echo('There are still some jobs running. Please try again.', 'WarningMsg')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! context#callback(path, job, status)
|
||||||
|
if index(g:context_jobs, a:job) != -1 && job_status(a:job) != 'run' " just in case
|
||||||
|
call remove(g:context_jobs, index(g:context_jobs, a:job))
|
||||||
|
endif
|
||||||
|
call s:callback(a:path, a:job, a:status)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! context#close_cb(channel)
|
||||||
|
call job_status(ch_getjob(a:channel)) " Trigger exit_cb's callback for faster feedback
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:typeset(path)
|
||||||
|
call add(g:context_jobs,
|
||||||
|
\ job_start(add(s:sh(), context#command() . ' ' . shellescape(fnamemodify(a:path, ":t"))), {
|
||||||
|
\ 'close_cb' : 'context#close_cb',
|
||||||
|
\ 'exit_cb' : function(get(b:, 'context_callback', get(g:, 'context_callback', 'context#callback')),
|
||||||
|
\ [a:path]),
|
||||||
|
\ 'in_io' : 'null'
|
||||||
|
\ }))
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
else " No jobs
|
||||||
|
|
||||||
|
function! context#job_status()
|
||||||
|
call s:context_echo('Not implemented', 'WarningMsg')
|
||||||
|
endfunction!
|
||||||
|
|
||||||
|
function! context#stop_jobs()
|
||||||
|
call s:context_echo('Not implemented', 'WarningMsg')
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! context#callback(path, job, status)
|
||||||
|
call s:callback(a:path, a:job, a:status)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:typeset(path)
|
||||||
|
execute '!' . context#command() . ' ' . shellescape(fnamemodify(a:path, ":t"))
|
||||||
|
call call(get(b:, 'context_callback', get(g:, 'context_callback', 'context#callback')),
|
||||||
|
\ [a:path, 0, v:shell_error])
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
endif " has('job')
|
||||||
|
|
||||||
|
function! s:callback(path, job, status) abort
|
||||||
|
if a:status < 0 " Assume the job was terminated
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
" Get info about the current window
|
||||||
|
let l:winid = s:win_getid() " Save window id
|
||||||
|
let l:efm = &l:errorformat " Save local errorformat
|
||||||
|
let l:cwd = fnamemodify(getcwd(), ":p") " Save local working directory
|
||||||
|
" Set errorformat to parse ConTeXt errors
|
||||||
|
execute 'setl efm=' . escape(b:context_errorformat, ' ')
|
||||||
|
try " Set cwd to expand error file correctly
|
||||||
|
execute 'lcd' fnameescape(fnamemodify(a:path, ':h'))
|
||||||
|
catch /.*/
|
||||||
|
execute 'setl efm=' . escape(l:efm, ' ')
|
||||||
|
throw v:exception
|
||||||
|
endtry
|
||||||
|
try
|
||||||
|
execute 'cgetfile' fnameescape(fnamemodify(a:path, ':r') . '.log')
|
||||||
|
botright cwindow
|
||||||
|
finally " Restore cwd and errorformat
|
||||||
|
execute s:win_id2win(l:winid) . 'wincmd w'
|
||||||
|
execute 'lcd ' . fnameescape(l:cwd)
|
||||||
|
execute 'setl efm=' . escape(l:efm, ' ')
|
||||||
|
endtry
|
||||||
|
if a:status == 0
|
||||||
|
call s:context_echo('Success!', 'ModeMsg')
|
||||||
|
else
|
||||||
|
call s:context_echo('There are errors. ', 'ErrorMsg')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! context#command()
|
||||||
|
return get(b:, 'context_mtxrun', get(g:, 'context_mtxrun', 'mtxrun'))
|
||||||
|
\ . ' --script context --autogenerate --nonstopmode'
|
||||||
|
\ . ' --synctex=' . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0')
|
||||||
|
\ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', ''))
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Accepts an optional path (useful for big projects, when the file you are
|
||||||
|
" editing is not the project's root document). If no argument is given, uses
|
||||||
|
" the path of the current buffer.
|
||||||
|
function! context#typeset(...) abort
|
||||||
|
let l:path = fnamemodify(strlen(a:000[0]) > 0 ? a:1 : expand("%"), ":p")
|
||||||
|
let l:cwd = fnamemodify(getcwd(), ":p") " Save local working directory
|
||||||
|
call s:context_echo('Typesetting...', 'ModeMsg')
|
||||||
|
execute 'lcd' fnameescape(fnamemodify(l:path, ":h"))
|
||||||
|
try
|
||||||
|
call s:typeset(l:path)
|
||||||
|
finally " Restore local working directory
|
||||||
|
execute 'lcd ' . fnameescape(l:cwd)
|
||||||
|
endtry
|
||||||
|
endfunction!
|
||||||
|
"}}}
|
||||||
|
|
||||||
|
let &cpo = s:keepcpo
|
||||||
|
unlet s:keepcpo
|
||||||
|
|
||||||
|
" vim: sw=2 fdm=marker
|
25
runtime/autoload/contextcomplete.vim
Normal file
25
runtime/autoload/contextcomplete.vim
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
" Language: ConTeXt typesetting engine
|
||||||
|
" Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
|
||||||
|
" Latest Revision: 2016 Oct 15
|
||||||
|
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" Complete keywords in MetaPost blocks
|
||||||
|
function! contextcomplete#Complete(findstart, base)
|
||||||
|
if a:findstart == 1
|
||||||
|
if len(synstack(line('.'), 1)) > 0 &&
|
||||||
|
\ synIDattr(synstack(line('.'), 1)[0], "name") ==# 'contextMPGraphic'
|
||||||
|
return syntaxcomplete#Complete(a:findstart, a:base)
|
||||||
|
else
|
||||||
|
return -3
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
return syntaxcomplete#Complete(a:findstart, a:base)
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
let &cpo = s:keepcpo
|
||||||
|
unlet s:keepcpo
|
||||||
|
|
||||||
|
" vim: sw=2 fdm=marker
|
@ -236,7 +236,7 @@ fun! getscript#GetLatestVimScripts()
|
|||||||
" call Decho("..depscript<".depscript.">")
|
" call Decho("..depscript<".depscript.">")
|
||||||
|
|
||||||
" found a "GetLatestVimScripts: # #" line in the script;
|
" found a "GetLatestVimScripts: # #" line in the script;
|
||||||
" check if its already in the datafile by searching backwards from llp1,
|
" check if it's already in the datafile by searching backwards from llp1,
|
||||||
" the (prior to reading in the plugin script) last line plus one of the GetLatestVimScripts.dat file,
|
" the (prior to reading in the plugin script) last line plus one of the GetLatestVimScripts.dat file,
|
||||||
" for the script-id with no wrapping allowed.
|
" for the script-id with no wrapping allowed.
|
||||||
let curline = line(".")
|
let curline = line(".")
|
||||||
|
@ -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: 2014 Nov 05
|
" Last Change: 2016 Sep 28
|
||||||
|
|
||||||
" These functions are used by the gzip plugin.
|
" These functions are used by the gzip plugin.
|
||||||
|
|
||||||
@ -63,6 +63,9 @@ fun gzip#read(cmd)
|
|||||||
" set 'modifiable'
|
" set 'modifiable'
|
||||||
let ma_save = &ma
|
let ma_save = &ma
|
||||||
setlocal ma
|
setlocal ma
|
||||||
|
" set 'write'
|
||||||
|
let write_save = &write
|
||||||
|
set write
|
||||||
" Reset 'foldenable', otherwise line numbers get adjusted.
|
" Reset 'foldenable', otherwise line numbers get adjusted.
|
||||||
if has("folding")
|
if has("folding")
|
||||||
let fen_save = &fen
|
let fen_save = &fen
|
||||||
@ -127,6 +130,7 @@ fun gzip#read(cmd)
|
|||||||
let &pm = pm_save
|
let &pm = pm_save
|
||||||
let &cpo = cpo_save
|
let &cpo = cpo_save
|
||||||
let &l:ma = ma_save
|
let &l:ma = ma_save
|
||||||
|
let &write = write_save
|
||||||
if has("folding")
|
if has("folding")
|
||||||
let &l:fen = fen_save
|
let &l:fen = fen_save
|
||||||
endif
|
endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: Java Script
|
" Language: Java Script
|
||||||
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2006 Apr 30
|
" Last Change: 2017 Mar 04
|
||||||
|
|
||||||
function! javascriptcomplete#CompleteJS(findstart, base)
|
function! javascriptcomplete#CompleteJS(findstart, base)
|
||||||
if a:findstart
|
if a:findstart
|
||||||
@ -563,7 +563,7 @@ function! javascriptcomplete#CompleteJS(findstart, base)
|
|||||||
for i in arguments
|
for i in arguments
|
||||||
let g:ia = i
|
let g:ia = i
|
||||||
let f_elements = matchlist(i, 'function\s\+\(\k\+\)\s*(\(.\{-}\))')
|
let f_elements = matchlist(i, 'function\s\+\(\k\+\)\s*(\(.\{-}\))')
|
||||||
if len(f_elements) == 3
|
if len(f_elements) >= 3
|
||||||
let b:js_menuinfo[f_elements[1].'('] = f_elements[2]
|
let b:js_menuinfo[f_elements[1].'('] = f_elements[2]
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
if &cp || exists("g:loaded_netrw")
|
if &cp || exists("g:loaded_netrw")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
" netrw requires vim having patch 213; netrw will benefit from vim's having patch#656, too
|
" netrw requires vim having patch 7.4.213; netrw will benefit from vim's having patch#656, too
|
||||||
if v:version < 704 || !has("patch213")
|
if v:version < 704 || (v:version == 704 && !has("patch213"))
|
||||||
if !exists("s:needpatch213")
|
if !exists("s:needpatch213")
|
||||||
unsilent echomsg "***sorry*** this version of netrw requires vim v7.4 with patch 213"
|
unsilent echomsg "***sorry*** this version of netrw requires vim v7.4 with patch 213"
|
||||||
endif
|
endif
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
||||||
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" URL: https://github.com/shawncplus/phpcomplete.vim
|
" URL: https://github.com/shawncplus/phpcomplete.vim
|
||||||
" Last Change: 2015 Jul 13
|
" Last Change: 2016 Oct 10
|
||||||
"
|
"
|
||||||
" OPTIONS:
|
" OPTIONS:
|
||||||
"
|
"
|
||||||
@ -195,6 +195,8 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
|||||||
" }}}
|
" }}}
|
||||||
elseif context =~? 'implements'
|
elseif context =~? 'implements'
|
||||||
return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
|
return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
|
||||||
|
elseif context =~? 'instanceof'
|
||||||
|
return phpcomplete#CompleteClassName(a:base, ['c', 'n'], current_namespace, imports)
|
||||||
elseif context =~? 'extends\s\+.\+$' && a:base == ''
|
elseif context =~? 'extends\s\+.\+$' && a:base == ''
|
||||||
return ['implements']
|
return ['implements']
|
||||||
elseif context =~? 'extends'
|
elseif context =~? 'extends'
|
||||||
@ -787,6 +789,8 @@ function! phpcomplete#CompleteClassName(base, kinds, current_namespace, imports)
|
|||||||
|
|
||||||
if kinds == ['c', 'i']
|
if kinds == ['c', 'i']
|
||||||
let filterstr = 'v:val =~? "\\(class\\|interface\\)\\s\\+[a-zA-Z_\\x7f-\\xff][a-zA-Z_0-9\\x7f-\\xff]*\\s*"'
|
let filterstr = 'v:val =~? "\\(class\\|interface\\)\\s\\+[a-zA-Z_\\x7f-\\xff][a-zA-Z_0-9\\x7f-\\xff]*\\s*"'
|
||||||
|
elseif kinds == ['c', 'n']
|
||||||
|
let filterstr = 'v:val =~? "\\(class\\|namespace\\)\\s\\+[a-zA-Z_\\x7f-\\xff][a-zA-Z_0-9\\x7f-\\xff]*\\s*"'
|
||||||
elseif kinds == ['c']
|
elseif kinds == ['c']
|
||||||
let filterstr = 'v:val =~? "class\\s\\+[a-zA-Z_\\x7f-\\xff][a-zA-Z_0-9\\x7f-\\xff]*\\s*"'
|
let filterstr = 'v:val =~? "class\\s\\+[a-zA-Z_\\x7f-\\xff][a-zA-Z_0-9\\x7f-\\xff]*\\s*"'
|
||||||
elseif kinds == ['i']
|
elseif kinds == ['i']
|
||||||
@ -931,7 +935,7 @@ function! phpcomplete#EvaluateModifiers(modifiers, required_modifiers, prohibite
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
for modifier in a:modifiers
|
for modifier in a:modifiers
|
||||||
" if the modifier is prohibited its a no match
|
" if the modifier is prohibited it's a no match
|
||||||
if index(a:prohibited_modifiers, modifier) != -1
|
if index(a:prohibited_modifiers, modifier) != -1
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
@ -996,7 +1000,7 @@ function! phpcomplete#CompleteUserClass(context, base, sccontent, visibility) "
|
|||||||
let required_modifiers += ['static']
|
let required_modifiers += ['static']
|
||||||
endif
|
endif
|
||||||
let all_variable = filter(deepcopy(a:sccontent),
|
let all_variable = filter(deepcopy(a:sccontent),
|
||||||
\ 'v:val =~ "^\\s*\\(var\\s\\+\\|public\\s\\+\\|protected\\s\\+\\|private\\s\\+\\|final\\s\\+\\|abstract\\s\\+\\|static\\s\\+\\)\\+\\$"')
|
\ 'v:val =~ "\\(^\\s*\\(var\\s\\+\\|public\\s\\+\\|protected\\s\\+\\|private\\s\\+\\|final\\s\\+\\|abstract\\s\\+\\|static\\s\\+\\)\\+\\$\\|^\\s*\\(\\/\\|\\*\\)*\\s*@property\\s\\+\\S\\+\\s\\S\\{-}\\s*$\\)"')
|
||||||
|
|
||||||
let variables = []
|
let variables = []
|
||||||
for i in all_variable
|
for i in all_variable
|
||||||
@ -1160,6 +1164,14 @@ function! phpcomplete#GetTaglist(pattern) " {{{
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let tags = taglist(a:pattern)
|
let tags = taglist(a:pattern)
|
||||||
|
for tag in tags
|
||||||
|
for prop in keys(tag)
|
||||||
|
if prop == 'cmd' || prop == 'static' || prop == 'kind' || prop == 'builtin'
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
let tag[prop] = substitute(tag[prop], '\\\\', '\\', 'g')
|
||||||
|
endfor
|
||||||
|
endfor
|
||||||
let s:cache_tags[a:pattern] = tags
|
let s:cache_tags[a:pattern] = tags
|
||||||
let has_key = has_key(s:cache_tags, a:pattern)
|
let has_key = has_key(s:cache_tags, a:pattern)
|
||||||
let s:cache_tags_checksum = cache_checksum
|
let s:cache_tags_checksum = cache_checksum
|
||||||
@ -1379,7 +1391,7 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
|
|||||||
" Get Structured information of all classes and subclasses including namespace and includes
|
" Get Structured information of all classes and subclasses including namespace and includes
|
||||||
" try to find the method's return type in docblock comment
|
" try to find the method's return type in docblock comment
|
||||||
for classstructure in classcontents
|
for classstructure in classcontents
|
||||||
let docblock_target_pattern = 'function\s\+&\?'.method.'\|\(public\|private\|protected\|var\).\+\$'.method
|
let docblock_target_pattern = 'function\s\+&\?'.method.'\>\|\(public\|private\|protected\|var\).\+\$'.method.'\>\|@property.\+\$'.method.'\>'
|
||||||
let doc_str = phpcomplete#GetDocBlock(split(classstructure.content, '\n'), docblock_target_pattern)
|
let doc_str = phpcomplete#GetDocBlock(split(classstructure.content, '\n'), docblock_target_pattern)
|
||||||
if doc_str != ''
|
if doc_str != ''
|
||||||
break
|
break
|
||||||
@ -1387,8 +1399,17 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
|
|||||||
endfor
|
endfor
|
||||||
if doc_str != ''
|
if doc_str != ''
|
||||||
let docblock = phpcomplete#ParseDocBlock(doc_str)
|
let docblock = phpcomplete#ParseDocBlock(doc_str)
|
||||||
if has_key(docblock.return, 'type') || has_key(docblock.var, 'type')
|
if has_key(docblock.return, 'type') || has_key(docblock.var, 'type') || len(docblock.properties) > 0
|
||||||
let type = has_key(docblock.return, 'type') ? docblock.return.type : docblock.var.type
|
let type = has_key(docblock.return, 'type') ? docblock.return.type : has_key(docblock.var, 'type') ? docblock.var.type : ''
|
||||||
|
|
||||||
|
if type == ''
|
||||||
|
for property in docblock.properties
|
||||||
|
if property.description =~? method
|
||||||
|
let type = property.type
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
" there's a namespace in the type, threat the type as FQCN
|
" there's a namespace in the type, threat the type as FQCN
|
||||||
if type =~ '\\'
|
if type =~ '\\'
|
||||||
@ -1554,6 +1575,9 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
elseif get(methodstack, 0) =~# function_invocation_pattern
|
elseif get(methodstack, 0) =~# function_invocation_pattern
|
||||||
let function_name = matchstr(methodstack[0], '^\s*\zs'.function_name_pattern)
|
let function_name = matchstr(methodstack[0], '^\s*\zs'.function_name_pattern)
|
||||||
let function_file = phpcomplete#GetFunctionLocation(function_name, a:current_namespace)
|
let function_file = phpcomplete#GetFunctionLocation(function_name, a:current_namespace)
|
||||||
|
if function_file == ''
|
||||||
|
let function_file = phpcomplete#GetFunctionLocation(function_name, '\')
|
||||||
|
endif
|
||||||
|
|
||||||
if function_file == 'VIMPHP_BUILTINFUNCTION'
|
if function_file == 'VIMPHP_BUILTINFUNCTION'
|
||||||
" built in function, grab the return type from the info string
|
" built in function, grab the return type from the info string
|
||||||
@ -1569,7 +1593,7 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
||||||
" try to expand the classname of the returned type with the context got from the function's source file
|
" try to expand the classname of the returned type with the context got from the function's source file
|
||||||
|
|
||||||
let [classname_candidate, unused] = phpcomplete#ExpandClassName(classname_candidate, class_candidate_namespace, function_imports)
|
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(classname_candidate, class_candidate_namespace, function_imports)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if classname_candidate != ''
|
if classname_candidate != ''
|
||||||
@ -1650,9 +1674,10 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
let sub_methodstack = phpcomplete#GetMethodStack(matchstr(line, '^\s*'.object.'\s*=&\?\s*\s\+\zs.*'))
|
let sub_methodstack = phpcomplete#GetMethodStack(matchstr(line, '^\s*'.object.'\s*=&\?\s*\s\+\zs.*'))
|
||||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#GetCallChainReturnType(
|
let [classname_candidate, class_candidate_namespace] = phpcomplete#GetCallChainReturnType(
|
||||||
\ classname,
|
\ classname,
|
||||||
\ a:current_namespace,
|
\ namespace_for_class,
|
||||||
\ a:imports,
|
\ a:imports,
|
||||||
\ sub_methodstack)
|
\ sub_methodstack)
|
||||||
|
|
||||||
return (class_candidate_namespace == '\' || class_candidate_namespace == '') ? classname_candidate : class_candidate_namespace.'\'.classname_candidate
|
return (class_candidate_namespace == '\' || class_candidate_namespace == '') ? classname_candidate : class_candidate_namespace.'\'.classname_candidate
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -1783,6 +1808,9 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
let [function_name, function_namespace] = phpcomplete#ExpandClassName(function_name, a:current_namespace, a:imports)
|
let [function_name, function_namespace] = phpcomplete#ExpandClassName(function_name, a:current_namespace, a:imports)
|
||||||
|
|
||||||
let function_file = phpcomplete#GetFunctionLocation(function_name, function_namespace)
|
let function_file = phpcomplete#GetFunctionLocation(function_name, function_namespace)
|
||||||
|
if function_file == ''
|
||||||
|
let function_file = phpcomplete#GetFunctionLocation(function_name, '\')
|
||||||
|
endif
|
||||||
|
|
||||||
if function_file == 'VIMPHP_BUILTINFUNCTION'
|
if function_file == 'VIMPHP_BUILTINFUNCTION'
|
||||||
" built in function, grab the return type from the info string
|
" built in function, grab the return type from the info string
|
||||||
@ -1798,7 +1826,7 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
let classname_candidate = docblock.return.type
|
let classname_candidate = docblock.return.type
|
||||||
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
||||||
" try to expand the classname of the returned type with the context got from the function's source file
|
" try to expand the classname of the returned type with the context got from the function's source file
|
||||||
let [classname_candidate, unused] = phpcomplete#ExpandClassName(classname_candidate, class_candidate_namespace, function_imports)
|
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(classname_candidate, class_candidate_namespace, function_imports)
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -1861,6 +1889,8 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
|||||||
for tag in tags
|
for tag in tags
|
||||||
if tag.kind ==? 'v' && tag.cmd =~? '=\s*new\s\+\zs'.class_name_pattern.'\ze'
|
if tag.kind ==? 'v' && tag.cmd =~? '=\s*new\s\+\zs'.class_name_pattern.'\ze'
|
||||||
let classname = matchstr(tag.cmd, '=\s*new\s\+\zs'.class_name_pattern.'\ze')
|
let classname = matchstr(tag.cmd, '=\s*new\s\+\zs'.class_name_pattern.'\ze')
|
||||||
|
" unescape the classname, it would have "\" doubled since it is an ex command
|
||||||
|
let classname = substitute(classname, '\\\(\_.\)', '\1', 'g')
|
||||||
return classname
|
return classname
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
@ -2077,6 +2107,19 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
|||||||
endif
|
endif
|
||||||
call searchpair('{', '', '}', 'W')
|
call searchpair('{', '', '}', 'W')
|
||||||
let class_closing_bracket_line = line('.')
|
let class_closing_bracket_line = line('.')
|
||||||
|
|
||||||
|
" Include class docblock
|
||||||
|
let doc_line = cfline - 1
|
||||||
|
if getline(doc_line) =~? '^\s*\*/'
|
||||||
|
while doc_line != 0
|
||||||
|
if getline(doc_line) =~? '^\s*/\*\*'
|
||||||
|
let cfline = doc_line
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let doc_line -= 1
|
||||||
|
endwhile
|
||||||
|
endif
|
||||||
|
|
||||||
let classcontent = join(getline(cfline, class_closing_bracket_line), "\n")
|
let classcontent = join(getline(cfline, class_closing_bracket_line), "\n")
|
||||||
|
|
||||||
let used_traits = []
|
let used_traits = []
|
||||||
@ -2241,8 +2284,19 @@ function! phpcomplete#GetDocBlock(sccontent, search) " {{{
|
|||||||
let line = a:sccontent[i]
|
let line = a:sccontent[i]
|
||||||
" search for a function declaration
|
" search for a function declaration
|
||||||
if line =~? a:search
|
if line =~? a:search
|
||||||
let l = i - 1
|
if line =~? '@property'
|
||||||
" start backward serch for the comment block
|
let doc_line = i
|
||||||
|
while doc_line != sccontent_len - 1
|
||||||
|
if a:sccontent[doc_line] =~? '^\s*\*/'
|
||||||
|
let l = doc_line
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
let doc_line += 1
|
||||||
|
endwhile
|
||||||
|
else
|
||||||
|
let l = i - 1
|
||||||
|
endif
|
||||||
|
" start backward search for the comment block
|
||||||
while l != 0
|
while l != 0
|
||||||
let line = a:sccontent[l]
|
let line = a:sccontent[l]
|
||||||
" if it's a one line docblock like comment and we can just return it right away
|
" if it's a one line docblock like comment and we can just return it right away
|
||||||
@ -2263,7 +2317,7 @@ function! phpcomplete#GetDocBlock(sccontent, search) " {{{
|
|||||||
return ''
|
return ''
|
||||||
end
|
end
|
||||||
|
|
||||||
while l != 0
|
while l >= 0
|
||||||
let line = a:sccontent[l]
|
let line = a:sccontent[l]
|
||||||
if line =~? '^\s*/\*\*'
|
if line =~? '^\s*/\*\*'
|
||||||
let comment_start = l
|
let comment_start = l
|
||||||
@ -2297,9 +2351,10 @@ function! phpcomplete#ParseDocBlock(docblock) " {{{
|
|||||||
\ 'return': {},
|
\ 'return': {},
|
||||||
\ 'throws': [],
|
\ 'throws': [],
|
||||||
\ 'var': {},
|
\ 'var': {},
|
||||||
|
\ 'properties': [],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
let res.description = substitute(matchstr(a:docblock, '\zs\_.\{-}\ze\(@var\|@param\|@return\|$\)'), '\(^\_s*\|\_s*$\)', '', 'g')
|
let res.description = substitute(matchstr(a:docblock, '\zs\_.\{-}\ze\(@type\|@var\|@param\|@return\|$\)'), '\(^\_s*\|\_s*$\)', '', 'g')
|
||||||
let docblock_lines = split(a:docblock, "\n")
|
let docblock_lines = split(a:docblock, "\n")
|
||||||
|
|
||||||
let param_lines = filter(copy(docblock_lines), 'v:val =~? "^@param"')
|
let param_lines = filter(copy(docblock_lines), 'v:val =~? "^@param"')
|
||||||
@ -2334,15 +2389,26 @@ function! phpcomplete#ParseDocBlock(docblock) " {{{
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
let var_line = filter(copy(docblock_lines), 'v:val =~? "^@var"')
|
let var_line = filter(copy(docblock_lines), 'v:val =~? "^\\(@var\\|@type\\)"')
|
||||||
if len(var_line) > 0
|
if len(var_line) > 0
|
||||||
let var_parts = matchlist(var_line[0], '@var\s\+\(\S\+\)\s*\(.*\)')
|
let var_parts = matchlist(var_line[0], '\(@var\|@type\)\s\+\(\S\+\)\s*\(.*\)')
|
||||||
let res['var'] = {
|
let res['var'] = {
|
||||||
\ 'line': var_parts[0],
|
\ 'line': var_parts[0],
|
||||||
\ 'type': phpcomplete#GetTypeFromDocBlockParam(get(var_parts, 1, '')),
|
\ 'type': phpcomplete#GetTypeFromDocBlockParam(get(var_parts, 2, '')),
|
||||||
\ 'description': get(var_parts, 2, '')}
|
\ 'description': get(var_parts, 3, '')}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let property_lines = filter(copy(docblock_lines), 'v:val =~? "^@property"')
|
||||||
|
for property_line in property_lines
|
||||||
|
let parts = matchlist(property_line, '\(@property\)\s\+\(\S\+\)\s*\(.*\)')
|
||||||
|
if len(parts) > 0
|
||||||
|
call add(res.properties, {
|
||||||
|
\ 'line': parts[0],
|
||||||
|
\ 'type': phpcomplete#GetTypeFromDocBlockParam(get(parts, 2, '')),
|
||||||
|
\ 'description': get(parts, 3, '')})
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
return res
|
return res
|
||||||
endfunction
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
@ -2498,6 +2564,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
|||||||
let name = matchstr(name, '\\\zs[^\\]\+\ze$')
|
let name = matchstr(name, '\\\zs[^\\]\+\ze$')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" leading slash is not required use imports are always absolute
|
" leading slash is not required use imports are always absolute
|
||||||
let imports[name] = {'name': object, 'kind': ''}
|
let imports[name] = {'name': object, 'kind': ''}
|
||||||
endfor
|
endfor
|
||||||
@ -2533,6 +2600,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
|||||||
elseif !exists('no_namespace_candidate')
|
elseif !exists('no_namespace_candidate')
|
||||||
" save the first namespacless match to be used if no better
|
" save the first namespacless match to be used if no better
|
||||||
" candidate found later on
|
" candidate found later on
|
||||||
|
let tag.namespace = namespace_for_classes
|
||||||
let no_namespace_candidate = tag
|
let no_namespace_candidate = tag
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -93,7 +93,7 @@ function! s:GetBufferRubyEntity( name, type, ... )
|
|||||||
|
|
||||||
let stopline = 1
|
let stopline = 1
|
||||||
|
|
||||||
let crex = '^\s*\<' . a:type . '\>\s*\<' . a:name . '\>\s*\(<\s*.*\s*\)\?'
|
let crex = '^\s*\<' . a:type . '\>\s*\<' . escape(a:name, '*') . '\>\s*\(<\s*.*\s*\)\?'
|
||||||
let [lnum,lcol] = searchpos( crex, 'w' )
|
let [lnum,lcol] = searchpos( crex, 'w' )
|
||||||
"let [lnum,lcol] = searchpairpos( crex . '\zs', '', '\(end\|}\)', 'w' )
|
"let [lnum,lcol] = searchpairpos( crex . '\zs', '', '\(end\|}\)', 'w' )
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ function! s:GetRubyVarType(v)
|
|||||||
let ctors = ctors.'\)'
|
let ctors = ctors.'\)'
|
||||||
|
|
||||||
let fstr = '=\s*\([^ \t]\+.' . ctors .'\>\|[\[{"''/]\|%[xwQqr][(\[{@]\|[A-Za-z0-9@:\-()\.]\+...\?\|lambda\|&\)'
|
let fstr = '=\s*\([^ \t]\+.' . ctors .'\>\|[\[{"''/]\|%[xwQqr][(\[{@]\|[A-Za-z0-9@:\-()\.]\+...\?\|lambda\|&\)'
|
||||||
let sstr = ''.a:v.'\>\s*[+\-*/]*'.fstr
|
let sstr = ''.escape(a:v, '*').'\>\s*[+\-*/]*'.fstr
|
||||||
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
|
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
|
||||||
if lnum != 0 && lcol != 0
|
if lnum != 0 && lcol != 0
|
||||||
let str = matchstr(getline(lnum),fstr,lcol)
|
let str = matchstr(getline(lnum),fstr,lcol)
|
||||||
@ -196,7 +196,7 @@ function! rubycomplete#Complete(findstart, base)
|
|||||||
if c =~ '\w'
|
if c =~ '\w'
|
||||||
continue
|
continue
|
||||||
elseif ! c =~ '\.'
|
elseif ! c =~ '\.'
|
||||||
idx = -1
|
let idx = -1
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
@ -266,6 +266,28 @@ class VimRubyCompletion
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def load_gems
|
||||||
|
fpath = VIM::evaluate("get(g:, 'rubycomplete_gemfile_path', 'Gemfile')")
|
||||||
|
return unless File.file?(fpath) && File.readable?(fpath)
|
||||||
|
want_bundler = VIM::evaluate("get(g:, 'rubycomplete_use_bundler')")
|
||||||
|
parse_file = !want_bundler
|
||||||
|
begin
|
||||||
|
require 'bundler'
|
||||||
|
Bundler.setup
|
||||||
|
Bundler.require
|
||||||
|
rescue Exception
|
||||||
|
parse_file = true
|
||||||
|
end
|
||||||
|
if parse_file
|
||||||
|
File.new(fpath).each_line do |line|
|
||||||
|
begin
|
||||||
|
require $1 if /\s*gem\s*['"]([^'"]+)/.match(line)
|
||||||
|
rescue Exception
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def load_buffer_class(name)
|
def load_buffer_class(name)
|
||||||
dprint "load_buffer_class(%s) START" % name
|
dprint "load_buffer_class(%s) START" % name
|
||||||
classdef = get_buffer_entity(name, 's:GetBufferRubyClass("%s")')
|
classdef = get_buffer_entity(name, 's:GetBufferRubyClass("%s")')
|
||||||
@ -588,6 +610,10 @@ class VimRubyCompletion
|
|||||||
load_rails
|
load_rails
|
||||||
end
|
end
|
||||||
|
|
||||||
|
want_gems = VIM::evaluate("get(g:, 'rubycomplete_load_gemfile')")
|
||||||
|
load_gems unless want_gems.to_i.zero?
|
||||||
|
|
||||||
|
|
||||||
input = VIM::Buffer.current.line
|
input = VIM::Buffer.current.line
|
||||||
cpos = VIM::Window.current.cursor[1] - 1
|
cpos = VIM::Window.current.cursor[1] - 1
|
||||||
input = input[0..cpos]
|
input = input[0..cpos]
|
||||||
@ -678,7 +704,9 @@ class VimRubyCompletion
|
|||||||
cv = eval("self.class.constants")
|
cv = eval("self.class.constants")
|
||||||
vartype = get_var_type( receiver )
|
vartype = get_var_type( receiver )
|
||||||
dprint "vartype: %s" % vartype
|
dprint "vartype: %s" % vartype
|
||||||
if vartype != ''
|
|
||||||
|
invalid_vartype = ['', "gets"]
|
||||||
|
if !invalid_vartype.include?(vartype)
|
||||||
load_buffer_class( vartype )
|
load_buffer_class( vartype )
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -706,7 +734,7 @@ class VimRubyCompletion
|
|||||||
methods.concat m.instance_methods(false)
|
methods.concat m.instance_methods(false)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
variables += add_rails_columns( "#{vartype}" ) if vartype && vartype.length > 0
|
variables += add_rails_columns( "#{vartype}" ) if vartype && !invalid_vartype.include?(vartype)
|
||||||
|
|
||||||
when /^\(?\s*[A-Za-z0-9:^@.%\/+*\(\)]+\.\.\.?[A-Za-z0-9:^@.%\/+*\(\)]+\s*\)?\.([^.]*)/
|
when /^\(?\s*[A-Za-z0-9:^@.%\/+*\(\)]+\.\.\.?[A-Za-z0-9:^@.%\/+*\(\)]+\s*\)?\.([^.]*)/
|
||||||
message = $1
|
message = $1
|
||||||
|
@ -117,7 +117,7 @@ fun! tar#Browse(tarfile)
|
|||||||
if !filereadable(a:tarfile)
|
if !filereadable(a:tarfile)
|
||||||
" call Decho('a:tarfile<'.a:tarfile.'> not filereadable')
|
" call Decho('a:tarfile<'.a:tarfile.'> not filereadable')
|
||||||
if a:tarfile !~# '^\a\+://'
|
if a:tarfile !~# '^\a\+://'
|
||||||
" if its an url, don't complain, let url-handlers such as vim do its thing
|
" if it's an url, don't complain, let url-handlers such as vim do its thing
|
||||||
redraw!
|
redraw!
|
||||||
echohl Error | echo "***error*** (tar#Browse) File not readable<".a:tarfile.">" | echohl None
|
echohl Error | echo "***error*** (tar#Browse) File not readable<".a:tarfile.">" | echohl None
|
||||||
endif
|
endif
|
||||||
|
@ -347,7 +347,7 @@ fun! vimball#Vimball(really,...)
|
|||||||
" call Decho("exe tabn ".curtabnr)
|
" call Decho("exe tabn ".curtabnr)
|
||||||
exe "tabn ".curtabnr
|
exe "tabn ".curtabnr
|
||||||
|
|
||||||
" set up help if its a doc/*.txt file
|
" set up help if it's a doc/*.txt file
|
||||||
" call Decho("didhelp<".didhelp."> fname<".fname.">")
|
" call Decho("didhelp<".didhelp."> fname<".fname.">")
|
||||||
if a:really && didhelp == "" && fname =~ 'doc/[^/]\+\.\(txt\|..x\)$'
|
if a:really && didhelp == "" && fname =~ 'doc/[^/]\+\.\(txt\|..x\)$'
|
||||||
let didhelp= substitute(fname,'^\(.*\<doc\)[/\\][^.]*\.\(txt\|..x\)$','\1','')
|
let didhelp= substitute(fname,'^\(.*\<doc\)[/\\][^.]*\.\(txt\|..x\)$','\1','')
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" zip.vim: Handles browsing zipfiles
|
" zip.vim: Handles browsing zipfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Jul 02, 2013
|
" Date: Sep 13, 2016
|
||||||
" Version: 27
|
" Version: 28
|
||||||
" Maintainer: Charles E Campbell <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-2013 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2005-2013 Charles E. Campbell {{{1
|
||||||
@ -20,10 +20,10 @@
|
|||||||
if &cp || exists("g:loaded_zip")
|
if &cp || exists("g:loaded_zip")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_zip= "v27"
|
let g:loaded_zip= "v28"
|
||||||
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 or later"
|
||||||
echohl Normal
|
echohl Normal
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
@ -53,6 +53,9 @@ endif
|
|||||||
if !exists("g:zip_unzipcmd")
|
if !exists("g:zip_unzipcmd")
|
||||||
let g:zip_unzipcmd= "unzip"
|
let g:zip_unzipcmd= "unzip"
|
||||||
endif
|
endif
|
||||||
|
if !exists("g:zip_extractcmd")
|
||||||
|
let g:zip_extractcmd= g:zip_unzipcmd
|
||||||
|
endif
|
||||||
|
|
||||||
" ----------------
|
" ----------------
|
||||||
" Functions: {{{1
|
" Functions: {{{1
|
||||||
@ -62,14 +65,14 @@ 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
|
" sanity check: ensure that the zipfile has "PK" as its first two letters
|
||||||
" (zipped files have a leading PK as a "magic cookie")
|
" (zipped files have a leading PK as a "magic cookie")
|
||||||
if !filereadable(a:zipfile) || readfile(a:zipfile, "", 1)[0] !~ '^PK'
|
if !filereadable(a:zipfile) || readfile(a:zipfile, "", 1)[0] !~ '^PK'
|
||||||
exe "noautocmd e ".fnameescape(a:zipfile)
|
exe "noautocmd e ".fnameescape(a:zipfile)
|
||||||
" call Dret("zip#Browse : not a zipfile<".a:zipfile.">")
|
" call Dret("zip#Browse : not a zipfile<".a:zipfile.">")
|
||||||
return
|
return
|
||||||
" else " Decho
|
" else " Decho
|
||||||
" call Decho("zip#Browse: a:zipfile<".a:zipfile."> passed PK test - its a zip file")
|
" call Decho("zip#Browse: a:zipfile<".a:zipfile."> passed PK test - it's a zip file")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let repkeep= &report
|
let repkeep= &report
|
||||||
@ -92,7 +95,7 @@ fun! zip#Browse(zipfile)
|
|||||||
endif
|
endif
|
||||||
if !filereadable(a:zipfile)
|
if !filereadable(a:zipfile)
|
||||||
if a:zipfile !~# '^\a\+://'
|
if a:zipfile !~# '^\a\+://'
|
||||||
" if its an url, don't complain, let url-handlers such as vim do its thing
|
" if it's an url, don't complain, let url-handlers such as vim do its thing
|
||||||
redraw!
|
redraw!
|
||||||
echohl Error | echo "***error*** (zip#Browse) File not readable<".a:zipfile.">" | echohl None
|
echohl Error | echo "***error*** (zip#Browse) File not readable<".a:zipfile.">" | echohl None
|
||||||
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
||||||
@ -136,8 +139,10 @@ fun! zip#Browse(zipfile)
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Maps associated with zip plugin
|
||||||
setlocal noma nomod ro
|
setlocal noma nomod ro
|
||||||
noremap <silent> <buffer> <cr> :call <SID>ZipBrowseSelect()<cr>
|
noremap <silent> <buffer> <cr> :call <SID>ZipBrowseSelect()<cr>
|
||||||
|
noremap <silent> <buffer> x :call zip#Extract()<cr>
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
" call Dret("zip#Browse")
|
" call Dret("zip#Browse")
|
||||||
@ -204,6 +209,15 @@ fun! zip#Read(fname,mode)
|
|||||||
endif
|
endif
|
||||||
" call Decho("zipfile<".zipfile.">")
|
" call Decho("zipfile<".zipfile.">")
|
||||||
" call Decho("fname <".fname.">")
|
" call Decho("fname <".fname.">")
|
||||||
|
" sanity check
|
||||||
|
if !executable(substitute(g:zip_unzipcmd,'\s\+.*$','',''))
|
||||||
|
redraw!
|
||||||
|
echohl Error | echo "***error*** (zip#Read) sorry, your system doesn't appear to have the ".g:zip_unzipcmd." program" | echohl None
|
||||||
|
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
||||||
|
let &report= repkeep
|
||||||
|
" call Dret("zip#Write")
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
" the following code does much the same thing as
|
" 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)
|
||||||
@ -236,9 +250,9 @@ fun! zip#Write(fname)
|
|||||||
set report=10
|
set report=10
|
||||||
|
|
||||||
" sanity checks
|
" sanity checks
|
||||||
if !executable(g:zip_zipcmd)
|
if !executable(substitute(g:zip_zipcmd,'\s\+.*$','',''))
|
||||||
redraw!
|
redraw!
|
||||||
echohl Error | echo "***error*** (zip#Write) sorry, your system doesn't appear to have the zip pgm" | echohl None
|
echohl Error | echo "***error*** (zip#Write) sorry, your system doesn't appear to have the ".g:zip_zipcmd." program" | echohl None
|
||||||
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
" call Dret("zip#Write")
|
" call Dret("zip#Write")
|
||||||
@ -344,6 +358,48 @@ fun! zip#Write(fname)
|
|||||||
" call Dret("zip#Write")
|
" call Dret("zip#Write")
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" zip#Extract: extract a file from a zip archive {{{2
|
||||||
|
fun! zip#Extract()
|
||||||
|
" call Dfunc("zip#Extract()")
|
||||||
|
|
||||||
|
let repkeep= &report
|
||||||
|
set report=10
|
||||||
|
let fname= getline(".")
|
||||||
|
" call Decho("fname<".fname.">")
|
||||||
|
|
||||||
|
" sanity check
|
||||||
|
if fname =~ '^"'
|
||||||
|
let &report= repkeep
|
||||||
|
" call Dret("zip#Extract")
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if fname =~ '/$'
|
||||||
|
redraw!
|
||||||
|
echohl Error | echo "***error*** (zip#Extract) Please specify a file, not a directory" | echohl None
|
||||||
|
let &report= repkeep
|
||||||
|
" call Dret("zip#Extract")
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
" extract the file mentioned under the cursor
|
||||||
|
" call Decho("system(".g:zip_extractcmd." ".shellescape(b:zipfile)." ".shellescape(shell).")")
|
||||||
|
call system(g:zip_extractcmd." ".shellescape(b:zipfile)." ".shellescape(shell))
|
||||||
|
" call Decho("zipfile<".b:zipfile.">")
|
||||||
|
if v:shell_error != 0
|
||||||
|
echohl Error | echo "***error*** ".g:zip_extractcmd." ".b:zipfile." ".fname.": failed!" | echohl NONE
|
||||||
|
elseif !filereadable(fname)
|
||||||
|
echohl Error | echo "***error*** attempted to extract ".fname." but it doesn't appear to be present!"
|
||||||
|
else
|
||||||
|
echo "***note*** successfully extracted ".fname
|
||||||
|
endif
|
||||||
|
|
||||||
|
" restore option
|
||||||
|
let &report= repkeep
|
||||||
|
|
||||||
|
" call Dret("zip#Extract")
|
||||||
|
endfun
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" s:Escape: {{{2
|
" s:Escape: {{{2
|
||||||
fun! s:Escape(fname,isfilt)
|
fun! s:Escape(fname,isfilt)
|
||||||
|
@ -41,9 +41,16 @@ this autocmd might be useful:
|
|||||||
autocmd SourcePre */colors/blue_sky.vim set background=dark
|
autocmd SourcePre */colors/blue_sky.vim set background=dark
|
||||||
Replace "blue_sky" with the name of the colorscheme.
|
Replace "blue_sky" with the name of the colorscheme.
|
||||||
|
|
||||||
In case you want to tweak a colorscheme after it was loaded, check out that
|
In case you want to tweak a colorscheme after it was loaded, check out the
|
||||||
ColorScheme autocmd event.
|
ColorScheme autocmd event.
|
||||||
|
|
||||||
|
To customize a colorscheme use another name, e.g. "~/.vim/colors/mine.vim",
|
||||||
|
and use `:runtime` to load the original colorscheme:
|
||||||
|
" load the "evening" colorscheme
|
||||||
|
runtime colors/evening.vim
|
||||||
|
" change the color of statements
|
||||||
|
hi Statement ctermfg=Blue guifg=Blue
|
||||||
|
|
||||||
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,6 +1,6 @@
|
|||||||
" Vim color file
|
" Vim color file
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2006 Apr 14
|
" Last Change: 2016 Oct 10
|
||||||
|
|
||||||
" This color scheme uses a dark grey background.
|
" This color scheme uses a dark grey background.
|
||||||
|
|
||||||
@ -46,8 +46,8 @@ hi CursorColumn term=reverse ctermbg=Black guibg=grey40
|
|||||||
hi CursorLine term=underline cterm=underline guibg=grey40
|
hi CursorLine term=underline cterm=underline guibg=grey40
|
||||||
|
|
||||||
" Groups for syntax highlighting
|
" Groups for syntax highlighting
|
||||||
hi Constant term=underline ctermfg=Magenta guifg=#ffa0a0 guibg=grey5
|
hi Constant term=underline ctermfg=Magenta guifg=#ffa0a0
|
||||||
hi Special term=bold ctermfg=LightRed guifg=Orange guibg=grey5
|
hi Special term=bold ctermfg=LightRed guifg=Orange
|
||||||
if &t_Co > 8
|
if &t_Co > 8
|
||||||
hi Statement term=bold cterm=bold ctermfg=Yellow guifg=#ffff60 gui=bold
|
hi Statement term=bold cterm=bold ctermfg=Yellow guifg=#ffff60 gui=bold
|
||||||
endif
|
endif
|
||||||
|
@ -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: 2013 May 23
|
" Last Change: 2016 Sep 04
|
||||||
|
|
||||||
hi clear
|
hi clear
|
||||||
set background=dark
|
set background=dark
|
||||||
@ -45,6 +45,7 @@ hi TabLineFill term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white g
|
|||||||
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 Underlined term=underline cterm=bold,underline ctermfg=lightblue guifg=lightblue gui=bold,underline
|
||||||
hi Ignore ctermfg=black ctermbg=black guifg=black guibg=black
|
hi Ignore ctermfg=black ctermbg=black guifg=black guibg=black
|
||||||
|
hi EndOfBuffer term=bold cterm=bold ctermfg=darkred guifg=#cc0000 gui=bold
|
||||||
hi link IncSearch Visual
|
hi link IncSearch Visual
|
||||||
hi link String Constant
|
hi link String Constant
|
||||||
hi link Character Constant
|
hi link Character Constant
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: BDF to PCF Conversion
|
" Compiler: BDF to PCF Conversion
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2006-04-19
|
" Latest Revision: 2006-04-19
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
54
runtime/compiler/context.vim
Normal file
54
runtime/compiler/context.vim
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: ConTeXt typesetting engine
|
||||||
|
" Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
|
||||||
|
" Last Change: 2016 Oct 21
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
" If makefile exists and we are not asked to ignore it, we use standard make
|
||||||
|
" (do not redefine makeprg)
|
||||||
|
if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) ||
|
||||||
|
\ (!filereadable('Makefile') && !filereadable('makefile'))
|
||||||
|
let current_compiler = 'context'
|
||||||
|
" The following assumes that the current working directory is set to the
|
||||||
|
" directory of the file to be typeset
|
||||||
|
let &l:makeprg = get(b:, 'context_mtxrun', get(g:, 'context_mtxrun', 'mtxrun'))
|
||||||
|
\ . ' --script context --autogenerate --nonstopmode --synctex='
|
||||||
|
\ . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0')
|
||||||
|
\ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', ''))
|
||||||
|
\ . ' ' . shellescape(expand('%:p:t'))
|
||||||
|
else
|
||||||
|
let current_compiler = 'make'
|
||||||
|
endif
|
||||||
|
|
||||||
|
let b:context_errorformat = ''
|
||||||
|
\ . '%-Popen source%.%#> %f,'
|
||||||
|
\ . '%-Qclose source%.%#> %f,'
|
||||||
|
\ . "%-Popen source%.%#name '%f',"
|
||||||
|
\ . "%-Qclose source%.%#name '%f',"
|
||||||
|
\ . '%Etex %trror%.%#mp error on line %l in file %f:%.%#,'
|
||||||
|
\ . 'tex %trror%.%#error on line %l in file %f: %m,'
|
||||||
|
\ . '%Elua %trror%.%#error on line %l in file %f:,'
|
||||||
|
\ . '%+Emetapost %#> error: %#,'
|
||||||
|
\ . '! error: %#%m,'
|
||||||
|
\ . '%-C %#,'
|
||||||
|
\ . '%C! %m,'
|
||||||
|
\ . '%Z[ctxlua]%m,'
|
||||||
|
\ . '%+C<*> %.%#,'
|
||||||
|
\ . '%-C%.%#,'
|
||||||
|
\ . '%Z...%m,'
|
||||||
|
\ . '%-Zno-error,'
|
||||||
|
\ . '%-G%.%#' " Skip remaining lines
|
||||||
|
|
||||||
|
execute 'CompilerSet errorformat=' . escape(b:context_errorformat, ' ')
|
||||||
|
|
||||||
|
let &cpo = s:keepcpo
|
||||||
|
unlet s:keepcpo
|
16
runtime/compiler/csslint.vim
Normal file
16
runtime/compiler/csslint.vim
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: csslint for CSS
|
||||||
|
" Maintainer: Daniel Moch <daniel@danielmoch.com>
|
||||||
|
" Last Change: 2016 May 21
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "csslint"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=csslint\ --format=compact
|
||||||
|
CompilerSet errorformat=%-G,%-G%f:\ lint\ free!,%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %m
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Cucumber
|
" Compiler: Cucumber
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2010 Aug 09
|
" Last Change: 2016 Aug 29
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -19,7 +19,7 @@ CompilerSet makeprg=cucumber
|
|||||||
|
|
||||||
CompilerSet errorformat=
|
CompilerSet errorformat=
|
||||||
\%W%m\ (Cucumber::Undefined),
|
\%W%m\ (Cucumber::Undefined),
|
||||||
\%E%m\ (%.%#),
|
\%E%m\ (%\\S%#),
|
||||||
\%Z%f:%l,
|
\%Z%f:%l,
|
||||||
\%Z%f:%l:%.%#
|
\%Z%f:%l:%.%#
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: GNU C Compiler
|
" Compiler: GNU C Compiler
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2010-10-14
|
" Latest Revision: 2010-10-14
|
||||||
" added line suggested by Anton Lindqvist 2016 Mar 31
|
" added line suggested by Anton Lindqvist 2016 Mar 31
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
26
runtime/compiler/ghc.vim
Normal file
26
runtime/compiler/ghc.vim
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: GHC Haskell Compiler
|
||||||
|
" Maintainer: Daniel Campoverde <alx@sillybytes.net>
|
||||||
|
" Latest Revision: 2016-11-29
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "ghc"
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%-G%.%#:\ build,
|
||||||
|
\%-G%.%#preprocessing\ library\ %.%#,
|
||||||
|
\%-G[%.%#]%.%#,
|
||||||
|
\%E%f:%l:%c:\ %m,
|
||||||
|
\%-G--%.%#
|
||||||
|
|
||||||
|
if exists('g:compiler_ghc_ignore_unmatched_lines')
|
||||||
|
CompilerSet errorformat+=%-G%.%#
|
||||||
|
endif
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Haml
|
" Compiler: Haml
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2013 May 30
|
" Last Change: 2016 Aug 29
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -15,7 +15,7 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=haml\ -c
|
CompilerSet makeprg=haml
|
||||||
|
|
||||||
CompilerSet errorformat=
|
CompilerSet errorformat=
|
||||||
\Haml\ %trror\ on\ line\ %l:\ %m,
|
\Haml\ %trror\ on\ line\ %l:\ %m,
|
||||||
|
16
runtime/compiler/pylint.vim
Normal file
16
runtime/compiler/pylint.vim
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Pylint for Python
|
||||||
|
" Maintainer: Daniel Moch <daniel@danielmoch.com>
|
||||||
|
" Last Change: 2016 May 20
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "pylint"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=pylint\ --output-format=text\ --msg-template=\"{path}:{line}:{column}:{C}:\ [{symbol}]\ {msg}\"\ --reports=no
|
||||||
|
CompilerSet errorformat=%A%f:%l:%c:%t:\ %m,%A%f:%l:\ %m,%A%f:(%l):\ %m,%-Z%p^%.%#,%-G%.%#
|
@ -27,7 +27,11 @@ CompilerSet errorformat=
|
|||||||
\%\\s%#[%f:%l:\ %#%m,
|
\%\\s%#[%f:%l:\ %#%m,
|
||||||
\%\\s%#%f:%l:\ %#%m,
|
\%\\s%#%f:%l:\ %#%m,
|
||||||
\%\\s%#%f:%l:,
|
\%\\s%#%f:%l:,
|
||||||
\%m\ [%f:%l]:
|
\%m\ [%f:%l]:,
|
||||||
|
\%+Erake\ aborted!,
|
||||||
|
\%+EDon't\ know\ how\ to\ build\ task\ %.%#,
|
||||||
|
\%+Einvalid\ option:%.%#,
|
||||||
|
\%+Irake\ %\\S%\\+%\\s%\\+#\ %.%#
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
@ -22,9 +22,10 @@ CompilerSet errorformat=
|
|||||||
\%f:%l:\ %tarning:\ %m,
|
\%f:%l:\ %tarning:\ %m,
|
||||||
\%E%.%#:in\ `load':\ %f:%l:%m,
|
\%E%.%#:in\ `load':\ %f:%l:%m,
|
||||||
\%E%f:%l:in\ `%*[^']':\ %m,
|
\%E%f:%l:in\ `%*[^']':\ %m,
|
||||||
\%-Z\ \ \ \ \ \#\ %f:%l:%.%#,
|
\%-Z\ \ \ \ \ %\\+\#\ %f:%l:%.%#,
|
||||||
\%E\ \ %\\d%\\+)%.%#,
|
\%E\ \ %\\d%\\+)%.%#,
|
||||||
\%C\ \ \ \ \ %m,
|
\%C\ \ \ \ \ %m,
|
||||||
|
\%C%\\s%#,
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: reStructuredText Documentation Format
|
" Compiler: reStructuredText Documentation Format
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2006-04-19
|
" Latest Revision: 2006-04-19
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
@ -17,6 +17,8 @@ let s:cpo_save = &cpo
|
|||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=testrb
|
CompilerSet makeprg=testrb
|
||||||
|
" CompilerSet makeprg=ruby\ -Itest
|
||||||
|
" CompilerSet makeprg=m
|
||||||
|
|
||||||
CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
|
CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
|
||||||
\%C%m\ [%f:%l]:,
|
\%C%m\ [%f:%l]:,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Sass
|
" Compiler: Sass
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2013 May 30
|
" Last Change: 2016 Aug 29
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@ -15,7 +15,7 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=sass\ -c
|
CompilerSet makeprg=sass
|
||||||
|
|
||||||
CompilerSet errorformat=
|
CompilerSet errorformat=
|
||||||
\%f:%l:%m\ (Sass::Syntax%trror),
|
\%f:%l:%m\ (Sass::Syntax%trror),
|
||||||
|
125
runtime/defaults.vim
Normal file
125
runtime/defaults.vim
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
" The default vimrc file.
|
||||||
|
"
|
||||||
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
" Last change: 2016 Sep 02
|
||||||
|
"
|
||||||
|
" This is loaded if no vimrc file was found.
|
||||||
|
" Except when Vim is run with "-u NONE" or "-C".
|
||||||
|
" Individual settings can be reverted with ":set option&".
|
||||||
|
" Other commands can be reverted as mentioned below.
|
||||||
|
|
||||||
|
" When started as "evim", evim.vim will already have done these settings.
|
||||||
|
if v:progname =~? "evim"
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Bail out if something that ran earlier, e.g. a system wide vimrc, does not
|
||||||
|
" want Vim to use these default values.
|
||||||
|
if exists('skip_defaults_vim')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Use Vim settings, rather than Vi settings (much better!).
|
||||||
|
" This must be first, because it changes other options as a side effect.
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
|
" Allow backspacing over everything in insert mode.
|
||||||
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
|
set history=200 " keep 200 lines of command line history
|
||||||
|
set ruler " show the cursor position all the time
|
||||||
|
set showcmd " display incomplete commands
|
||||||
|
set wildmenu " display completion matches in a status line
|
||||||
|
|
||||||
|
set ttimeout " time out for key codes
|
||||||
|
set ttimeoutlen=100 " wait up to 100ms after Esc for special key
|
||||||
|
|
||||||
|
" Show @@@ in the last line if it is truncated.
|
||||||
|
set display=truncate
|
||||||
|
|
||||||
|
" Show a few lines of context around the cursor. Note that this makes the
|
||||||
|
" text scroll if you mouse-click near the start or end of the window.
|
||||||
|
set scrolloff=5
|
||||||
|
|
||||||
|
" Do incremental searching when it's possible to timeout.
|
||||||
|
if has('reltime')
|
||||||
|
set incsearch
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Do not recognize octal numbers for Ctrl-A and Ctrl-X, most users find it
|
||||||
|
" confusing.
|
||||||
|
set nrformats-=octal
|
||||||
|
|
||||||
|
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries.
|
||||||
|
if has('win32')
|
||||||
|
set guioptions-=t
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Don't use Ex mode, use Q for formatting.
|
||||||
|
" Revert with ":unmap Q".
|
||||||
|
map Q gq
|
||||||
|
|
||||||
|
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
|
||||||
|
" so that you can undo CTRL-U after inserting a line break.
|
||||||
|
" Revert with ":iunmap <C-U>".
|
||||||
|
inoremap <C-U> <C-G>u<C-U>
|
||||||
|
|
||||||
|
" In many terminal emulators the mouse works just fine. By enabling it you
|
||||||
|
" can position the cursor, Visually select and scroll with the mouse.
|
||||||
|
if has('mouse')
|
||||||
|
set mouse=a
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Switch syntax highlighting on when the terminal has colors or when using the
|
||||||
|
" GUI (which always has colors).
|
||||||
|
if &t_Co > 2 || has("gui_running")
|
||||||
|
" Revert with ":syntax off".
|
||||||
|
syntax on
|
||||||
|
|
||||||
|
" I like highlighting strings inside C comments.
|
||||||
|
" Revert with ":unlet c_comment_strings".
|
||||||
|
let c_comment_strings=1
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Only do this part when compiled with support for autocommands.
|
||||||
|
if has("autocmd")
|
||||||
|
|
||||||
|
" Enable file type detection.
|
||||||
|
" Use the default filetype settings, so that mail gets 'tw' set to 72,
|
||||||
|
" 'cindent' is on in C files, etc.
|
||||||
|
" Also load indent files, to automatically do language-dependent indenting.
|
||||||
|
" Revert with ":filetype off".
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
" Put these in an autocmd group, so that you can revert them with:
|
||||||
|
" ":augroup vimStartup | au! | augroup END"
|
||||||
|
augroup vimStartup
|
||||||
|
au!
|
||||||
|
|
||||||
|
" When editing a file, always jump to the last known cursor position.
|
||||||
|
" Don't do it when the position is invalid or when inside an event handler
|
||||||
|
" (happens when dropping a file on gvim).
|
||||||
|
autocmd BufReadPost *
|
||||||
|
\ if line("'\"") >= 1 && line("'\"") <= line("$") |
|
||||||
|
\ exe "normal! g`\"" |
|
||||||
|
\ endif
|
||||||
|
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
endif " has("autocmd")
|
||||||
|
|
||||||
|
" Convenient command to see the difference between the current buffer and the
|
||||||
|
" file it was loaded from, thus the changes you made.
|
||||||
|
" Only define it when not defined already.
|
||||||
|
" Revert with: ":delcommand DiffOrig".
|
||||||
|
if !exists(":DiffOrig")
|
||||||
|
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
|
||||||
|
\ | wincmd p | diffthis
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('langmap') && exists('+langremap')
|
||||||
|
" Prevent that the langmap option applies to characters that result from a
|
||||||
|
" mapping. If set (default), this may break plugins (but it's backward
|
||||||
|
" compatible).
|
||||||
|
set nolangremap
|
||||||
|
endif
|
@ -1,4 +1,4 @@
|
|||||||
*arabic.txt* For Vim version 7.4. Last change: 2010 Nov 13
|
*arabic.txt* For Vim version 8.0. 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.4. Last change: 2016 Jun 09
|
*autocmd.txt* For Vim version 8.0. Last change: 2017 Jan 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -33,7 +33,7 @@ files matching *.c. You can also use autocommands to implement advanced
|
|||||||
features, such as editing compressed files (see |gzip-example|). The usual
|
features, such as editing compressed files (see |gzip-example|). The usual
|
||||||
place to put autocommands is in your .vimrc or .exrc file.
|
place to put autocommands is in your .vimrc or .exrc file.
|
||||||
|
|
||||||
*E203* *E204* *E143* *E855*
|
*E203* *E204* *E143* *E855* *E937*
|
||||||
WARNING: Using autocommands is very powerful, and may lead to unexpected side
|
WARNING: Using autocommands is very powerful, and may lead to unexpected side
|
||||||
effects. Be careful not to destroy your text.
|
effects. Be careful not to destroy your text.
|
||||||
- It's a good idea to do some testing on an expendable copy of a file first.
|
- It's a good idea to do some testing on an expendable copy of a file first.
|
||||||
@ -52,9 +52,6 @@ effects. Be careful not to destroy your text.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
2. Defining autocommands *autocmd-define*
|
2. Defining autocommands *autocmd-define*
|
||||||
|
|
||||||
Note: The ":autocmd" command cannot be followed by another command, since any
|
|
||||||
'|' is considered part of the command.
|
|
||||||
|
|
||||||
*:au* *:autocmd*
|
*:au* *:autocmd*
|
||||||
:au[tocmd] [group] {event} {pat} [nested] {cmd}
|
:au[tocmd] [group] {event} {pat} [nested] {cmd}
|
||||||
Add {cmd} to the list of commands that Vim will
|
Add {cmd} to the list of commands that Vim will
|
||||||
@ -67,6 +64,12 @@ Note: The ":autocmd" command cannot be followed by another command, since any
|
|||||||
The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand.
|
The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand.
|
||||||
See |autocmd-buflocal|.
|
See |autocmd-buflocal|.
|
||||||
|
|
||||||
|
Note: The ":autocmd" command can only be followed by another command when the
|
||||||
|
'|' appears before {cmd}. This works: >
|
||||||
|
:augroup mine | au! BufRead | augroup END
|
||||||
|
But this sees "augroup" as part of the defined command: >
|
||||||
|
:augroup mine | au BufRead * set tw=70 | augroup END
|
||||||
|
|
||||||
Note that special characters (e.g., "%", "<cword>") in the ":autocmd"
|
Note that special characters (e.g., "%", "<cword>") in the ":autocmd"
|
||||||
arguments are not expanded when the autocommand is defined. These will be
|
arguments are not expanded when the autocommand is defined. These will be
|
||||||
expanded when the Event is recognized, and the {cmd} is executed. The only
|
expanded when the Event is recognized, and the {cmd} is executed. The only
|
||||||
@ -76,11 +79,15 @@ exception is that "<sfile>" is expanded when the autocmd is defined. Example:
|
|||||||
|
|
||||||
Here Vim expands <sfile> to the name of the file containing this line.
|
Here Vim expands <sfile> to the name of the file containing this line.
|
||||||
|
|
||||||
When your .vimrc file is sourced twice, the autocommands will appear twice.
|
`:autocmd` adds to the list of autocommands regardless of whether they are
|
||||||
To avoid this, put this command in your .vimrc file, before defining
|
already present. When your .vimrc file is sourced twice, the autocommands
|
||||||
autocommands: >
|
will appear twice. To avoid this, define your autocommands in a group, so
|
||||||
|
that you can easily clear them: >
|
||||||
|
|
||||||
:autocmd! " Remove ALL autocommands for the current group.
|
augroup vimrc
|
||||||
|
autocmd! " Remove all vimrc autocommands
|
||||||
|
au BufNewFile,BufRead *.html so <sfile>:h/html.vim
|
||||||
|
augroup END
|
||||||
|
|
||||||
If you don't want to remove all autocommands, you can instead use a variable
|
If you don't want to remove all autocommands, you can instead use a variable
|
||||||
to ensure that Vim includes the autocommands only once: >
|
to ensure that Vim includes the autocommands only once: >
|
||||||
@ -127,8 +134,13 @@ prompt. When one command outputs two messages this can happen anyway.
|
|||||||
|
|
||||||
:au[tocmd]! [group] {event}
|
:au[tocmd]! [group] {event}
|
||||||
Remove ALL autocommands for {event}.
|
Remove ALL autocommands for {event}.
|
||||||
|
Warning: You should not do this without a group for
|
||||||
|
|BufRead| and other common events, it can break
|
||||||
|
plugins, syntax highlighting, etc.
|
||||||
|
|
||||||
:au[tocmd]! [group] Remove ALL autocommands.
|
:au[tocmd]! [group] Remove ALL autocommands.
|
||||||
|
Warning: You should normally not do this without a
|
||||||
|
group, it breaks plugins, syntax highlighting, etc.
|
||||||
|
|
||||||
When the [group] argument is not given, Vim uses the current group (as defined
|
When the [group] argument is not given, Vim uses the current group (as defined
|
||||||
with ":augroup"); otherwise, Vim uses the group defined with [group].
|
with ":augroup"); otherwise, Vim uses the group defined with [group].
|
||||||
@ -293,6 +305,9 @@ Name triggered by ~
|
|||||||
|CursorMoved| the cursor was moved in Normal mode
|
|CursorMoved| the cursor was moved in Normal mode
|
||||||
|CursorMovedI| the cursor was moved in Insert mode
|
|CursorMovedI| the cursor was moved in Insert mode
|
||||||
|
|
||||||
|
|WinNew| after creating a new window
|
||||||
|
|TabNew| after creating a new tab page
|
||||||
|
|TabClosed| after closing a tab page
|
||||||
|WinEnter| after entering another window
|
|WinEnter| after entering another window
|
||||||
|WinLeave| before leaving a window
|
|WinLeave| before leaving a window
|
||||||
|TabEnter| after entering another tab page
|
|TabEnter| after entering another tab page
|
||||||
@ -413,8 +428,8 @@ BufUnload Before unloading a buffer. This is when the
|
|||||||
NOTE: When this autocommand is executed, the
|
NOTE: When this autocommand is executed, the
|
||||||
current buffer "%" may be different from the
|
current buffer "%" may be different from the
|
||||||
buffer being unloaded "<afile>".
|
buffer being unloaded "<afile>".
|
||||||
Don't change to another buffer, it will cause
|
Don't change to another buffer or window, it
|
||||||
problems.
|
will cause problems!
|
||||||
When exiting and v:dying is 2 or more this
|
When exiting and v:dying is 2 or more this
|
||||||
event is not triggered.
|
event is not triggered.
|
||||||
*BufWinEnter*
|
*BufWinEnter*
|
||||||
@ -778,7 +793,9 @@ QuickFixCmdPre Before a quickfix command is run (|:make|,
|
|||||||
|:vimgrepadd|, |:lvimgrepadd|, |:cscope|,
|
|:vimgrepadd|, |:lvimgrepadd|, |:cscope|,
|
||||||
|:cfile|, |:cgetfile|, |:caddfile|, |:lfile|,
|
|:cfile|, |:cgetfile|, |:caddfile|, |:lfile|,
|
||||||
|:lgetfile|, |:laddfile|, |:helpgrep|,
|
|:lgetfile|, |:laddfile|, |:helpgrep|,
|
||||||
|:lhelpgrep|).
|
|:lhelpgrep|, |:cexpr|, |:cgetexpr|,
|
||||||
|
|:caddexpr|, |:cbuffer|, |:cgetbuffer|,
|
||||||
|
|:caddbuffer|).
|
||||||
The pattern is matched against the command
|
The pattern is matched against the command
|
||||||
being run. When |:grep| is used but 'grepprg'
|
being run. When |:grep| is used but 'grepprg'
|
||||||
is set to "internal" it still matches "grep".
|
is set to "internal" it still matches "grep".
|
||||||
@ -874,6 +891,8 @@ Syntax When the 'syntax' option has been set. The
|
|||||||
where this option was set, and <amatch> for
|
where this option was set, and <amatch> for
|
||||||
the new value of 'syntax'.
|
the new value of 'syntax'.
|
||||||
See |:syn-on|.
|
See |:syn-on|.
|
||||||
|
*TabClosed*
|
||||||
|
TabClosed After closing a tab page.
|
||||||
*TabEnter*
|
*TabEnter*
|
||||||
TabEnter Just after entering a tab page. |tab-page|
|
TabEnter Just after entering a tab page. |tab-page|
|
||||||
After triggering the WinEnter and before
|
After triggering the WinEnter and before
|
||||||
@ -882,6 +901,10 @@ TabEnter Just after entering a tab page. |tab-page|
|
|||||||
TabLeave Just before leaving a tab page. |tab-page|
|
TabLeave Just before leaving a tab page. |tab-page|
|
||||||
A WinLeave event will have been triggered
|
A WinLeave event will have been triggered
|
||||||
first.
|
first.
|
||||||
|
*TabNew*
|
||||||
|
TabNew When a tab page was created. |tab-page|
|
||||||
|
A WinEnter event will have been triggered
|
||||||
|
first, TabEnter follows.
|
||||||
*TermChanged*
|
*TermChanged*
|
||||||
TermChanged After the value of 'term' has changed. Useful
|
TermChanged After the value of 'term' has changed. Useful
|
||||||
for re-loading the syntax file to update the
|
for re-loading the syntax file to update the
|
||||||
@ -967,6 +990,11 @@ WinLeave Before leaving a window. If the window to be
|
|||||||
WinLeave autocommands (but not for ":new").
|
WinLeave autocommands (but not for ":new").
|
||||||
Not used for ":qa" or ":q" when exiting Vim.
|
Not used for ":qa" or ":q" when exiting Vim.
|
||||||
|
|
||||||
|
*WinNew*
|
||||||
|
WinNew When a new window was created. Not done for
|
||||||
|
the first window, when Vim has just started.
|
||||||
|
Before a WinEnter event.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Patterns *autocmd-patterns* *{pat}*
|
6. Patterns *autocmd-patterns* *{pat}*
|
||||||
|
|
||||||
@ -1048,6 +1076,9 @@ Note that for all systems the '/' character is used for path separator (even
|
|||||||
MS-DOS and OS/2). This was done because the backslash is difficult to use
|
MS-DOS and OS/2). This was done because the backslash is difficult to use
|
||||||
in a pattern and to make the autocommands portable across different systems.
|
in a pattern and to make the autocommands portable across different systems.
|
||||||
|
|
||||||
|
It is possible to use |pattern| items, but they may not work as expected,
|
||||||
|
because of the translation done for the above.
|
||||||
|
|
||||||
*autocmd-changes*
|
*autocmd-changes*
|
||||||
Matching with the pattern is done when an event is triggered. Changing the
|
Matching with the pattern is done when an event is triggered. Changing the
|
||||||
buffer name in one of the autocommands, or even deleting the buffer, does not
|
buffer name in one of the autocommands, or even deleting the buffer, does not
|
||||||
@ -1146,10 +1177,12 @@ name!
|
|||||||
different from existing {event} names, as this
|
different from existing {event} names, as this
|
||||||
most likely will not do what you intended.
|
most likely will not do what you intended.
|
||||||
|
|
||||||
*:augroup-delete* *E367*
|
*:augroup-delete* *E367* *W19* *E936*
|
||||||
:aug[roup]! {name} Delete the autocmd group {name}. Don't use
|
:aug[roup]! {name} Delete the autocmd group {name}. Don't use
|
||||||
this if there is still an autocommand using
|
this if there is still an autocommand using
|
||||||
this group! This is not checked.
|
this group! You will get a warning if doing
|
||||||
|
it anyway. when the group is the current group
|
||||||
|
you will get error E936.
|
||||||
|
|
||||||
To enter autocommands for a specific group, use this method:
|
To enter autocommands for a specific group, use this method:
|
||||||
1. Select the group with ":augroup {name}".
|
1. Select the group with ":augroup {name}".
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*change.txt* For Vim version 7.4. Last change: 2016 Apr 12
|
*change.txt* For Vim version 8.0. Last change: 2017 Feb 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -635,12 +635,14 @@ For other systems the tmpnam() library function is used.
|
|||||||
For the {pattern} see |pattern|.
|
For the {pattern} see |pattern|.
|
||||||
{string} can be a literal string, or something
|
{string} can be a literal string, or something
|
||||||
special; see |sub-replace-special|.
|
special; see |sub-replace-special|.
|
||||||
|
*E939*
|
||||||
When [range] and [count] are omitted, replace in the
|
When [range] and [count] are omitted, replace in the
|
||||||
current line only.
|
current line only. When [count] is given, replace in
|
||||||
When [count] is given, replace in [count] lines,
|
[count] lines, starting with the last line in [range].
|
||||||
starting with the last line in [range]. When [range]
|
When [range] is omitted start in the current line.
|
||||||
is omitted start in the current line.
|
[count] must be a positive number. Also see
|
||||||
Also see |cmdline-ranges|.
|
|cmdline-ranges|.
|
||||||
|
|
||||||
See |:s_flags| for [flags].
|
See |:s_flags| for [flags].
|
||||||
|
|
||||||
:[range]s[ubstitute] [flags] [count]
|
:[range]s[ubstitute] [flags] [count]
|
||||||
@ -684,6 +686,7 @@ g& Synonym for `:%s//~/&` (repeat last substitute with
|
|||||||
*:s_flags*
|
*:s_flags*
|
||||||
The flags that you can use for the substitute commands:
|
The flags that you can use for the substitute commands:
|
||||||
|
|
||||||
|
*:&&*
|
||||||
[&] Must be the first one: Keep the flags from the previous substitute
|
[&] Must be the first one: Keep the flags from the previous substitute
|
||||||
command. Examples: >
|
command. Examples: >
|
||||||
:&&
|
:&&
|
||||||
@ -872,6 +875,7 @@ The numbering of "\1", "\2" etc. is done based on which "\(" comes first in
|
|||||||
the pattern (going left to right). When a parentheses group matches several
|
the pattern (going left to right). When a parentheses group matches several
|
||||||
times, the last one will be used for "\1", "\2", etc. Example: >
|
times, the last one will be used for "\1", "\2", etc. Example: >
|
||||||
:s/\(\(a[a-d] \)*\)/\2/ modifies "aa ab x" to "ab x"
|
:s/\(\(a[a-d] \)*\)/\2/ modifies "aa ab x" to "ab x"
|
||||||
|
The "\2" is for "\(a[a-d] \)". At first it matches "aa ", secondly "ab ".
|
||||||
|
|
||||||
When using parentheses in combination with '|', like in \([ab]\)\|\([cd]\),
|
When using parentheses in combination with '|', like in \([ab]\)\|\([cd]\),
|
||||||
either the first or second pattern in parentheses did not match, so either
|
either the first or second pattern in parentheses did not match, so either
|
||||||
@ -912,8 +916,7 @@ Exceptions:
|
|||||||
Substitute with an expression *sub-replace-expression*
|
Substitute with an expression *sub-replace-expression*
|
||||||
*sub-replace-\=* *s/\=*
|
*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.
|
||||||
the expression cannot use "\=" for the substitute string.
|
|
||||||
|
|
||||||
The special meaning for characters as mentioned at |sub-replace-special| does
|
The special meaning for characters as mentioned at |sub-replace-special| does
|
||||||
not apply except for "<CR>". A <NL> character is used as a line break, you
|
not apply except for "<CR>". A <NL> character is used as a line break, you
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*channel.txt* For Vim version 7.4. Last change: 2016 Jun 02
|
*channel.txt* For Vim version 8.0. Last change: 2016 Dec 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -6,13 +6,9 @@
|
|||||||
|
|
||||||
Inter-process communication *channel*
|
Inter-process communication *channel*
|
||||||
|
|
||||||
DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT
|
|
||||||
|
|
||||||
Vim uses channels to communicate with other processes.
|
Vim uses channels to communicate with other processes.
|
||||||
A channel uses a socket or pipes *socket-interface*
|
A channel uses a socket or pipes. *socket-interface*
|
||||||
Jobs can be used to start processes and communicate with them.
|
Jobs can be used to start processes and communicate with them.
|
||||||
|
|
||||||
Vim current supports up to 10 simultaneous channels.
|
|
||||||
The Netbeans interface also uses a channel. |netbeans|
|
The Netbeans interface also uses a channel. |netbeans|
|
||||||
|
|
||||||
1. Overview |job-channel-overview|
|
1. Overview |job-channel-overview|
|
||||||
@ -29,13 +25,15 @@ The Netbeans interface also uses a channel. |netbeans|
|
|||||||
|
|
||||||
{Vi does not have any of these features}
|
{Vi does not have any of these features}
|
||||||
{only when compiled with the |+channel| feature for channel stuff}
|
{only when compiled with the |+channel| feature for channel stuff}
|
||||||
|
You can check this with: `has('channel')`
|
||||||
{only when compiled with the |+job| feature for job stuff}
|
{only when compiled with the |+job| feature for job stuff}
|
||||||
|
You can check this with: `has('job')`
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Overview *job-channel-overview*
|
1. Overview *job-channel-overview*
|
||||||
|
|
||||||
There are four main types of jobs:
|
There are four main types of jobs:
|
||||||
1. A deamon, serving several Vim instances.
|
1. A daemon, serving several Vim instances.
|
||||||
Vim connects to it with a socket.
|
Vim connects to it with a socket.
|
||||||
2. One job working with one Vim instance, asynchronously.
|
2. One job working with one Vim instance, asynchronously.
|
||||||
Uses a socket or pipes.
|
Uses a socket or pipes.
|
||||||
@ -58,7 +56,7 @@ Common combination are:
|
|||||||
- Using a job connected through pipes in NL mode. E.g., to run a style
|
- Using a job connected through pipes in NL mode. E.g., to run a style
|
||||||
checker and receive errors and warnings.
|
checker and receive errors and warnings.
|
||||||
- Using a deamon, connecting over a socket in JSON mode. E.g. to lookup
|
- Using a deamon, connecting over a socket in JSON mode. E.g. to lookup
|
||||||
crosss-refrences in a database.
|
cross-references in a database.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Channel demo *channel-demo* *demoserver.py*
|
2. Channel demo *channel-demo* *demoserver.py*
|
||||||
@ -157,7 +155,13 @@ Use |ch_status()| to see if the channel could be opened.
|
|||||||
func MyCloseHandler(channel)
|
func MyCloseHandler(channel)
|
||||||
< Vim will invoke callbacks that handle data before invoking
|
< Vim will invoke callbacks that handle data before invoking
|
||||||
close_cb, thus when this function is called no more data will
|
close_cb, thus when this function is called no more data will
|
||||||
be received.
|
be passed to the callbacks.
|
||||||
|
*channel-drop*
|
||||||
|
"drop" Specifies when to drop messages:
|
||||||
|
"auto" When there is no callback to handle a message.
|
||||||
|
The "close_cb" is also considered for this.
|
||||||
|
"never" All messages will be kept.
|
||||||
|
|
||||||
*waittime*
|
*waittime*
|
||||||
"waittime" The time to wait for the connection to be made in
|
"waittime" The time to wait for the connection to be made in
|
||||||
milliseconds. A negative number waits forever.
|
milliseconds. A negative number waits forever.
|
||||||
@ -251,9 +255,15 @@ In which {number} is different every time. It must be used in the response
|
|||||||
This way Vim knows which sent message matches with which received message and
|
This way Vim knows which sent message matches with which received message and
|
||||||
can call the right handler. Also when the messages arrive out of order.
|
can call the right handler. Also when the messages arrive out of order.
|
||||||
|
|
||||||
|
A newline character is terminating the JSON text. This can be used to
|
||||||
|
separate the read text. For example, in Python:
|
||||||
|
splitidx = read_text.find('\n')
|
||||||
|
message = read_text[:splitidx]
|
||||||
|
rest = read_text[splitidx + 1:]
|
||||||
|
|
||||||
The sender must always send valid JSON to Vim. Vim can check for the end of
|
The sender must always send valid JSON to Vim. Vim can check for the end of
|
||||||
the message by parsing the JSON. It will only accept the message if the end
|
the message by parsing the JSON. It will only accept the message if the end
|
||||||
was received.
|
was received. A newline after the message is optional.
|
||||||
|
|
||||||
When the process wants to send a message to Vim without first receiving a
|
When the process wants to send a message to Vim without first receiving a
|
||||||
message, it must use the number zero:
|
message, it must use the number zero:
|
||||||
@ -273,7 +283,7 @@ With a JSON channel the process can send commands to Vim that will be
|
|||||||
handled by Vim internally, it does not require a handler for the channel.
|
handled by Vim internally, it does not require a handler for the channel.
|
||||||
|
|
||||||
Possible commands are: *E903* *E904* *E905*
|
Possible commands are: *E903* *E904* *E905*
|
||||||
["redraw" {forced}]
|
["redraw", {forced}]
|
||||||
["ex", {Ex command}]
|
["ex", {Ex command}]
|
||||||
["normal", {Normal mode command}]
|
["normal", {Normal mode command}]
|
||||||
["expr", {expression}, {number}]
|
["expr", {expression}, {number}]
|
||||||
@ -365,7 +375,7 @@ Leave out the fourth argument if no response is to be sent:
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
6. Using a RAW or NL channel *channel-raw*
|
6. Using a RAW or NL channel *channel-raw*
|
||||||
|
|
||||||
If mode is RAW or NL then a message can be send like this: >
|
If mode is RAW or NL then a message can be sent like this: >
|
||||||
let response = ch_evalraw(channel, {string})
|
let response = ch_evalraw(channel, {string})
|
||||||
|
|
||||||
The {string} is sent as-is. The response will be what can be read from the
|
The {string} is sent as-is. The response will be what can be read from the
|
||||||
@ -393,6 +403,9 @@ This {string} can also be JSON, use |json_encode()| to create it and
|
|||||||
|
|
||||||
It is not possible to use |ch_evalexpr()| or |ch_sendexpr()| on a raw channel.
|
It is not possible to use |ch_evalexpr()| or |ch_sendexpr()| on a raw channel.
|
||||||
|
|
||||||
|
A String in Vim cannot contain NUL bytes. To send or receive NUL bytes read
|
||||||
|
or write from a buffer. See |in_io-buffer| and |out_io-buffer|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
7. More channel functions *channel-more*
|
7. More channel functions *channel-more*
|
||||||
|
|
||||||
@ -411,7 +424,11 @@ This uses the channel timeout. To read without a timeout, just get any
|
|||||||
message that is available: >
|
message that is available: >
|
||||||
let output = ch_read(channel, {'timeout': 0})
|
let output = ch_read(channel, {'timeout': 0})
|
||||||
When no message was available then the result is v:none for a JSON or JS mode
|
When no message was available then the result is v:none for a JSON or JS mode
|
||||||
channels, an empty string for a RAW or NL channel.
|
channels, an empty string for a RAW or NL channel. You can use |ch_canread()|
|
||||||
|
to check if there is something to read.
|
||||||
|
|
||||||
|
Note that when there is no callback message are dropped. To avoid that add a
|
||||||
|
close callback to the channel.
|
||||||
|
|
||||||
To read all output from a RAW channel that is available: >
|
To read all output from a RAW channel that is available: >
|
||||||
let output = ch_readraw(channel)
|
let output = ch_readraw(channel)
|
||||||
@ -458,6 +475,11 @@ it like this: >
|
|||||||
Without the handler you need to read the output with |ch_read()| or
|
Without the handler you need to read the output with |ch_read()| or
|
||||||
|ch_readraw()|. You can do this in the close callback, see |read-in-close-cb|.
|
|ch_readraw()|. You can do this in the close callback, see |read-in-close-cb|.
|
||||||
|
|
||||||
|
Note that if the job exits before you read the output, the output may be lost.
|
||||||
|
This depends on the system (on Unix this happens because closing the write end
|
||||||
|
of a pipe causes the read end to get EOF). To avoid this make the job sleep
|
||||||
|
for a short while before it exits.
|
||||||
|
|
||||||
The handler defined for "out_cb" will not receive stderr. If you want to
|
The handler defined for "out_cb" will not receive stderr. If you want to
|
||||||
handle that separately, add an "err_cb" handler: >
|
handle that separately, add an "err_cb" handler: >
|
||||||
let job = job_start(command, {"out_cb": "MyHandler",
|
let job = job_start(command, {"out_cb": "MyHandler",
|
||||||
@ -478,7 +500,7 @@ For example, to start a job and write its output in buffer "dummy": >
|
|||||||
|
|
||||||
|
|
||||||
Job input from a buffer ~
|
Job input from a buffer ~
|
||||||
|
*in_io-buffer*
|
||||||
To run a job that reads from a buffer: >
|
To run a job that reads from a buffer: >
|
||||||
let job = job_start({command},
|
let job = job_start({command},
|
||||||
\ {'in_io': 'buffer', 'in_name': 'mybuffer'})
|
\ {'in_io': 'buffer', 'in_name': 'mybuffer'})
|
||||||
@ -494,6 +516,13 @@ A special mode is when "in_top" is set to zero and "in_bot" is not set: Every
|
|||||||
time a line is added to the buffer, the last-but-one line will be send to the
|
time a line is added to the buffer, the last-but-one line will be send to the
|
||||||
job stdin. This allows for editing the last line and sending it when pressing
|
job stdin. This allows for editing the last line and sending it when pressing
|
||||||
Enter.
|
Enter.
|
||||||
|
*channel-close-in*
|
||||||
|
When not using the special mode the pipe or socket will be closed after the
|
||||||
|
last line has been written. This signals the reading end that the input
|
||||||
|
finished. You can also use |ch_close_in()| to close it sooner.
|
||||||
|
|
||||||
|
NUL bytes in the text will be passed to the job (internally Vim stores these
|
||||||
|
as NL bytes).
|
||||||
|
|
||||||
|
|
||||||
Reading job output in the close callback ~
|
Reading job output in the close callback ~
|
||||||
@ -502,7 +531,7 @@ If the job can take some time and you don't need intermediate results, you can
|
|||||||
add a close callback and read the output there: >
|
add a close callback and read the output there: >
|
||||||
|
|
||||||
func! CloseHandler(channel)
|
func! CloseHandler(channel)
|
||||||
while ch_status(a:channel) == 'buffered'
|
while ch_status(a:channel, {'part': 'out'}) == 'buffered'
|
||||||
echomsg ch_read(a:channel)
|
echomsg ch_read(a:channel)
|
||||||
endwhile
|
endwhile
|
||||||
endfunc
|
endfunc
|
||||||
@ -515,7 +544,7 @@ You will want to do something more useful than "echomsg".
|
|||||||
|
|
||||||
To start another process without creating a channel: >
|
To start another process without creating a channel: >
|
||||||
let job = job_start(command,
|
let job = job_start(command,
|
||||||
\ {"in_io": "null", "out_io": "null", "err_io": "null"})
|
\ {"in_io": "null", "out_io": "null", "err_io": "null"})
|
||||||
|
|
||||||
This starts {command} in the background, Vim does not wait for it to finish.
|
This starts {command} in the background, Vim does not wait for it to finish.
|
||||||
|
|
||||||
@ -566,20 +595,27 @@ See |job_setoptions()| and |ch_setoptions()|.
|
|||||||
"out_cb": handler Callback for when there is something to read on
|
"out_cb": handler Callback for when there is something to read on
|
||||||
stdout. Only for when the channel uses pipes. When
|
stdout. Only for when the channel uses pipes. When
|
||||||
"out_cb" wasn't set the channel callback is used.
|
"out_cb" wasn't set the channel callback is used.
|
||||||
|
The two arguments are the channel and the message.
|
||||||
|
|
||||||
*job-err_cb* *err_cb*
|
*job-err_cb* *err_cb*
|
||||||
"err_cb": handler Callback for when there is something to read on
|
"err_cb": handler Callback for when there is something to read on
|
||||||
stderr. Only for when the channel uses pipes. When
|
stderr. Only for when the channel uses pipes. When
|
||||||
"err_cb" wasn't set the channel callback is used.
|
"err_cb" wasn't set the channel callback is used.
|
||||||
|
The two arguments are the channel and the message.
|
||||||
*job-close_cb*
|
*job-close_cb*
|
||||||
"close_cb": handler Callback for when the channel is closed. Same as
|
"close_cb": handler Callback for when the channel is closed. Same as
|
||||||
"close_cb" on |ch_open()|, see |close_cb|.
|
"close_cb" on |ch_open()|, see |close_cb|.
|
||||||
|
*job-drop*
|
||||||
|
"drop" Specifies when to drop messages. Same as "drop" on
|
||||||
|
|ch_open()|, see |channel-drop|. For "auto" the
|
||||||
|
exit_cb is not considered.
|
||||||
*job-exit_cb*
|
*job-exit_cb*
|
||||||
"exit_cb": handler Callback for when the job ends. The arguments are the
|
"exit_cb": handler Callback for when the job ends. The arguments are the
|
||||||
job and the exit status.
|
job and the exit status.
|
||||||
Vim checks about every 10 seconds for jobs that ended.
|
Vim checks up to 10 times per second for jobs that
|
||||||
The check also be triggered by calling |job_status()|,
|
ended. The check can also be triggered by calling
|
||||||
which may then invoke the exit_cb handler.
|
|job_status()|, which may then invoke the exit_cb
|
||||||
|
handler.
|
||||||
Note that data can be buffered, callbacks may still be
|
Note that data can be buffered, callbacks may still be
|
||||||
called after the process ends.
|
called after the process ends.
|
||||||
*job-timeout*
|
*job-timeout*
|
||||||
@ -607,7 +643,7 @@ See |job_setoptions()| and |ch_setoptions()|.
|
|||||||
"channel": {channel} Use an existing channel instead of creating a new one.
|
"channel": {channel} Use an existing channel instead of creating a new one.
|
||||||
The parts of the channel that get used for the new job
|
The parts of the channel that get used for the new job
|
||||||
will be disconnected from what they were used before.
|
will be disconnected from what they were used before.
|
||||||
If the channel was still use by another job this may
|
If the channel was still used by another job this may
|
||||||
cause I/O errors.
|
cause I/O errors.
|
||||||
Existing callbacks and other settings remain.
|
Existing callbacks and other settings remain.
|
||||||
|
|
||||||
@ -625,29 +661,33 @@ See |job_setoptions()| and |ch_setoptions()|.
|
|||||||
"out_io": "null" disconnect stdout (goes to /dev/null)
|
"out_io": "null" disconnect stdout (goes to /dev/null)
|
||||||
"out_io": "pipe" stdout is connected to the channel (default)
|
"out_io": "pipe" stdout is connected to the channel (default)
|
||||||
"out_io": "file" stdout writes to a file
|
"out_io": "file" stdout writes to a file
|
||||||
"out_io": "buffer" stdout appends to a buffer (see below)
|
"out_io": "buffer" stdout appends to a buffer (see below)
|
||||||
"out_name": "/path/file" the name of the file or buffer to write to
|
"out_name": "/path/file" the name of the file or buffer to write to
|
||||||
"out_buf": number the number of the buffer to write to
|
"out_buf": number the number of the buffer to write to
|
||||||
"out_modifiable": 0 when writing to a buffer, 'modifiable' will be off
|
"out_modifiable": 0 when writing to a buffer, 'modifiable' will be off
|
||||||
(see below)
|
(see below)
|
||||||
|
"out_msg": 0 when writing to a new buffer, the first line will be
|
||||||
|
set to "Reading from channel output..."
|
||||||
|
|
||||||
*job-err_io* *err_name* *err_buf*
|
*job-err_io* *err_name* *err_buf*
|
||||||
"err_io": "out" stderr messages to go to stdout
|
"err_io": "out" stderr messages to go to stdout
|
||||||
"err_io": "null" disconnect stderr (goes to /dev/null)
|
"err_io": "null" disconnect stderr (goes to /dev/null)
|
||||||
"err_io": "pipe" stderr is connected to the channel (default)
|
"err_io": "pipe" stderr is connected to the channel (default)
|
||||||
"err_io": "file" stderr writes to a file
|
"err_io": "file" stderr writes to a file
|
||||||
"err_io": "buffer" stderr appends to a buffer (see below)
|
"err_io": "buffer" stderr appends to a buffer (see below)
|
||||||
"err_name": "/path/file" the name of the file or buffer to write to
|
"err_name": "/path/file" the name of the file or buffer to write to
|
||||||
"err_buf": number the number of the buffer to write to
|
"err_buf": number the number of the buffer to write to
|
||||||
"err_modifiable": 0 when writing to a buffer, 'modifiable' will be off
|
"err_modifiable": 0 when writing to a buffer, 'modifiable' will be off
|
||||||
(see below)
|
(see below)
|
||||||
|
"err_msg": 0 when writing to a new buffer, the first line will be
|
||||||
|
set to "Reading from channel error..."
|
||||||
|
|
||||||
"block_write": number only for testing: pretend every other write to stdin
|
"block_write": number only for testing: pretend every other write to stdin
|
||||||
will block
|
will block
|
||||||
|
|
||||||
|
|
||||||
Writing to a buffer ~
|
Writing to a buffer ~
|
||||||
|
*out_io-buffer*
|
||||||
When the out_io or err_io mode is "buffer" and there is a callback, the text
|
When the out_io or err_io mode is "buffer" and there is a callback, the text
|
||||||
is appended to the buffer before invoking the callback.
|
is appended to the buffer before invoking the callback.
|
||||||
|
|
||||||
@ -670,8 +710,16 @@ buffer number.
|
|||||||
|
|
||||||
For a new buffer 'buftype' is set to "nofile" and 'bufhidden' to "hide". If
|
For a new buffer 'buftype' is set to "nofile" and 'bufhidden' to "hide". If
|
||||||
you prefer other settings, create the buffer first and pass the buffer number.
|
you prefer other settings, create the buffer first and pass the buffer number.
|
||||||
|
*out_modifiable* *err_modifiable*
|
||||||
The "out_modifiable" and "err_modifiable" options can be used to set the
|
The "out_modifiable" and "err_modifiable" options can be used to set the
|
||||||
|
'modifiable' option off, or write to a buffer that has 'modifiable' off. That
|
||||||
|
means that lines will be appended to the buffer, but the user can't easily
|
||||||
|
change the buffer.
|
||||||
|
*out_msg* *err_msg*
|
||||||
|
The "out_msg" option can be used to specify whether a new buffer will have the
|
||||||
|
first line set to "Reading from channel output...". The default is to add the
|
||||||
|
message. "err_msg" does the same for channel error.
|
||||||
|
|
||||||
'modifiable' option off, or write to a buffer that has 'modifiable' off. That
|
'modifiable' option off, or write to a buffer that has 'modifiable' off. That
|
||||||
means that lines will be appended to the buffer, but the user can't easily
|
means that lines will be appended to the buffer, but the user can't easily
|
||||||
change the buffer.
|
change the buffer.
|
||||||
@ -684,7 +732,8 @@ When the buffer written to is displayed in a window and the cursor is in the
|
|||||||
first column of the last line, the cursor will be moved to the newly added
|
first column of the last line, the cursor will be moved to the newly added
|
||||||
line and the window is scrolled up to show the cursor if needed.
|
line and the window is scrolled up to show the cursor if needed.
|
||||||
|
|
||||||
Undo is synced for every added line.
|
Undo is synced for every added line. NUL bytes are accepted (internally Vim
|
||||||
|
stores these as NL bytes).
|
||||||
|
|
||||||
|
|
||||||
Writing to a file ~
|
Writing to a file ~
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 7.4. Last change: 2015 Dec 17
|
*cmdline.txt* For Vim version 8.0. Last change: 2016 Sep 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -229,9 +229,10 @@ CTRL-Y When there is a modeless selection, copy the selection into
|
|||||||
the clipboard. |modeless-selection|
|
the clipboard. |modeless-selection|
|
||||||
If there is no selection CTRL-Y is inserted as a character.
|
If there is no selection CTRL-Y is inserted as a character.
|
||||||
|
|
||||||
CTRL-J *c_CTRL-J* *c_<NL>* *c_<CR>* *c_CR*
|
CTRL-M or CTRL-J *c_CTRL-M* *c_CTRL-J* *c_<NL>* *c_<CR>* *c_CR*
|
||||||
<CR> or <NL> start entered command
|
<CR> or <NL> start entered command
|
||||||
*c_<Esc>* *c_Esc*
|
|
||||||
|
CTRL-[ *c_CTRL-[* *c_<Esc>* *c_Esc*
|
||||||
<Esc> When typed and 'x' not present in 'cpoptions', quit
|
<Esc> When typed and 'x' not present in 'cpoptions', quit
|
||||||
Command-line mode without executing. In macros or when 'x'
|
Command-line mode without executing. In macros or when 'x'
|
||||||
present in 'cpoptions', start entered command.
|
present in 'cpoptions', start entered command.
|
||||||
@ -358,8 +359,11 @@ terminals)
|
|||||||
List entries 6 to 12 from the search history: >
|
List entries 6 to 12 from the search history: >
|
||||||
:history / 6,12
|
:history / 6,12
|
||||||
<
|
<
|
||||||
List the recent five entries from all histories: >
|
List the penultimate entry from all histories: >
|
||||||
:history all -5,
|
:history all -2
|
||||||
|
<
|
||||||
|
List the most recent two entries from all histories: >
|
||||||
|
:history all -2,
|
||||||
|
|
||||||
:keepp[atterns] {command} *:keepp* *:keeppatterns*
|
:keepp[atterns] {command} *:keepp* *:keeppatterns*
|
||||||
Execute {command}, without adding anything to the search
|
Execute {command}, without adding anything to the search
|
||||||
@ -423,12 +427,26 @@ CTRL-L A match is done on the pattern in front of the cursor. If
|
|||||||
If there are multiple matches the longest common part is
|
If there are multiple matches the longest common part is
|
||||||
inserted in place of the pattern. If the result is shorter
|
inserted in place of the pattern. If the result is shorter
|
||||||
than the pattern, no completion is done.
|
than the pattern, no completion is done.
|
||||||
|
*/_CTRL-L*
|
||||||
When 'incsearch' is set, entering a search pattern for "/" or
|
When 'incsearch' is set, entering a search pattern for "/" or
|
||||||
"?" and the current match is displayed then CTRL-L will add
|
"?" and the current match is displayed then CTRL-L will add
|
||||||
one character from the end of the current match. If
|
one character from the end of the current match. If
|
||||||
'ignorecase' and 'smartcase' are set and the command line has
|
'ignorecase' and 'smartcase' are set and the command line has
|
||||||
no uppercase characters, the added character is converted to
|
no uppercase characters, the added character is converted to
|
||||||
lowercase.
|
lowercase.
|
||||||
|
*c_CTRL-G* */_CTRL-G*
|
||||||
|
CTRL-G When 'incsearch' is set, entering a search pattern for "/" or
|
||||||
|
"?" and the current match is displayed then CTRL-G will move
|
||||||
|
to the next match (does not take |search-offset| into account)
|
||||||
|
Use CTRL-T to move to the previous match. Hint: on a regular
|
||||||
|
keyboard T is above G.
|
||||||
|
*c_CTRL-T* */_CTRL-T*
|
||||||
|
CTRL-T When 'incsearch' is set, entering a search pattern for "/" or
|
||||||
|
"?" and the current match is displayed then CTRL-T will move
|
||||||
|
to the previous match (does not take |search-offset| into
|
||||||
|
account).
|
||||||
|
Use CTRL-G to move to the next match. Hint: on a regular
|
||||||
|
keyboard T is above G.
|
||||||
|
|
||||||
The 'wildchar' option defaults to <Tab> (CTRL-E when in Vi compatible mode; in
|
The 'wildchar' option defaults to <Tab> (CTRL-E when in Vi compatible mode; in
|
||||||
a previous version <Esc> was used). In the pattern standard wildcards '*' and
|
a previous version <Esc> was used). In the pattern standard wildcards '*' and
|
||||||
@ -1042,10 +1060,10 @@ There are several ways to leave the command-line window:
|
|||||||
Insert and in Normal mode.
|
Insert and in Normal mode.
|
||||||
CTRL-C Continue in Command-line mode. The command-line under the
|
CTRL-C Continue in Command-line mode. The command-line under the
|
||||||
cursor is used as the command-line. Works both in Insert and
|
cursor is used as the command-line. Works both in Insert and
|
||||||
in Normal mode. ":close" also works. There is no redraw,
|
in Normal mode. There is no redraw, thus the window will
|
||||||
thus the window will remain visible.
|
remain visible.
|
||||||
:quit Discard the command line and go back to Normal mode.
|
:quit Discard the command line and go back to Normal mode.
|
||||||
":exit", ":xit" and CTRL-\ CTRL-N also work.
|
":close", ":exit", ":xit" and CTRL-\ CTRL-N also work.
|
||||||
:qall Quit Vim, unless there are changes in some buffer.
|
:qall Quit Vim, unless there are changes in some buffer.
|
||||||
:qall! Quit Vim, discarding changes to any buffer.
|
:qall! Quit Vim, discarding changes to any buffer.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*debug.txt* For Vim version 7.4. Last change: 2012 Feb 11
|
*debug.txt* For Vim version 8.0. 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.4. Last change: 2005 Mar 29
|
*debugger.txt* For Vim version 8.0. 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.4. Last change: 2016 Jan 31
|
*develop.txt* For Vim version 8.0. Last change: 2017 Jan 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -177,7 +177,7 @@ The basic steps to make changes to the code:
|
|||||||
5. Make a patch with "git diff". You can also create a pull request on
|
5. Make a patch with "git diff". You can also create a pull request on
|
||||||
github, but it's the diff that matters.
|
github, but it's the diff that matters.
|
||||||
6. Make a note about what changed, preferably mentioning the problem and the
|
6. Make a note about what changed, preferably mentioning the problem and the
|
||||||
solution. Send an email to the vim-dev maillist with an explanation and
|
solution. Send an email to the |vim-dev| maillist with an explanation and
|
||||||
include the diff. Or create a pull request on github.
|
include the diff. Or create a pull request on github.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
*diff.txt* For Vim version 7.4. Last change: 2015 Nov 01
|
*diff.txt* For Vim version 8.0. Last change: 2017 Feb 03
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|
||||||
|
|
||||||
*diff* *vimdiff* *gvimdiff* *diff-mode*
|
*diff* *vimdiff* *gvimdiff* *diff-mode*
|
||||||
This file describes the |+diff| feature: Showing differences between two,
|
This file describes the |+diff| feature: Showing differences between two to
|
||||||
three or four versions of the same file.
|
eight versions of the same file.
|
||||||
|
|
||||||
The basics are explained in section |08.7| of the user manual.
|
The basics are explained in section |08.7| of the user manual.
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ To make these commands use a vertical split, prepend |:vertical|. Examples: >
|
|||||||
If you always prefer a vertical split include "vertical" in 'diffopt'.
|
If you always prefer a vertical split include "vertical" in 'diffopt'.
|
||||||
|
|
||||||
*E96*
|
*E96*
|
||||||
There can be up to four buffers with 'diff' set.
|
There can be up to eight buffers with 'diff' set.
|
||||||
|
|
||||||
Since the option values are remembered with the buffer, you can edit another
|
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.
|
||||||
@ -131,6 +131,8 @@ file for a moment and come back to the same file and be in diff mode again.
|
|||||||
related options only happens in a window that has 'diff' set,
|
related options only happens in a window that has 'diff' set,
|
||||||
if the current window does not have 'diff' set then no options
|
if the current window does not have 'diff' set then no options
|
||||||
in it are changed.
|
in it are changed.
|
||||||
|
Hidden buffers are also removed from the list of diff'ed
|
||||||
|
buffers.
|
||||||
|
|
||||||
The `:diffoff` command resets the relevant options to the values they had when
|
The `:diffoff` command resets the relevant options to the values they had when
|
||||||
using `:diffsplit`, `:diffpatch` , `:diffthis`. or starting Vim in diff mode.
|
using `:diffsplit`, `:diffpatch` , `:diffthis`. or starting Vim in diff mode.
|
||||||
@ -164,7 +166,8 @@ The alignment of text will go wrong when:
|
|||||||
|
|
||||||
All the buffers edited in a window where the 'diff' option is set will join in
|
All the buffers edited in a window where the 'diff' option is set will join in
|
||||||
the diff. This is also possible for hidden buffers. They must have been
|
the diff. This is also possible for hidden buffers. They must have been
|
||||||
edited in a window first for this to be possible.
|
edited in a window first for this to be possible. To get rid of the hidden
|
||||||
|
buffers use `:diffoff!`.
|
||||||
|
|
||||||
*:DiffOrig* *diff-original-file*
|
*:DiffOrig* *diff-original-file*
|
||||||
Since 'diff' is a window-local option, it's possible to view the same buffer
|
Since 'diff' is a window-local option, it's possible to view the same buffer
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*digraph.txt* For Vim version 7.4. Last change: 2014 Jun 19
|
*digraph.txt* For Vim version 8.0. Last change: 2016 Nov 04
|
||||||
|
|
||||||
|
|
||||||
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 (= used as second char)
|
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
|
||||||
@ -926,6 +926,7 @@ char digraph hex dec official name ~
|
|||||||
† /- 2020 8224 DAGGER
|
† /- 2020 8224 DAGGER
|
||||||
‡ /= 2021 8225 DOUBLE DAGGER
|
‡ /= 2021 8225 DOUBLE DAGGER
|
||||||
‥ .. 2025 8229 TWO DOT LEADER
|
‥ .. 2025 8229 TWO DOT LEADER
|
||||||
|
… ,. 2026 8230 HORIZONTAL ELLIPSIS
|
||||||
‰ %0 2030 8240 PER MILLE SIGN
|
‰ %0 2030 8240 PER MILLE SIGN
|
||||||
′ 1' 2032 8242 PRIME
|
′ 1' 2032 8242 PRIME
|
||||||
″ 2' 2033 8243 DOUBLE PRIME
|
″ 2' 2033 8243 DOUBLE PRIME
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 7.4. Last change: 2016 Mar 28
|
*editing.txt* For Vim version 8.0. Last change: 2016 Nov 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -181,7 +181,8 @@ start editing another file, Vim will refuse this. In order to overrule this
|
|||||||
protection, add a '!' to the command. The changes will then be lost. For
|
protection, add a '!' to the command. The changes will then be lost. For
|
||||||
example: ":q" will not work if the buffer was changed, but ":q!" will. To see
|
example: ":q" will not work if the buffer was changed, but ":q!" will. To see
|
||||||
whether the buffer was changed use the "CTRL-G" command. The message includes
|
whether the buffer was changed use the "CTRL-G" command. The message includes
|
||||||
the string "[Modified]" if the buffer has been changed.
|
the string "[Modified]" if the buffer has been changed, or "+" if the 'm' flag
|
||||||
|
is in 'shortmess'.
|
||||||
|
|
||||||
If you want to automatically save the changes without asking, switch on the
|
If you want to automatically save the changes without asking, switch on the
|
||||||
'autowriteall' option. 'autowrite' is the associated Vi-compatible option
|
'autowriteall' option. 'autowrite' is the associated Vi-compatible option
|
||||||
@ -976,12 +977,12 @@ WRITING WITH MULTIPLE BUFFERS *buffer-write*
|
|||||||
|
|
||||||
*:wa* *:wall*
|
*:wa* *:wall*
|
||||||
:wa[ll] Write all changed buffers. Buffers without a file
|
:wa[ll] Write all changed buffers. Buffers without a file
|
||||||
name or which are readonly are not written. {not in
|
name cause an error message. Buffers which are
|
||||||
Vi}
|
readonly are not written. {not in Vi}
|
||||||
|
|
||||||
:wa[ll]! Write all changed buffers, even the ones that are
|
:wa[ll]! Write all changed buffers, even the ones that are
|
||||||
readonly. Buffers without a file name are not
|
readonly. Buffers without a file name are not
|
||||||
written. {not in Vi}
|
written and cause an error message. {not in Vi}
|
||||||
|
|
||||||
|
|
||||||
Vim will warn you if you try to overwrite a file that has been changed
|
Vim will warn you if you try to overwrite a file that has been changed
|
||||||
@ -1114,10 +1115,12 @@ The names can be in upper- or lowercase.
|
|||||||
edited. See |:confirm| and 'confirm'. {not in Vi}
|
edited. See |:confirm| and 'confirm'. {not in Vi}
|
||||||
|
|
||||||
:q[uit]! Quit without writing, also when the current buffer has
|
:q[uit]! Quit without writing, also when the current buffer has
|
||||||
changes. If this is the last window and there is a
|
changes. The buffer is unloaded, also when it has
|
||||||
modified hidden buffer, the current buffer is
|
'hidden' set.
|
||||||
abandoned and the first changed hidden buffer becomes
|
If this is the last window and there is a modified
|
||||||
the current buffer.
|
hidden buffer, the current buffer is abandoned and the
|
||||||
|
first changed hidden buffer becomes the current
|
||||||
|
buffer.
|
||||||
Use ":qall!" to exit always.
|
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
|
||||||
|
1825
runtime/doc/eval.txt
1825
runtime/doc/eval.txt
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
*farsi.txt* For Vim version 7.4. Last change: 2015 Aug 29
|
*farsi.txt* For Vim version 8.0. Last change: 2015 Aug 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 7.4. Last change: 2016 Jun 20
|
*filetype.txt* For Vim version 8.0. Last change: 2017 Jan 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -573,6 +573,8 @@ Man {number} {name}
|
|||||||
|
|
||||||
Global mapping:
|
Global mapping:
|
||||||
<Leader>K Displays the manual page for the word under the cursor.
|
<Leader>K Displays the manual page for the word under the cursor.
|
||||||
|
<Plug>ManPreGetPage idem, allows for using a mapping: >
|
||||||
|
nmap <F1> <Plug>ManPreGetPage<CR>
|
||||||
|
|
||||||
Local mappings:
|
Local mappings:
|
||||||
CTRL-] Jump to the manual page for the word under the cursor.
|
CTRL-] Jump to the manual page for the word under the cursor.
|
||||||
@ -644,6 +646,17 @@ These maps can be disabled with >
|
|||||||
:let g:no_pdf_maps = 1
|
:let g:no_pdf_maps = 1
|
||||||
<
|
<
|
||||||
|
|
||||||
|
PYTHON *ft-python-plugin* *PEP8*
|
||||||
|
|
||||||
|
By default the following options are set, in accordance with PEP8: >
|
||||||
|
|
||||||
|
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
|
||||||
|
|
||||||
|
To disable this behaviour, set the following variable in your vimrc: >
|
||||||
|
|
||||||
|
let g:python_recommended_style = 0
|
||||||
|
|
||||||
|
|
||||||
RPM SPEC *ft-spec-plugin*
|
RPM SPEC *ft-spec-plugin*
|
||||||
|
|
||||||
Since the text for this plugin is rather long it has been put in a separate
|
Since the text for this plugin is rather long it has been put in a separate
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*fold.txt* For Vim version 7.4. Last change: 2016 Jan 02
|
*fold.txt* For Vim version 8.0. Last change: 2016 Jan 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -64,7 +64,7 @@ whichever is lower. These are empty or white lines and lines starting
|
|||||||
with a character in 'foldignore'. White space is skipped before checking for
|
with a character in 'foldignore'. White space is skipped before checking for
|
||||||
characters in 'foldignore'. For C use "#" to ignore preprocessor lines.
|
characters in 'foldignore'. For C use "#" to ignore preprocessor lines.
|
||||||
|
|
||||||
When you want to ignore lines in another way, use the 'expr' method. The
|
When you want to ignore lines in another way, use the "expr" method. The
|
||||||
|indent()| function can be used in 'foldexpr' to get the indent of a line.
|
|indent()| function can be used in 'foldexpr' to get the indent of a line.
|
||||||
|
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ fold level. But note that foldlevel() may return -1 if the level is not known
|
|||||||
yet. And it returns the level at the start of the line, while a fold might
|
yet. And it returns the level at the start of the line, while a fold might
|
||||||
end in that line.
|
end in that line.
|
||||||
|
|
||||||
It may happened that folds are not updated properly. You can use |zx| or |zX|
|
It may happen that folds are not updated properly. You can use |zx| or |zX|
|
||||||
to force updating folds.
|
to force updating folds.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*ft_ada.txt* For Vim version 7.4. Last change: 2010 Jul 20
|
*ft_ada.txt* For Vim version 8.0. 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.4. Last change: 2013 May 15
|
*ft_sql.txt* For Vim version 8.0. Last change: 2013 May 15
|
||||||
|
|
||||||
by David Fishburn
|
by David Fishburn
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui.txt* For Vim version 7.4. Last change: 2014 Mar 08
|
*gui.txt* For Vim version 8.0. Last change: 2014 Mar 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui_w32.txt* For Vim version 7.4. Last change: 2014 Dec 20
|
*gui_w32.txt* For Vim version 8.0. Last change: 2014 Dec 20
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -49,10 +49,6 @@ If you want Vim to start with a maximized window, add this command to your
|
|||||||
vimrc or gvimrc file: >
|
vimrc or gvimrc file: >
|
||||||
au GUIEnter * simalt ~x
|
au GUIEnter * simalt ~x
|
||||||
<
|
<
|
||||||
*gui-w32s*
|
|
||||||
There is a specific version of gvim.exe that runs under the Win32s subsystem
|
|
||||||
of Windows 3.1 or 3.11. See |win32s|.
|
|
||||||
|
|
||||||
|
|
||||||
Using Vim as a plugin *gui-w32-windowid*
|
Using Vim as a plugin *gui-w32-windowid*
|
||||||
|
|
||||||
@ -100,9 +96,10 @@ when you have got a new version):
|
|||||||
You can also install Vim in the "Send To" menu:
|
You can also install Vim in the "Send To" menu:
|
||||||
1. Start a Windows Explorer
|
1. Start a Windows Explorer
|
||||||
2. Navigate to your sendto directory:
|
2. Navigate to your sendto directory:
|
||||||
Windows 95: %windir%\sendto (e.g. "c:\windows\sendto")
|
|
||||||
Windows NT: %windir%\profiles\%user%\sendto (e.g.
|
Windows NT: %windir%\profiles\%user%\sendto (e.g.
|
||||||
"c:\winnt\profiles\mattha\sendto").
|
"c:\winnt\profiles\mattha\sendto")
|
||||||
|
Windows XP: C:\Documents and Settings\%user%\SendTo
|
||||||
|
Windows Vista: C:\Users\%user%\AppData\Roaming\Microsoft\Windows\SendTo .
|
||||||
3. Right-click in the file pane and select New->Shortcut
|
3. Right-click in the file pane and select New->Shortcut
|
||||||
4. Follow the shortcut wizard, using the full path to VIM/GVIM.
|
4. Follow the shortcut wizard, using the full path to VIM/GVIM.
|
||||||
|
|
||||||
@ -274,35 +271,17 @@ WARNING: If you close this window with the "X" button, and confirm the
|
|||||||
question if you really want to kill the application, Vim may be killed too!
|
question if you really want to kill the application, Vim may be killed too!
|
||||||
(This does not apply to commands run asynchronously with ":!start".)
|
(This does not apply to commands run asynchronously with ":!start".)
|
||||||
|
|
||||||
In Windows 95, the window in which the commands are executed is always 25x80
|
The window in which the commands are executed will be the default you have set
|
||||||
characters, to be as DOS compatible as possible (this matters!). The default
|
up for "Console" in Control Panel.
|
||||||
system font is used. On NT, the window will be the default you have set up for
|
|
||||||
"Console" in Control Panel. On Win32s, the properties of the DOS box are
|
|
||||||
determined by _default.pif in the windows directory.
|
|
||||||
|
|
||||||
*msdos-mode*
|
|
||||||
If you get a dialog that says "This program is set to run in MS-DOS mode..."
|
|
||||||
when you run an external program, you can solve this by changing the
|
|
||||||
properties of the associated shortcut:
|
|
||||||
- Use a Windows Explorer to find the command.com that is used. It can be
|
|
||||||
c:\command.com, c:\dos\command.com, c:\windows\command.com, etc.
|
|
||||||
- With the right mouse button, select properties of this command.com.
|
|
||||||
- In the Program tab select "Advanced".
|
|
||||||
- Unselect "MS-DOS mode".
|
|
||||||
- Click "OK" twice.
|
|
||||||
|
|
||||||
*win32-!start*
|
*win32-!start*
|
||||||
Normally, Vim waits for a command to complete before continuing (this makes
|
Normally, Vim waits for a command to complete before continuing (this makes
|
||||||
sense for most shell commands which produce output for Vim to use). If you
|
sense for most shell commands which produce output for Vim to use). If you
|
||||||
want Vim to start a program and return immediately, you can use the following
|
want Vim to start a program and return immediately, you can use the following
|
||||||
syntax on W95 & NT: >
|
syntax: >
|
||||||
:!start [/min] {command}
|
:!start [/min] {command}
|
||||||
The optional "/min" causes the window to be minimized.
|
The optional "/min" causes the window to be minimized.
|
||||||
|
|
||||||
On Win32s, you will have to go to another window instead. Don't forget that
|
|
||||||
you must tell Windows 3.1x to keep executing a DOS command in the background
|
|
||||||
while you switch back to Vim.
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
5. Special colors *win32-colors*
|
5. Special colors *win32-colors*
|
||||||
|
|
||||||
@ -311,7 +290,7 @@ On Win32, the normal DOS colors can be used. See |dos-colors|.
|
|||||||
Additionally the system configured colors can also be used. These are known
|
Additionally the system configured colors can also be used. These are known
|
||||||
by the names Sys_XXX, where XXX is the appropriate system color name, from the
|
by the names Sys_XXX, where XXX is the appropriate system color name, from the
|
||||||
following list (see the Win32 documentation for full descriptions). Case is
|
following list (see the Win32 documentation for full descriptions). Case is
|
||||||
ignored. Note: On Win32s not all of these colors are supported.
|
ignored.
|
||||||
|
|
||||||
Sys_3DDKShadow Sys_3DFace Sys_BTNFace
|
Sys_3DDKShadow Sys_3DFace Sys_BTNFace
|
||||||
Sys_3DHilight Sys_3DHighlight Sys_BTNHilight
|
Sys_3DHilight Sys_3DHighlight Sys_BTNHilight
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*gui_x11.txt* For Vim version 7.4. Last change: 2016 Apr 08
|
*gui_x11.txt* For Vim version 8.0. Last change: 2016 Sep 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -421,6 +421,9 @@ These are the different looks:
|
|||||||
GNOME is compiled with if it was found by configure and the
|
GNOME is compiled with if it was found by configure and the
|
||||||
--enable-gnome-check argument was used.
|
--enable-gnome-check argument was used.
|
||||||
|
|
||||||
|
Note: Avoid use of --enable-gnome-check with GTK+ 3 GUI build. The
|
||||||
|
functionality mentioned above is consolidated in GTK+ 3.
|
||||||
|
|
||||||
|
|
||||||
GNOME session support *gui-gnome-session* *gnome-session*
|
GNOME session support *gui-gnome-session* *gnome-session*
|
||||||
|
|
||||||
@ -457,20 +460,37 @@ continues on Yzis: https://github.com/chrizel/Yzis.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
8. Compiling *gui-x11-compiling*
|
8. Compiling *gui-x11-compiling*
|
||||||
|
|
||||||
If using X11, Vim's Makefile will by default first try to find the necessary
|
If using X11, Vim's configure will by default first try to find the necessary
|
||||||
GTK+ files on your system. If the GTK+ files cannot be found, then the Motif
|
GTK+ files on your system. When both GTK+ 2 and GTK+ 3 are available, GTK+ 2
|
||||||
files will be searched for. Finally, if this fails, the Athena files will be
|
will be chosen unless --enable-gui=gtk3 is passed explicitly to configure.
|
||||||
searched for. If all three fail, the GUI will be disabled.
|
|
||||||
|
|
||||||
For GTK+, Vim's configuration process requires that GTK+ be properly
|
If the GTK+ files cannot be found, then the Motif files will be searched for.
|
||||||
installed. That is, the shell script 'gtk-config' must be in your PATH, and
|
Finally, if this fails, the Athena files will be searched for. If all three
|
||||||
you can already successful compile, build, and execute a GTK+ program. The
|
fail, the GUI will be disabled.
|
||||||
reason for this is that the compiler flags (CFLAGS) and link flags (LDFLAGS)
|
|
||||||
are obtained through the 'gtk-config' shell script.
|
|
||||||
|
|
||||||
If you want to build with GTK+ 2 support pass the --enable-gtk2-check argument
|
For GTK+, Vim's configuration process uses pkg-config(1) to check if the
|
||||||
to ./configure. Optionally, support for GNOME 2 will be compiled if the
|
GTK+ required for a specified build is properly installed and usable.
|
||||||
--enable-gnome-check option is also given.
|
Accordingly, it is a good idea to make sure before running configure that
|
||||||
|
your system has a working pkg-config together with the .pc file of the
|
||||||
|
required GTK+. For that, say, run the following on the command line to see if
|
||||||
|
your pkg-config works with your GTK+ 2: >
|
||||||
|
|
||||||
|
$ pkg-config --modversion gtk+-2.0
|
||||||
|
|
||||||
|
Replace gtk+-2.0 with gtk+-3.0 for GTK+ 3. If you get the correct version
|
||||||
|
number of your GTK+, you can proceed; if not, you probably need to do some
|
||||||
|
system administration chores to set up pkg-config and GTK+ correctly.
|
||||||
|
|
||||||
|
The GTK+ 2 GUI is built by default. Therefore, you usually don't need to pass
|
||||||
|
any options such as --enable-gui=gtk2 to configure and build that.
|
||||||
|
|
||||||
|
Optionally, the GTK+ 2 GUI can consolidate the GNOME 2 support. This support
|
||||||
|
is enabled by passing --enable-gnome-check to configure.
|
||||||
|
|
||||||
|
If you want to build the GTK+ 3 GUI, you have to pass --enable-gui=gtk3
|
||||||
|
explicitly to configure, and avoid passing --enable-gnome-check to that, as
|
||||||
|
the functionality of the GNOME 2 support has already been consolidated in
|
||||||
|
GTK+ 3.
|
||||||
|
|
||||||
Otherwise, if you are using Motif or Athena, when you have the Motif or Athena
|
Otherwise, if you are using Motif or Athena, when you have the Motif or Athena
|
||||||
files in a directory where configure doesn't look, edit the Makefile to enter
|
files in a directory where configure doesn't look, edit the Makefile to enter
|
||||||
@ -478,18 +498,14 @@ the names of the directories. Search for "GUI_INC_LOC" for an example to set
|
|||||||
the Motif directories, "CONF_OPT_X" for Athena.
|
the Motif directories, "CONF_OPT_X" for Athena.
|
||||||
|
|
||||||
*gui-x11-gtk*
|
*gui-x11-gtk*
|
||||||
At the time of this writing, GTK+ version 1.0.6 and 1.2 are outdated. It
|
Currently, Vim supports both GTK+ 2 and GTK+ 3.
|
||||||
is suggested that you use GTK 2. The GTK 1 support will most likely be
|
|
||||||
dropped soon.
|
|
||||||
|
|
||||||
For the GTK+ 2 GUI, using the latest release of the GTK+ 2.0 or GTK+ 2.2
|
The GTK+ 2 GUI requires GTK+ 2.2 or later.
|
||||||
series is recommended.
|
|
||||||
|
|
||||||
Lastly, although GTK+ has supposedly been ported to the Win32 platform, this
|
Although the GTK+ 3 GUI is written in such a way that the source code can be
|
||||||
has not been tested with Vim and is also unsupported. Also, it's unlikely to
|
compiled against all versions of the 3.x series, we recommend GTK+ 3.10 or
|
||||||
even compile since GTK+ GUI uses parts of the generic X11 code. This might
|
later because of its substantial implementation changes in redraw done at
|
||||||
change in distant future; particularly because getting rid of the X11 centric
|
that version.
|
||||||
code parts is also required for GTK+ framebuffer support.
|
|
||||||
|
|
||||||
*gui-x11-motif*
|
*gui-x11-motif*
|
||||||
For Motif, you need at least Motif version 1.2 and/or X11R5. Motif 2.0 and
|
For Motif, you need at least Motif version 1.2 and/or X11R5. Motif 2.0 and
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*hangulin.txt* For Vim version 7.4. Last change: 2015 Nov 24
|
*hangulin.txt* For Vim version 8.0. Last change: 2015 Nov 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
||||||
@ -81,8 +81,8 @@ And there should be no ':set guifont'. If it exists, then Gvim ignores
|
|||||||
':set guifontset'. It means VIM runs without fontset supporting.
|
':set guifontset'. It means VIM runs without fontset supporting.
|
||||||
So, you can see only English. Hangul does not be correctly displayed.
|
So, you can see only English. Hangul does not be correctly displayed.
|
||||||
|
|
||||||
After 'fontset' feature is enabled, VIM does not allow using english
|
After "fontset" feature is enabled, VIM does not allow using english
|
||||||
font only in 'font' setting for syntax.
|
font only in "font" setting for syntax.
|
||||||
For example, if you use >
|
For example, if you use >
|
||||||
:set guifontset=eng_font,your_font
|
:set guifontset=eng_font,your_font
|
||||||
in your .gvimrc, then you should do for syntax >
|
in your .gvimrc, then you should do for syntax >
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*hebrew.txt* For Vim version 7.4. Last change: 2007 Jun 14
|
*hebrew.txt* For Vim version 8.0. 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.4. Last change: 2016 Mar 31
|
*help.txt* For Vim version 8.0. Last change: 2016 Sep 12
|
||||||
|
|
||||||
VIM - main help file
|
VIM - main help file
|
||||||
k
|
k
|
||||||
@ -135,6 +135,7 @@ Advanced editing ~
|
|||||||
|autocmd.txt| automatically executing commands on an event
|
|autocmd.txt| automatically executing commands on an event
|
||||||
|filetype.txt| settings done specifically for a type of file
|
|filetype.txt| settings done specifically for a type of file
|
||||||
|eval.txt| expression evaluation, conditional commands
|
|eval.txt| expression evaluation, conditional commands
|
||||||
|
|channel.txt| Jobs, Channels, inter-process communication
|
||||||
|fold.txt| hide (fold) ranges of lines
|
|fold.txt| hide (fold) ranges of lines
|
||||||
|
|
||||||
Special issues ~
|
Special issues ~
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*helphelp.txt* For Vim version 7.4. Last change: 2016 Apr 01
|
*helphelp.txt* For Vim version 8.0. Last change: 2017 Feb 09
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -28,10 +28,16 @@ Help on help files *helphelp*
|
|||||||
|
|
||||||
*{subject}* *E149* *E661*
|
*{subject}* *E149* *E661*
|
||||||
:h[elp] {subject} Like ":help", additionally jump to the tag {subject}.
|
:h[elp] {subject} Like ":help", additionally jump to the tag {subject}.
|
||||||
{subject} can include wildcards like "*", "?" and
|
For example: >
|
||||||
|
:help options
|
||||||
|
|
||||||
|
< {subject} can include wildcards such as "*", "?" and
|
||||||
"[a-z]":
|
"[a-z]":
|
||||||
:help z? jump to help for any "z" command
|
:help z? jump to help for any "z" command
|
||||||
:help z. jump to the help for "z."
|
:help z. jump to the help for "z."
|
||||||
|
But when a tag exists it is taken literally:
|
||||||
|
:help :? jump to help for ":?"
|
||||||
|
|
||||||
If there is no full match for the pattern, or there
|
If there is no full match for the pattern, or there
|
||||||
are several matches, the "best" match will be used.
|
are several matches, the "best" match will be used.
|
||||||
A sophisticated algorithm is used to decide which
|
A sophisticated algorithm is used to decide which
|
||||||
@ -68,18 +74,19 @@ Help on help files *helphelp*
|
|||||||
example to find help for CTRL-V in Insert mode: >
|
example to find help for CTRL-V in Insert mode: >
|
||||||
:help i^V
|
:help i^V
|
||||||
<
|
<
|
||||||
To use a regexp |pattern|, first do ":help" and then
|
It is also possible to first do ":help" and then
|
||||||
use ":tag {pattern}" in the help window. The
|
use ":tag {pattern}" in the help window. The
|
||||||
":tnext" command can then be used to jump to other
|
":tnext" command can then be used to jump to other
|
||||||
matches, "tselect" to list matches and choose one. >
|
matches, "tselect" to list matches and choose one. >
|
||||||
:help index| :tse z.
|
:help index
|
||||||
|
:tselect /.*mode
|
||||||
|
|
||||||
< When there is no argument you will see matches for
|
< When there is no argument you will see matches for
|
||||||
"help", to avoid listing all possible matches (that
|
"help", to avoid listing all possible matches (that
|
||||||
would be very slow).
|
would be very slow).
|
||||||
The number of matches displayed is limited to 300.
|
The number of matches displayed is limited to 300.
|
||||||
|
|
||||||
This command can be followed by '|' and another
|
The `:help` command can be followed by '|' and another
|
||||||
command, but you don't need to escape the '|' inside a
|
command, but you don't need to escape the '|' inside a
|
||||||
help command. So these both work: >
|
help command. So these both work: >
|
||||||
:help |
|
:help |
|
||||||
@ -307,7 +314,7 @@ the applicable Vim version. The last field specifies the last modification
|
|||||||
date of the file. Each field is separated by a tab.
|
date of the file. Each field is separated by a tab.
|
||||||
|
|
||||||
At the bottom of the help file, place a Vim modeline to set the 'textwidth'
|
At the bottom of the help file, place a Vim modeline to set the 'textwidth'
|
||||||
and 'tabstop' options and the 'filetype' to 'help'. Never set a global option
|
and 'tabstop' options and the 'filetype' to "help". Never set a global option
|
||||||
in such a modeline, that can have consequences undesired by whoever reads that
|
in such a modeline, that can have consequences undesired by whoever reads that
|
||||||
help.
|
help.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*howto.txt* For Vim version 7.4. Last change: 2006 Apr 02
|
*howto.txt* For Vim version 8.0. 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.4. Last change: 2011 Jun 12
|
*if_cscop.txt* For Vim version 8.0. 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.4. Last change: 2015 Oct 16
|
*if_lua.txt* For Vim version 8.0. Last change: 2015 Oct 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Luis Carvalho
|
VIM REFERENCE MANUAL by Luis Carvalho
|
||||||
@ -59,6 +59,12 @@ Example:
|
|||||||
EOF
|
EOF
|
||||||
endfunction
|
endfunction
|
||||||
<
|
<
|
||||||
|
To see what version of Lua you have: >
|
||||||
|
:lua print(_VERSION)
|
||||||
|
|
||||||
|
If you use LuaJIT you can also use this: >
|
||||||
|
:lua print(jit.version)
|
||||||
|
<
|
||||||
|
|
||||||
*:luado*
|
*:luado*
|
||||||
:[range]luado {body} Execute Lua function "function (line, linenr) {body}
|
:[range]luado {body} Execute Lua function "function (line, linenr) {body}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_mzsch.txt* For Vim version 7.4. Last change: 2016 Jan 24
|
*if_mzsch.txt* For Vim version 8.0. Last change: 2016 Jan 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sergey Khorev
|
VIM REFERENCE MANUAL by Sergey Khorev
|
||||||
@ -97,6 +97,9 @@ procedures is restricted.
|
|||||||
:mzscheme (require (prefix vim- vimext)) ; for MzScheme < 4.x
|
:mzscheme (require (prefix vim- vimext)) ; for MzScheme < 4.x
|
||||||
:mzscheme (require (prefix-in vim- 'vimext)) ; MzScheme 4.x
|
:mzscheme (require (prefix-in vim- 'vimext)) ; MzScheme 4.x
|
||||||
:mzscheme (vim-set-buff-line 10 "This is line #10")
|
:mzscheme (vim-set-buff-line 10 "This is line #10")
|
||||||
|
|
||||||
|
To see what version of MzScheme you have: >
|
||||||
|
:mzscheme (display (version))
|
||||||
<
|
<
|
||||||
Inline script usage: >
|
Inline script usage: >
|
||||||
function! <SID>SetFirstLine()
|
function! <SID>SetFirstLine()
|
||||||
@ -246,7 +249,7 @@ Windows *mzscheme-window*
|
|||||||
5. mzeval() Vim function *mzscheme-mzeval*
|
5. mzeval() Vim function *mzscheme-mzeval*
|
||||||
|
|
||||||
To facilitate bi-directional interface, you can use |mzeval()| function to
|
To facilitate bi-directional interface, you can use |mzeval()| function to
|
||||||
evaluate MzScheme expressions and pass their values to VimL.
|
evaluate MzScheme expressions and pass their values to Vim script.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Using Function references *mzscheme-funcref*
|
6. Using Function references *mzscheme-funcref*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_ole.txt* For Vim version 7.4. Last change: 2008 Aug 16
|
*if_ole.txt* For Vim version 8.0. 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.4. Last change: 2015 Oct 16
|
*if_perl.txt* For Vim version 8.0. Last change: 2015 Oct 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sven Verdoolaege
|
VIM REFERENCE MANUAL by Sven Verdoolaege
|
||||||
@ -83,6 +83,9 @@ Example vim script: >
|
|||||||
EOF
|
EOF
|
||||||
endfunction
|
endfunction
|
||||||
<
|
<
|
||||||
|
To see what version of Perl you have: >
|
||||||
|
:perl print $^V
|
||||||
|
<
|
||||||
|
|
||||||
*:perldo* *:perld*
|
*:perldo* *:perld*
|
||||||
:[range]perld[o] {cmd} Execute Perl command {cmd} for each line in the
|
:[range]perld[o] {cmd} Execute Perl command {cmd} for each line in the
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_pyth.txt* For Vim version 7.4. Last change: 2015 Nov 10
|
*if_pyth.txt* For Vim version 8.0. Last change: 2017 Feb 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@ -16,6 +16,7 @@ The Python Interface to Vim *python* *Python*
|
|||||||
8. pyeval(), py3eval() Vim functions |python-pyeval|
|
8. pyeval(), py3eval() Vim functions |python-pyeval|
|
||||||
9. Dynamic loading |python-dynamic|
|
9. Dynamic loading |python-dynamic|
|
||||||
10. Python 3 |python3|
|
10. Python 3 |python3|
|
||||||
|
11. Python X |python_x|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
{Vi does not have any of these commands}
|
||||||
|
|
||||||
@ -56,7 +57,11 @@ Example: >
|
|||||||
print 'EAT ME'
|
print 'EAT ME'
|
||||||
EOF
|
EOF
|
||||||
endfunction
|
endfunction
|
||||||
<
|
|
||||||
|
To see what version of Python you have: >
|
||||||
|
:python import sys
|
||||||
|
:python print(sys.version)
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
@ -169,8 +174,8 @@ vim.eval(str) *python-eval*
|
|||||||
|
|
||||||
:py tagList = vim.eval('taglist("eval_expr")')
|
:py tagList = vim.eval('taglist("eval_expr")')
|
||||||
< The latter will return a python list of python dicts, for instance:
|
< The latter will return a python list of python dicts, for instance:
|
||||||
[{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name':
|
[{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name': ~
|
||||||
'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 returns special objects described in
|
Like |python-eval|, but returns special objects described in
|
||||||
@ -671,11 +676,11 @@ vim.Function object *python-Function*
|
|||||||
dictionary. Note that explicit `self` keyword used when
|
dictionary. Note that explicit `self` keyword used when
|
||||||
calling resulting object overrides this attribute.
|
calling resulting object overrides this attribute.
|
||||||
auto_rebind Boolean. True if partial created from this Python object
|
auto_rebind Boolean. True if partial created from this Python object
|
||||||
and stored in the VimL dictionary should be automatically
|
and stored in the Vim script dictionary should be
|
||||||
rebound to the dictionary it is stored in when this
|
automatically rebound to the dictionary it is stored in
|
||||||
dictionary is indexed. Exposes Vim internal difference
|
when this dictionary is indexed. Exposes Vim internal
|
||||||
between `dict.func` (auto_rebind=True) and
|
difference between `dict.func` (auto_rebind=True) and
|
||||||
`function(dict.func,dict)` (auto_rebind=False). This
|
`function(dict.func,dict)` (auto_rebind=False). This
|
||||||
attribute makes no sense if `self` attribute is `None`.
|
attribute makes no sense if `self` attribute is `None`.
|
||||||
|
|
||||||
Constructor additionally accepts `args`, `self` and `auto_rebind`
|
Constructor additionally accepts `args`, `self` and `auto_rebind`
|
||||||
@ -706,7 +711,8 @@ vim.Function object *python-Function*
|
|||||||
8. pyeval() and py3eval() Vim functions *python-pyeval*
|
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 Vim script.
|
||||||
|
|pyxeval()| is also available.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
9. Dynamic loading *python-dynamic*
|
9. Dynamic loading *python-dynamic*
|
||||||
@ -725,9 +731,11 @@ To use the Python interface the Python DLL must be in your search path. In a
|
|||||||
console window type "path" to see what directories are used. The 'pythondll'
|
console window type "path" to see what directories are used. The 'pythondll'
|
||||||
or 'pythonthreedll' option can be also used to specify the Python DLL.
|
or 'pythonthreedll' option can be also used to specify the Python DLL.
|
||||||
|
|
||||||
The name of the DLL must match the Python version Vim was compiled with.
|
The name of the DLL should match the Python version Vim was compiled with.
|
||||||
Currently the name is "python24.dll". That is for Python 2.4. To know for
|
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
|
||||||
sure edit "gvim.exe" and search for "python\d*.dll\c".
|
That is the default value for 'pythondll'. For Python 3 it is python35.dll
|
||||||
|
(Python 3.5). To know for sure edit "gvim.exe" and search for
|
||||||
|
"python\d*.dll\c".
|
||||||
|
|
||||||
|
|
||||||
Unix ~
|
Unix ~
|
||||||
@ -744,6 +752,10 @@ match the Python 2.x or Python 3 version Vim was compiled with.
|
|||||||
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")
|
||||||
|
|
||||||
|
To see what version of Python you have: >
|
||||||
|
:py3 import sys
|
||||||
|
:py3 print(sys.version)
|
||||||
< *:py3file*
|
< *:py3file*
|
||||||
The `:py3file` command works similar to `:pyfile`.
|
The `:py3file` command works similar to `:pyfile`.
|
||||||
*:py3do*
|
*:py3do*
|
||||||
@ -803,5 +815,69 @@ dynamically, these has() calls will try to load them. If only one can be
|
|||||||
loaded at a time, just checking if Python 2 or 3 are available will prevent
|
loaded at a time, just checking if Python 2 or 3 are available will prevent
|
||||||
the other one from being available.
|
the other one from being available.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
11. Python X *python_x* *pythonx*
|
||||||
|
|
||||||
|
Because most python code can be written so that it works with python 2.6+ and
|
||||||
|
python 3 the pyx* functions and commands have been written. They work exactly
|
||||||
|
the same as the Python 2 and 3 variants, but select the Python version using
|
||||||
|
the 'pyxversion' setting.
|
||||||
|
|
||||||
|
You should set 'pyxversion' in your |.vimrc| to prefer Python 2 or Python 3
|
||||||
|
for Python commands. If you change this setting at runtime you may risk that
|
||||||
|
state of plugins (such as initialization) may be lost.
|
||||||
|
|
||||||
|
If you want to use a module, you can put it in the {rtp}/pythonx directory.
|
||||||
|
See |pythonx-directory|.
|
||||||
|
|
||||||
|
*:pyx* *:pythonx*
|
||||||
|
The `:pyx` and `:pythonx` commands work similar to `:python`. A simple check
|
||||||
|
if the `:pyx` command is working: >
|
||||||
|
:pyx print("Hello")
|
||||||
|
|
||||||
|
To see what version of Python is being used: >
|
||||||
|
:pyx import sys
|
||||||
|
:pyx print(sys.version)
|
||||||
|
<
|
||||||
|
*:pyxfile* *python_x-special-comments*
|
||||||
|
The `:pyxfile` command works similar to `:pyfile`. However you can add one of
|
||||||
|
these comments to force Vim using `:pyfile` or `:py3file`: >
|
||||||
|
#!/any string/python2 " Shebang. Must be the first line of the file.
|
||||||
|
#!/any string/python3 " Shebang. Must be the first line of the file.
|
||||||
|
# requires python 2.x " Maximum lines depend on 'modelines'.
|
||||||
|
# requires python 3.x " Maximum lines depend on 'modelines'.
|
||||||
|
Unlike normal modelines, the bottom of the file is not checked.
|
||||||
|
If none of them are found, the 'pyxversion' setting is used.
|
||||||
|
*W20* *W21*
|
||||||
|
If Vim does not support the selected Python version a silent message will be
|
||||||
|
printed. Use `:messages` to read them.
|
||||||
|
|
||||||
|
*:pyxdo*
|
||||||
|
The `:pyxdo` command works similar to `:pydo`.
|
||||||
|
|
||||||
|
*has-pythonx*
|
||||||
|
You can test if pyx* commands are available with: >
|
||||||
|
if has('pythonx')
|
||||||
|
echo 'pyx* commands are available. (Python ' . &pyx . ')'
|
||||||
|
endif
|
||||||
|
|
||||||
|
When compiled with only one of |+python| or |+python3|, the has() returns 1.
|
||||||
|
When compiled with both |+python| and |+python3|, the test depends on the
|
||||||
|
'pyxversion' setting. If 'pyxversion' is 0, it tests Python 3 first, and if
|
||||||
|
it is not available then Python 2. If 'pyxversion' is 2 or 3, it tests only
|
||||||
|
Python 2 or 3 respectively.
|
||||||
|
|
||||||
|
Note that for `has('pythonx')` to work it may try to dynamically load Python 3
|
||||||
|
or 2. This may have side effects, especially when Vim can only load one of
|
||||||
|
the two.
|
||||||
|
|
||||||
|
If a user prefers Python 2 and want to fallback to Python 3, he needs to set
|
||||||
|
'pyxversion' explicitly in his |.vimrc|. E.g.: >
|
||||||
|
if has('python')
|
||||||
|
set pyx=2
|
||||||
|
elseif has('python3')
|
||||||
|
set pyx=3
|
||||||
|
endif
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_ruby.txt* For Vim version 7.4. Last change: 2015 Dec 03
|
*if_ruby.txt* For Vim version 8.0. Last change: 2016 Sep 01
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Shugo Maeda
|
VIM REFERENCE MANUAL by Shugo Maeda
|
||||||
@ -58,6 +58,9 @@ Example Vim script: >
|
|||||||
EOF
|
EOF
|
||||||
endfunction
|
endfunction
|
||||||
<
|
<
|
||||||
|
To see what version of Ruby you have: >
|
||||||
|
:ruby print RUBY_VERSION
|
||||||
|
<
|
||||||
|
|
||||||
*:rubydo* *:rubyd* *E265*
|
*:rubydo* *:rubyd* *E265*
|
||||||
:[range]rubyd[o] {cmd} Evaluate Ruby command {cmd} for each line in the
|
:[range]rubyd[o] {cmd} Evaluate Ruby command {cmd} for each line in the
|
||||||
@ -69,7 +72,7 @@ Example Vim script: >
|
|||||||
|
|
||||||
*:rubyfile* *:rubyf*
|
*:rubyfile* *:rubyf*
|
||||||
:rubyf[ile] {file} Execute the Ruby script in {file}. This is the same as
|
:rubyf[ile] {file} Execute the Ruby script in {file}. This is the same as
|
||||||
":ruby load 'file'", but allows file name completion.
|
`:ruby load 'file'`, but allows file name completion.
|
||||||
|
|
||||||
Executing Ruby commands is not possible in the |sandbox|.
|
Executing Ruby commands is not possible in the |sandbox|.
|
||||||
|
|
||||||
@ -204,21 +207,19 @@ MS-Windows ~
|
|||||||
|
|
||||||
You need to install the right version of Ruby for this to work. You can find
|
You need to install the right version of Ruby for this to work. You can find
|
||||||
the package to download from:
|
the package to download from:
|
||||||
http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html
|
http://rubyinstaller.org/downloads/
|
||||||
Currently that is ruby-1.9.1-p429-i386-mswin32.zip
|
Currently that is rubyinstaller-2.2.5.exe
|
||||||
|
|
||||||
To use the Ruby interface the Ruby DLL must be in your search path. In a
|
To use the Ruby interface the Ruby DLL must be in your search path. In a
|
||||||
console window type "path" to see what directories are used. The 'rubydll'
|
console window type "path" to see what directories are used. The 'rubydll'
|
||||||
option can be also used to specify the Ruby DLL.
|
option can be also used to specify the Ruby DLL.
|
||||||
|
|
||||||
The name of the DLL must match the Ruby version Vim was compiled with.
|
The name of the DLL must match the Ruby version Vim was compiled with.
|
||||||
Currently the name is "msvcrt-ruby191.dll". That is for Ruby 1.9.1. To know
|
Currently the name is "msvcrt-ruby220.dll". That is for Ruby 2.2.X. To know
|
||||||
for sure edit "gvim.exe" and search for "ruby\d*.dll\c".
|
for sure edit "gvim.exe" and search for "ruby\d*.dll\c".
|
||||||
|
|
||||||
If you want to build Vim with Ruby 1.9.1, you need to edit the config.h file
|
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
|
||||||
and comment-out the check for _MSC_VER.
|
some tricks. See the src/INSTALLpc.txt for detail.
|
||||||
You may also need to rename the include directory name to match the version,
|
|
||||||
strangely for Ruby 1.9.3 the directory is called 1.9.1.
|
|
||||||
|
|
||||||
|
|
||||||
Unix ~
|
Unix ~
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_sniff.txt* For Vim version 7.4. Last change: 2016 Feb 27
|
*if_sniff.txt* For Vim version 8.0. Last change: 2016 Feb 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL
|
VIM REFERENCE MANUAL
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*if_tcl.txt* For Vim version 7.4. Last change: 2016 Jan 01
|
*if_tcl.txt* For Vim version 8.0. Last change: 2016 Jan 01
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ingo Wilken
|
VIM REFERENCE MANUAL by Ingo Wilken
|
||||||
@ -54,6 +54,9 @@ Example: >
|
|||||||
EOF
|
EOF
|
||||||
endfunction
|
endfunction
|
||||||
<
|
<
|
||||||
|
To see what version of Tcl you have: >
|
||||||
|
:tcl puts [info patchlevel]
|
||||||
|
<
|
||||||
|
|
||||||
*:tcldo* *:tcld*
|
*:tcldo* *:tcld*
|
||||||
:[range]tcld[o] {cmd} Execute Tcl command {cmd} for each line in [range]
|
:[range]tcld[o] {cmd} Execute Tcl command {cmd} for each line in [range]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*indent.txt* For Vim version 7.4. Last change: 2014 Dec 06
|
*indent.txt* For Vim version 8.0. Last change: 2014 Dec 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -324,6 +324,21 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
{ {
|
{ {
|
||||||
void function(); void function();
|
void function(); void function();
|
||||||
} }
|
} }
|
||||||
|
<
|
||||||
|
*cino-E*
|
||||||
|
EN Indent inside C++ linkage specifications (extern "C" or
|
||||||
|
extern "C++") N characters extra compared to a normal block.
|
||||||
|
(default 0).
|
||||||
|
|
||||||
|
cino= cino=E-s >
|
||||||
|
extern "C" { extern "C" {
|
||||||
|
void function(); void function();
|
||||||
|
} }
|
||||||
|
|
||||||
|
extern "C" extern "C"
|
||||||
|
{ {
|
||||||
|
void function(); void function();
|
||||||
|
} }
|
||||||
<
|
<
|
||||||
*cino-p*
|
*cino-p*
|
||||||
pN Parameter declarations for K&R-style function declarations will
|
pN Parameter declarations for K&R-style function declarations will
|
||||||
@ -554,7 +569,7 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
|
|
||||||
|
|
||||||
The defaults, spelled out in full, are:
|
The defaults, spelled out in full, are:
|
||||||
cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,ps,ts,is,+s,
|
cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,E0,ps,ts,is,+s,
|
||||||
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:
|
||||||
@ -813,7 +828,7 @@ PHP indenting can be altered in several ways by modifying the values of some
|
|||||||
global variables:
|
global variables:
|
||||||
|
|
||||||
*php-comment* *PHP_autoformatcomment*
|
*php-comment* *PHP_autoformatcomment*
|
||||||
To not enable auto-formating of comments by default (if you want to use your
|
To not enable auto-formatting of comments by default (if you want to use your
|
||||||
own 'formatoptions'): >
|
own 'formatoptions'): >
|
||||||
:let g:PHP_autoformatcomment = 0
|
:let g:PHP_autoformatcomment = 0
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 7.4. Last change: 2016 Jun 12
|
*index.txt* For Vim version 8.0. Last change: 2017 Feb 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -984,7 +984,7 @@ tag command action in Command-line editing mode ~
|
|||||||
|c_CTRL-E| CTRL-E cursor to end of command-line
|
|c_CTRL-E| CTRL-E cursor to end of command-line
|
||||||
|'cedit'| CTRL-F default value for 'cedit': opens the
|
|'cedit'| CTRL-F default value for 'cedit': opens the
|
||||||
command-line window; otherwise not used
|
command-line window; otherwise not used
|
||||||
CTRL-G not used
|
|c_CTRL-G| CTRL-G next match when 'incsearch' is active
|
||||||
|c_<BS>| <BS> delete the character in front of the cursor
|
|c_<BS>| <BS> delete the character in front of the cursor
|
||||||
|c_digraph| {char1} <BS> {char2}
|
|c_digraph| {char1} <BS> {char2}
|
||||||
enter digraph when 'digraph' is on
|
enter digraph when 'digraph' is on
|
||||||
@ -1002,12 +1002,14 @@ tag command action in Command-line editing mode ~
|
|||||||
|c_CTRL-L| CTRL-L do completion on the pattern in front of the
|
|c_CTRL-L| CTRL-L do completion on the pattern in front of the
|
||||||
cursor and insert the longest common part
|
cursor and insert the longest common part
|
||||||
|c_<CR>| <CR> execute entered command
|
|c_<CR>| <CR> execute entered command
|
||||||
|c_<CR>| CTRL-M same as <CR>
|
|c_CTRL-M| CTRL-M same as <CR>
|
||||||
|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
|
|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
|
||||||
go to next match, otherwise: same as <Down>
|
go to next match, otherwise: recall older
|
||||||
|
command-line from history.
|
||||||
CTRL-O not used
|
CTRL-O not used
|
||||||
|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
|
|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
|
||||||
go to previous match, otherwise: same as <Up>
|
go to previous match, otherwise: recall older
|
||||||
|
command-line from history.
|
||||||
|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
|
|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
|
||||||
control flow
|
control flow
|
||||||
|c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
|
|c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
|
||||||
@ -1017,7 +1019,7 @@ tag command action in Command-line editing mode ~
|
|||||||
insert the contents of a register or object
|
insert the contents of a register or object
|
||||||
under the cursor literally
|
under the cursor literally
|
||||||
CTRL-S (used for terminal control flow)
|
CTRL-S (used for terminal control flow)
|
||||||
CTRL-T not used
|
|c_CTRL-T| CTRL-T previous match when 'incsearch' is active
|
||||||
|c_CTRL-U| CTRL-U remove all characters
|
|c_CTRL-U| CTRL-U remove all characters
|
||||||
|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
|
|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
|
||||||
digit decimal number as a single byte.
|
digit decimal number as a single byte.
|
||||||
@ -1026,7 +1028,7 @@ tag command action in Command-line editing mode ~
|
|||||||
CTRL-Y copy (yank) modeless selection
|
CTRL-Y copy (yank) modeless selection
|
||||||
CTRL-Z not used (reserved for suspend)
|
CTRL-Z not used (reserved for suspend)
|
||||||
|c_<Esc>| <Esc> abandon command-line without executing it
|
|c_<Esc>| <Esc> abandon command-line without executing it
|
||||||
|c_<Esc>| CTRL-[ same as <Esc>
|
|c_CTRL-[| CTRL-[ same as <Esc>
|
||||||
|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
|
|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
|
||||||
|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
|
|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
|
||||||
abandon command-line
|
abandon command-line
|
||||||
@ -1139,6 +1141,7 @@ tag command action ~
|
|||||||
|:caddfile| :caddf[ile] add error message to current quickfix list
|
|:caddfile| :caddf[ile] add error message to current quickfix list
|
||||||
|:call| :cal[l] call a function
|
|:call| :cal[l] call a function
|
||||||
|:catch| :cat[ch] part of a :try command
|
|:catch| :cat[ch] part of a :try command
|
||||||
|
|:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window
|
||||||
|:cbuffer| :cb[uffer] parse error messages and jump to first error
|
|:cbuffer| :cb[uffer] parse error messages and jump to first error
|
||||||
|:cc| :cc go to specific error
|
|:cc| :cc go to specific error
|
||||||
|:cclose| :ccl[ose] close quickfix window
|
|:cclose| :ccl[ose] close quickfix window
|
||||||
@ -1156,6 +1159,7 @@ tag command action ~
|
|||||||
|:chdir| :chd[ir] change directory
|
|:chdir| :chd[ir] change directory
|
||||||
|:checkpath| :che[ckpath] list included files
|
|:checkpath| :che[ckpath] list included files
|
||||||
|:checktime| :checkt[ime] check timestamp of loaded buffers
|
|:checktime| :checkt[ime] check timestamp of loaded buffers
|
||||||
|
|:chistory| :chi[story] list the error lists
|
||||||
|:clast| :cla[st] go to the specified error, default last one
|
|:clast| :cla[st] go to the specified error, default last one
|
||||||
|:clearjumps| :cle[arjumps] clear the jump list
|
|:clearjumps| :cle[arjumps] clear the jump list
|
||||||
|:clist| :cl[ist] list all errors
|
|:clist| :cl[ist] list all errors
|
||||||
@ -1205,7 +1209,7 @@ tag command action ~
|
|||||||
|:display| :di[splay] display registers
|
|:display| :di[splay] display registers
|
||||||
|:djump| :dj[ump] jump to #define
|
|:djump| :dj[ump] jump to #define
|
||||||
|:dl| :dl short for |:delete| with the 'l' flag
|
|:dl| :dl short for |:delete| with the 'l' flag
|
||||||
|:dl| :del[ete]l short for |:delete| with the 'l' flag
|
|:del| :del[ete]l short for |:delete| with the 'l' flag
|
||||||
|:dlist| :dli[st] list #defines
|
|:dlist| :dli[st] list #defines
|
||||||
|:doautocmd| :do[autocmd] apply autocommands to current buffer
|
|:doautocmd| :do[autocmd] apply autocommands to current buffer
|
||||||
|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
|
|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
|
||||||
@ -1237,6 +1241,7 @@ tag command action ~
|
|||||||
|:file| :f[ile] show or set the current file name
|
|:file| :f[ile] show or set the current file name
|
||||||
|:files| :files list all files in the buffer list
|
|:files| :files list all files in the buffer list
|
||||||
|:filetype| :filet[ype] switch file type detection on/off
|
|:filetype| :filet[ype] switch file type detection on/off
|
||||||
|
|:filter| :filt[er] filter output of following command
|
||||||
|:find| :fin[d] find file in 'path' and edit it
|
|:find| :fin[d] find file in 'path' and edit it
|
||||||
|:finally| :fina[lly] part of a :try command
|
|:finally| :fina[lly] part of a :try command
|
||||||
|:finish| :fini[sh] quit sourcing a Vim script
|
|:finish| :fini[sh] quit sourcing a Vim script
|
||||||
@ -1299,6 +1304,7 @@ tag command action ~
|
|||||||
|:last| :la[st] go to the last file in the argument list
|
|:last| :la[st] go to the last file in the argument list
|
||||||
|:language| :lan[guage] set the language (locale)
|
|:language| :lan[guage] set the language (locale)
|
||||||
|:later| :lat[er] go to newer change, redo
|
|:later| :lat[er] go to newer change, redo
|
||||||
|
|:lbottom| :lbo[ttom] scroll to the bottom of the location window
|
||||||
|:lbuffer| :lb[uffer] parse locations and jump to first location
|
|:lbuffer| :lb[uffer] parse locations and jump to first location
|
||||||
|:lcd| :lc[d] change directory locally
|
|:lcd| :lc[d] change directory locally
|
||||||
|:lchdir| :lch[dir] change directory locally
|
|:lchdir| :lch[dir] change directory locally
|
||||||
@ -1318,6 +1324,7 @@ tag command action ~
|
|||||||
|:lgrep| :lgr[ep] run 'grepprg' and jump to first match
|
|:lgrep| :lgr[ep] run 'grepprg' and jump to first match
|
||||||
|:lgrepadd| :lgrepa[dd] like :grep, but append to current list
|
|:lgrepadd| :lgrepa[dd] like :grep, but append to current list
|
||||||
|:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
|
|:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list
|
||||||
|
|:lhistory| :lhi[story] list the location lists
|
||||||
|:ll| :ll go to specific location
|
|:ll| :ll go to specific location
|
||||||
|:llast| :lla[st] go to the specified location, default last one
|
|:llast| :lla[st] go to the specified location, default last one
|
||||||
|:llist| :lli[st] list all locations
|
|:llist| :lli[st] list all locations
|
||||||
@ -1435,6 +1442,10 @@ tag command action ~
|
|||||||
|:python| :py[thon] execute Python command
|
|:python| :py[thon] execute Python command
|
||||||
|:pydo| :pyd[o] execute Python command for each line
|
|:pydo| :pyd[o] execute Python command for each line
|
||||||
|:pyfile| :pyf[ile] execute Python script file
|
|:pyfile| :pyf[ile] execute Python script file
|
||||||
|
|:pyx| :pyx execute |python_x| command
|
||||||
|
|:pythonx| :pythonx same as :pyx
|
||||||
|
|:pyxdo| :pyxd[o] execute |python_x| command for each line
|
||||||
|
|:pyxfile| :pyxf[ile] execute |python_x| script file
|
||||||
|:quit| :q[uit] quit current window (when one window quit Vim)
|
|:quit| :q[uit] quit current window (when one window quit Vim)
|
||||||
|:quitall| :quita[ll] quit Vim
|
|:quitall| :quita[ll] quit Vim
|
||||||
|:qall| :qa[ll] quit Vim
|
|:qall| :qa[ll] quit Vim
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*insert.txt* For Vim version 7.4. Last change: 2016 Jan 31
|
*insert.txt* For Vim version 8.0. Last change: 2016 Jan 31
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1103,7 +1103,7 @@ items:
|
|||||||
empty when non-zero this match will be added even when it is
|
empty when non-zero this match will be added even when it is
|
||||||
an empty string
|
an empty string
|
||||||
|
|
||||||
All of these except 'icase', 'dup' and 'empty' must be a string. If an item
|
All of these except "icase", "dup" and "empty" must be a string. If an item
|
||||||
does not meet these requirements then an error message is given and further
|
does not meet these requirements then an error message is given and further
|
||||||
items in the list are not used. You can mix string and Dictionary items in
|
items in the list are not used. You can mix string and Dictionary items in
|
||||||
the returned list.
|
the returned list.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*intro.txt* For Vim version 7.4. Last change: 2015 Jan 20
|
*intro.txt* For Vim version 8.0. Last change: 2016 Sep 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -96,21 +96,18 @@ mention that.
|
|||||||
|
|
||||||
*mail-list* *maillist*
|
*mail-list* *maillist*
|
||||||
There are several mailing lists for Vim:
|
There are several mailing lists for Vim:
|
||||||
<vim@vim.org>
|
<vim@vim.org> *vim-use* *vim_use*
|
||||||
For discussions about using existing versions of Vim: Useful mappings,
|
For discussions about using existing versions of Vim: Useful mappings,
|
||||||
questions, answers, where to get a specific version, etc. There are
|
questions, answers, where to get a specific version, etc. There are
|
||||||
quite a few people watching this list and answering questions, also
|
quite a few people watching this list and answering questions, also
|
||||||
for beginners. Don't hesitate to ask your question here.
|
for beginners. Don't hesitate to ask your question here.
|
||||||
<vim-dev@vim.org> *vim-dev* *vimdev*
|
<vim-dev@vim.org> *vim-dev* *vim_dev* *vimdev*
|
||||||
For discussions about changing Vim: New features, porting, patches,
|
For discussions about changing Vim: New features, porting, patches,
|
||||||
beta-test versions, etc.
|
beta-test versions, etc.
|
||||||
<vim-announce@vim.org> *vim-announce*
|
<vim-announce@vim.org> *vim-announce* *vim_announce*
|
||||||
Announcements about new versions of Vim; also for beta-test versions
|
Announcements about new versions of Vim; also for beta-test versions
|
||||||
and ports to different systems. This is a read-only list.
|
and ports to different systems. This is a read-only list.
|
||||||
<vim-multibyte@vim.org> *vim-multibyte*
|
<vim-mac@vim.org> *vim-mac* *vim_mac*
|
||||||
For discussions about using and improving the multi-byte aspects of
|
|
||||||
Vim.
|
|
||||||
<vim-mac@vim.org> *vim-mac*
|
|
||||||
For discussions about using and improving the Macintosh version of
|
For discussions about using and improving the Macintosh version of
|
||||||
Vim.
|
Vim.
|
||||||
|
|
||||||
@ -135,10 +132,14 @@ http://www.vim.org/maillist.php
|
|||||||
|
|
||||||
Bug reports: *bugs* *bug-reports* *bugreport.vim*
|
Bug reports: *bugs* *bug-reports* *bugreport.vim*
|
||||||
|
|
||||||
Send bug reports to: Vim Developers <vim-dev@vim.org>
|
There are two ways to report bugs, both work:
|
||||||
This is a maillist, you need to become a member first and many people will see
|
1. Send bug reports to: Vim Developers <vim-dev@vim.org>
|
||||||
the message. If you don't want that, e.g. because it is a security issue,
|
This is a maillist, you need to become a member first and many people will
|
||||||
send it to <bugs@vim.org>, this only goes to the Vim maintainer (that's Bram).
|
see the message. If you don't want that, e.g. because it is a security
|
||||||
|
issue, send it to <bugs@vim.org>, this only goes to the Vim maintainer
|
||||||
|
(that's Bram).
|
||||||
|
2. Open issue on GitHub: https://github.com/vim/vim/issues
|
||||||
|
The text will be forwarded to the vim-dev maillist.
|
||||||
|
|
||||||
Please be brief; all the time that is spent on answering mail is subtracted
|
Please be brief; all the time that is spent on answering mail is subtracted
|
||||||
from the time that is spent on improving Vim! Always give a reproducible
|
from the time that is spent on improving Vim! Always give a reproducible
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 7.4. Last change: 2016 Jun 10
|
*map.txt* For Vim version 8.0. Last change: 2016 Oct 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -431,6 +431,9 @@ with a space.
|
|||||||
Note: When using mappings for Visual mode, you can use the "'<" mark, which
|
Note: When using mappings for Visual mode, you can use the "'<" mark, which
|
||||||
is the start of the last selected Visual area in the current buffer |'<|.
|
is the start of the last selected Visual area in the current buffer |'<|.
|
||||||
|
|
||||||
|
The |:filter| command can be used to select what mappings to list. The
|
||||||
|
pattern is matched against the {lhs} and {rhs} in the raw form.
|
||||||
|
|
||||||
*:map-verbose*
|
*:map-verbose*
|
||||||
When 'verbose' is non-zero, listing a key map will also display where it was
|
When 'verbose' is non-zero, listing a key map will also display where it was
|
||||||
last defined. Example: >
|
last defined. Example: >
|
||||||
@ -1177,6 +1180,10 @@ scripts.
|
|||||||
" Command has the -register attribute
|
" Command has the -register attribute
|
||||||
b Command is local to current buffer
|
b Command is local to current buffer
|
||||||
(see below for details on attributes)
|
(see below for details on attributes)
|
||||||
|
The list can be filtered on command name with
|
||||||
|
|:filter|, e.g., to list all commands with "Pyth" in
|
||||||
|
the name: >
|
||||||
|
filter Pyth command
|
||||||
|
|
||||||
:com[mand] {cmd} List the user-defined commands that start with {cmd}
|
:com[mand] {cmd} List the user-defined commands that start with {cmd}
|
||||||
|
|
||||||
@ -1273,7 +1280,9 @@ completion can be enabled:
|
|||||||
-complete=locale locale names (as output of locale -a)
|
-complete=locale locale names (as output of locale -a)
|
||||||
-complete=mapping mapping name
|
-complete=mapping mapping name
|
||||||
-complete=menu menus
|
-complete=menu menus
|
||||||
|
-complete=messages |:messages| suboptions
|
||||||
-complete=option options
|
-complete=option options
|
||||||
|
-complete=packadd optional package |pack-add| names
|
||||||
-complete=shellcmd Shell command
|
-complete=shellcmd Shell command
|
||||||
-complete=sign |:sign| suboptions
|
-complete=sign |:sign| suboptions
|
||||||
-complete=syntax syntax file names |'syntax'|
|
-complete=syntax syntax file names |'syntax'|
|
||||||
@ -1415,9 +1424,11 @@ The valid escape sequences are
|
|||||||
<mods> The command modifiers, if specified. Otherwise, expands to
|
<mods> The command modifiers, if specified. Otherwise, expands to
|
||||||
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
|
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
|
||||||
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,
|
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,
|
||||||
|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:lockmarks|,
|
|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:leftabove|,
|
||||||
|:noswapfile|, |:silent|, |:tab|, |:topleft|, |:verbose|, and
|
|:lockmarks|, |:noswapfile| |:rightbelow|, |:silent|, |:tab|,
|
||||||
|:vertical|.
|
|:topleft|, |:verbose|, and |:vertical|.
|
||||||
|
Note that these are not yet supported: |:noautocmd|,
|
||||||
|
|:sandbox| and |:unsilent|.
|
||||||
Examples: >
|
Examples: >
|
||||||
command! -nargs=+ -complete=file MyEdit
|
command! -nargs=+ -complete=file MyEdit
|
||||||
\ for f in expand(<q-args>, 0, 1) |
|
\ for f in expand(<q-args>, 0, 1) |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*mbyte.txt* For Vim version 7.4. Last change: 2013 May 18
|
*mbyte.txt* For Vim version 8.0. Last change: 2016 Jul 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
@ -1010,6 +1010,7 @@ text, you can use the 'keymap' option. This will translate one or more
|
|||||||
(English) characters to another (non-English) character. This only happens
|
(English) characters to another (non-English) character. This only happens
|
||||||
when typing text, not when typing Vim commands. This avoids having to switch
|
when typing text, not when typing Vim commands. This avoids having to switch
|
||||||
between two keyboard settings.
|
between two keyboard settings.
|
||||||
|
{only available when compiled with the |+keymap| feature}
|
||||||
|
|
||||||
The value of the 'keymap' option specifies a keymap file to use. The name of
|
The value of the 'keymap' option specifies a keymap file to use. The name of
|
||||||
this file is one of these two:
|
this file is one of these two:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*message.txt* For Vim version 7.4. Last change: 2016 Apr 14
|
*message.txt* For Vim version 8.0. Last change: 2017 Jan 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -39,6 +39,7 @@ back.
|
|||||||
Note: If the output has been stopped with "q" at the more prompt, it will only
|
Note: If the output has been stopped with "q" at the more prompt, it will only
|
||||||
be displayed up to this point.
|
be displayed up to this point.
|
||||||
The previous command output is cleared when another command produces output.
|
The previous command output is cleared when another command produces output.
|
||||||
|
The "g<" output is not redirected.
|
||||||
|
|
||||||
If you are using translated messages, the first printed line tells who
|
If you are using translated messages, the first printed line tells who
|
||||||
maintains the messages or the translations. You can use this to contact the
|
maintains the messages or the translations. You can use this to contact the
|
||||||
@ -128,8 +129,9 @@ closed properly. Mostly harmless.
|
|||||||
Command too recursive
|
Command too recursive
|
||||||
|
|
||||||
This happens when an Ex command executes an Ex command that executes an Ex
|
This happens when an Ex command executes an Ex command that executes an Ex
|
||||||
command, etc. This is only allowed 200 times. When it's more there probably
|
command, etc. The limit is 200 or the value of 'maxfuncdepth', whatever is
|
||||||
is an endless loop. Probably a |:execute| or |:source| command is involved.
|
larger. When it's more there probably is an endless loop. Probably a
|
||||||
|
|:execute| or |:source| command is involved.
|
||||||
|
|
||||||
*E254* >
|
*E254* >
|
||||||
Cannot allocate color {name}
|
Cannot allocate color {name}
|
||||||
@ -673,6 +675,12 @@ You must be using an awful lot of buffers. It's now possible that two buffers
|
|||||||
have the same number, which causes various problems. You might want to exit
|
have the same number, which causes various problems. You might want to exit
|
||||||
Vim and restart it.
|
Vim and restart it.
|
||||||
|
|
||||||
|
*E931* >
|
||||||
|
Buffer cannot be registered
|
||||||
|
|
||||||
|
Out of memory or a duplicate buffer number. May happen after W14. Looking up
|
||||||
|
a buffer will not always work, better restart Vim.
|
||||||
|
|
||||||
*E296* *E297* >
|
*E296* *E297* >
|
||||||
Seek error in swap file write
|
Seek error in swap file write
|
||||||
Write error in swap file
|
Write error in swap file
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*mlang.txt* For Vim version 7.4. Last change: 2016 Jan 16
|
*mlang.txt* For Vim version 8.0. Last change: 2017 Mar 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -179,6 +179,7 @@ Send an e-mail to the Vim maintainer <maintainer@vim.org>.
|
|||||||
special characters like "&" and "<Tab>" need to be
|
special characters like "&" and "<Tab>" need to be
|
||||||
included. Spaces and dots need to be escaped with a
|
included. Spaces and dots need to be escaped with a
|
||||||
backslash, just like in other |:menu| commands.
|
backslash, just like in other |:menu| commands.
|
||||||
|
Case in {english} is ignored.
|
||||||
|
|
||||||
See the $VIMRUNTIME/lang directory for examples.
|
See the $VIMRUNTIME/lang directory for examples.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*motion.txt* For Vim version 7.4. Last change: 2016 Jun 12
|
*motion.txt* For Vim version 8.0. Last change: 2016 Nov 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -586,7 +586,7 @@ i[ "inner [] block", select [count] '[' ']' blocks. This
|
|||||||
When used in Visual mode it is made characterwise.
|
When used in Visual mode it is made characterwise.
|
||||||
|
|
||||||
a) *v_a)* *a)* *a(*
|
a) *v_a)* *a)* *a(*
|
||||||
a( *v_ab* *v_a(* *ab*
|
a( *vab* *v_ab* *v_a(* *ab*
|
||||||
ab "a block", select [count] blocks, from "[count] [(" to
|
ab "a block", select [count] blocks, from "[count] [(" to
|
||||||
the matching ')', including the '(' and ')' (see
|
the matching ')', including the '(' and ')' (see
|
||||||
|[(|). Does not include white space outside of the
|
|[(|). Does not include white space outside of the
|
||||||
@ -594,7 +594,7 @@ ab "a block", select [count] blocks, from "[count] [(" to
|
|||||||
When used in Visual mode it is made characterwise.
|
When used in Visual mode it is made characterwise.
|
||||||
|
|
||||||
i) *v_i)* *i)* *i(*
|
i) *v_i)* *i)* *i(*
|
||||||
i( *v_ib* *v_i(* *ib*
|
i( *vib* *v_ib* *v_i(* *ib*
|
||||||
ib "inner block", select [count] blocks, from "[count] [("
|
ib "inner block", select [count] blocks, from "[count] [("
|
||||||
to the matching ')', excluding the '(' and ')' (see
|
to the matching ')', excluding the '(' and ')' (see
|
||||||
|[(|).
|
|[(|).
|
||||||
@ -915,6 +915,7 @@ was made yet in the current file.
|
|||||||
then the position can be near the end of what the
|
then the position can be near the end of what the
|
||||||
command changed. For example when inserting a word,
|
command changed. For example when inserting a word,
|
||||||
the position will be on the last character.
|
the position will be on the last character.
|
||||||
|
To jump to older changes use |g;|.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
*'(* *`(*
|
*'(* *`(*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*netbeans.txt* For Vim version 7.4. Last change: 2016 Feb 18
|
*netbeans.txt* For Vim version 8.0. Last change: 2016 Jul 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
||||||
@ -59,6 +59,8 @@ Current projects using the NetBeans protocol of Vim are:
|
|||||||
|
|
||||||
Check the specific project pages to see how to use Vim with these projects.
|
Check the specific project pages to see how to use Vim with these projects.
|
||||||
|
|
||||||
|
An alternative is to use a channel, see |channel|.
|
||||||
|
|
||||||
In the rest of this help page, we will use the term "Vim Controller" to
|
In the rest of this help page, we will use the term "Vim Controller" to
|
||||||
describe the program controlling Vim through the NetBeans socket interface.
|
describe the program controlling Vim through the NetBeans socket interface.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 7.4. Last change: 2016 Jun 19
|
*options.txt* For Vim version 8.0. Last change: 2017 Mar 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -10,7 +10,7 @@ Options *options*
|
|||||||
2. Automatically setting options |auto-setting|
|
2. Automatically setting options |auto-setting|
|
||||||
3. Options summary |option-summary|
|
3. Options summary |option-summary|
|
||||||
|
|
||||||
For an overview of options see help.txt |option-list|.
|
For an overview of options see quickref.txt |option-list|.
|
||||||
|
|
||||||
Vim has a number of internal variables and switches which can be set to
|
Vim has a number of internal variables and switches which can be set to
|
||||||
achieve special effects. These options come in three forms:
|
achieve special effects. These options come in three forms:
|
||||||
@ -242,7 +242,7 @@ opt+=val" the expansion is done before the adding or removing.
|
|||||||
Handling of local options *local-options*
|
Handling of local options *local-options*
|
||||||
|
|
||||||
Some of the options only apply to a window or buffer. Each window or buffer
|
Some of the options only apply to a window or buffer. Each window or buffer
|
||||||
has its own copy of this option, thus can each have their own value. This
|
has its own copy of this option, thus each can have its own value. This
|
||||||
allows you to set 'list' in one window but not in another. And set
|
allows you to set 'list' in one window but not in another. And set
|
||||||
'shiftwidth' to 3 in one buffer and 4 in another.
|
'shiftwidth' to 3 in one buffer and 4 in another.
|
||||||
|
|
||||||
@ -261,10 +261,10 @@ global value, which is used for new buffers. With ":set" both the local and
|
|||||||
global value is changed. With "setlocal" only the local value is changed,
|
global value is changed. With "setlocal" only the local value is changed,
|
||||||
thus this value is not used when editing a new buffer.
|
thus this value is not used when editing a new buffer.
|
||||||
|
|
||||||
When editing a buffer that has been edited before, the last used window
|
When editing a buffer that has been edited before, the options from the window
|
||||||
options are used again. If this buffer has been edited in this window, the
|
that was last closed are used again. If this buffer has been edited in this
|
||||||
values from back then are used. Otherwise the values from the window where
|
window, the values from back then are used. Otherwise the values from the
|
||||||
the buffer was edited last are used.
|
last closed window where the buffer was edited last are used.
|
||||||
|
|
||||||
It's possible to set a local window option specifically for a type of buffer.
|
It's possible to set a local window option specifically for a type of buffer.
|
||||||
When you edit another buffer in the same window, you don't want to keep
|
When you edit another buffer in the same window, you don't want to keep
|
||||||
@ -887,7 +887,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
done with ":syntax on".
|
done with ":syntax on".
|
||||||
|
|
||||||
*'backspace'* *'bs'*
|
*'backspace'* *'bs'*
|
||||||
'backspace' 'bs' string (default "")
|
'backspace' 'bs' string (default "", set to "indent,eol,start"
|
||||||
|
in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert
|
Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert
|
||||||
@ -1119,6 +1120,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
set bexpr=MyBalloonExpr()
|
set bexpr=MyBalloonExpr()
|
||||||
set ballooneval
|
set ballooneval
|
||||||
<
|
<
|
||||||
|
Also see |balloon_show()|, can be used if the content of the balloon
|
||||||
|
is to be fetched asynchronously.
|
||||||
|
|
||||||
NOTE: The balloon is displayed only if the cursor is on a text
|
NOTE: The balloon is displayed only if the cursor is on a text
|
||||||
character. If the result of evaluating 'balloonexpr' is not empty,
|
character. If the result of evaluating 'balloonexpr' is not empty,
|
||||||
Vim does not try to send a message to an external debugger (Netbeans
|
Vim does not try to send a message to an external debugger (Netbeans
|
||||||
@ -1427,8 +1431,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Only non-printable keys are allowed.
|
Only non-printable keys are allowed.
|
||||||
The key can be specified as a single character, but it is difficult to
|
The key can be specified as a single character, but it is difficult to
|
||||||
type. The preferred way is to use the <> notation. Examples: >
|
type. The preferred way is to use the <> notation. Examples: >
|
||||||
:set cedit=<C-Y>
|
:exe "set cedit=\<C-Y>"
|
||||||
:set cedit=<Esc>
|
:exe "set cedit=\<Esc>"
|
||||||
< |Nvi| also has this option, but it only uses the first character.
|
< |Nvi| also has this option, but it only uses the first character.
|
||||||
See |cmdwin|.
|
See |cmdwin|.
|
||||||
|
|
||||||
@ -1696,17 +1700,19 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'compatible'* *'cp'* *'nocompatible'* *'nocp'*
|
*'compatible'* *'cp'* *'nocompatible'* *'nocp'*
|
||||||
'compatible' 'cp' boolean (default on, off when a |vimrc| or |gvimrc|
|
'compatible' 'cp' boolean (default on, off when a |vimrc| or |gvimrc|
|
||||||
file is found)
|
file is found, reset in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
This option has the effect of making Vim either more Vi-compatible, or
|
This option has the effect of making Vim either more Vi-compatible, or
|
||||||
make Vim behave in a more useful way.
|
make Vim behave in a more useful way.
|
||||||
|
|
||||||
This is a special kind of option, because when it's set or reset,
|
This is a special kind of option, because when it's set or reset,
|
||||||
other options are also changed as a side effect. CAREFUL: Setting or
|
other options are also changed as a side effect.
|
||||||
resetting this option can have a lot of unexpected effects: Mappings
|
NOTE: Setting or resetting this option can have a lot of unexpected
|
||||||
are interpreted in another way, undo behaves differently, etc. If you
|
effects: Mappings are interpreted in another way, undo behaves
|
||||||
set this option in your vimrc file, you should probably put it at the
|
differently, etc. If you set this option in your vimrc file, you
|
||||||
very start.
|
should probably put it at the very start.
|
||||||
|
|
||||||
By default this option is on and the Vi defaults are used for the
|
By default this option is on and the Vi defaults are used for the
|
||||||
options. This default was chosen for those people who want to use Vim
|
options. This default was chosen for those people who want to use Vim
|
||||||
just like Vi, and don't even (want to) know about the 'compatible'
|
just like Vi, and don't even (want to) know about the 'compatible'
|
||||||
@ -1721,69 +1727,98 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|posix-compliance|.
|
|posix-compliance|.
|
||||||
You can also set this option with the "-C" argument, and reset it with
|
You can also set this option with the "-C" argument, and reset it with
|
||||||
"-N". See |-C| and |-N|.
|
"-N". See |-C| and |-N|.
|
||||||
Switching this option off makes the Vim defaults be used for options
|
See 'cpoptions' for more fine tuning of Vi compatibility.
|
||||||
that have a different Vi and Vim default value. See the options
|
|
||||||
marked with a '+' below. Other options are not modified.
|
|
||||||
At the moment this option is set, several other options will be set
|
|
||||||
or reset to make Vim as Vi-compatible as possible. See the table
|
|
||||||
below. This can be used if you want to revert to Vi compatible
|
|
||||||
editing.
|
|
||||||
See also 'cpoptions'.
|
|
||||||
|
|
||||||
option + set value effect ~
|
When this option is set, numerous other options are set to make Vim as
|
||||||
|
Vi-compatible as possible. When this option is unset, various options
|
||||||
|
are set to make Vim more useful. The table below lists all the
|
||||||
|
options affected.
|
||||||
|
The {?} column indicates when the options are affected:
|
||||||
|
+ Means that the option is set to the value given in {set value} when
|
||||||
|
'compatible' is set.
|
||||||
|
& Means that the option is set to the value given in {set value} when
|
||||||
|
'compatible' is set AND is set to its Vim default value when
|
||||||
|
'compatible' is unset.
|
||||||
|
- Means the option is NOT changed when setting 'compatible' but IS
|
||||||
|
set to its Vim default when 'compatible' is unset.
|
||||||
|
The {effect} column summarises the change when 'compatible' is set.
|
||||||
|
|
||||||
'allowrevins' off no CTRL-_ command
|
option ? set value effect
|
||||||
'backupcopy' Unix: "yes" backup file is a copy
|
|
||||||
others: "auto" copy or rename backup file
|
'allowrevins' + off no CTRL-_ command
|
||||||
'backspace' "" normal backspace
|
'antialias' + off don't use antialiased fonts
|
||||||
'backup' off no backup file
|
'arabic' + off reset arabic-related options
|
||||||
'cindent' off no C code indentation
|
'arabicshape' + on correct character shapes
|
||||||
'cedit' + "" no key to open the |cmdwin|
|
'backspace' + "" normal backspace
|
||||||
'cpoptions' + (all flags) Vi-compatible flags
|
'backup' + off no backup file
|
||||||
'cscopetag' off don't use cscope for ":tag"
|
'backupcopy' & Unix: "yes" backup file is a copy
|
||||||
|
else: "auto" copy or rename backup file
|
||||||
|
'balloonexpr' + "" text to show in evaluation balloon
|
||||||
|
'breakindent' + off don't indent when wrapping lines
|
||||||
|
'cedit' - {unchanged} {set vim default only on resetting 'cp'}
|
||||||
|
'cindent' + off no C code indentation
|
||||||
|
'compatible' - {unchanged} {set vim default only on resetting 'cp'}
|
||||||
|
'copyindent' + off don't copy indent structure
|
||||||
|
'cpoptions' & (all flags) Vi-compatible flags
|
||||||
|
'cscopepathcomp'+ 0 don't show directories in tags list
|
||||||
|
'cscoperelative'+ off
|
||||||
|
'cscopetag' + off don't use cscope for ":tag"
|
||||||
'cscopetagorder' 0 see |cscopetagorder|
|
'cscopetagorder' 0 see |cscopetagorder|
|
||||||
'cscopeverbose' off see |cscopeverbose|
|
'cscopeverbose' + off see |cscopeverbose|
|
||||||
'digraph' off no digraphs
|
'delcombine' + off unicode: delete whole char combination
|
||||||
'esckeys' + off no <Esc>-keys in Insert mode
|
'digraph' + off no digraphs
|
||||||
'expandtab' off tabs not expanded to spaces
|
'esckeys' & off no <Esc>-keys in Insert mode
|
||||||
'fileformats' + "" no automatic file format detection,
|
'expandtab' + off tabs not expanded to spaces
|
||||||
|
'fileformats' & "" no automatic file format detection,
|
||||||
"dos,unix" except for DOS, Windows and OS/2
|
"dos,unix" except for DOS, Windows and OS/2
|
||||||
'formatoptions' + "vt" Vi compatible formatting
|
'formatexpr' + "" use 'formatprg' for auto-formatting
|
||||||
'gdefault' off no default 'g' flag for ":s"
|
'formatoptions' & "vt" Vi compatible formatting
|
||||||
'history' + 0 no commandline history
|
'gdefault' + off no default 'g' flag for ":s"
|
||||||
'hkmap' off no Hebrew keyboard mapping
|
'history' & 0 no commandline history
|
||||||
'hkmapp' off no phonetic Hebrew keyboard mapping
|
'hkmap' + off no Hebrew keyboard mapping
|
||||||
'hlsearch' off no highlighting of search matches
|
'hkmapp' + off no phonetic Hebrew keyboard mapping
|
||||||
'incsearch' off no incremental searching
|
'hlsearch' + off no highlighting of search matches
|
||||||
'indentexpr' "" no indenting by expression
|
'incsearch' + off no incremental searching
|
||||||
'insertmode' off do not start in Insert mode
|
'indentexpr' + "" no indenting by expression
|
||||||
'iskeyword' + "@,48-57,_" keywords contain alphanumeric
|
'insertmode' + off do not start in Insert mode
|
||||||
|
'iskeyword' & "@,48-57,_" keywords contain alphanumeric
|
||||||
characters and '_'
|
characters and '_'
|
||||||
'joinspaces' on insert 2 spaces after period
|
'joinspaces' + on insert 2 spaces after period
|
||||||
'modeline' + off no modelines
|
'modeline' & off no modelines
|
||||||
'more' + off no pauses in listings
|
'more' & off no pauses in listings
|
||||||
'revins' off no reverse insert
|
'mzquantum' - {unchanged} {set vim default only on resetting 'cp'}
|
||||||
'ruler' off no ruler
|
'numberwidth' & 8 min number of columns for line number
|
||||||
'scrolljump' 1 no jump scroll
|
'preserveindent'+ off don't preserve current indent structure
|
||||||
'scrolloff' 0 no scroll offset
|
when changing it
|
||||||
'shiftround' off indent not rounded to shiftwidth
|
'revins' + off no reverse insert
|
||||||
'shortmess' + "" no shortening of messages
|
'ruler' + off no ruler
|
||||||
'showcmd' + off command characters not shown
|
'scrolljump' + 1 no jump scroll
|
||||||
'showmode' + off current mode not shown
|
'scrolloff' + 0 no scroll offset
|
||||||
'smartcase' off no automatic ignore case switch
|
'shelltemp' - {unchanged} {set vim default only on resetting 'cp'}
|
||||||
'smartindent' off no smart indentation
|
'shiftround' + off indent not rounded to shiftwidth
|
||||||
'smarttab' off no smart tab size
|
'shortmess' & "" no shortening of messages
|
||||||
'softtabstop' 0 tabs are always 'tabstop' positions
|
'showcmd' & off command characters not shown
|
||||||
'startofline' on goto startofline with some commands
|
'showmode' & off current mode not shown
|
||||||
'tagrelative' + off tag file names are not relative
|
'sidescrolloff' + 0 cursor moves to edge of screen in scroll
|
||||||
'textauto' + off no automatic textmode detection
|
'smartcase' + off no automatic ignore case switch
|
||||||
'textwidth' 0 no automatic line wrap
|
'smartindent' + off no smart indentation
|
||||||
'tildeop' off tilde is not an operator
|
'smarttab' + off no smart tab size
|
||||||
'ttimeout' off no terminal timeout
|
'softtabstop' + 0 tabs are always 'tabstop' positions
|
||||||
'whichwrap' + "" left-right movements don't wrap
|
'startofline' + on goto startofline with some commands
|
||||||
'wildchar' + CTRL-E only when the current value is <Tab>
|
'tagcase' & "followic" 'ignorecase' when searching tags file
|
||||||
|
'tagrelative' & off tag file names are not relative
|
||||||
|
'termguicolors' + off don't use highlight-(guifg|guibg)
|
||||||
|
'textauto' & off no automatic textmode detection
|
||||||
|
'textwidth' + 0 no automatic line wrap
|
||||||
|
'tildeop' + off tilde is not an operator
|
||||||
|
'ttimeout' + off no terminal timeout
|
||||||
|
'undofile' + off don't use an undo file
|
||||||
|
'viminfo' - {unchanged} {set vim default only on resetting 'cp'}
|
||||||
|
'virtualedit' + "" cursor can only be placed on characters
|
||||||
|
'whichwrap' & "" left-right movements don't wrap
|
||||||
|
'wildchar' & CTRL-E only when the current value is <Tab>
|
||||||
use CTRL-E for cmdline completion
|
use CTRL-E for cmdline completion
|
||||||
'writebackup' on or off depends on the |+writebackup| feature
|
'writebackup' + on or off depends on the |+writebackup| feature
|
||||||
|
|
||||||
*'complete'* *'cpt'* *E535*
|
*'complete'* *'cpt'* *E535*
|
||||||
'complete' 'cpt' string (default: ".,w,b,u,t,i")
|
'complete' 'cpt' string (default: ".,w,b,u,t,i")
|
||||||
@ -2617,17 +2652,24 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
{Vi: directory to put temp file in, defaults to "/tmp"}
|
{Vi: directory to put temp file in, defaults to "/tmp"}
|
||||||
|
|
||||||
*'display'* *'dy'*
|
*'display'* *'dy'*
|
||||||
'display' 'dy' string (default "")
|
'display' 'dy' string (default "", set to "truncate" in
|
||||||
|
|defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
Change the way text is displayed. This is comma separated list of
|
Change the way text is displayed. This is comma separated list of
|
||||||
flags:
|
flags:
|
||||||
lastline When included, as much as possible of the last line
|
lastline When included, as much as possible of the last line
|
||||||
in a window will be displayed. When not included, a
|
in a window will be displayed. "@@@" is put in the
|
||||||
last line that doesn't fit is replaced with "@" lines.
|
last columns of the last screen line to indicate the
|
||||||
|
rest of the line is not displayed.
|
||||||
|
truncate Like "lastline", but "@@@" is displayed in the first
|
||||||
|
column of the last screen line. Overrules "lastline".
|
||||||
uhex Show unprintable characters hexadecimal as <xx>
|
uhex Show unprintable characters hexadecimal as <xx>
|
||||||
instead of using ^C and ~C.
|
instead of using ^C and ~C.
|
||||||
|
|
||||||
|
When neither "lastline" nor "truncate" is included, a last line that
|
||||||
|
doesn't fit is replaced with "@" lines.
|
||||||
|
|
||||||
*'eadirection'* *'ead'*
|
*'eadirection'* *'ead'*
|
||||||
'eadirection' 'ead' string (default "both")
|
'eadirection' 'ead' string (default "both")
|
||||||
global
|
global
|
||||||
@ -2675,8 +2717,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
This option cannot be set from a |modeline|. It would most likely
|
This option cannot be set from a |modeline|. It would most likely
|
||||||
corrupt the text.
|
corrupt the text.
|
||||||
|
|
||||||
NOTE: For GTK+ 2 it is highly recommended to set 'encoding' to
|
NOTE: For GTK+ 2 or later, it is highly recommended to set 'encoding'
|
||||||
"utf-8". Although care has been taken to allow different values of
|
to "utf-8". Although care has been taken to allow different values of
|
||||||
'encoding', "utf-8" is the natural choice for the environment and
|
'encoding', "utf-8" is the natural choice for the environment and
|
||||||
avoids unnecessary conversion overhead. "utf-8" has not been made
|
avoids unnecessary conversion overhead. "utf-8" has not been made
|
||||||
the default to prevent different behavior of the GUI and terminal
|
the default to prevent different behavior of the GUI and terminal
|
||||||
@ -2848,10 +2890,17 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
Enables the reading of .vimrc, .exrc and .gvimrc in the current
|
Enables the reading of .vimrc, .exrc and .gvimrc in the current
|
||||||
directory. If you switch this option on you should also consider
|
directory.
|
||||||
setting the 'secure' option (see |initialization|). Using a local
|
|
||||||
.exrc, .vimrc or .gvimrc is a potential security leak, use with care!
|
Setting this option is a potential security leak. E.g., consider
|
||||||
also see |.vimrc| and |gui-init|.
|
unpacking a package or fetching files from github, a .vimrc in there
|
||||||
|
might be a trojan horse. BETTER NOT SET THIS OPTION!
|
||||||
|
Instead, define an autocommand in your .vimrc to set options for a
|
||||||
|
matching directory.
|
||||||
|
|
||||||
|
If you do switch this option on you should also consider setting the
|
||||||
|
'secure' option (see |initialization|).
|
||||||
|
Also see |.vimrc| and |gui-init|.
|
||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
@ -2867,6 +2916,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
done when writing the file. For reading see below.
|
done when writing the file. For reading see below.
|
||||||
When 'fileencoding' is empty, the same value as 'encoding' will be
|
When 'fileencoding' is empty, the same value as 'encoding' will be
|
||||||
used (no conversion when reading or writing a file).
|
used (no conversion when reading or writing a file).
|
||||||
|
No error will be given when the value is set, only when it is used,
|
||||||
|
only when writing a file.
|
||||||
Conversion will also be done when 'encoding' and 'fileencoding' are
|
Conversion will also be done when 'encoding' and 'fileencoding' are
|
||||||
both a Unicode encoding and 'fileencoding' is not utf-8. That's
|
both a Unicode encoding and 'fileencoding' is not utf-8. That's
|
||||||
because internally Unicode is always stored as utf-8.
|
because internally Unicode is always stored as utf-8.
|
||||||
@ -3401,7 +3452,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'formatprg'* *'fp'*
|
*'formatprg'* *'fp'*
|
||||||
'formatprg' 'fp' string (default "")
|
'formatprg' 'fp' string (default "")
|
||||||
global
|
global or local to buffer |global-local|
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
The name of an external program that will be used to format the lines
|
The name of an external program that will be used to format the lines
|
||||||
selected with the |gq| operator. The program must take the input on
|
selected with the |gq| operator. The program must take the input on
|
||||||
@ -3580,6 +3631,14 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
On systems where 'guifontset' is supported (X11) and 'guifontset' is
|
On systems where 'guifontset' is supported (X11) and 'guifontset' is
|
||||||
not empty, then 'guifont' is not used.
|
not empty, then 'guifont' is not used.
|
||||||
|
|
||||||
|
Note: As to the GTK GUIs, no error is given against any invalid names,
|
||||||
|
and the first element of the list is always picked up and made use of.
|
||||||
|
This is because, instead of identifying a given name with a font, the
|
||||||
|
GTK GUIs use it to construct a pattern and try to look up a font which
|
||||||
|
best matches the pattern among available fonts, and this way, the
|
||||||
|
matching never fails. An invalid name doesn't matter because a number
|
||||||
|
of font properties other than name will do to get the matching done.
|
||||||
|
|
||||||
Spaces after a comma are ignored. To include a comma in a font name
|
Spaces after a comma are ignored. To include a comma in a font name
|
||||||
precede it with a backslash. Setting an option requires an extra
|
precede it with a backslash. Setting an option requires an extra
|
||||||
backslash before a space and a backslash. See also
|
backslash before a space and a backslash. See also
|
||||||
@ -3602,7 +3661,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The font name depends on the GUI used. See |setting-guifont| for a
|
The font name depends on the GUI used. See |setting-guifont| for a
|
||||||
way to set 'guifont' for various systems.
|
way to set 'guifont' for various systems.
|
||||||
|
|
||||||
For the GTK+ 2 GUI the font name looks like this: >
|
For the GTK+ 2 and 3 GUIs, the font name looks like this: >
|
||||||
:set guifont=Andale\ Mono\ 11
|
:set guifont=Andale\ Mono\ 11
|
||||||
< That's all. XLFDs are not used. For Chinese this is reported to work
|
< That's all. XLFDs are not used. For Chinese this is reported to work
|
||||||
well: >
|
well: >
|
||||||
@ -3611,13 +3670,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
set guifontwide=Microsoft\ Yahei\ 12,WenQuanYi\ Zen\ Hei\ 12
|
set guifontwide=Microsoft\ Yahei\ 12,WenQuanYi\ Zen\ Hei\ 12
|
||||||
endif
|
endif
|
||||||
<
|
<
|
||||||
|
(Replace gui_gtk2 with gui_gtk3 for the GTK+ 3 GUI)
|
||||||
|
|
||||||
For Mac OSX you can use something like this: >
|
For Mac OSX you can use something like this: >
|
||||||
:set guifont=Monaco:h10
|
:set guifont=Monaco:h10
|
||||||
< Also see 'macatsui', it can help fix display problems.
|
< Also see 'macatsui', it can help fix display problems.
|
||||||
*E236*
|
*E236*
|
||||||
Note that the fonts must be mono-spaced (all characters have the same
|
Note that the fonts must be mono-spaced (all characters have the same
|
||||||
width). An exception is GTK 2: all fonts are accepted, but
|
width). An exception is GTK: all fonts are accepted, but mono-spaced
|
||||||
mono-spaced fonts look best.
|
fonts look best.
|
||||||
|
|
||||||
To preview a font on X11, you might be able to use the "xfontsel"
|
To preview a font on X11, you might be able to use the "xfontsel"
|
||||||
program. The "xlsfonts" program gives a list of all available fonts.
|
program. The "xlsfonts" program gives a list of all available fonts.
|
||||||
@ -3638,7 +3699,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
qXX - quality XX. Valid quality names are: PROOF, DRAFT,
|
qXX - quality XX. Valid quality names are: PROOF, DRAFT,
|
||||||
ANTIALIASED, NONANTIALIASED, CLEARTYPE, DEFAULT.
|
ANTIALIASED, NONANTIALIASED, CLEARTYPE, DEFAULT.
|
||||||
Normally you would use "qDEFAULT".
|
Normally you would use "qDEFAULT".
|
||||||
Some quality values isn't supported in legacy OSs.
|
Some quality values are not supported in legacy OSs.
|
||||||
|
|
||||||
Use a ':' to separate the options.
|
Use a ':' to separate the options.
|
||||||
- A '_' can be used in the place of a space, so you don't need to use
|
- A '_' can be used in the place of a space, so you don't need to use
|
||||||
@ -3655,7 +3716,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only available when compiled with GUI enabled and
|
{only available when compiled with GUI enabled and
|
||||||
with the |+xfontset| feature}
|
with the |+xfontset| feature}
|
||||||
{not available in the GTK+ 2 GUI}
|
{not available in the GTK+ GUI}
|
||||||
When not empty, specifies two (or more) fonts to be used. The first
|
When not empty, specifies two (or more) fonts to be used. The first
|
||||||
one for normal English, the second one for your special language. See
|
one for normal English, the second one for your special language. See
|
||||||
|xfontset|.
|
|xfontset|.
|
||||||
@ -3684,7 +3745,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Note: The size of these fonts must be exactly twice as wide as the one
|
Note: The size of these fonts must be exactly twice as wide as the one
|
||||||
specified with 'guifont' and the same height.
|
specified with 'guifont' and the same height.
|
||||||
|
|
||||||
All GUI versions but GTK+ 2:
|
All GUI versions but GTK+:
|
||||||
|
|
||||||
'guifontwide' is only used when 'encoding' is set to "utf-8" and
|
'guifontwide' is only used when 'encoding' is set to "utf-8" and
|
||||||
'guifontset' is empty or invalid.
|
'guifontset' is empty or invalid.
|
||||||
@ -3692,7 +3753,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'guifontwide' is empty Vim will attempt to find a matching
|
'guifontwide' is empty Vim will attempt to find a matching
|
||||||
double-width font and set 'guifontwide' to it.
|
double-width font and set 'guifontwide' to it.
|
||||||
|
|
||||||
GTK+ 2 GUI only: *guifontwide_gtk2*
|
GTK+ GUI only: *guifontwide_gtk*
|
||||||
|
|
||||||
If set and valid, 'guifontwide' is always used for double width
|
If set and valid, 'guifontwide' is always used for double width
|
||||||
characters, even if 'encoding' is not set to "utf-8".
|
characters, even if 'encoding' is not set to "utf-8".
|
||||||
@ -3719,8 +3780,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
screen.
|
screen.
|
||||||
|
|
||||||
*'guioptions'* *'go'*
|
*'guioptions'* *'go'*
|
||||||
'guioptions' 'go' string (default "egmrLtT" (MS-Windows),
|
'guioptions' 'go' string (default "egmrLtT" (MS-Windows, "t" is
|
||||||
"aegimrLtT" (GTK, Motif and Athena))
|
removed in |defaults.vim|),
|
||||||
|
"aegimrLtT" (GTK, Motif and Athena),
|
||||||
|
)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only available when compiled with GUI enabled}
|
{only available when compiled with GUI enabled}
|
||||||
@ -3853,6 +3916,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
The format of this option is like that of 'statusline'.
|
The format of this option is like that of 'statusline'.
|
||||||
'guitabtooltip' is used for the tooltip, see below.
|
'guitabtooltip' is used for the tooltip, see below.
|
||||||
|
The expression will be evaluated in the |sandbox| when set from a
|
||||||
|
modeline, see |sandbox-option|.
|
||||||
|
|
||||||
Only used when the GUI tab pages line is displayed. 'e' must be
|
Only used when the GUI tab pages line is displayed. 'e' must be
|
||||||
present in 'guioptions'. For the non-GUI tab pages line 'tabline' is
|
present in 'guioptions'. For the non-GUI tab pages line 'tabline' is
|
||||||
@ -3935,17 +4000,16 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'highlight'* *'hl'*
|
*'highlight'* *'hl'*
|
||||||
'highlight' 'hl' string (default (as a single string):
|
'highlight' 'hl' string (default (as a single string):
|
||||||
"8:SpecialKey,@:NonText,d:Directory,
|
"8:SpecialKey,~:EndOfBuffer,@:NonText,
|
||||||
e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,
|
d:Directory,e:ErrorMsg,i:IncSearch,
|
||||||
M:ModeMsg,n:LineNr,N:CursorLineNr,
|
l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,
|
||||||
r:Question,s:StatusLine,S:StatusLineNC,
|
N:CursorLineNr,r:Question,s:StatusLine,
|
||||||
c:VertSplit, t:Title,v:Visual,
|
S:StatusLineNC,c:VertSplit,t:Title,
|
||||||
w:WarningMsg,W:WildMenu,
|
v:Visual,w:WarningMsg,W:WildMenu,f:Folded,
|
||||||
f:Folded,F:FoldColumn,A:DiffAdd,
|
F:FoldColumn,A:DiffAdd,C:DiffChange,
|
||||||
C:DiffChange,D:DiffDelete,T:DiffText,
|
D:DiffDelete,T:DiffText,>:SignColumn,
|
||||||
>:SignColumn,B:SpellBad,P:SpellCap,
|
B:SpellBad,P:SpellCap,R:SpellRare,
|
||||||
R:SpellRare,L:SpellLocal,-:Conceal,
|
L:SpellLocal,-:Conceal,+:Pmenu,=:PmenuSel,
|
||||||
+:Pmenu,=:PmenuSel,
|
|
||||||
x:PmenuSbar,X:PmenuThumb")
|
x:PmenuSbar,X:PmenuThumb")
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
@ -3954,7 +4018,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
first character in a pair gives the occasion, the second the mode to
|
first character in a pair gives the occasion, the second the mode to
|
||||||
use for that occasion. The occasions are:
|
use for that occasion. The occasions are:
|
||||||
|hl-SpecialKey| 8 Meta and special keys listed with ":map"
|
|hl-SpecialKey| 8 Meta and special keys listed with ":map"
|
||||||
|hl-NonText| @ '~' and '@' at the end of the window and
|
|hl-EndOfBuffer| ~ lines after the last line in the buffer
|
||||||
|
|hl-NonText| @ '@' at the end of the window and
|
||||||
characters from 'showbreak'
|
characters from 'showbreak'
|
||||||
|hl-Directory| d directories in CTRL-D listing and other special
|
|hl-Directory| d directories in CTRL-D listing and other special
|
||||||
things in listings
|
things in listings
|
||||||
@ -4042,7 +4107,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
NOTE: This option is reset when 'compatible' is set.
|
NOTE: This option is reset when 'compatible' is set.
|
||||||
|
|
||||||
*'history'* *'hi'*
|
*'history'* *'hi'*
|
||||||
'history' 'hi' number (Vim default: 50, Vi default: 0)
|
'history' 'hi' number (Vim default: 50, Vi default: 0,
|
||||||
|
set to 200 in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
A history of ":" commands, and a history of previous search patterns
|
A history of ":" commands, and a history of previous search patterns
|
||||||
@ -4294,7 +4360,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
evaluating 'includeexpr' |textlock|.
|
evaluating 'includeexpr' |textlock|.
|
||||||
|
|
||||||
*'incsearch'* *'is'* *'noincsearch'* *'nois'*
|
*'incsearch'* *'is'* *'noincsearch'* *'nois'*
|
||||||
'incsearch' 'is' boolean (default off)
|
'incsearch' 'is' boolean (default off, set in |defaults.vim| if the
|
||||||
|
+reltime feature is supported)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the
|
{not available when compiled without the
|
||||||
@ -4307,6 +4374,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
original position when no match is found and when pressing <Esc>. You
|
original position when no match is found and when pressing <Esc>. You
|
||||||
still need to finish the search command with <Enter> to move the
|
still need to finish the search command with <Enter> to move the
|
||||||
cursor to the match.
|
cursor to the match.
|
||||||
|
You can use the CTRL-G and CTRL-T keys to move to the next and
|
||||||
|
previous match. |c_CTRL-G| |c_CTRL-T|
|
||||||
When compiled with the |+reltime| feature Vim only searches for about
|
When compiled with the |+reltime| feature Vim only searches for about
|
||||||
half a second. With a complicated pattern and/or a lot of text the
|
half a second. With a complicated pattern and/or a lot of text the
|
||||||
match may not be found. This is to avoid that Vim hangs while you
|
match may not be found. This is to avoid that Vim hangs while you
|
||||||
@ -4391,7 +4460,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
if you want to use Vim as a modeless editor. Used for |evim|.
|
if you want to use Vim as a modeless editor. Used for |evim|.
|
||||||
These Insert mode commands will be useful:
|
These Insert mode commands will be useful:
|
||||||
- Use the cursor keys to move around.
|
- Use the cursor keys to move around.
|
||||||
- Use CTRL-O to execute one Normal mode command |i_CTRL-O|). When
|
- Use CTRL-O to execute one Normal mode command |i_CTRL-O|. When
|
||||||
this is a mapping, it is executed as if 'insertmode' was off.
|
this is a mapping, it is executed as if 'insertmode' was off.
|
||||||
Normal mode remains active until the mapping is finished.
|
Normal mode remains active until the mapping is finished.
|
||||||
- Use CTRL-L to execute a number of Normal mode commands, then use
|
- Use CTRL-L to execute a number of Normal mode commands, then use
|
||||||
@ -4620,7 +4689,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
be able to execute Normal mode commands.
|
be able to execute Normal mode commands.
|
||||||
This is the opposite of the 'keymap' option, where characters are
|
This is the opposite of the 'keymap' option, where characters are
|
||||||
mapped in Insert mode.
|
mapped in Insert mode.
|
||||||
Also consider setting 'langnoremap' to avoid 'langmap' applies to
|
Also consider resetting 'langremap' to avoid 'langmap' applies to
|
||||||
characters resulting from a mapping.
|
characters resulting from a mapping.
|
||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
@ -4678,15 +4747,25 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
< Warning: This deletes all menus that you defined yourself!
|
< Warning: This deletes all menus that you defined yourself!
|
||||||
|
|
||||||
*'langnoremap'* *'lnr'* *'nolangnoremap'* *'nolnr'*
|
*'langnoremap'* *'lnr'* *'nolangnoremap'* *'nolnr'*
|
||||||
'langnoremap' 'lnr' boolean (default off)
|
'langnoremap' 'lnr' boolean (default off, set in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only available when compiled with the |+langmap|
|
{only available when compiled with the |+langmap|
|
||||||
feature}
|
feature}
|
||||||
When on, setting 'langmap' does not apply to characters resulting from
|
This is just like 'langremap' but with the value inverted. It only
|
||||||
|
exists for backwards compatibility. When setting 'langremap' then
|
||||||
|
'langnoremap' is set to the inverted value, and the other way around.
|
||||||
|
|
||||||
|
*'langremap'* *'lrm'* *'nolangremap'* *'nolrm'*
|
||||||
|
'langremap' 'lrm' boolean (default on, reset in |defaults.vim|)
|
||||||
|
global
|
||||||
|
{not in Vi}
|
||||||
|
{only available when compiled with the |+langmap|
|
||||||
|
feature}
|
||||||
|
When off, setting 'langmap' does not apply to characters resulting from
|
||||||
a mapping. This basically means, if you noticed that setting
|
a mapping. This basically means, if you noticed that setting
|
||||||
'langmap' disables some of your mappings, try setting this option.
|
'langmap' disables some of your mappings, try resetting this option.
|
||||||
This option defaults to off for backwards compatibility. Set it on if
|
This option defaults to on for backwards compatibility. Set it off if
|
||||||
that works for you to avoid mappings to break.
|
that works for you to avoid mappings to break.
|
||||||
|
|
||||||
*'laststatus'* *'ls'*
|
*'laststatus'* *'ls'*
|
||||||
@ -4739,7 +4818,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
use this command to get the tallest window possible: >
|
use this command to get the tallest window possible: >
|
||||||
:set lines=999
|
:set lines=999
|
||||||
< Minimum value is 2, maximum value is 1000.
|
< Minimum value is 2, maximum value is 1000.
|
||||||
If you get less lines than expected, check the 'guiheadroom' option.
|
If you get fewer lines than expected, check the 'guiheadroom' option.
|
||||||
When you set this option and Vim is unable to change the physical
|
When you set this option and Vim is unable to change the physical
|
||||||
number of lines of the display, the display may be messed up.
|
number of lines of the display, the display may be messed up.
|
||||||
|
|
||||||
@ -4891,10 +4970,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
global
|
global
|
||||||
Changes the special characters that can be used in search patterns.
|
Changes the special characters that can be used in search patterns.
|
||||||
See |pattern|.
|
See |pattern|.
|
||||||
NOTE: To avoid portability problems with using patterns, always keep
|
WARNING: Switching this option off most likely breaks plugins! That
|
||||||
this option at the default "on". Only switch it off when working with
|
is because many patterns assume it's on and will fail when it's off.
|
||||||
old Vi scripts. In any other situation write patterns that work when
|
Only switch it off when working with old Vi scripts. In any other
|
||||||
'magic' is on. Include "\M" when you want to |/\M|.
|
situation write patterns that work when 'magic' is on. Include "\M"
|
||||||
|
when you want to |/\M|.
|
||||||
|
|
||||||
*'makeef'* *'mef'*
|
*'makeef'* *'mef'*
|
||||||
'makeef' 'mef' string (default: "")
|
'makeef' 'mef' string (default: "")
|
||||||
@ -4914,6 +4994,25 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
|
*'makeencoding'* *'menc'*
|
||||||
|
'makeencoding' 'menc' string (default "")
|
||||||
|
global or local to buffer |global-local|
|
||||||
|
{only available when compiled with the |+multi_byte|
|
||||||
|
feature}
|
||||||
|
{not in Vi}
|
||||||
|
Encoding used for reading the output of external commands. When empty,
|
||||||
|
encoding is not converted.
|
||||||
|
This is used for `:make`, `:lmake`, `:grep`, `:lgrep`, `:grepadd`,
|
||||||
|
`:lgrepadd`, `:cfile`, `:cgetfile`, `:caddfile`, `:lfile`, `:lgetfile`,
|
||||||
|
and `:laddfile`.
|
||||||
|
|
||||||
|
This would be mostly useful when you use MS-Windows and set 'encoding'
|
||||||
|
to "utf-8". If |+iconv| is enabled and GNU libiconv is used, setting
|
||||||
|
'makeencoding' to "char" has the same effect as setting to the system
|
||||||
|
locale encoding. Example: >
|
||||||
|
:set encoding=utf-8
|
||||||
|
:set makeencoding=char " system locale is used
|
||||||
|
<
|
||||||
*'makeprg'* *'mp'*
|
*'makeprg'* *'mp'*
|
||||||
'makeprg' 'mp' string (default "make", VMS: "MMS")
|
'makeprg' 'mp' string (default "make", VMS: "MMS")
|
||||||
global or local to buffer |global-local|
|
global or local to buffer |global-local|
|
||||||
@ -4986,6 +5085,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
catches endless recursion. When using a recursive function with
|
catches endless recursion. When using a recursive function with
|
||||||
more depth, set 'maxfuncdepth' to a bigger number. But this will use
|
more depth, set 'maxfuncdepth' to a bigger number. But this will use
|
||||||
more memory, there is the danger of failing when memory is exhausted.
|
more memory, there is the danger of failing when memory is exhausted.
|
||||||
|
Increasing this limit above 200 also changes the maximum for Ex
|
||||||
|
command resursion, see |E169|.
|
||||||
See also |:function|.
|
See also |:function|.
|
||||||
|
|
||||||
*'maxmapdepth'* *'mmd'* *E223*
|
*'maxmapdepth'* *'mmd'* *E223*
|
||||||
@ -5107,7 +5208,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
{not in Vi} *E21*
|
{not in Vi} *E21*
|
||||||
When off the buffer contents cannot be changed. The 'fileformat' and
|
When off the buffer contents cannot be changed. The 'fileformat' and
|
||||||
'fileencoding' options also can't be changed.
|
'fileencoding' options also can't be changed.
|
||||||
Can be reset with the |-M| command line argument.
|
Can be reset on startup with the |-M| command line argument.
|
||||||
|
|
||||||
*'modified'* *'mod'* *'nomodified'* *'nomod'*
|
*'modified'* *'mod'* *'nomodified'* *'nomod'*
|
||||||
'modified' 'mod' boolean (default off)
|
'modified' 'mod' boolean (default off)
|
||||||
@ -5144,7 +5245,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
set and to the Vim default value when 'compatible' is reset.
|
set and to the Vim default value when 'compatible' is reset.
|
||||||
|
|
||||||
*'mouse'* *E538*
|
*'mouse'* *E538*
|
||||||
'mouse' string (default "", "a" for GUI, MS-DOS and Win32)
|
'mouse' string (default "", "a" for GUI, MS-DOS and Win32,
|
||||||
|
set to "a" in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
Enable the use of the mouse. Only works for certain terminals
|
Enable the use of the mouse. Only works for certain terminals
|
||||||
@ -5310,7 +5412,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Negative or zero value means no thread scheduling.
|
Negative or zero value means no thread scheduling.
|
||||||
|
|
||||||
*'nrformats'* *'nf'*
|
*'nrformats'* *'nf'*
|
||||||
'nrformats' 'nf' string (default "bin,octal,hex")
|
'nrformats' 'nf' string (default "bin,octal,hex",
|
||||||
|
set to "bin,hex" in |defaults.vim|)
|
||||||
local to buffer
|
local to buffer
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
This defines what bases Vim will consider for numbers when using the
|
This defines what bases Vim will consider for numbers when using the
|
||||||
@ -5664,6 +5767,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
and |+postscript| features}
|
and |+postscript| features}
|
||||||
Expression used to print the PostScript produced with |:hardcopy|.
|
Expression used to print the PostScript produced with |:hardcopy|.
|
||||||
See |pexpr-option|.
|
See |pexpr-option|.
|
||||||
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
|
security reasons.
|
||||||
|
|
||||||
*'printfont'* *'pfn'*
|
*'printfont'* *'pfn'*
|
||||||
'printfont' 'pfn' string (default "courier")
|
'printfont' 'pfn' string (default "courier")
|
||||||
@ -5745,6 +5850,34 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Specifies the name of the Python 3 shared library. The default is
|
Specifies the name of the Python 3 shared library. The default is
|
||||||
DYNAMIC_PYTHON3_DLL, which was specified at compile time.
|
DYNAMIC_PYTHON3_DLL, which was specified at compile time.
|
||||||
Environment variables are expanded |:set_env|.
|
Environment variables are expanded |:set_env|.
|
||||||
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
|
security reasons.
|
||||||
|
|
||||||
|
*'pyxversion'* *'pyx'*
|
||||||
|
'pyxversion' 'pyx' number (default depends on the build)
|
||||||
|
global
|
||||||
|
{not in Vi}
|
||||||
|
{only available when compiled with the |+python| or
|
||||||
|
the |+python3| feature}
|
||||||
|
Specifies the python version used for pyx* functions and commands
|
||||||
|
|python_x|. The default value is as follows:
|
||||||
|
|
||||||
|
Compiled with Default ~
|
||||||
|
|+python| and |+python3| 0
|
||||||
|
only |+python| 2
|
||||||
|
only |+python3| 3
|
||||||
|
|
||||||
|
Available values are 0, 2 and 3.
|
||||||
|
If 'pyxversion' is 0, it is set to 2 or 3 after the first execution of
|
||||||
|
any python2/3 commands or functions. E.g. `:py` sets to 2, and `:py3`
|
||||||
|
sets to 3. `:pyx` sets it to 3 if Python 3 is available, otherwise sets
|
||||||
|
to 2 if Python 2 is available.
|
||||||
|
See also: |has-pythonx|
|
||||||
|
|
||||||
|
If Vim is compiled with only |+python| or |+python3| setting
|
||||||
|
'pyxversion' has no effect. The pyx* functions and commands are
|
||||||
|
always the same as the compiled version.
|
||||||
|
|
||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
@ -5768,6 +5901,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
buffer, unless the 'Z' flag is in 'cpoptions'.
|
buffer, unless the 'Z' flag is in 'cpoptions'.
|
||||||
{not in Vi:} When using the ":view" command the 'readonly' option is
|
{not in Vi:} When using the ":view" command the 'readonly' option is
|
||||||
set for the newly edited buffer.
|
set for the newly edited buffer.
|
||||||
|
See 'modifiable' for disallowing changes to the buffer.
|
||||||
|
|
||||||
*'redrawtime'* *'rdt'*
|
*'redrawtime'* *'rdt'*
|
||||||
'redrawtime' 'rdt' number (default 2000)
|
'redrawtime' 'rdt' number (default 2000)
|
||||||
@ -5980,7 +6114,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
*'ruler'* *'ru'* *'noruler'* *'noru'*
|
*'ruler'* *'ru'* *'noruler'* *'noru'*
|
||||||
'ruler' 'ru' boolean (default off)
|
'ruler' 'ru' boolean (default off, set in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the
|
{not available when compiled without the
|
||||||
@ -6088,7 +6222,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
personal preferences to overrule or add to the distributed defaults
|
personal preferences to overrule or add to the distributed defaults
|
||||||
or system-wide settings (rarely needed).
|
or system-wide settings (rarely needed).
|
||||||
|
|
||||||
More entries are added when using |packages|.
|
More entries are added when using |packages|. If it gets very long
|
||||||
|
then `:set rtp` will be truncated, use `:echo &rtp` to see the full
|
||||||
|
string.
|
||||||
|
|
||||||
Note that, unlike 'path', no wildcards like "**" are allowed. Normal
|
Note that, unlike 'path', no wildcards like "**" are allowed. Normal
|
||||||
wildcards are allowed, but can significantly slow down searching for
|
wildcards are allowed, but can significantly slow down searching for
|
||||||
@ -6149,7 +6285,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
NOTE: This option is set to 1 when 'compatible' is set.
|
NOTE: This option is set to 1 when 'compatible' is set.
|
||||||
|
|
||||||
*'scrolloff'* *'so'*
|
*'scrolloff'* *'so'*
|
||||||
'scrolloff' 'so' number (default 0)
|
'scrolloff' 'so' number (default 0, set to 5 in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
Minimal number of screen lines to keep above and below the cursor.
|
Minimal number of screen lines to keep above and below the cursor.
|
||||||
@ -6231,6 +6367,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
"inclusive" means that the last character of the selection is included
|
"inclusive" means that the last character of the selection is included
|
||||||
in an operation. For example, when "x" is used to delete the
|
in an operation. For example, when "x" is used to delete the
|
||||||
selection.
|
selection.
|
||||||
|
When "old" is used and 'virtualedit' allows the cursor to move past
|
||||||
|
the end of line the line break still isn't included.
|
||||||
Note that when "exclusive" is used and selecting from the end
|
Note that when "exclusive" is used and selecting from the end
|
||||||
backwards, you cannot include the last character of a line, when
|
backwards, you cannot include the last character of a line, when
|
||||||
starting in Normal mode and 'virtualedit' empty.
|
starting in Normal mode and 'virtualedit' empty.
|
||||||
@ -6455,6 +6593,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The |FilterReadPre|, |FilterReadPost| and |FilterWritePre|,
|
The |FilterReadPre|, |FilterReadPost| and |FilterWritePre|,
|
||||||
|FilterWritePost| autocommands event are not triggered when
|
|FilterWritePost| autocommands event are not triggered when
|
||||||
'shelltemp' is off.
|
'shelltemp' is off.
|
||||||
|
The `system()` function does not respect this option and always uses
|
||||||
|
temp files.
|
||||||
|
|
||||||
*'shelltype'* *'st'*
|
*'shelltype'* *'st'*
|
||||||
'shelltype' 'st' number (default 0)
|
'shelltype' 'st' number (default 0)
|
||||||
@ -6611,8 +6751,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
"n" flag to 'cpoptions'.
|
"n" flag to 'cpoptions'.
|
||||||
|
|
||||||
*'showcmd'* *'sc'* *'noshowcmd'* *'nosc'*
|
*'showcmd'* *'sc'* *'noshowcmd'* *'nosc'*
|
||||||
'showcmd' 'sc' boolean (Vim default: on, off for Unix, Vi default:
|
'showcmd' 'sc' boolean (Vim default: on, off for Unix,
|
||||||
off)
|
Vi default: off, set in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the
|
{not available when compiled without the
|
||||||
@ -6717,10 +6857,21 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
Example: Try this together with 'sidescroll' and 'listchars' as
|
Example: Try this together with 'sidescroll' and 'listchars' as
|
||||||
in the following example to never allow the cursor to move
|
in the following example to never allow the cursor to move
|
||||||
onto the "extends" character:
|
onto the "extends" character: >
|
||||||
|
|
||||||
:set nowrap sidescroll=1 listchars=extends:>,precedes:<
|
:set nowrap sidescroll=1 listchars=extends:>,precedes:<
|
||||||
:set sidescrolloff=1
|
:set sidescrolloff=1
|
||||||
|
<
|
||||||
|
*'signcolumn'* *'scl'*
|
||||||
|
'signcolumn' 'scl' string (default "auto")
|
||||||
|
local to window
|
||||||
|
{not in Vi}
|
||||||
|
{not available when compiled without the |+signs|
|
||||||
|
feature}
|
||||||
|
Whether or not to draw the signcolumn. Valid values are:
|
||||||
|
"auto" only when there is a sign to display
|
||||||
|
"no" never
|
||||||
|
"yes" always
|
||||||
|
|
||||||
|
|
||||||
*'smartcase'* *'scs'* *'nosmartcase'* *'noscs'*
|
*'smartcase'* *'scs'* *'nosmartcase'* *'noscs'*
|
||||||
@ -6948,7 +7099,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
word. The expression must evaluate to a List of
|
word. The expression must evaluate to a List of
|
||||||
Lists, each with a suggestion and a score.
|
Lists, each with a suggestion and a score.
|
||||||
Example:
|
Example:
|
||||||
[['the', 33], ['that', 44]]
|
[['the', 33], ['that', 44]] ~
|
||||||
Set 'verbose' and use |z=| to see the scores that the
|
Set 'verbose' and use |z=| to see the scores that the
|
||||||
internal methods use. A lower score is better.
|
internal methods use. A lower score is better.
|
||||||
This may invoke |spellsuggest()| if you temporarily
|
This may invoke |spellsuggest()| if you temporarily
|
||||||
@ -7390,6 +7541,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
By default, tag searches are case-sensitive. Case is ignored when
|
By default, tag searches are case-sensitive. Case is ignored when
|
||||||
'ignorecase' is set and 'tagcase' is "followic", or when 'tagcase' is
|
'ignorecase' is set and 'tagcase' is "followic", or when 'tagcase' is
|
||||||
"ignore".
|
"ignore".
|
||||||
|
Also when 'tagcase' is "followscs" and 'smartcase' is set, or
|
||||||
|
'tagcase' is "smart", and the pattern contains only lowercase
|
||||||
|
characters.
|
||||||
|
|
||||||
When 'tagbsearch' is off, tags searching is slower when a full match
|
When 'tagbsearch' is off, tags searching is slower when a full match
|
||||||
exists, but faster when no full match exists. Tags in unsorted tags
|
exists, but faster when no full match exists. Tags in unsorted tags
|
||||||
@ -7408,8 +7562,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
This option specifies how case is handled when searching the tags
|
This option specifies how case is handled when searching the tags
|
||||||
file:
|
file:
|
||||||
followic Follow the 'ignorecase' option
|
followic Follow the 'ignorecase' option
|
||||||
|
followscs Follow the 'smartcase' and 'ignorecase' options
|
||||||
ignore Ignore case
|
ignore Ignore case
|
||||||
match Match case
|
match Match case
|
||||||
|
smart Ignore case unless an upper case letter is used
|
||||||
|
|
||||||
*'taglength'* *'tl'*
|
*'taglength'* *'tl'*
|
||||||
'taglength' 'tl' number (default 0)
|
'taglength' 'tl' number (default 0)
|
||||||
@ -7514,7 +7670,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
For further details see |arabic.txt|.
|
For further details see |arabic.txt|.
|
||||||
|
|
||||||
*'termencoding'* *'tenc'*
|
*'termencoding'* *'tenc'*
|
||||||
'termencoding' 'tenc' string (default ""; with GTK+ 2 GUI: "utf-8"; with
|
'termencoding' 'tenc' string (default ""; with GTK+ GUI: "utf-8"; with
|
||||||
Macintosh GUI: "macroman")
|
Macintosh GUI: "macroman")
|
||||||
global
|
global
|
||||||
{only available when compiled with the |+multi_byte|
|
{only available when compiled with the |+multi_byte|
|
||||||
@ -7526,7 +7682,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
display). Except for the Mac when 'macatsui' is off, then
|
display). Except for the Mac when 'macatsui' is off, then
|
||||||
'termencoding' should be "macroman".
|
'termencoding' should be "macroman".
|
||||||
*E617*
|
*E617*
|
||||||
Note: This does not apply to the GTK+ 2 GUI. After the GUI has been
|
Note: This does not apply to the GTK+ GUI. After the GUI has been
|
||||||
successfully initialized, 'termencoding' is forcibly set to "utf-8".
|
successfully initialized, 'termencoding' is forcibly set to "utf-8".
|
||||||
Any attempts to set a different value will be rejected, and an error
|
Any attempts to set a different value will be rejected, and an error
|
||||||
message is shown.
|
message is shown.
|
||||||
@ -7631,7 +7787,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'timeout' 'to' boolean (default on)
|
'timeout' 'to' boolean (default on)
|
||||||
global
|
global
|
||||||
*'ttimeout'* *'nottimeout'*
|
*'ttimeout'* *'nottimeout'*
|
||||||
'ttimeout' boolean (default off)
|
'ttimeout' boolean (default off, set in |defaults.vim|))
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
These two options together determine the behavior when part of a
|
These two options together determine the behavior when part of a
|
||||||
@ -7666,7 +7822,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
global
|
global
|
||||||
{not in all versions of Vi}
|
{not in all versions of Vi}
|
||||||
*'ttimeoutlen'* *'ttm'*
|
*'ttimeoutlen'* *'ttm'*
|
||||||
'ttimeoutlen' 'ttm' number (default -1)
|
'ttimeoutlen' 'ttm' number (default -1, set to 100 in |defaults.vim|))
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
The time in milliseconds that is waited for a key code or mapped key
|
The time in milliseconds that is waited for a key code or mapped key
|
||||||
@ -7761,7 +7917,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Amiga console, Win32 console, all GUI versions and terminals with a
|
Amiga console, Win32 console, all GUI versions and terminals with a
|
||||||
non-empty 't_ts' option).
|
non-empty 't_ts' option).
|
||||||
When Vim was compiled with HAVE_X11 defined, the original title will
|
When Vim was compiled with HAVE_X11 defined, the original title will
|
||||||
be restored if possible |X11|.
|
be restored if possible, see |X11|.
|
||||||
When this option contains printf-style '%' items, they will be
|
When this option contains printf-style '%' items, they will be
|
||||||
expanded according to the rules used for 'statusline'.
|
expanded according to the rules used for 'statusline'.
|
||||||
Example: >
|
Example: >
|
||||||
@ -7809,7 +7965,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'toolbariconsize' 'tbis' string (default "small")
|
'toolbariconsize' 'tbis' string (default "small")
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only in the GTK+ 2 GUI}
|
{only in the GTK+ GUI}
|
||||||
Controls the size of toolbar icons. The possible values are:
|
Controls the size of toolbar icons. The possible values are:
|
||||||
tiny Use tiny icons.
|
tiny Use tiny icons.
|
||||||
small Use small icons (default).
|
small Use small icons (default).
|
||||||
@ -7909,8 +8065,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
"xterm", "xterm2", "urxvt" or "sgr" (because dec mouse codes conflict
|
"xterm", "xterm2", "urxvt" or "sgr" (because dec mouse codes conflict
|
||||||
with them).
|
with them).
|
||||||
This option is automatically set to "xterm", when the 'term' option is
|
This option is automatically set to "xterm", when the 'term' option is
|
||||||
set to a name that starts with "xterm", "mlterm", or "screen", and
|
set to a name that starts with "xterm", "mlterm", "screen", "tmux",
|
||||||
'ttymouse' is not set already.
|
"st" (full match only), "st-" or "stterm", and 'ttymouse' is not set
|
||||||
|
already.
|
||||||
Additionally, if vim is compiled with the |+termresponse| feature and
|
Additionally, if vim is compiled with the |+termresponse| feature and
|
||||||
|t_RV| is set to the escape sequence to request the xterm version
|
|t_RV| is set to the escape sequence to request the xterm version
|
||||||
number, more intelligent detection process runs.
|
number, more intelligent detection process runs.
|
||||||
@ -8180,10 +8337,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
has been used since the last search command.
|
has been used since the last search command.
|
||||||
*viminfo-n*
|
*viminfo-n*
|
||||||
n Name of the viminfo file. The name must immediately follow
|
n Name of the viminfo file. The name must immediately follow
|
||||||
the 'n'. Must be the last one! If the "-i" argument was
|
the 'n'. Must be at the end of the option! If the "-i"
|
||||||
given when starting Vim, that file name overrides the one
|
argument was given when starting Vim, that file name overrides
|
||||||
given here with 'viminfo'. Environment variables are expanded
|
the one given here with 'viminfo'. Environment variables are
|
||||||
when opening the file, not when setting the option.
|
expanded when opening the file, not when setting the option.
|
||||||
*viminfo-r*
|
*viminfo-r*
|
||||||
r Removable media. The argument is a string (up to the next
|
r Removable media. The argument is a string (up to the next
|
||||||
','). This parameter can be given several times. Each
|
','). This parameter can be given several times. Each
|
||||||
@ -8369,7 +8526,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
|
|
||||||
*'wildmenu'* *'wmnu'* *'nowildmenu'* *'nowmnu'*
|
*'wildmenu'* *'wmnu'* *'nowildmenu'* *'nowmnu'*
|
||||||
'wildmenu' 'wmnu' boolean (default off)
|
'wildmenu' 'wmnu' boolean (default off, set in |defaults.vim|)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available if compiled without the |+wildmenu|
|
{not available if compiled without the |+wildmenu|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user