mirror of
https://github.com/zoriya/vim.git
synced 2025-12-12 02:06:18 +00:00
Compare commits
1314 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd228fd097 | ||
|
|
bb277fd89f | ||
|
|
510d8e6056 | ||
|
|
7da341560e | ||
|
|
19916a8c89 | ||
|
|
e413ea04b7 | ||
|
|
1f2453fec6 | ||
|
|
cf1e0239ce | ||
|
|
8bc07e800c | ||
|
|
9b0e82f35e | ||
|
|
03725c5795 | ||
|
|
48608b4a4b | ||
|
|
112bed0cbe | ||
|
|
65259b5c6a | ||
|
|
cc9d725bbb | ||
|
|
ee93e327ba | ||
|
|
b771b6b5fe | ||
|
|
e021662f39 | ||
|
|
04b568b38f | ||
|
|
3b3755fe19 | ||
|
|
7a53f29c03 | ||
|
|
4671e88d7d | ||
|
|
ce59b9f292 | ||
|
|
c449271f4e | ||
|
|
7d5b8becc3 | ||
|
|
2228cd72cf | ||
|
|
a3f83feb63 | ||
|
|
73448a27a8 | ||
|
|
581f41adb3 | ||
|
|
88a4205f1c | ||
|
|
eea32afdb8 | ||
|
|
7f0c4b418e | ||
|
|
4785fe02bb | ||
|
|
923dce2b07 | ||
|
|
2c23670300 | ||
|
|
3c19b50500 | ||
|
|
d604d78e7b | ||
|
|
a755fdbe80 | ||
|
|
9cd9385db7 | ||
|
|
c8a9fe541d | ||
|
|
d85fccdfed | ||
|
|
a119812437 | ||
|
|
87fd0924e2 | ||
|
|
cdf5fdb294 | ||
|
|
b8e642f7ac | ||
|
|
2de9b7c7c8 | ||
|
|
3ad695328f | ||
|
|
8b8d829faf | ||
|
|
64be6aa3a5 | ||
|
|
1d69ef410a | ||
|
|
b3a29558ee | ||
|
|
777175b0df | ||
|
|
851c7a699a | ||
|
|
0526815c15 | ||
|
|
3cad470385 | ||
|
|
818ff25cd1 | ||
|
|
6555500bcf | ||
|
|
e015d99abb | ||
|
|
64066b9acd | ||
|
|
615ddd5342 | ||
|
|
a062006b9d | ||
|
|
3075a45592 | ||
|
|
125ffd21f9 | ||
|
|
9459b8d461 | ||
|
|
d3682c5f28 | ||
|
|
519cc559b0 | ||
|
|
728104da6c | ||
|
|
2a16dc6613 | ||
|
|
c143fa0778 | ||
|
|
b1b163efd7 | ||
|
|
1be7e21583 | ||
|
|
fa53722367 | ||
|
|
314b773abb | ||
|
|
782b4bbc16 | ||
|
|
0818ab82e7 | ||
|
|
36968af155 | ||
|
|
733b124a90 | ||
|
|
0d5a12ea04 | ||
|
|
786e05beb5 | ||
|
|
7f13b24ab6 | ||
|
|
6a950a6007 | ||
|
|
23beefed73 | ||
|
|
a0fca17251 | ||
|
|
5300be620c | ||
|
|
606efc7df4 | ||
|
|
0a15c7676b | ||
|
|
326e7da609 | ||
|
|
8813739673 | ||
|
|
58ef8a31d7 | ||
|
|
0c71114aed | ||
|
|
113cb513f7 | ||
|
|
15d9890eee | ||
|
|
0b5b06cb47 | ||
|
|
aaec1d4fb1 | ||
|
|
4b2c804767 | ||
|
|
b32aa8a6a1 | ||
|
|
d1a8d658e1 | ||
|
|
0f0044125c | ||
|
|
a63780b977 | ||
|
|
e551ccfb93 | ||
|
|
8a1962d135 | ||
|
|
69b3072d98 | ||
|
|
7a33ebfc5b | ||
|
|
e2f66064d1 | ||
|
|
ec6e63079d | ||
|
|
fd916d654d | ||
|
|
8753c1dd2c | ||
|
|
9cd063e319 | ||
|
|
44db603f69 | ||
|
|
2446ec9b56 | ||
|
|
777e7c21b7 | ||
|
|
2a52196b78 | ||
|
|
e30d10253f | ||
|
|
3c5904d2a5 | ||
|
|
844fb64a60 | ||
|
|
ee56f3f119 | ||
|
|
079ba76ae7 | ||
|
|
06ca48a40f | ||
|
|
5fe07d2e08 | ||
|
|
841c225b9e | ||
|
|
25def2c8b8 | ||
|
|
a2ffb43520 | ||
|
|
5a5c111e79 | ||
|
|
47810464aa | ||
|
|
94e7d345c1 | ||
|
|
ae38a9db77 | ||
|
|
b811de5d49 | ||
|
|
d68a004485 | ||
|
|
1d30fde3c9 | ||
|
|
09f7723d5a | ||
|
|
94358a1e6e | ||
|
|
051a40c8d9 | ||
|
|
8b0e62c93b | ||
|
|
c5935a859e | ||
|
|
731fba1081 | ||
|
|
f47ebf1e1a | ||
|
|
604e207e27 | ||
|
|
d43d8e28db | ||
|
|
75c30e96cf | ||
|
|
ad6b90c33c | ||
|
|
9b0b844d25 | ||
|
|
944eeb44fb | ||
|
|
375c35a63f | ||
|
|
e08aee60ab | ||
|
|
39c47c3104 | ||
|
|
21c1a0c2f1 | ||
|
|
34a364877f | ||
|
|
f4d8b76d30 | ||
|
|
9d4b8caf9e | ||
|
|
40bd5a1540 | ||
|
|
d4c4bfa007 | ||
|
|
4eeedc09fe | ||
|
|
c89c91cafd | ||
|
|
93ff6720fe | ||
|
|
abdcfd1c83 | ||
|
|
160e994d76 | ||
|
|
2286304cdb | ||
|
|
28b6a3bef6 | ||
|
|
f08b0eb869 | ||
|
|
db3b44640d | ||
|
|
7b5f45be21 | ||
|
|
def69dffb3 | ||
|
|
eaa006dae3 | ||
|
|
a2cff1dbc9 | ||
|
|
accf4ed352 | ||
|
|
a06758dd38 | ||
|
|
0a7984af56 | ||
|
|
340dd0fbe4 | ||
|
|
051a8a375f | ||
|
|
75aa92a162 | ||
|
|
c0abac67d7 | ||
|
|
3be69bf539 | ||
|
|
7f32092b91 | ||
|
|
7b82926892 | ||
|
|
fff10d9a76 | ||
|
|
e519eb41c1 | ||
|
|
3a724290c5 | ||
|
|
3d031a0ae7 | ||
|
|
37f341d723 | ||
|
|
a9173d06f7 | ||
|
|
a5d4f3b09d | ||
|
|
b376aa2da4 | ||
|
|
b07626d4af | ||
|
|
cddd5ac911 | ||
|
|
eeed1c7ae0 | ||
|
|
6e77b88df6 | ||
|
|
3826c0513b | ||
|
|
35a319b77f | ||
|
|
26190b2701 | ||
|
|
826bfe4bbd | ||
|
|
cce81e9673 | ||
|
|
edd7a476fb | ||
|
|
e275ba4fc9 | ||
|
|
e2982d6911 | ||
|
|
78e0fa4cf4 | ||
|
|
2e258bd79f | ||
|
|
949de97da3 | ||
|
|
7c25a7c0a1 | ||
|
|
f67d3fb736 | ||
|
|
6d19798774 | ||
|
|
d3710cf01e | ||
|
|
08d7b1c828 | ||
|
|
965d2edbce | ||
|
|
6e64922492 | ||
|
|
78aa5ffe31 | ||
|
|
9af9fd6ab6 | ||
|
|
d8d957de86 | ||
|
|
a684a68409 | ||
|
|
50c5689342 | ||
|
|
c6376c7984 | ||
|
|
5a9357d0bf | ||
|
|
cc8cd44533 | ||
|
|
27fef59dd1 | ||
|
|
8b8c0ed657 | ||
|
|
72d2fa69e5 | ||
|
|
d85931e673 | ||
|
|
72406a4bd2 | ||
|
|
dfa5e464d4 | ||
|
|
51491adfa8 | ||
|
|
be01090efa | ||
|
|
b16ff292ad | ||
|
|
f8dbd58666 | ||
|
|
56858e4ed4 | ||
|
|
23003e51e1 | ||
|
|
40fa12aea3 | ||
|
|
da0b497c6e | ||
|
|
34cc7d8c03 | ||
|
|
690c524ce6 | ||
|
|
770ddbe159 | ||
|
|
18fefddcb0 | ||
|
|
c04f62346b | ||
|
|
1d34189ecb | ||
|
|
d2b98ab4ec | ||
|
|
820d5525ca | ||
|
|
542ffe16a1 | ||
|
|
644b49fa0f | ||
|
|
3dfe2e0fb8 | ||
|
|
1a7ee4dd11 | ||
|
|
ee2cbcd99c | ||
|
|
f2a8bafa4b | ||
|
|
78eb9cce91 | ||
|
|
5dfe467432 | ||
|
|
f5785cf059 | ||
|
|
a29856fcdc | ||
|
|
b1b6f4de2b | ||
|
|
28e591dd50 | ||
|
|
bdcba24d85 | ||
|
|
ca0627df69 | ||
|
|
dfe04dbff5 | ||
|
|
f1e8876fa2 | ||
|
|
464393a696 | ||
|
|
35a9a00afc | ||
|
|
b3bf33a7b2 | ||
|
|
4b4b1b84ee | ||
|
|
56e14698b4 | ||
|
|
f14b8ba137 | ||
|
|
07802044b9 | ||
|
|
efc084e335 | ||
|
|
6c391a74fe | ||
|
|
d176ca3dde | ||
|
|
6b9efdde78 | ||
|
|
0325d3967c | ||
|
|
070ac3433b | ||
|
|
072f1c6888 | ||
|
|
36f691f5f1 | ||
|
|
fc3b775055 | ||
|
|
80c88eac5a | ||
|
|
a9e3d56087 | ||
|
|
af2d5d2ce2 | ||
|
|
6853c38b78 | ||
|
|
89a54b413a | ||
|
|
65b6056659 | ||
|
|
ddfc05100a | ||
|
|
3b31851356 | ||
|
|
3ae5fc9a6a | ||
|
|
ec1b0968aa | ||
|
|
01dd6c3732 | ||
|
|
2ddb89f8a9 | ||
|
|
b7081e135a | ||
|
|
10c83dde55 | ||
|
|
7f2dd1e90c | ||
|
|
deba5eb195 | ||
|
|
af631f61bc | ||
|
|
03d257998b | ||
|
|
87e1587b8a | ||
|
|
26a4484da2 | ||
|
|
04626c243c | ||
|
|
6631597452 | ||
|
|
b4d82e2a8d | ||
|
|
20e0c3d27b | ||
|
|
ba02e4720f | ||
|
|
dca29d9cf4 | ||
|
|
4eaef9979f | ||
|
|
de05ae7158 | ||
|
|
a918712626 | ||
|
|
89a9c159f2 | ||
|
|
6e82351130 | ||
|
|
9dcd349ca8 | ||
|
|
9aecf79c45 | ||
|
|
c8103b4c25 | ||
|
|
5c56da4de8 | ||
|
|
60b6e6f6cc | ||
|
|
271906bc06 | ||
|
|
6024c0427c | ||
|
|
47016f5772 | ||
|
|
4799cef85c | ||
|
|
df9070e300 | ||
|
|
eb05d05f8a | ||
|
|
49b93049c6 | ||
|
|
cdd8a5e6fe | ||
|
|
5ca5cc6412 | ||
|
|
60faf8656e | ||
|
|
6b36d2a16d | ||
|
|
9cd91a1e88 | ||
|
|
73170917f1 | ||
|
|
093165c899 | ||
|
|
bf5f287833 | ||
|
|
bebf06954e | ||
|
|
b8bd2e6eba | ||
|
|
489d60996d | ||
|
|
d895b1d918 | ||
|
|
5aec755b67 | ||
|
|
c66f645b80 | ||
|
|
dea561111a | ||
|
|
02f8694a6b | ||
|
|
ccfb7c6758 | ||
|
|
434df7a401 | ||
|
|
92755bba30 | ||
|
|
cd6b4f3001 | ||
|
|
4bba16d252 | ||
|
|
b033ee2ddf | ||
|
|
a401bba080 | ||
|
|
5cebca27b8 | ||
|
|
14c7530c4f | ||
|
|
dd9de50f42 | ||
|
|
2596a4e763 | ||
|
|
6aa57295cf | ||
|
|
bfb2bb16bc | ||
|
|
d2e9ccee90 | ||
|
|
4830c211a4 | ||
|
|
b521766c56 | ||
|
|
88c89c7722 | ||
|
|
78a9c2e670 | ||
|
|
aacc966c5d | ||
|
|
89071cb6a1 | ||
|
|
069f90852f | ||
|
|
92f05f21af | ||
|
|
ef98257593 | ||
|
|
bd77aa9274 | ||
|
|
3e9c0b9608 | ||
|
|
4f0884d6e2 | ||
|
|
ed7cb2df35 | ||
|
|
7deb4115ef | ||
|
|
16e63e6d35 | ||
|
|
b85d3627d9 | ||
|
|
ba9c23e776 | ||
|
|
6e48b84c5f | ||
|
|
52eb372a04 | ||
|
|
917c46abe5 | ||
|
|
b6f55bb5b4 | ||
|
|
b56c4419d4 | ||
|
|
bd9e796125 | ||
|
|
8ee52affe7 | ||
|
|
eed9616120 | ||
|
|
ed8b099fd2 | ||
|
|
33ea9fd4d8 | ||
|
|
80a070c361 | ||
|
|
2950065e18 | ||
|
|
267359902c | ||
|
|
9e2fa4bb9e | ||
|
|
e525bdda3a | ||
|
|
dae453f339 | ||
|
|
4270d8b762 | ||
|
|
fbeefb1b87 | ||
|
|
6ce46b9963 | ||
|
|
7de6262373 | ||
|
|
1b154ea121 | ||
|
|
8493499880 | ||
|
|
c611941c60 | ||
|
|
3276f5846f | ||
|
|
d57a6bd98c | ||
|
|
cbae580283 | ||
|
|
11328bc7df | ||
|
|
5671f3f076 | ||
|
|
6f6d58c380 | ||
|
|
63b9173693 | ||
|
|
af647e76ca | ||
|
|
4f33bc20d7 | ||
|
|
1b6acf02b7 | ||
|
|
6a230c6b32 | ||
|
|
bc67e5a0a4 | ||
|
|
4a01159da2 | ||
|
|
9fe17d473a | ||
|
|
f18e8a969a | ||
|
|
9dc4bef897 | ||
|
|
57942237c1 | ||
|
|
d61f2f772a | ||
|
|
dd097bdc13 | ||
|
|
80d7395dcf | ||
|
|
0eec851942 | ||
|
|
41a3485dd6 | ||
|
|
23e2e11515 | ||
|
|
51ad850f5f | ||
|
|
2c70711e3f | ||
|
|
7bf9a07bd7 | ||
|
|
c3160727b9 | ||
|
|
bb7ee7abe1 | ||
|
|
35578168be | ||
|
|
952d9d827e | ||
|
|
1321257317 | ||
|
|
e041dde7bb | ||
|
|
e4db17fb6e | ||
|
|
0d4d9ee9bb | ||
|
|
f78da4f9d6 | ||
|
|
73b8b0ae3a | ||
|
|
6db660bed9 | ||
|
|
e97976baa7 | ||
|
|
78ba933d18 | ||
|
|
f24f51d030 | ||
|
|
f5d52c90e0 | ||
|
|
9e0ee59019 | ||
|
|
1780f08ba4 | ||
|
|
335c8c7b20 | ||
|
|
620c959c6c | ||
|
|
78db17c6f3 | ||
|
|
8e3fc135e8 | ||
|
|
bf634a0a8b | ||
|
|
b9115da4be | ||
|
|
28d8421bfb | ||
|
|
890ee4e2be | ||
|
|
4a15504e91 | ||
|
|
0f5575d0a7 | ||
|
|
1790be6cb6 | ||
|
|
60dc8274e9 | ||
|
|
921ba52926 | ||
|
|
77ab4e28a2 | ||
|
|
77111e2bfc | ||
|
|
131530a54d | ||
|
|
41114a2a27 | ||
|
|
83cd0156e0 | ||
|
|
0732932553 | ||
|
|
6e850a6900 | ||
|
|
2a4bd00cef | ||
|
|
81530e3603 | ||
|
|
d47c39775b | ||
|
|
53f7fccc94 | ||
|
|
327d3ee455 | ||
|
|
eaf3f36168 | ||
|
|
6868634abd | ||
|
|
78e006b9b0 | ||
|
|
e2390c7f32 | ||
|
|
7e6a2a64f0 | ||
|
|
9088784972 | ||
|
|
f723701de0 | ||
|
|
4490ec4e83 | ||
|
|
5d7c2df536 | ||
|
|
53ba05b090 | ||
|
|
29b857150c | ||
|
|
ccb148ac63 | ||
|
|
678b207fb1 | ||
|
|
ff34bee3a2 | ||
|
|
3c77b6a1ce | ||
|
|
a764e73d4f | ||
|
|
2ec28aec9d | ||
|
|
7a4ca32175 | ||
|
|
8a4c812ede | ||
|
|
3ed0d93796 | ||
|
|
2eb6fc3b52 | ||
|
|
5bca906b30 | ||
|
|
7d60384a00 | ||
|
|
9c9472ff49 | ||
|
|
5a9e5845e1 | ||
|
|
7973de35ba | ||
|
|
dd0b287c1e | ||
|
|
88421d6dc8 | ||
|
|
1a3e5747b7 | ||
|
|
5a234eb18e | ||
|
|
0ad871dc4d | ||
|
|
1b862c466b | ||
|
|
c9e7e344ed | ||
|
|
cd268017cf | ||
|
|
5dd839ce20 | ||
|
|
2b59df00d8 | ||
|
|
7a3fe3e180 | ||
|
|
a74901929e | ||
|
|
f674b358fc | ||
|
|
d8e44476d8 | ||
|
|
05bd9785fd | ||
|
|
c4c5642513 | ||
|
|
cd9172077b | ||
|
|
189663bdac | ||
|
|
11d7e62f1d | ||
|
|
63cb6567f0 | ||
|
|
e29a27f6f8 | ||
|
|
9fa5dabedc | ||
|
|
83494b4ac6 | ||
|
|
9bb0dad0d8 | ||
|
|
605793500b | ||
|
|
ac2cd2b08f | ||
|
|
6106504e9e | ||
|
|
98c2eaed27 | ||
|
|
885971e2f5 | ||
|
|
9ff9c7b974 | ||
|
|
f6488547e3 | ||
|
|
24e9316560 | ||
|
|
4db572eeb2 | ||
|
|
ad2d4969e1 | ||
|
|
0c35752d04 | ||
|
|
c6ba2f9dde | ||
|
|
47bc9c3337 | ||
|
|
a9a7c0c602 | ||
|
|
20c370d9f2 | ||
|
|
f5f1b59d3b | ||
|
|
d8cee76b49 | ||
|
|
5245beb37c | ||
|
|
378697ac58 | ||
|
|
547f94f330 | ||
|
|
b5841b99e6 | ||
|
|
9e60e899ee | ||
|
|
0894e0d808 | ||
|
|
1557b16dad | ||
|
|
1a71d31bf3 | ||
|
|
c816a2c226 | ||
|
|
4a0b85ad01 | ||
|
|
5bea41dea3 | ||
|
|
1840a7b4e3 | ||
|
|
16e26a3116 | ||
|
|
ee41052ccb | ||
|
|
042414fa00 | ||
|
|
841e498c5d | ||
|
|
7b7a118e74 | ||
|
|
11005b078d | ||
|
|
ffcfddc759 | ||
|
|
c72bdd28ac | ||
|
|
cc7eb2aa7a | ||
|
|
5231224e11 | ||
|
|
648594eaf7 | ||
|
|
c03fe66ade | ||
|
|
4ece152ad6 | ||
|
|
0f1227f7d5 | ||
|
|
d9162550aa | ||
|
|
1aeddeb8bd | ||
|
|
de69a7353e | ||
|
|
482d2f37a5 | ||
|
|
a2438132a6 | ||
|
|
31e21766d6 | ||
|
|
c323527d67 | ||
|
|
fe3418abe0 | ||
|
|
5b73992d8f | ||
|
|
9da32e4d57 | ||
|
|
90fba5627b | ||
|
|
6bcb18253a | ||
|
|
981217c11f | ||
|
|
b885a7c72c | ||
|
|
c967d57aa9 | ||
|
|
f055d45023 | ||
|
|
f32f099761 | ||
|
|
d4ab807d62 | ||
|
|
09f688c33a | ||
|
|
deb108ba0a | ||
|
|
1594f31345 | ||
|
|
30441bb3d5 | ||
|
|
41fb723ee9 | ||
|
|
db86472770 | ||
|
|
6a9e5c69cf | ||
|
|
5ede5b231e | ||
|
|
efc5db5215 | ||
|
|
90df4b9d42 | ||
|
|
303215d60c | ||
|
|
b5098060f4 | ||
|
|
599a6e5b36 | ||
|
|
442b29c968 | ||
|
|
5cb09620c1 | ||
|
|
404557e6a6 | ||
|
|
04db26b360 | ||
|
|
f6d877975b | ||
|
|
d6fa7bd5b9 | ||
|
|
22f85d0459 | ||
|
|
6977dba04b | ||
|
|
97f227d9c9 | ||
|
|
b7480cd893 | ||
|
|
f33cae6050 | ||
|
|
3777d6e32b | ||
|
|
26e88ec8e2 | ||
|
|
67b17a6fc6 | ||
|
|
7a40ff00ed | ||
|
|
4197828dc6 | ||
|
|
999db2346b | ||
|
|
1d97efce0c | ||
|
|
6c72fd51a8 | ||
|
|
b17ab86e7b | ||
|
|
c60e959cba | ||
|
|
fb773a3e0a | ||
|
|
74509239df | ||
|
|
e28d9b3bd4 | ||
|
|
00aaa512d5 | ||
|
|
20cc528320 | ||
|
|
9cee4a1c9c | ||
|
|
fcde67c99f | ||
|
|
6fc0161682 | ||
|
|
acbb4b5720 | ||
|
|
a26f56f675 | ||
|
|
72463f883c | ||
|
|
b836f631db | ||
|
|
11a632d60b | ||
|
|
576cb75ceb | ||
|
|
a3d1b29bd3 | ||
|
|
834193afd7 | ||
|
|
d3d8feeb89 | ||
|
|
3f987b5917 | ||
|
|
80b2ba3e96 | ||
|
|
ea042677ab | ||
|
|
4067bd3604 | ||
|
|
7d7bcc6ba0 | ||
|
|
127950241e | ||
|
|
ffec6dd16a | ||
|
|
108010aa47 | ||
|
|
d887297ad0 | ||
|
|
1d1ce613cd | ||
|
|
17d868b8b2 | ||
|
|
577dc93da9 | ||
|
|
4d8f476176 | ||
|
|
e65081d1b5 | ||
|
|
65aee0b714 | ||
|
|
4cd5c52d64 | ||
|
|
054794c20f | ||
|
|
98f9a5f4cb | ||
|
|
e3ffaa6b7c | ||
|
|
015cf10311 | ||
|
|
307dec4567 | ||
|
|
14ded11fca | ||
|
|
3a3b10e87a | ||
|
|
4d5dfe2083 | ||
|
|
13e45d14ba | ||
|
|
ce024c3e20 | ||
|
|
444d878324 | ||
|
|
f3caeb63d6 | ||
|
|
6582e230a0 | ||
|
|
22480d147f | ||
|
|
f3d30842dc | ||
|
|
b420ac9d20 | ||
|
|
98703d7f6c | ||
|
|
3a62b14077 | ||
|
|
d415d26913 | ||
|
|
6738fd2000 | ||
|
|
44dea9da4b | ||
|
|
18d46587b9 | ||
|
|
8cec9273d2 | ||
|
|
cc65040986 | ||
|
|
8ce3ca8961 | ||
|
|
7237cab8f1 | ||
|
|
831bdf8622 | ||
|
|
ef7be8348f | ||
|
|
419a40ac96 | ||
|
|
226b28b961 | ||
|
|
22f17a29cd | ||
|
|
cb54bc6562 | ||
|
|
035bd1c99f | ||
|
|
f1e7449d56 | ||
|
|
2ac4b2536a | ||
|
|
4f8f54280f | ||
|
|
0d5e1ec37f | ||
|
|
2fb1b89d72 | ||
|
|
ca81f0e834 | ||
|
|
f573c6e1ed | ||
|
|
208f0b48b2 | ||
|
|
2fb7495686 | ||
|
|
6864efa596 | ||
|
|
ad52f96a2d | ||
|
|
59b50c3bee | ||
|
|
fae55a9cb0 | ||
|
|
74f4a965bc | ||
|
|
6e9695525e | ||
|
|
4cea536bdf | ||
|
|
29f0dc3689 | ||
|
|
6bc30b05e6 | ||
|
|
41a7f82dea | ||
|
|
b90ac5e96e | ||
|
|
55b6b60b69 | ||
|
|
61a417b7c1 | ||
|
|
a97c36310f | ||
|
|
f57b43c230 | ||
|
|
8ac681a280 | ||
|
|
968a5b62ff | ||
|
|
affd0bc626 | ||
|
|
caf1a2f296 | ||
|
|
3b814af7e1 | ||
|
|
47f6db9089 | ||
|
|
1b0a9dd413 | ||
|
|
26d711645c | ||
|
|
b69c6fb7b4 | ||
|
|
90478f35a8 | ||
|
|
2d6d718dde | ||
|
|
5ffefbb35a | ||
|
|
2346a63784 | ||
|
|
4ee9d8e04d | ||
|
|
e70e12b32f | ||
|
|
2e66b0d137 | ||
|
|
c2dec4cac4 | ||
|
|
c3a27bbd53 | ||
|
|
6d1792d408 | ||
|
|
d9f31c13d2 | ||
|
|
e99d422bbd | ||
|
|
e6174fd58d | ||
|
|
4a27aefe3b | ||
|
|
a993153538 | ||
|
|
7423577180 | ||
|
|
6654ca702c | ||
|
|
0b71955552 | ||
|
|
5958549760 | ||
|
|
744aecf877 | ||
|
|
22db0d549f | ||
|
|
8de901e1f1 | ||
|
|
f0a4069e3d | ||
|
|
4f13527598 | ||
|
|
3044324e8d | ||
|
|
7b4f76c030 | ||
|
|
544a38e44d | ||
|
|
31e299c08f | ||
|
|
a42e6e0082 | ||
|
|
54656015d3 | ||
|
|
c04f2a4cd4 | ||
|
|
e3f50ad640 | ||
|
|
b55d618f19 | ||
|
|
a733042b12 | ||
|
|
445f11d5bc | ||
|
|
dc73b4b75d | ||
|
|
c41badb748 | ||
|
|
8cf02e5cf8 | ||
|
|
2f9c209ba0 | ||
|
|
f7a023e580 | ||
|
|
3a7503c34c | ||
|
|
f05d2fc539 | ||
|
|
e729ce294f | ||
|
|
6db7b6375a | ||
|
|
518df27ebe | ||
|
|
99285550a9 | ||
|
|
2067733b5c | ||
|
|
c64ed2b714 | ||
|
|
3cfa5b16b0 | ||
|
|
7a2217bedd | ||
|
|
f5bfa8faa7 | ||
|
|
2752360646 | ||
|
|
59b262362f | ||
|
|
1328bde9d4 | ||
|
|
c6d71532dd | ||
|
|
8da6d6db34 | ||
|
|
b288ba9f1d | ||
|
|
4f2417ffee | ||
|
|
84e9ade826 | ||
|
|
21492743e8 | ||
|
|
56cddb3879 | ||
|
|
5fa9b24440 | ||
|
|
6c4c404c58 | ||
|
|
24951a67c2 | ||
|
|
6e0b553fa1 | ||
|
|
4f3c57f798 | ||
|
|
5072b47a22 | ||
|
|
85eee5b969 | ||
|
|
0a808598e4 | ||
|
|
01c798c31a | ||
|
|
a83d06026d | ||
|
|
c3cb1c92a3 | ||
|
|
0f37e3561d | ||
|
|
a2e468fcac | ||
|
|
eecf2b35a1 | ||
|
|
eeec254878 | ||
|
|
b54abeeafb | ||
|
|
6f1d2aa437 | ||
|
|
6a43b37b76 | ||
|
|
3d9c4eefe6 | ||
|
|
bb162367ac | ||
|
|
2ac7184d34 | ||
|
|
ef8706fb84 | ||
|
|
2fa9384ca1 | ||
|
|
d2ea7cf10a | ||
|
|
6ef5ab5904 | ||
|
|
f883d9027c | ||
|
|
e71c0ebe2c | ||
|
|
0b49648486 | ||
|
|
e0a7658bc8 | ||
|
|
e5b4486c42 | ||
|
|
28cf44f761 | ||
|
|
a5787c3742 | ||
|
|
1d3a14ecf0 | ||
|
|
74ede80aeb | ||
|
|
a06e345af5 | ||
|
|
5a6cfb3ff2 | ||
|
|
3e72dcad8b | ||
|
|
1174b018a6 | ||
|
|
f89be8de14 | ||
|
|
3552e74289 | ||
|
|
d0edaf9dc2 | ||
|
|
dc3275a1ac | ||
|
|
4ac198c61c | ||
|
|
2c4a1d0a61 | ||
|
|
bc869874fe | ||
|
|
89dcb4dce3 | ||
|
|
543467136f | ||
|
|
840f91f110 | ||
|
|
c512599b22 | ||
|
|
7d840e9ac7 | ||
|
|
4c8e8c6e19 | ||
|
|
34fcb69724 | ||
|
|
872bee557e | ||
|
|
1e469c72ee | ||
|
|
e97c7c962c | ||
|
|
15bbb8f4f3 | ||
|
|
611728f806 | ||
|
|
ad5c178a19 | ||
|
|
f5409dbf66 | ||
|
|
b777da9be8 | ||
|
|
1e615669c0 | ||
|
|
23c0192166 | ||
|
|
5cf94577cf | ||
|
|
4eb1914e1b | ||
|
|
46aa6f93ac | ||
|
|
56c9fd0107 | ||
|
|
4781d6fd86 | ||
|
|
796139ae3a | ||
|
|
485b627100 | ||
|
|
cbe178e3dc | ||
|
|
082a3bf961 | ||
|
|
ecb664501d | ||
|
|
d87c21a918 | ||
|
|
074f84c01f | ||
|
|
965c04486c | ||
|
|
fc643e6016 | ||
|
|
3b1373b193 | ||
|
|
1764faa386 | ||
|
|
dcfc311198 | ||
|
|
6b02b38ed0 | ||
|
|
ff65288aa8 | ||
|
|
3ec3217f04 | ||
|
|
50157ef1c2 | ||
|
|
0820f4de58 | ||
|
|
30e3de21fc | ||
|
|
d832c3c56e | ||
|
|
761ead497f | ||
|
|
847fe7d750 | ||
|
|
71c6f7a665 | ||
|
|
36f96a5151 | ||
|
|
fe8ebdbe5c | ||
|
|
588cf7547b | ||
|
|
68db996b62 | ||
|
|
918b08957c | ||
|
|
24f720998f | ||
|
|
f06ab6ba38 | ||
|
|
f18332fb9e | ||
|
|
e08795e1ec | ||
|
|
261417b872 | ||
|
|
5631836975 | ||
|
|
e3e598e82b | ||
|
|
6d37e8e3ba | ||
|
|
b7c978154e | ||
|
|
dc3e2e65c9 | ||
|
|
5f7d4c049e | ||
|
|
3a00659db7 | ||
|
|
1ad72c8eb6 | ||
|
|
0279510444 | ||
|
|
ad43199572 | ||
|
|
df36514a64 | ||
|
|
97a6c6a1fb | ||
|
|
5f8ed7408a | ||
|
|
551c1aed65 | ||
|
|
2bf6034e5c | ||
|
|
1bb0da25a6 | ||
|
|
4c295027a4 | ||
|
|
5f628a12e5 | ||
|
|
4a22897591 | ||
|
|
3d0e7a956a | ||
|
|
b6c2e9a010 | ||
|
|
4934ed34c3 | ||
|
|
aeed2a6359 | ||
|
|
227c58a486 | ||
|
|
03717bf6a2 | ||
|
|
b80d2fb0e7 | ||
|
|
b06b50dfa0 | ||
|
|
bb01a1ef3a | ||
|
|
5930ddcd25 | ||
|
|
b98cec28d9 | ||
|
|
d386e923c7 | ||
|
|
dc4c2309f2 | ||
|
|
730bf30020 | ||
|
|
340c59ec6f | ||
|
|
bdc0f1c698 | ||
|
|
96cf4ba8fb | ||
|
|
7ba1e4d363 | ||
|
|
e0c03c8e10 | ||
|
|
a6aa16423f | ||
|
|
f6d9935a13 | ||
|
|
9f28416e54 | ||
|
|
11e3c5ba82 | ||
|
|
459fbdbf92 | ||
|
|
a369c3d9c1 | ||
|
|
2d5f385cee | ||
|
|
753bcf8c7d | ||
|
|
169502fb0b | ||
|
|
16678eb50f | ||
|
|
d23f8bde5c | ||
|
|
9ce47ec0b6 | ||
|
|
5c787fb792 | ||
|
|
63276685f9 | ||
|
|
8238f08838 | ||
|
|
3f88e71fa2 | ||
|
|
6d4c1c7ba8 | ||
|
|
4f2df37a0d | ||
|
|
2d1c57ed3d | ||
|
|
4c13721482 | ||
|
|
e8209b91b9 | ||
|
|
39211cba72 | ||
|
|
b7c21afef1 | ||
|
|
d551d6c268 | ||
|
|
f7e92aae15 | ||
|
|
d23b714d8b | ||
|
|
51e933261b | ||
|
|
0995c81f2f | ||
|
|
c70fe460b0 | ||
|
|
6c7cc347af | ||
|
|
56994d2158 | ||
|
|
112a006417 | ||
|
|
635bd60804 | ||
|
|
aa1959bd5e | ||
|
|
fe090eb58f | ||
|
|
6bc00699c5 | ||
|
|
f387f5dfbc | ||
|
|
bd6406f15d | ||
|
|
b141926890 | ||
|
|
0e3ff19196 | ||
|
|
b47bed2f7a | ||
|
|
a3589a0d6c | ||
|
|
f62d73933a | ||
|
|
2e240bd428 | ||
|
|
f6a8d420a8 | ||
|
|
f2253963c2 | ||
|
|
f48b2fa33c | ||
|
|
68452177ca | ||
|
|
cfc3023cb6 | ||
|
|
af8ea0d066 | ||
|
|
09f067fca3 | ||
|
|
f93bbd0262 | ||
|
|
e8e3078184 | ||
|
|
fed9e830fc | ||
|
|
da479c7597 | ||
|
|
fe95b94ffa | ||
|
|
c429769776 | ||
|
|
bb8a7ce0a1 | ||
|
|
87795939d0 | ||
|
|
51e7e78de7 | ||
|
|
962c43bf0d | ||
|
|
599410cb3c | ||
|
|
701cc6ca9e | ||
|
|
1088b69451 | ||
|
|
2a38908b05 | ||
|
|
767034c5b8 | ||
|
|
dcae51facc | ||
|
|
d8db838392 | ||
|
|
175a41c13f | ||
|
|
fa5963880d | ||
|
|
15e5e53ef2 | ||
|
|
130cbfc312 | ||
|
|
125ed2745c | ||
|
|
e5b0b98a90 | ||
|
|
8dddc1f0e2 | ||
|
|
c9605f0595 | ||
|
|
643ce6c0c6 | ||
|
|
e3d1f4c982 | ||
|
|
e9b8b78e04 | ||
|
|
86cdb8a4bd | ||
|
|
e8c4660a55 | ||
|
|
0d351a04e1 | ||
|
|
58fb7c39a0 | ||
|
|
b9c0cd897a | ||
|
|
2927c07b0e | ||
|
|
01ac0a1f66 | ||
|
|
e42939af87 | ||
|
|
0865b15bc6 | ||
|
|
ce5b06a6a9 | ||
|
|
0b94e297af | ||
|
|
886e5e737d | ||
|
|
409da842db | ||
|
|
68ffe8cade | ||
|
|
f2dd9cb995 | ||
|
|
3c49e74e18 | ||
|
|
90193e6140 | ||
|
|
26af8e54ff | ||
|
|
3a6aadb328 | ||
|
|
ceb0619433 | ||
|
|
a7511c0f4f | ||
|
|
77709b194c | ||
|
|
440cf096fa | ||
|
|
6e50ec2f0a | ||
|
|
c17ba791a9 | ||
|
|
26f201345d | ||
|
|
6437475ffb | ||
|
|
c48f2dc0be | ||
|
|
b9c6b6fb73 | ||
|
|
0df6030145 | ||
|
|
f65ed86f6f | ||
|
|
1e6bbfb560 | ||
|
|
5b8cabfef7 | ||
|
|
dcf29ac87f | ||
|
|
f5906aa780 | ||
|
|
3fa5e64e0e | ||
|
|
ef38bcf051 | ||
|
|
160a2b4dac | ||
|
|
ca51cc0a33 | ||
|
|
d877a5700f | ||
|
|
ce0b75711a | ||
|
|
49c51b825a | ||
|
|
5c504f680e | ||
|
|
b91d3f857f | ||
|
|
529fb5a5f6 | ||
|
|
12be734faf | ||
|
|
e535db86e7 | ||
|
|
dad4473f02 | ||
|
|
ae0f151ddf | ||
|
|
82820d9bf1 | ||
|
|
38a3bfa9a2 | ||
|
|
9ea7e55ab9 | ||
|
|
8b9abfd86c | ||
|
|
9dbe701fe1 | ||
|
|
3215466af9 | ||
|
|
b2cb6c8bbd | ||
|
|
f6bdd82c7e | ||
|
|
b2ac7d0663 | ||
|
|
df749a2b9c | ||
|
|
f49a1fcdb9 | ||
|
|
24f21fdfca | ||
|
|
c580943965 | ||
|
|
7b45d46cf7 | ||
|
|
32105ae88f | ||
|
|
79efa2e3b3 | ||
|
|
7007e31bde | ||
|
|
bb5d87c850 | ||
|
|
ccc25aa285 | ||
|
|
c61cb8bfe1 | ||
|
|
74e54fcb44 | ||
|
|
522eefd9a2 | ||
|
|
a2b3e7dc92 | ||
|
|
0a1a6a1aa4 | ||
|
|
ff87140046 | ||
|
|
3a0f092ac0 | ||
|
|
fa984418e7 | ||
|
|
a91a71322d | ||
|
|
2fecb53115 | ||
|
|
1ff89deeaa | ||
|
|
c54f347d63 | ||
|
|
f4a2ed0714 | ||
|
|
f28f2ac425 | ||
|
|
49f1e9ec3e | ||
|
|
da1dbed0df | ||
|
|
1f448d906b | ||
|
|
e98f60a591 | ||
|
|
2cec027af4 | ||
|
|
f1387285e2 | ||
|
|
5ea79a2599 | ||
|
|
4c86830fc5 | ||
|
|
09f8b3a022 | ||
|
|
67da21a147 | ||
|
|
7a6eaa06f9 | ||
|
|
f90c855c71 | ||
|
|
196a1f7409 | ||
|
|
c5cf369e95 | ||
|
|
a0c8aea479 | ||
|
|
592f57f5fe | ||
|
|
a0399efa72 | ||
|
|
5c7a299c16 | ||
|
|
4355894869 | ||
|
|
240014321b | ||
|
|
af125866db | ||
|
|
74b99f6ab6 | ||
|
|
17709e280a | ||
|
|
a555e6fcb6 | ||
|
|
108cf0153c | ||
|
|
4b3e1964d8 | ||
|
|
5f91e74bf9 | ||
|
|
3f32788000 | ||
|
|
8863bda25d | ||
|
|
3e1916947d | ||
|
|
a4c81bea38 | ||
|
|
c970e4225b | ||
|
|
6ccfd99b92 | ||
|
|
18b7d86d7f | ||
|
|
f8c52e8d08 | ||
|
|
1e448465e1 | ||
|
|
3214812997 | ||
|
|
f4fcedc59d | ||
|
|
02b4d9b18a | ||
|
|
70ce8a1561 | ||
|
|
0289a093a4 | ||
|
|
240309c9bf | ||
|
|
77b10ffad4 | ||
|
|
2e34c34be1 | ||
|
|
6bce5856b5 | ||
|
|
93e1cae739 | ||
|
|
edba70703b | ||
|
|
6508880d6c | ||
|
|
cb4e80fab9 | ||
|
|
41cd80335c | ||
|
|
9e813b3dea | ||
|
|
0756f757ed | ||
|
|
0de8e2d6a3 | ||
|
|
c8cdf0f80b | ||
|
|
6fd367a97c | ||
|
|
c80f647512 | ||
|
|
12bce95887 | ||
|
|
776b954622 | ||
|
|
23b32a8d6b | ||
|
|
6635ae1437 | ||
|
|
f52f0606ed | ||
|
|
c23555de34 | ||
|
|
d345fb9216 | ||
|
|
7ad67d1150 | ||
|
|
ffb7dcdb77 | ||
|
|
37294bd6a2 | ||
|
|
e3ffcd9902 | ||
|
|
d00a7fb81a | ||
|
|
86c3a2162c | ||
|
|
9355ae4149 | ||
|
|
608d78fb45 | ||
|
|
6914e87d3c | ||
|
|
04947cc6ed | ||
|
|
a974953443 | ||
|
|
18062fcad6 | ||
|
|
8c801b374b | ||
|
|
f9a65505d1 | ||
|
|
008bff967f | ||
|
|
6057748a1a | ||
|
|
6c3843ca8a | ||
|
|
2e2d758902 | ||
|
|
f76ec1eeb5 | ||
|
|
51b477f74f | ||
|
|
4fa1175765 | ||
|
|
37096afd3f | ||
|
|
3dc3474f00 | ||
|
|
39d4cab494 | ||
|
|
3650fd7098 | ||
|
|
057e84afe5 | ||
|
|
087b5ff35d | ||
|
|
0a84284e60 | ||
|
|
3f1e9f000f | ||
|
|
0f2a5cc68b | ||
|
|
9faec4e3d4 | ||
|
|
0abc6e471a | ||
|
|
9f646c2e11 | ||
|
|
d0bce504ec | ||
|
|
0e62a6742b | ||
|
|
1bd3cb2019 | ||
|
|
7d41410a45 | ||
|
|
2c6553498e | ||
|
|
21a83bd53d | ||
|
|
eba13e4ea2 | ||
|
|
bc327ccc3d | ||
|
|
9cb577a682 | ||
|
|
41f0895c6e | ||
|
|
6bfc475f71 | ||
|
|
b4893b8450 | ||
|
|
7e82c5f338 | ||
|
|
21578271bb | ||
|
|
027c4ab4d2 | ||
|
|
dc167465f8 | ||
|
|
723ef5db98 | ||
|
|
a1070eae77 | ||
|
|
5b5ae29bd3 | ||
|
|
ada1d870b4 | ||
|
|
10b9421f3b | ||
|
|
12d265315f | ||
|
|
d3f8a9ee65 | ||
|
|
c7dac8534e | ||
|
|
064095012c | ||
|
|
527ed38cfa | ||
|
|
e0890d678d | ||
|
|
3aca5a6fbc | ||
|
|
c0fcb6e0b1 | ||
|
|
9bbd883b35 | ||
|
|
333bd56422 | ||
|
|
04ea7e9049 | ||
|
|
b8554304c3 | ||
|
|
eed9d46293 | ||
|
|
7c5b3c0369 | ||
|
|
4afa77419f | ||
|
|
6281815ecc | ||
|
|
2379f87eb4 | ||
|
|
9979fcd72e | ||
|
|
03dfde2b5f | ||
|
|
39f3b14110 | ||
|
|
10ccfb2a17 | ||
|
|
8d4be89011 | ||
|
|
a98f8a2305 | ||
|
|
942db23c9c | ||
|
|
0fa09676c2 | ||
|
|
c150c09ec4 | ||
|
|
31842cd077 | ||
|
|
44ec21c467 | ||
|
|
d9d7789b6f | ||
|
|
ca753ec862 | ||
|
|
f785aa1354 | ||
|
|
0bcadf14aa | ||
|
|
3b678047bc | ||
|
|
5affc03468 | ||
|
|
418a29f0ff | ||
|
|
5202929dab | ||
|
|
8f33ebfade | ||
|
|
3ff656f6b4 | ||
|
|
f3fa18468c | ||
|
|
b17ec4d427 | ||
|
|
82db31c104 | ||
|
|
4223d43c0f | ||
|
|
963ffa0a5a | ||
|
|
a853089479 | ||
|
|
4549dad874 | ||
|
|
ba98fb54ae | ||
|
|
0123cc1e14 | ||
|
|
dee37dc733 | ||
|
|
6628b7ebff | ||
|
|
a5a1ec1826 | ||
|
|
4f53b79bf5 | ||
|
|
c3fc75db02 | ||
|
|
00385114db | ||
|
|
0dc5f603e9 | ||
|
|
dd07c02232 | ||
|
|
983d83ff1c | ||
|
|
dfc3db76b9 | ||
|
|
2c7080bf1c | ||
|
|
8c6951fa28 | ||
|
|
aad5f9d79a | ||
|
|
efa1923565 | ||
|
|
6502643677 | ||
|
|
f5a5116a96 | ||
|
|
038e09ee76 | ||
|
|
139348f3e8 | ||
|
|
ab65fc77c5 | ||
|
|
92bb83e41c | ||
|
|
8ab375706e | ||
|
|
6bcb877ec1 | ||
|
|
2c363a2e95 | ||
|
|
fef8064b54 | ||
|
|
fc1dafa91c | ||
|
|
8bead9a058 | ||
|
|
0dcd39bad5 | ||
|
|
4dba04256b | ||
|
|
7b6903f02c | ||
|
|
2e5910bfbb | ||
|
|
91478ae49a | ||
|
|
148be9bc1c | ||
|
|
d5e8c92816 | ||
|
|
e7bebc495d | ||
|
|
7781ebe50f | ||
|
|
3b69006973 | ||
|
|
9d20daffc2 | ||
|
|
f9547eb6ef | ||
|
|
5daa911626 | ||
|
|
0346b799fc | ||
|
|
e507ff15d5 | ||
|
|
80ad3e2569 | ||
|
|
f272ae12ac | ||
|
|
c03f5c677a | ||
|
|
853886722c | ||
|
|
3d2bb8b6f1 | ||
|
|
6a12e3342d | ||
|
|
4d8479b335 | ||
|
|
206c2a6e19 | ||
|
|
3445320839 | ||
|
|
f2b26bcf8f | ||
|
|
b63f3ca66d | ||
|
|
76ab5446d5 | ||
|
|
ebd211c8a3 | ||
|
|
f8c6a17180 | ||
|
|
59ff64079b | ||
|
|
92e5df8047 | ||
|
|
3eb6bd9c2b | ||
|
|
28976e2acc | ||
|
|
df2c2988bb | ||
|
|
97202d9516 | ||
|
|
61015162ba | ||
|
|
1d859e2421 | ||
|
|
5ed58c7b70 | ||
|
|
9a046fd08b | ||
|
|
d697ddea14 | ||
|
|
2e6cdb91e8 | ||
|
|
3e492c2d5f | ||
|
|
bed72df3e6 | ||
|
|
21829c5f2c | ||
|
|
b7e2670b6a | ||
|
|
bb4b93ed85 | ||
|
|
ce0370d9e6 | ||
|
|
98989a0014 | ||
|
|
ff0e57fe77 | ||
|
|
e0e3917554 | ||
|
|
e5ea346a07 | ||
|
|
5c829bf229 | ||
|
|
ab55f11d9b | ||
|
|
c05fe07529 | ||
|
|
4efd994829 | ||
|
|
107e9cecf7 | ||
|
|
ced68a0070 | ||
|
|
8323cab31c | ||
|
|
f002a41d12 | ||
|
|
b204990346 | ||
|
|
7cf0c114d6 | ||
|
|
40be52ba71 | ||
|
|
dfbc5fd879 | ||
|
|
7cebe8ba7d | ||
|
|
9a562c184d | ||
|
|
9ae3705b6e | ||
|
|
4bce26bb70 | ||
|
|
402115f1c2 | ||
|
|
0d3de8cb59 | ||
|
|
b3005ce191 | ||
|
|
9b6344613e | ||
|
|
57d5a01cb4 | ||
|
|
e32e516dfa | ||
|
|
f904133e1a |
88
.github/CODEOWNERS
vendored
88
.github/CODEOWNERS
vendored
@@ -9,9 +9,6 @@
|
|||||||
# So if a pull request only touches javascript files, only these owners
|
# So if a pull request only touches javascript files, only these owners
|
||||||
# will be requested to review.
|
# will be requested to review.
|
||||||
|
|
||||||
src/iscygpty.* @k-takata
|
|
||||||
src/libvterm/ @leonerd
|
|
||||||
|
|
||||||
runtime/autoload/getscript.vim @cecamp
|
runtime/autoload/getscript.vim @cecamp
|
||||||
runtime/autoload/netrw.vim @cecamp
|
runtime/autoload/netrw.vim @cecamp
|
||||||
runtime/autoload/netrwFileHandlers.vim @cecamp
|
runtime/autoload/netrwFileHandlers.vim @cecamp
|
||||||
@@ -22,6 +19,7 @@ runtime/autoload/vimball.vim @cecamp
|
|||||||
runtime/autoload/xmlformat.vim @chrisbra
|
runtime/autoload/xmlformat.vim @chrisbra
|
||||||
runtime/autoload/zip.vim @cecamp
|
runtime/autoload/zip.vim @cecamp
|
||||||
runtime/compiler/checkstyle.vim @dkearns
|
runtime/compiler/checkstyle.vim @dkearns
|
||||||
|
runtime/compiler/cm3.vim @dkearns
|
||||||
runtime/compiler/cucumber.vim @tpope
|
runtime/compiler/cucumber.vim @tpope
|
||||||
runtime/compiler/dart.vim @dkearns
|
runtime/compiler/dart.vim @dkearns
|
||||||
runtime/compiler/dart2js.vim @dkearns
|
runtime/compiler/dart2js.vim @dkearns
|
||||||
@@ -31,6 +29,7 @@ runtime/compiler/dartdevc.vim @dkearns
|
|||||||
runtime/compiler/dartdoc.vim @dkearns
|
runtime/compiler/dartdoc.vim @dkearns
|
||||||
runtime/compiler/dartfmt.vim @dkearns
|
runtime/compiler/dartfmt.vim @dkearns
|
||||||
runtime/compiler/eruby.vim @dkearns
|
runtime/compiler/eruby.vim @dkearns
|
||||||
|
runtime/compiler/fbc.vim @dkearns
|
||||||
runtime/compiler/gawk.vim @dkearns
|
runtime/compiler/gawk.vim @dkearns
|
||||||
runtime/compiler/gjs.vim @dkearns
|
runtime/compiler/gjs.vim @dkearns
|
||||||
runtime/compiler/haml.vim @tpope
|
runtime/compiler/haml.vim @tpope
|
||||||
@@ -41,6 +40,7 @@ runtime/compiler/jshint.vim @dkearns
|
|||||||
runtime/compiler/jsonlint.vim @dkearns
|
runtime/compiler/jsonlint.vim @dkearns
|
||||||
runtime/compiler/lazbuild.vim @dkearns
|
runtime/compiler/lazbuild.vim @dkearns
|
||||||
runtime/compiler/php.vim @dkearns
|
runtime/compiler/php.vim @dkearns
|
||||||
|
runtime/compiler/powershell.vim @heaths
|
||||||
runtime/compiler/rake.vim @tpope @dkearns
|
runtime/compiler/rake.vim @tpope @dkearns
|
||||||
runtime/compiler/rhino.vim @dkearns
|
runtime/compiler/rhino.vim @dkearns
|
||||||
runtime/compiler/rspec.vim @tpope @dkearns
|
runtime/compiler/rspec.vim @tpope @dkearns
|
||||||
@@ -50,6 +50,8 @@ runtime/compiler/rubyunit.vim @dkearns
|
|||||||
runtime/compiler/sass.vim @tpope
|
runtime/compiler/sass.vim @tpope
|
||||||
runtime/compiler/se.vim @dkearns
|
runtime/compiler/se.vim @dkearns
|
||||||
runtime/compiler/shellcheck.vim @dkearns
|
runtime/compiler/shellcheck.vim @dkearns
|
||||||
|
runtime/compiler/sml.vim @dkearns
|
||||||
|
runtime/compiler/spectral.vim @romainl
|
||||||
runtime/compiler/stylelint.vim @dkearns
|
runtime/compiler/stylelint.vim @dkearns
|
||||||
runtime/compiler/tcl.vim @dkearns
|
runtime/compiler/tcl.vim @dkearns
|
||||||
runtime/compiler/tidy.vim @dkearns
|
runtime/compiler/tidy.vim @dkearns
|
||||||
@@ -58,6 +60,7 @@ runtime/compiler/tsc.vim @dkearns
|
|||||||
runtime/compiler/typedoc.vim @dkearns
|
runtime/compiler/typedoc.vim @dkearns
|
||||||
runtime/compiler/xmllint.vim @dkearns
|
runtime/compiler/xmllint.vim @dkearns
|
||||||
runtime/compiler/xo.vim @dkearns
|
runtime/compiler/xo.vim @dkearns
|
||||||
|
runtime/compiler/yamllint.vim @romainl
|
||||||
runtime/compiler/zsh.vim @dkearns
|
runtime/compiler/zsh.vim @dkearns
|
||||||
runtime/doc/pi_getscript.txt @cecamp
|
runtime/doc/pi_getscript.txt @cecamp
|
||||||
runtime/doc/pi_logipat.txt @cecamp
|
runtime/doc/pi_logipat.txt @cecamp
|
||||||
@@ -65,13 +68,19 @@ runtime/doc/pi_netrw.txt @cecamp
|
|||||||
runtime/doc/pi_tar.txt @cecamp
|
runtime/doc/pi_tar.txt @cecamp
|
||||||
runtime/doc/pi_vimball.txt @cecamp
|
runtime/doc/pi_vimball.txt @cecamp
|
||||||
runtime/doc/pi_zip.txt @cecamp
|
runtime/doc/pi_zip.txt @cecamp
|
||||||
|
runtime/doc/ps1.txt @heaths
|
||||||
runtime/ftplugin/awk.vim @dkearns
|
runtime/ftplugin/awk.vim @dkearns
|
||||||
|
runtime/ftplugin/basic.vim @dkearns
|
||||||
runtime/ftplugin/bst.vim @tpope
|
runtime/ftplugin/bst.vim @tpope
|
||||||
runtime/ftplugin/cfg.vim @chrisbra
|
runtime/ftplugin/cfg.vim @chrisbra
|
||||||
|
runtime/ftplugin/clojure.vim @axvr
|
||||||
|
runtime/ftplugin/csh.vim @dkearns
|
||||||
runtime/ftplugin/css.vim @dkearns
|
runtime/ftplugin/css.vim @dkearns
|
||||||
runtime/ftplugin/cucumber.vim @tpope
|
runtime/ftplugin/cucumber.vim @tpope
|
||||||
runtime/ftplugin/eiffel.vim @dkearns
|
runtime/ftplugin/eiffel.vim @dkearns
|
||||||
runtime/ftplugin/eruby.vim @tpope @dkearns
|
runtime/ftplugin/eruby.vim @tpope @dkearns
|
||||||
|
runtime/ftplugin/fpcmake.vim @dkearns
|
||||||
|
runtime/ftplugin/freebasic.vim @dkearns
|
||||||
runtime/ftplugin/git.vim @tpope
|
runtime/ftplugin/git.vim @tpope
|
||||||
runtime/ftplugin/gitcommit.vim @tpope
|
runtime/ftplugin/gitcommit.vim @tpope
|
||||||
runtime/ftplugin/gitconfig.vim @tpope
|
runtime/ftplugin/gitconfig.vim @tpope
|
||||||
@@ -80,36 +89,77 @@ runtime/ftplugin/gitsendemail.vim @tpope
|
|||||||
runtime/ftplugin/gprof.vim @dpelle
|
runtime/ftplugin/gprof.vim @dpelle
|
||||||
runtime/ftplugin/haml.vim @tpope
|
runtime/ftplugin/haml.vim @tpope
|
||||||
runtime/ftplugin/hgcommit.vim @k-takata
|
runtime/ftplugin/hgcommit.vim @k-takata
|
||||||
|
runtime/ftplugin/indent.vim @dkearns
|
||||||
runtime/ftplugin/javascript.vim @dkearns
|
runtime/ftplugin/javascript.vim @dkearns
|
||||||
runtime/ftplugin/javascriptreact.vim @dkearns
|
runtime/ftplugin/javascriptreact.vim @dkearns
|
||||||
runtime/ftplugin/kconfig.vim @chrisbra
|
runtime/ftplugin/kconfig.vim @chrisbra
|
||||||
runtime/ftplugin/liquid.vim @tpope
|
runtime/ftplugin/liquid.vim @tpope
|
||||||
|
runtime/ftplugin/lua.vim @dkearns
|
||||||
|
runtime/ftplugin/m3build.vim @dkearns
|
||||||
|
runtime/ftplugin/m3quake.vim @dkearns
|
||||||
runtime/ftplugin/markdown.vim @tpope
|
runtime/ftplugin/markdown.vim @tpope
|
||||||
runtime/ftplugin/matlab.vim @cecamp
|
runtime/ftplugin/matlab.vim @cecamp
|
||||||
|
runtime/ftplugin/meson.vim @Liambeguin
|
||||||
|
runtime/ftplugin/modula3.vim @dkearns
|
||||||
|
runtime/ftplugin/nginx.vim @chr4
|
||||||
runtime/ftplugin/nroff.vim @a-vrma
|
runtime/ftplugin/nroff.vim @a-vrma
|
||||||
runtime/ftplugin/nsis.vim @k-takata
|
runtime/ftplugin/nsis.vim @k-takata
|
||||||
|
runtime/ftplugin/octave.vim @dkearns
|
||||||
|
runtime/ftplugin/pascal.vim @dkearns
|
||||||
|
runtime/ftplugin/pbtxt.vim @lakshayg
|
||||||
runtime/ftplugin/pdf.vim @tpope
|
runtime/ftplugin/pdf.vim @tpope
|
||||||
|
runtime/ftplugin/ps1.vim @heaths
|
||||||
|
runtime/ftplugin/ps1xml.vim @heaths
|
||||||
|
runtime/ftplugin/routeros.vim @zainin
|
||||||
runtime/ftplugin/ruby.vim @tpope @dkearns
|
runtime/ftplugin/ruby.vim @tpope @dkearns
|
||||||
runtime/ftplugin/sass.vim @tpope
|
runtime/ftplugin/sass.vim @tpope
|
||||||
runtime/ftplugin/scss.vim @tpope
|
runtime/ftplugin/scss.vim @tpope
|
||||||
runtime/ftplugin/spec.vim @ignatenkobrain
|
runtime/ftplugin/spec.vim @ignatenkobrain
|
||||||
|
runtime/ftplugin/systemverilog.vim @Kocha
|
||||||
|
runtime/ftplugin/tcsh.vim @dkearns
|
||||||
|
runtime/ftplugin/tidy.vim @dkearns
|
||||||
runtime/ftplugin/tmux.vim @ericpruitt
|
runtime/ftplugin/tmux.vim @ericpruitt
|
||||||
|
runtime/ftplugin/toml.vim @averms
|
||||||
runtime/ftplugin/typescript.vim @dkearns
|
runtime/ftplugin/typescript.vim @dkearns
|
||||||
runtime/ftplugin/typescriptreact.vim @dkearns
|
runtime/ftplugin/typescriptreact.vim @dkearns
|
||||||
runtime/ftplugin/xml.vim @chrisbra
|
runtime/ftplugin/xml.vim @chrisbra
|
||||||
runtime/ftplugin/zsh.vim @chrisbra
|
runtime/ftplugin/zsh.vim @chrisbra
|
||||||
runtime/indent/bst.vim @tpope
|
runtime/indent/bst.vim @tpope
|
||||||
|
runtime/indent/cdl.vim @dkearns
|
||||||
|
runtime/indent/clojure.vim @axvr
|
||||||
|
runtime/indent/config.vim @dkearns
|
||||||
|
runtime/indent/css.vim @dkearns
|
||||||
runtime/indent/cucumber.vim @tpope
|
runtime/indent/cucumber.vim @tpope
|
||||||
|
runtime/indent/d.vim @dkearns
|
||||||
runtime/indent/dosbatch.vim @k-takata
|
runtime/indent/dosbatch.vim @k-takata
|
||||||
|
runtime/indent/dtd.vim @dkearns
|
||||||
|
runtime/indent/dylan.vim @dkearns
|
||||||
|
runtime/indent/elm.vim @andys8
|
||||||
runtime/indent/eruby.vim @tpope @dkearns
|
runtime/indent/eruby.vim @tpope @dkearns
|
||||||
|
runtime/indent/eterm.vim @dkearns
|
||||||
|
runtime/indent/framescript.vim @dkearns
|
||||||
runtime/indent/gitconfig.vim @tpope
|
runtime/indent/gitconfig.vim @tpope
|
||||||
runtime/indent/haml.vim @tpope
|
runtime/indent/haml.vim @tpope
|
||||||
|
runtime/indent/idlang.vim @dkearns
|
||||||
|
runtime/indent/ld.vim @dkearns
|
||||||
runtime/indent/liquid.vim @tpope
|
runtime/indent/liquid.vim @tpope
|
||||||
|
runtime/indent/make.vim @dkearns
|
||||||
|
runtime/indent/meson.vim @Liambeguin
|
||||||
|
runtime/indent/mma.vim @dkearns
|
||||||
|
runtime/indent/nginx.vim @chr4
|
||||||
runtime/indent/nsis.vim @k-takata
|
runtime/indent/nsis.vim @k-takata
|
||||||
|
runtime/indent/occam.vim @dkearns
|
||||||
|
runtime/indent/postscr.vim @dkearns
|
||||||
|
runtime/indent/prolog.vim @dkearns
|
||||||
|
runtime/indent/ps1.vim @heaths
|
||||||
|
runtime/indent/readline.vim @dkearns
|
||||||
runtime/indent/ruby.vim @AndrewRadev @dkearns
|
runtime/indent/ruby.vim @AndrewRadev @dkearns
|
||||||
runtime/indent/sass.vim @tpope
|
runtime/indent/sass.vim @tpope
|
||||||
runtime/indent/scss.vim @tpope
|
runtime/indent/scss.vim @tpope
|
||||||
runtime/indent/sh.vim @chrisbra
|
runtime/indent/sh.vim @chrisbra
|
||||||
|
runtime/indent/systemverilog.vim @Kocha
|
||||||
|
runtime/indent/tcl.vim @dkearns
|
||||||
|
runtime/indent/tcsh.vim @dkearns
|
||||||
runtime/indent/teraterm.vim @k-takata
|
runtime/indent/teraterm.vim @k-takata
|
||||||
runtime/indent/xml.vim @chrisbra
|
runtime/indent/xml.vim @chrisbra
|
||||||
runtime/indent/zsh.vim @chrisbra
|
runtime/indent/zsh.vim @chrisbra
|
||||||
@@ -124,48 +174,70 @@ runtime/plugin/vimballPlugin.vim @cecamp
|
|||||||
runtime/plugin/zipPlugin.vim @cecamp
|
runtime/plugin/zipPlugin.vim @cecamp
|
||||||
runtime/syntax/aidl.vim @dpelle
|
runtime/syntax/aidl.vim @dpelle
|
||||||
runtime/syntax/amiga.vim @cecamp
|
runtime/syntax/amiga.vim @cecamp
|
||||||
|
runtime/syntax/arduino.vim @johshoff
|
||||||
runtime/syntax/asm.vim @dkearns
|
runtime/syntax/asm.vim @dkearns
|
||||||
runtime/syntax/asmh8300.vim @dkearns
|
runtime/syntax/asmh8300.vim @dkearns
|
||||||
|
runtime/syntax/asterisk.vim @jaunis
|
||||||
runtime/syntax/awk.vim @dkearns
|
runtime/syntax/awk.vim @dkearns
|
||||||
|
runtime/syntax/basic.vim @dkearns
|
||||||
runtime/syntax/bst.vim @tpope
|
runtime/syntax/bst.vim @tpope
|
||||||
runtime/syntax/cabal.vim @coot
|
runtime/syntax/cabal.vim @coot
|
||||||
runtime/syntax/cabalconfig.vim @coot
|
runtime/syntax/cabalconfig.vim @coot
|
||||||
runtime/syntax/cabalproject.vim @coot
|
runtime/syntax/cabalproject.vim @coot
|
||||||
|
runtime/syntax/clojure.vim @axvr
|
||||||
runtime/syntax/cs.vim @nickspoons
|
runtime/syntax/cs.vim @nickspoons
|
||||||
runtime/syntax/csh.vim @cecamp
|
runtime/syntax/csh.vim @cecamp
|
||||||
runtime/syntax/cucumber.vim @tpope
|
runtime/syntax/cucumber.vim @tpope
|
||||||
runtime/syntax/datascript.vim @dpelle
|
runtime/syntax/datascript.vim @dpelle
|
||||||
runtime/syntax/dcl.vim @cecamp
|
runtime/syntax/dcl.vim @cecamp
|
||||||
|
runtime/syntax/desktop.vim @e-kwsm
|
||||||
|
runtime/syntax/dot.vim @mmottl
|
||||||
runtime/syntax/doxygen.vim @frogonwheels
|
runtime/syntax/doxygen.vim @frogonwheels
|
||||||
runtime/syntax/dtd.vim @chrisbra
|
runtime/syntax/dtd.vim @chrisbra
|
||||||
|
runtime/syntax/dts.vim @zonque
|
||||||
runtime/syntax/elmfilt.vim @cecamp
|
runtime/syntax/elmfilt.vim @cecamp
|
||||||
runtime/syntax/eruby.vim @tpope @dkearns
|
runtime/syntax/eruby.vim @tpope @dkearns
|
||||||
runtime/syntax/exports.vim @cecamp
|
runtime/syntax/exports.vim @cecamp
|
||||||
|
runtime/syntax/fpcmake.vim @dkearns
|
||||||
runtime/syntax/git.vim @tpope
|
runtime/syntax/git.vim @tpope
|
||||||
runtime/syntax/gitcommit.vim @tpope
|
runtime/syntax/gitcommit.vim @tpope
|
||||||
runtime/syntax/gitconfig.vim @tpope
|
runtime/syntax/gitconfig.vim @tpope
|
||||||
runtime/syntax/gitrebase.vim @tpope
|
runtime/syntax/gitrebase.vim @tpope
|
||||||
runtime/syntax/gprof.vim @dpelle
|
runtime/syntax/gprof.vim @dpelle
|
||||||
|
runtime/syntax/groff.vim @jmarshall
|
||||||
runtime/syntax/haml.vim @tpope
|
runtime/syntax/haml.vim @tpope
|
||||||
runtime/syntax/haskell.vim @coot
|
runtime/syntax/haskell.vim @coot
|
||||||
runtime/syntax/hgcommit.vim @k-takata
|
runtime/syntax/hgcommit.vim @k-takata
|
||||||
|
runtime/syntax/indent.vim @dkearns
|
||||||
runtime/syntax/kconfig.vim @chrisbra
|
runtime/syntax/kconfig.vim @chrisbra
|
||||||
|
runtime/syntax/less.vim @genoma
|
||||||
runtime/syntax/lex.vim @cecamp
|
runtime/syntax/lex.vim @cecamp
|
||||||
runtime/syntax/liquid.vim @tpope
|
runtime/syntax/liquid.vim @tpope
|
||||||
runtime/syntax/lisp.vim @cecamp
|
runtime/syntax/lisp.vim @cecamp
|
||||||
runtime/syntax/lynx.vim @dkearns
|
runtime/syntax/lynx.vim @dkearns
|
||||||
|
runtime/syntax/m3build.vim @dkearns
|
||||||
|
runtime/syntax/m3quake.vim @dkearns
|
||||||
runtime/syntax/mailcap.vim @dkearns
|
runtime/syntax/mailcap.vim @dkearns
|
||||||
runtime/syntax/make.vim @rohieb
|
runtime/syntax/make.vim @rohieb
|
||||||
runtime/syntax/make.vim @rohieb
|
|
||||||
runtime/syntax/maple.vim @cecamp
|
runtime/syntax/maple.vim @cecamp
|
||||||
runtime/syntax/markdown.vim @tpope
|
runtime/syntax/markdown.vim @tpope
|
||||||
|
runtime/syntax/meson.vim @Liambeguin
|
||||||
|
runtime/syntax/modula3.vim @dkearns
|
||||||
runtime/syntax/netrw.vim @cecamp
|
runtime/syntax/netrw.vim @cecamp
|
||||||
|
runtime/syntax/nginx.vim @chr4
|
||||||
|
runtime/syntax/nroff.vim @jmarshall
|
||||||
runtime/syntax/nsis.vim @k-takata
|
runtime/syntax/nsis.vim @k-takata
|
||||||
|
runtime/syntax/pascal.vim @dkearns
|
||||||
|
runtime/syntax/pbtxt.vim @lakshayg
|
||||||
runtime/syntax/pdf.vim @tpope
|
runtime/syntax/pdf.vim @tpope
|
||||||
runtime/syntax/php.vim @TysonAndre
|
runtime/syntax/php.vim @TysonAndre
|
||||||
runtime/syntax/privoxy.vim @dkearns
|
runtime/syntax/privoxy.vim @dkearns
|
||||||
runtime/syntax/prolog.vim @XVilka
|
runtime/syntax/prolog.vim @XVilka
|
||||||
|
runtime/syntax/ps1.vim @heaths
|
||||||
|
runtime/syntax/ps1xml.vim @heaths
|
||||||
|
runtime/syntax/psl.vim @danielkho
|
||||||
runtime/syntax/rc.vim @chrisbra
|
runtime/syntax/rc.vim @chrisbra
|
||||||
|
runtime/syntax/routeros.vim @zainin
|
||||||
runtime/syntax/rpcgen.vim @cecamp
|
runtime/syntax/rpcgen.vim @cecamp
|
||||||
runtime/syntax/ruby.vim @dkearns
|
runtime/syntax/ruby.vim @dkearns
|
||||||
runtime/syntax/sass.vim @tpope
|
runtime/syntax/sass.vim @tpope
|
||||||
@@ -174,12 +246,17 @@ runtime/syntax/sh.vim @cecamp
|
|||||||
runtime/syntax/sm.vim @cecamp
|
runtime/syntax/sm.vim @cecamp
|
||||||
runtime/syntax/spec.vim @ignatenkobrain
|
runtime/syntax/spec.vim @ignatenkobrain
|
||||||
runtime/syntax/sqloracle.vim @chrisbra
|
runtime/syntax/sqloracle.vim @chrisbra
|
||||||
|
runtime/syntax/sshconfig.vim @Jakuje
|
||||||
runtime/syntax/sshdconfig.vim @Jakuje
|
runtime/syntax/sshdconfig.vim @Jakuje
|
||||||
|
runtime/syntax/sudoers.vim @e-kwsm
|
||||||
|
runtime/syntax/systemverilog.vim @Kocha
|
||||||
runtime/syntax/tags.vim @cecamp
|
runtime/syntax/tags.vim @cecamp
|
||||||
|
runtime/syntax/tcsh.vim @dkearns
|
||||||
runtime/syntax/teraterm.vim @k-takata
|
runtime/syntax/teraterm.vim @k-takata
|
||||||
runtime/syntax/tex.vim @cecamp
|
runtime/syntax/tex.vim @cecamp
|
||||||
runtime/syntax/tidy.vim @dkearns
|
runtime/syntax/tidy.vim @dkearns
|
||||||
runtime/syntax/tmux.vim @ericpruitt
|
runtime/syntax/tmux.vim @ericpruitt
|
||||||
|
runtime/syntax/toml.vim @averms
|
||||||
runtime/syntax/vim.vim @cecamp
|
runtime/syntax/vim.vim @cecamp
|
||||||
runtime/syntax/wget.vim @dkearns
|
runtime/syntax/wget.vim @dkearns
|
||||||
runtime/syntax/xbl.vim @dkearns
|
runtime/syntax/xbl.vim @dkearns
|
||||||
@@ -193,6 +270,9 @@ runtime/tutor/tutor.eo @dpelle
|
|||||||
runtime/tutor/tutor.eo.utf-8 @dpelle
|
runtime/tutor/tutor.eo.utf-8 @dpelle
|
||||||
runtime/tutor/tutor.fr @dpelle
|
runtime/tutor/tutor.fr @dpelle
|
||||||
runtime/tutor/tutor.fr.utf-8 @dpelle
|
runtime/tutor/tutor.fr.utf-8 @dpelle
|
||||||
|
src/iscygpty.* @k-takata
|
||||||
|
src/libvterm/ @leonerd
|
||||||
src/po/de.po @chrisbra
|
src/po/de.po @chrisbra
|
||||||
src/po/eo.po @dpelle
|
src/po/eo.po @dpelle
|
||||||
src/po/fr.po @dpelle
|
src/po/fr.po @dpelle
|
||||||
|
src/xxd/ @jnweiger
|
||||||
|
|||||||
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve Vim
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
_Instructions: Replace the template text and remove irrelevant text (including this line)_
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
(Issues related to the runtime files should be reported to their maintainer, check the file header.)
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Detailed steps to reproduce the behavior:
|
|
||||||
1. Run `vim --clean` (or `gvim --clean`, etc.)
|
|
||||||
2. Edit `filename`
|
|
||||||
3. Type '....'
|
|
||||||
4. Describe the error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, copy/paste the text or add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Environment (please complete the following information):**
|
|
||||||
- Vim version [e.g. 8.1.1234] (Or paste the result of `vim --version`.)
|
|
||||||
- OS: [e.g. Ubuntu 18.04, Windows 10 1809, macOS 10.14]
|
|
||||||
- Terminal: [e.g. GNOME Terminal, mintty, iTerm2, tmux, GNU screen] (Use GUI if you use the GUI.)
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
47
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
47
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
description: Create a report to help us improve Vim.
|
||||||
|
labels: [bug]
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for reporting issues of Vim!
|
||||||
|
|
||||||
|
To make it easier for us to help you please enter detailed information below.
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Steps to reproduce
|
||||||
|
placeholder: |
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
4.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Expected behaviour
|
||||||
|
placeholder: A clear and concise description of what you expected to happen.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Operating system
|
||||||
|
description: >
|
||||||
|
Your operating system name, version and desktop environment.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: Version of Vim
|
||||||
|
description: >
|
||||||
|
The name of your development environment, version. [e.g. GNOME Terminal (v0.0.0000)]
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Logs and stack traces
|
||||||
|
placeholder: Insert log or other text here (if necessary)
|
||||||
|
render: shell
|
||||||
66
.github/workflows/ci.yml
vendored
66
.github/workflows/ci.yml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
@@ -40,6 +40,7 @@ jobs:
|
|||||||
compiler: gcc
|
compiler: gcc
|
||||||
coverage: true
|
coverage: true
|
||||||
extra: testgui
|
extra: testgui
|
||||||
|
uchar: true
|
||||||
- features: huge
|
- features: huge
|
||||||
compiler: clang
|
compiler: clang
|
||||||
extra: asan
|
extra: asan
|
||||||
@@ -56,7 +57,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y \
|
sudo apt update && sudo apt install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
lcov \
|
lcov \
|
||||||
gettext \
|
gettext \
|
||||||
@@ -71,7 +72,8 @@ jobs:
|
|||||||
cscope \
|
cscope \
|
||||||
libgtk2.0-dev \
|
libgtk2.0-dev \
|
||||||
desktop-file-utils \
|
desktop-file-utils \
|
||||||
libtool-bin
|
libtool-bin \
|
||||||
|
libsodium-dev
|
||||||
|
|
||||||
- name: Install clang-11
|
- name: Install clang-11
|
||||||
if: matrix.compiler == 'clang'
|
if: matrix.compiler == 'clang'
|
||||||
@@ -79,7 +81,7 @@ jobs:
|
|||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
. /etc/lsb-release
|
. /etc/lsb-release
|
||||||
sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-11 main"
|
sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-11 main"
|
||||||
sudo apt-get install -y clang-11
|
sudo apt-get install -y clang-11 llvm-11
|
||||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100
|
||||||
sudo update-alternatives --set clang /usr/bin/clang-11
|
sudo update-alternatives --set clang /usr/bin/clang-11
|
||||||
sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-11 100
|
sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-11 100
|
||||||
@@ -110,10 +112,14 @@ jobs:
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
CFLAGS=""
|
||||||
if ${{ matrix.coverage == true }}; then
|
if ${{ matrix.coverage == true }}; then
|
||||||
echo "CFLAGS=--coverage -DUSE_GCOV_FLUSH"
|
CFLAGS="$CFLAGS --coverage -DUSE_GCOV_FLUSH"
|
||||||
echo "LDFLAGS=--coverage"
|
echo "LDFLAGS=--coverage"
|
||||||
fi
|
fi
|
||||||
|
if ${{ matrix.uchar == true }}; then
|
||||||
|
CFLAGS="$CFLAGS -funsigned-char"
|
||||||
|
fi
|
||||||
if ${{ contains(matrix.extra, 'testgui') }}; then
|
if ${{ contains(matrix.extra, 'testgui') }}; then
|
||||||
echo "TEST=-C src testgui"
|
echo "TEST=-C src testgui"
|
||||||
fi
|
fi
|
||||||
@@ -129,6 +135,7 @@ jobs:
|
|||||||
if ${{ contains(matrix.extra, 'vimtags') }}; then
|
if ${{ contains(matrix.extra, 'vimtags') }}; then
|
||||||
echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
|
echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
|
||||||
fi
|
fi
|
||||||
|
echo "CFLAGS=$CFLAGS"
|
||||||
) >> $GITHUB_ENV
|
) >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up system
|
- name: Set up system
|
||||||
@@ -200,17 +207,18 @@ jobs:
|
|||||||
do_test() { sg audio "sg $(id -gn) '$*'"; }
|
do_test() { sg audio "sg $(id -gn) '$*'"; }
|
||||||
do_test make ${SHADOWOPT} ${TEST}
|
do_test make ${SHADOWOPT} ${TEST}
|
||||||
|
|
||||||
- name: Coveralls
|
# - name: Coveralls
|
||||||
if: matrix.coverage && success() && github.event_name != 'pull_request'
|
# if: matrix.coverage && success() && github.event_name != 'pull_request'
|
||||||
env:
|
# env:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
COVERALLS_PARALLEL: true
|
# COVERALLS_PARALLEL: true
|
||||||
TRAVIS_JOB_ID: ${{ github.run_id }}
|
# TRAVIS_JOB_ID: ${{ github.run_id }}
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-get install -y python3-setuptools python3-wheel
|
# sudo apt-get install -y python3-setuptools python3-wheel
|
||||||
# needed for https support for coveralls building cffi only works with gcc, not with clang
|
# sudo -H pip3 install pip -U
|
||||||
CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
|
# # needed for https support for coveralls building cffi only works with gcc, not with clang
|
||||||
~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
|
# CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
|
||||||
|
# ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
if: matrix.coverage && success()
|
if: matrix.coverage && success()
|
||||||
@@ -226,18 +234,18 @@ jobs:
|
|||||||
false # in order to fail a job
|
false # in order to fail a job
|
||||||
done
|
done
|
||||||
|
|
||||||
coveralls:
|
# coveralls:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-18.04
|
||||||
|
#
|
||||||
needs: linux
|
# needs: linux
|
||||||
if: always() && github.event_name != 'pull_request'
|
# if: always() && github.event_name != 'pull_request'
|
||||||
|
#
|
||||||
steps:
|
# steps:
|
||||||
- name: Parallel finished
|
# - name: Parallel finished
|
||||||
env:
|
# env:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
run: |
|
# run: |
|
||||||
curl -k "https://coveralls.io/webhook?repo_token=${COVERALLS_REPO_TOKEN}" -d "payload[build_num]=${GITHUB_RUN_ID}&payload[status]=done"
|
# curl -k "https://coveralls.io/webhook?repo_token=${COVERALLS_REPO_TOKEN}" -d "payload[build_num]=${GITHUB_RUN_ID}&payload[status]=done"
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@@ -364,7 +372,7 @@ jobs:
|
|||||||
features: NORMAL
|
features: NORMAL
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Initalize
|
- name: Initialize
|
||||||
id: init
|
id: init
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
# By default, queries listed here will override any specified in a config file.
|
# By default, queries listed here will override any specified in a config file.
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
|
|||||||
80
.github/workflows/coverity.yml
vendored
Normal file
80
.github/workflows/coverity.yml
vendored
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
name: Coverity
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '42 0 * * *' # Run once per day, to avoid Coverity's submission limits
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
scan:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
|
env:
|
||||||
|
CC: gcc
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Download Coverity
|
||||||
|
run: |
|
||||||
|
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=vim" -O coverity_tool.tgz
|
||||||
|
mkdir cov-scan
|
||||||
|
tar ax -f coverity_tool.tgz --strip-components=1 -C cov-scan
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
run: |
|
||||||
|
sudo apt update && sudo apt install -y \
|
||||||
|
autoconf \
|
||||||
|
gettext \
|
||||||
|
libcanberra-dev \
|
||||||
|
libperl-dev \
|
||||||
|
python-dev \
|
||||||
|
python3-dev \
|
||||||
|
liblua5.3-dev \
|
||||||
|
lua5.3 \
|
||||||
|
ruby-dev \
|
||||||
|
tcl-dev \
|
||||||
|
libgtk2.0-dev \
|
||||||
|
desktop-file-utils \
|
||||||
|
libtool-bin \
|
||||||
|
libsodium-dev
|
||||||
|
|
||||||
|
- name: Set up environment
|
||||||
|
run: |
|
||||||
|
echo "$(pwd)/cov-scan/bin" >> $GITHUB_PATH
|
||||||
|
(
|
||||||
|
echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
|
||||||
|
echo "CONFOPT=--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
|
||||||
|
) >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up system
|
||||||
|
run: |
|
||||||
|
# Setup lua5.3 manually since its package doesn't provide alternative.
|
||||||
|
# https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1707212
|
||||||
|
sudo update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 10
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
run: |
|
||||||
|
./configure --with-features=huge ${CONFOPT} --enable-fail-if-missing
|
||||||
|
# Append various warning flags to CFLAGS.
|
||||||
|
sed -i -f ci/config.mk.sed src/auto/config.mk
|
||||||
|
sed -i -f ci/config.mk.${CC}.sed src/auto/config.mk
|
||||||
|
|
||||||
|
- name: Build/scan vim
|
||||||
|
run: |
|
||||||
|
cov-build --dir cov-int make -j${NPROC}
|
||||||
|
|
||||||
|
- name: Submit results
|
||||||
|
run: |
|
||||||
|
tar zcf cov-scan.tgz cov-int
|
||||||
|
curl --form token=$TOKEN \
|
||||||
|
--form email=$EMAIL \
|
||||||
|
--form file=@cov-scan.tgz \
|
||||||
|
--form version="$(git rev-parse HEAD)" \
|
||||||
|
--form description="Automatic GHA scan" \
|
||||||
|
'https://scan.coverity.com/builds?project=vim'
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||||
|
EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -25,7 +25,6 @@ src/auto/pathdef.c
|
|||||||
# Windows
|
# Windows
|
||||||
*.exe
|
*.exe
|
||||||
*.idb
|
*.idb
|
||||||
*.manifest
|
|
||||||
*.exp
|
*.exp
|
||||||
*.map
|
*.map
|
||||||
*.obj
|
*.obj
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ src/auto/pathdef.c
|
|||||||
# Windows
|
# Windows
|
||||||
*.exe
|
*.exe
|
||||||
*.idb
|
*.idb
|
||||||
*.manifest
|
|
||||||
*.exp
|
*.exp
|
||||||
*.map
|
*.map
|
||||||
*.obj
|
*.obj
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ If you find a problem with one of these files or have a suggestion for
|
|||||||
improvement, please first try to contact the maintainer directly.
|
improvement, please first try to contact the maintainer directly.
|
||||||
Look in the header of the file for the name and email address.
|
Look in the header of the file for the name and email address.
|
||||||
|
|
||||||
The maintainer will take care of issues and send updates to Bram for
|
The maintainer will take care of issues and send updates to Bram for
|
||||||
distribution with Vim.
|
distribution with Vim.
|
||||||
|
|
||||||
If the maintainer does not respond, contact the vim-dev maillist.
|
If the maintainer does not respond, contact the vim-dev maillist.
|
||||||
|
|||||||
22
Filelist
22
Filelist
@@ -7,13 +7,16 @@ SRC_ALL = \
|
|||||||
.coveralls.yml \
|
.coveralls.yml \
|
||||||
.gitattributes \
|
.gitattributes \
|
||||||
.github/CODEOWNERS \
|
.github/CODEOWNERS \
|
||||||
|
.github/ISSUE_TEMPLATE/bug_report.yml \
|
||||||
.github/workflows/ci.yml \
|
.github/workflows/ci.yml \
|
||||||
.github/workflows/codeql-analysis.yml \
|
.github/workflows/codeql-analysis.yml \
|
||||||
|
.github/workflows/coverity.yml \
|
||||||
.gitignore \
|
.gitignore \
|
||||||
.hgignore \
|
.hgignore \
|
||||||
.lgtm.yml \
|
.lgtm.yml \
|
||||||
.travis.yml \
|
.travis.yml \
|
||||||
appveyor.yml \
|
.appveyor.yml \
|
||||||
|
.codecov.yml \
|
||||||
ci/appveyor.bat \
|
ci/appveyor.bat \
|
||||||
ci/build-snd-dummy.sh \
|
ci/build-snd-dummy.sh \
|
||||||
ci/config.mk*.sed \
|
ci/config.mk*.sed \
|
||||||
@@ -22,6 +25,7 @@ SRC_ALL = \
|
|||||||
ci/setup-xvfb.sh \
|
ci/setup-xvfb.sh \
|
||||||
src/Make_all.mak \
|
src/Make_all.mak \
|
||||||
src/README.md \
|
src/README.md \
|
||||||
|
src/alloc.c \
|
||||||
src/alloc.h \
|
src/alloc.h \
|
||||||
src/arabic.c \
|
src/arabic.c \
|
||||||
src/arglist.c \
|
src/arglist.c \
|
||||||
@@ -67,6 +71,7 @@ SRC_ALL = \
|
|||||||
src/fileio.c \
|
src/fileio.c \
|
||||||
src/filepath.c \
|
src/filepath.c \
|
||||||
src/findfile.c \
|
src/findfile.c \
|
||||||
|
src/float.c \
|
||||||
src/fold.c \
|
src/fold.c \
|
||||||
src/getchar.c \
|
src/getchar.c \
|
||||||
src/globals.h \
|
src/globals.h \
|
||||||
@@ -132,12 +137,13 @@ SRC_ALL = \
|
|||||||
src/spell.h \
|
src/spell.h \
|
||||||
src/spellfile.c \
|
src/spellfile.c \
|
||||||
src/spellsuggest.c \
|
src/spellsuggest.c \
|
||||||
|
src/strings.c \
|
||||||
src/structs.h \
|
src/structs.h \
|
||||||
src/syntax.c \
|
src/syntax.c \
|
||||||
src/tag.c \
|
src/tag.c \
|
||||||
src/term.c \
|
src/term.c \
|
||||||
src/terminal.c \
|
src/terminal.c \
|
||||||
src/term.h \
|
src/termdefs.h \
|
||||||
src/termlib.c \
|
src/termlib.c \
|
||||||
src/testing.c \
|
src/testing.c \
|
||||||
src/textformat.c \
|
src/textformat.c \
|
||||||
@@ -207,6 +213,7 @@ SRC_ALL = \
|
|||||||
src/testdir/popupbounce.vim \
|
src/testdir/popupbounce.vim \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
src/protodef.h \
|
src/protodef.h \
|
||||||
|
src/proto/alloc.pro \
|
||||||
src/proto/arabic.pro \
|
src/proto/arabic.pro \
|
||||||
src/proto/arglist.pro \
|
src/proto/arglist.pro \
|
||||||
src/proto/autocmd.pro \
|
src/proto/autocmd.pro \
|
||||||
@@ -245,6 +252,7 @@ SRC_ALL = \
|
|||||||
src/proto/fileio.pro \
|
src/proto/fileio.pro \
|
||||||
src/proto/filepath.pro \
|
src/proto/filepath.pro \
|
||||||
src/proto/findfile.pro \
|
src/proto/findfile.pro \
|
||||||
|
src/proto/float.pro \
|
||||||
src/proto/fold.pro \
|
src/proto/fold.pro \
|
||||||
src/proto/getchar.pro \
|
src/proto/getchar.pro \
|
||||||
src/proto/gui.pro \
|
src/proto/gui.pro \
|
||||||
@@ -293,6 +301,7 @@ SRC_ALL = \
|
|||||||
src/proto/spell.pro \
|
src/proto/spell.pro \
|
||||||
src/proto/spellfile.pro \
|
src/proto/spellfile.pro \
|
||||||
src/proto/spellsuggest.pro \
|
src/proto/spellsuggest.pro \
|
||||||
|
src/proto/strings.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 \
|
||||||
@@ -368,6 +377,7 @@ SRC_ALL = \
|
|||||||
src/libvterm/t/30state_pen.test \
|
src/libvterm/t/30state_pen.test \
|
||||||
src/libvterm/t/31state_rep.test \
|
src/libvterm/t/31state_rep.test \
|
||||||
src/libvterm/t/32state_flow.test \
|
src/libvterm/t/32state_flow.test \
|
||||||
|
src/libvterm/t/40state_selection.test \
|
||||||
src/libvterm/t/60screen_ascii.test \
|
src/libvterm/t/60screen_ascii.test \
|
||||||
src/libvterm/t/61screen_unicode.test \
|
src/libvterm/t/61screen_unicode.test \
|
||||||
src/libvterm/t/62screen_damage.test \
|
src/libvterm/t/62screen_damage.test \
|
||||||
@@ -436,7 +446,6 @@ SRC_UNIX = \
|
|||||||
src/gui_gtk_x11.c \
|
src/gui_gtk_x11.c \
|
||||||
src/gui_gtk_res.xml \
|
src/gui_gtk_res.xml \
|
||||||
src/gui_motif.c \
|
src/gui_motif.c \
|
||||||
src/gui_xim.c \
|
|
||||||
src/gui_xmdlg.c \
|
src/gui_xmdlg.c \
|
||||||
src/gui_xmebw.c \
|
src/gui_xmebw.c \
|
||||||
src/gui_xmebw.h \
|
src/gui_xmebw.h \
|
||||||
@@ -460,7 +469,6 @@ SRC_UNIX = \
|
|||||||
src/proto/gui_gtk_x11.pro \
|
src/proto/gui_gtk_x11.pro \
|
||||||
src/proto/gui_gtk_gresources.pro \
|
src/proto/gui_gtk_gresources.pro \
|
||||||
src/proto/gui_motif.pro \
|
src/proto/gui_motif.pro \
|
||||||
src/proto/gui_xim.pro \
|
|
||||||
src/proto/gui_xmdlg.pro \
|
src/proto/gui_xmdlg.pro \
|
||||||
src/proto/gui_x11.pro \
|
src/proto/gui_x11.pro \
|
||||||
src/proto/if_xcmdsrv.pro \
|
src/proto/if_xcmdsrv.pro \
|
||||||
@@ -480,6 +488,7 @@ SRC_UNIX = \
|
|||||||
|
|
||||||
# source files for both DOS and Unix
|
# source files for both DOS and Unix
|
||||||
SRC_DOS_UNIX = \
|
SRC_DOS_UNIX = \
|
||||||
|
src/gui_xim.c \
|
||||||
src/if_cscope.c \
|
src/if_cscope.c \
|
||||||
src/if_cscope.h \
|
src/if_cscope.h \
|
||||||
src/if_lua.c \
|
src/if_lua.c \
|
||||||
@@ -492,6 +501,7 @@ SRC_DOS_UNIX = \
|
|||||||
src/if_py_both.h \
|
src/if_py_both.h \
|
||||||
src/if_ruby.c \
|
src/if_ruby.c \
|
||||||
src/if_tcl.c \
|
src/if_tcl.c \
|
||||||
|
src/proto/gui_xim.pro \
|
||||||
src/proto/if_cscope.pro \
|
src/proto/if_cscope.pro \
|
||||||
src/proto/if_lua.pro \
|
src/proto/if_lua.pro \
|
||||||
src/proto/if_mzsch.pro \
|
src/proto/if_mzsch.pro \
|
||||||
@@ -566,7 +576,7 @@ SRC_DOS = \
|
|||||||
src/uninstall.c \
|
src/uninstall.c \
|
||||||
src/vim.def \
|
src/vim.def \
|
||||||
src/vim.rc \
|
src/vim.rc \
|
||||||
src/gvim.exe.mnf \
|
src/vim.manifest \
|
||||||
src/vimrun.c \
|
src/vimrun.c \
|
||||||
src/xpm_w32.c \
|
src/xpm_w32.c \
|
||||||
src/xpm_w32.h \
|
src/xpm_w32.h \
|
||||||
@@ -790,6 +800,7 @@ RT_SCRIPTS = \
|
|||||||
runtime/autoload/xml/*.vim \
|
runtime/autoload/xml/*.vim \
|
||||||
runtime/colors/*.vim \
|
runtime/colors/*.vim \
|
||||||
runtime/colors/README.txt \
|
runtime/colors/README.txt \
|
||||||
|
runtime/colors/lists/*.vim \
|
||||||
runtime/colors/tools/*.vim \
|
runtime/colors/tools/*.vim \
|
||||||
runtime/compiler/*.vim \
|
runtime/compiler/*.vim \
|
||||||
runtime/compiler/README.txt \
|
runtime/compiler/README.txt \
|
||||||
@@ -842,7 +853,6 @@ RT_AMI_DOS = \
|
|||||||
# DOS runtime (also in the extra archive)
|
# DOS runtime (also in the extra archive)
|
||||||
RT_DOS = \
|
RT_DOS = \
|
||||||
README_dos.txt \
|
README_dos.txt \
|
||||||
runtime/rgb.txt \
|
|
||||||
vimtutor.bat \
|
vimtutor.bat \
|
||||||
|
|
||||||
# DOS runtime without CR-LF translation (also in the extra archive)
|
# DOS runtime without CR-LF translation (also in the extra archive)
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -94,7 +94,7 @@ MINOR = 2
|
|||||||
# src/Makefile, README.txt, README.md, src/README.md, READMEdir/README*.txt,
|
# src/Makefile, README.txt, README.md, src/README.md, READMEdir/README*.txt,
|
||||||
# runtime/doc/*.txt and make nsis/gvim_version.nsh.
|
# 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/gvim.exe.mnf.
|
# src/vim.manifest.
|
||||||
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, Lua, Cscope and
|
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, Lua, Cscope and
|
||||||
# "huge" features. Add MZscheme if you can make it work.
|
# "huge" features. Add MZscheme if you can make it work.
|
||||||
# Use "make reconfig" after selecting the configure arguments.
|
# Use "make reconfig" after selecting the configure arguments.
|
||||||
|
|||||||
47
README.md
47
README.md
@@ -4,15 +4,23 @@
|
|||||||
|
|
||||||
<sub>For translations of this README see the end.</sub>
|
<sub>For translations of this README see the end.</sub>
|
||||||
|
|
||||||
|
If you find a bug or want to discuss the best way to add a new feature, please
|
||||||
|
open an [issue](https://github.com/vim/vim/issues).
|
||||||
|
If you have a question or want to discuss the best way to do something with
|
||||||
|
Vim, you can use [StackExchange](https://vi.stackexchange.com/)
|
||||||
|
or one of the [Maillists](https://www.vim.org/community.php).
|
||||||
|
|
||||||
|
|
||||||
## What is Vim? ##
|
## What is Vim? ##
|
||||||
|
|
||||||
Vim is a greatly improved version of the good old UNIX editor Vi. Many new
|
Vim is a greatly improved version of the good old UNIX editor
|
||||||
|
[Vi](https://en.wikipedia.org/wiki/Vi). Many new
|
||||||
features have been added: multi-level undo, syntax highlighting, command line
|
features have been added: multi-level undo, syntax highlighting, command line
|
||||||
history, on-line help, spell checking, filename completion, block operations,
|
history, on-line help, spell checking, filename completion, block operations,
|
||||||
script language, etc. There is also a Graphical User Interface (GUI)
|
script language, etc. There is also a Graphical User Interface (GUI)
|
||||||
available. Still, Vi compatibility is maintained, those who have Vi "in the
|
available. Still, Vi compatibility is maintained, those who have Vi "in the
|
||||||
fingers" will feel at home. See `runtime/doc/vi_diff.txt` for differences with
|
fingers" will feel at home.
|
||||||
|
See [`runtime/doc/vi_diff.txt`](runtime/doc/vi_diff.txt) for differences with
|
||||||
Vi.
|
Vi.
|
||||||
|
|
||||||
This editor is very useful for editing programs and other plain text files.
|
This editor is very useful for editing programs and other plain text files.
|
||||||
@@ -38,11 +46,11 @@ This `README.md` file comes with the runtime archive. It includes the
|
|||||||
documentation, syntax files and other files that are used at runtime. To run
|
documentation, syntax files and other files that are used at runtime. To run
|
||||||
Vim you must get either one of the binary archives or a source archive.
|
Vim you must get either one of the binary archives or a source archive.
|
||||||
Which one you need depends on the system you want to run it on and whether you
|
Which one you need depends on the system you want to run it on and whether you
|
||||||
want or must compile it yourself. Check http://www.vim.org/download.php for
|
want or must compile it yourself. Check https://www.vim.org/download.php for
|
||||||
an overview of currently available distributions.
|
an overview of currently available distributions.
|
||||||
|
|
||||||
Some popular places to get the latest Vim:
|
Some popular places to get the latest Vim:
|
||||||
* Check out the git repository from [github](https://github.com/vim/vim).
|
* Check out the git repository from [GitHub](https://github.com/vim/vim).
|
||||||
* Get the source code as an [archive](https://github.com/vim/vim/releases).
|
* Get the source code as an [archive](https://github.com/vim/vim/releases).
|
||||||
* Get a Windows executable from the
|
* Get a Windows executable from the
|
||||||
[vim-win32-installer](https://github.com/vim/vim-win32-installer/releases) repository.
|
[vim-win32-installer](https://github.com/vim/vim-win32-installer/releases) repository.
|
||||||
@@ -53,14 +61,14 @@ Some popular places to get the latest Vim:
|
|||||||
|
|
||||||
If you obtained a binary distribution you don't need to compile Vim. If you
|
If you obtained a binary distribution you don't need to compile Vim. If you
|
||||||
obtained a source distribution, all the stuff for compiling Vim is in the
|
obtained a source distribution, all the stuff for compiling Vim is in the
|
||||||
`src` directory. See `src/INSTALL` for instructions.
|
[`src`](/src) directory. See [`src/INSTALL`](src/INSTALL) for instructions.
|
||||||
|
|
||||||
|
|
||||||
## Installation ##
|
## Installation ##
|
||||||
|
|
||||||
See one of these files for system-specific instructions. Either in the
|
See one of these files for system-specific instructions. Either in the
|
||||||
READMEdir directory (in the repository) or the top directory (if you unpack an
|
[READMEdir directory](./READMEdir/) (in the repository) or
|
||||||
archive):
|
the top directory (if you unpack an archive):
|
||||||
|
|
||||||
README_ami.txt Amiga
|
README_ami.txt Amiga
|
||||||
README_unix.txt Unix
|
README_unix.txt Unix
|
||||||
@@ -78,8 +86,9 @@ The Vim tutor is a one hour training course for beginners. Often it can be
|
|||||||
started as `vimtutor`. See `:help tutor` for more information.
|
started as `vimtutor`. See `:help tutor` for more information.
|
||||||
|
|
||||||
The best is to use `:help` in Vim. If you don't have an executable yet, read
|
The best is to use `:help` in Vim. If you don't have an executable yet, read
|
||||||
`runtime/doc/help.txt`. It contains pointers to the other documentation
|
[`runtime/doc/help.txt`](/runtime/doc/help.txt).
|
||||||
files. The User Manual reads like a book and is recommended to learn to use
|
It contains pointers to the other documentation files.
|
||||||
|
The User Manual reads like a book and is recommended to learn to use
|
||||||
Vim. See `:help user-manual`.
|
Vim. See `:help user-manual`.
|
||||||
|
|
||||||
|
|
||||||
@@ -87,7 +96,8 @@ Vim. See `:help user-manual`.
|
|||||||
|
|
||||||
Vim is Charityware. You can use and copy it as much as you like, but you are
|
Vim is Charityware. You can use and copy it as much as you like, but you are
|
||||||
encouraged to make a donation to help orphans in Uganda. Please read the file
|
encouraged to make a donation to help orphans in Uganda. Please read the file
|
||||||
`runtime/doc/uganda.txt` for details (do `:help uganda` inside Vim).
|
[`runtime/doc/uganda.txt`](runtime/doc/uganda.txt)
|
||||||
|
for details (do `:help uganda` inside Vim).
|
||||||
|
|
||||||
Summary of the license: There are no restrictions on using or distributing an
|
Summary of the license: There are no restrictions on using or distributing an
|
||||||
unmodified copy of Vim. Parts of Vim may also be distributed, but the license
|
unmodified copy of Vim. Parts of Vim may also be distributed, but the license
|
||||||
@@ -103,30 +113,31 @@ your appreciation for the work and motivate Bram and others to continue
|
|||||||
working on Vim please send a donation.
|
working on Vim please send a donation.
|
||||||
|
|
||||||
Since Bram is back to a paid job the money will now be used to help children
|
Since Bram is back to a paid job the money will now be used to help children
|
||||||
in Uganda. See `runtime/doc/uganda.txt`. But at the same time donations
|
in Uganda. See [`runtime/doc/uganda.txt`](runtime/doc/uganda.txt). But
|
||||||
increase Bram's motivation to keep working on Vim!
|
at the same time donations increase Bram's motivation to keep working on Vim!
|
||||||
|
|
||||||
For the most recent information about sponsoring look on the Vim web site:
|
For the most recent information about sponsoring look on the Vim web site:
|
||||||
http://www.vim.org/sponsor/
|
https://www.vim.org/sponsor/
|
||||||
|
|
||||||
|
|
||||||
## Contributing ##
|
## Contributing ##
|
||||||
|
|
||||||
If you would like to help making Vim better, see the [CONTRIBUTING.md](https://github.com/vim/vim/blob/master/CONTRIBUTING.md) file.
|
If you would like to help making Vim better, see the
|
||||||
|
[CONTRIBUTING.md](/CONTRIBUTING.md) file.
|
||||||
|
|
||||||
|
|
||||||
## Information ##
|
## Information ##
|
||||||
|
|
||||||
The latest news about Vim can be found on the Vim home page:
|
The latest news about Vim can be found on the Vim home page:
|
||||||
http://www.vim.org/
|
https://www.vim.org/
|
||||||
|
|
||||||
If you have problems, have a look at the Vim documentation or tips:
|
If you have problems, have a look at the Vim documentation or tips:
|
||||||
http://www.vim.org/docs.php
|
https://www.vim.org/docs.php
|
||||||
http://vim.wikia.com/wiki/Vim_Tips_Wiki
|
https://vim.fandom.com/wiki/Vim_Tips_Wiki
|
||||||
|
|
||||||
If you still have problems or any other questions, use one of the mailing
|
If you still have problems or any other questions, use one of the mailing
|
||||||
lists to discuss them with Vim users and developers:
|
lists to discuss them with Vim users and developers:
|
||||||
http://www.vim.org/maillist.php
|
https://www.vim.org/maillist.php
|
||||||
|
|
||||||
If nothing else works, report bugs directly:
|
If nothing else works, report bugs directly:
|
||||||
Bram Moolenaar <Bram@vim.org>
|
Bram Moolenaar <Bram@vim.org>
|
||||||
|
|||||||
12
README.txt
12
README.txt
@@ -33,7 +33,7 @@ This README.txt file comes with the runtime archive. It includes the
|
|||||||
documentation, syntax files and other files that are used at runtime. To run
|
documentation, syntax files and other files that are used at runtime. To run
|
||||||
Vim you must get either one of the binary archives or a source archive.
|
Vim you must get either one of the binary archives or a source archive.
|
||||||
Which one you need depends on the system you want to run it on and whether you
|
Which one you need depends on the system you want to run it on and whether you
|
||||||
want or must compile it yourself. Check "http://www.vim.org/download.php" for
|
want or must compile it yourself. Check "https://www.vim.org/download.php" for
|
||||||
an overview of currently available distributions.
|
an overview of currently available distributions.
|
||||||
|
|
||||||
Some popular places to get the latest Vim:
|
Some popular places to get the latest Vim:
|
||||||
@@ -101,7 +101,7 @@ increase Bram's motivation to keep working on Vim!
|
|||||||
|
|
||||||
For the most recent information about sponsoring look on the Vim web site:
|
For the most recent information about sponsoring look on the Vim web site:
|
||||||
|
|
||||||
http://www.vim.org/sponsor/
|
https://www.vim.org/sponsor/
|
||||||
|
|
||||||
|
|
||||||
CONTRIBUTING
|
CONTRIBUTING
|
||||||
@@ -112,15 +112,15 @@ If you would like to help making Vim better, see the CONTRIBUTING.md file.
|
|||||||
INFORMATION
|
INFORMATION
|
||||||
|
|
||||||
The latest news about Vim can be found on the Vim home page:
|
The latest news about Vim can be found on the Vim home page:
|
||||||
http://www.vim.org/
|
https://www.vim.org/
|
||||||
|
|
||||||
If you have problems, have a look at the Vim documentation or tips:
|
If you have problems, have a look at the Vim documentation or tips:
|
||||||
http://www.vim.org/docs.php
|
https://www.vim.org/docs.php
|
||||||
http://vim.wikia.com/wiki/Vim_Tips_Wiki
|
https://vim.fandom.com/wiki/Vim_Tips_Wiki
|
||||||
|
|
||||||
If you still have problems or any other questions, use one of the mailing
|
If you still have problems or any other questions, use one of the mailing
|
||||||
lists to discuss them with Vim users and developers:
|
lists to discuss them with Vim users and developers:
|
||||||
http://www.vim.org/maillist.php
|
https://www.vim.org/maillist.php
|
||||||
|
|
||||||
If nothing else works, report bugs directly:
|
If nothing else works, report bugs directly:
|
||||||
Bram Moolenaar <Bram@vim.org>
|
Bram Moolenaar <Bram@vim.org>
|
||||||
|
|||||||
@@ -45,14 +45,16 @@ full code is below):
|
|||||||
| Vim old | 5.018541 |
|
| Vim old | 5.018541 |
|
||||||
| Python | 0.369598 |
|
| Python | 0.369598 |
|
||||||
| Lua | 0.078817 |
|
| Lua | 0.078817 |
|
||||||
|
| LuaJit | 0.004245 |
|
||||||
| Vim new | 0.073595 |
|
| Vim new | 0.073595 |
|
||||||
|
|
||||||
That looks very promising! It's just one example, but it shows how much
|
That looks very promising! It's just one example, but it shows how much
|
||||||
we can gain, and also that Vim script can be faster than builtin
|
we can gain, and also that Vim script can be faster than builtin
|
||||||
interfaces.
|
interfaces.
|
||||||
|
|
||||||
In practice the script would not do something useless as counting but change
|
LuaJit is much faster at Lua-only instructions. In practice the script would
|
||||||
the text. For example, reindent all the lines:
|
not do something useless as counting but change the text. For example,
|
||||||
|
reindent all the lines:
|
||||||
|
|
||||||
``` vim
|
``` vim
|
||||||
let totallen = 0
|
let totallen = 0
|
||||||
@@ -64,12 +66,17 @@ the text. For example, reindent all the lines:
|
|||||||
|
|
||||||
| how | time in sec |
|
| how | time in sec |
|
||||||
| --------| -------- |
|
| --------| -------- |
|
||||||
| Vim old | 0.853752 |
|
| Vim old | 0.578598 |
|
||||||
| Python | 0.304584 |
|
| Python | 0.152040 |
|
||||||
| Lua | 0.286573 |
|
| Lua | 0.164917 |
|
||||||
| Vim new | 0.190276 |
|
| LuaJit | 0.128400 |
|
||||||
|
| Vim new | 0.079692 |
|
||||||
|
|
||||||
|
[These times were measured on a different system by Dominique Pelle]
|
||||||
|
|
||||||
The differences are smaller, but Vim 9 script is clearly the fastest.
|
The differences are smaller, but Vim 9 script is clearly the fastest.
|
||||||
|
Using LuaJIT is only a little bit faster than plain Lua here, clearly the call
|
||||||
|
back to the Vim code is costly.
|
||||||
|
|
||||||
How does Vim9 script work? The function is first compiled into a sequence of
|
How does Vim9 script work? The function is first compiled into a sequence of
|
||||||
instructions. Each instruction has one or two parameters and a stack is
|
instructions. Each instruction has one or two parameters and a stack is
|
||||||
@@ -330,7 +337,7 @@ let start = reltime()
|
|||||||
echo Python()
|
echo Python()
|
||||||
echo 'Python: ' .. reltimestr(reltime(start))
|
echo 'Python: ' .. reltimestr(reltime(start))
|
||||||
bwipe!
|
bwipe!
|
||||||
|
|
||||||
new
|
new
|
||||||
call setline(1, range(100000))
|
call setline(1, range(100000))
|
||||||
let start = reltime()
|
let start = reltime()
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ src/os_win32.* Files for the Win32 port.
|
|||||||
src/gui_w32.* Files for the Win32 GUI.
|
src/gui_w32.* Files for the Win32 GUI.
|
||||||
src/gui_w48.* Files for the Win32 and Win16 GUI.
|
src/gui_w48.* Files for the Win32 and Win16 GUI.
|
||||||
src/Make_mvc.mak MS Visual C++ makefile for the Win32 GUI.
|
src/Make_mvc.mak MS Visual C++ makefile for the Win32 GUI.
|
||||||
runtime/rgb.txt File with color definitions for the Win32 GUI.
|
|
||||||
|
|
||||||
src/if_ole.* OLE automation interface, for MS Windows 95 and NT.
|
src/if_ole.* OLE automation interface, for MS Windows 95 and NT.
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +1,12 @@
|
|||||||
README_mac.txt for version 8.2 of Vim: Vi IMproved.
|
README_mac.txt for version 8.2 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Macintosh systems.
|
This file explains the installation of Vim on MacOS systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|
||||||
|
To build from source get the files with git from https://github.com/vim/vim.
|
||||||
|
The find the instructions in src/INSTALLmac.txt.
|
||||||
|
|
||||||
To build from sources, like on Unix
|
Installing Vim using Homebrew:
|
||||||
|
|
||||||
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/
|
1. Install Homebrew from http://brew.sh/
|
||||||
2. Install latest Vim with: brew install vim
|
2. Install the latest Vim with:
|
||||||
|
brew install vim
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ sed -e "s/@<<$/@<< | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
|
|||||||
echo "Building MSVC 64bit console Version"
|
echo "Building MSVC 64bit console Version"
|
||||||
nmake -f Make_mvc2.mak CPU=AMD64 ^
|
nmake -f Make_mvc2.mak CPU=AMD64 ^
|
||||||
OLE=no GUI=no IME=yes ICONV=yes DEBUG=no ^
|
OLE=no GUI=no IME=yes ICONV=yes DEBUG=no ^
|
||||||
FEATURES=%FEATURE% || exit 1
|
FEATURES=%FEATURE%
|
||||||
|
if not exist vim.exe (
|
||||||
|
echo Build failure.
|
||||||
|
exit 1
|
||||||
|
)
|
||||||
|
|
||||||
:: build MSVC huge version with python and channel support
|
:: build MSVC huge version with python and channel support
|
||||||
:: GUI needs to be last, so that testing works
|
:: GUI needs to be last, so that testing works
|
||||||
@@ -21,16 +25,20 @@ if "%FEATURE%" == "HUGE" (
|
|||||||
OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^
|
OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^
|
||||||
PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^
|
PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^
|
||||||
PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35-x64 ^
|
PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35-x64 ^
|
||||||
FEATURES=%FEATURE% || exit 1
|
FEATURES=%FEATURE%
|
||||||
) ELSE (
|
) ELSE (
|
||||||
nmake -f Make_mvc2.mak CPU=AMD64 ^
|
nmake -f Make_mvc2.mak CPU=AMD64 ^
|
||||||
OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no ^
|
OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no ^
|
||||||
FEATURES=%FEATURE% || exit 1
|
FEATURES=%FEATURE%
|
||||||
)
|
)
|
||||||
.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt
|
if not exist gvim.exe (
|
||||||
|
echo Build failure.
|
||||||
|
exit 1
|
||||||
|
)
|
||||||
|
.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt || exit 1
|
||||||
|
|
||||||
echo "version output MSVC console"
|
echo "version output MSVC console"
|
||||||
.\vim --version
|
.\vim --version || exit 1
|
||||||
echo "version output MSVC GUI"
|
echo "version output MSVC GUI"
|
||||||
type ver_msvc.txt
|
type ver_msvc.txt || exit 1
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ if 1
|
|||||||
echo "*** Interface versions ***\n"
|
echo "*** Interface versions ***\n"
|
||||||
|
|
||||||
echo 'Lua:'
|
echo 'Lua:'
|
||||||
PrintVer lua print(_VERSION)
|
PrintVer lua print(vim.lua_version, jit and "(LuaJIT)" or "")
|
||||||
|
|
||||||
echo 'MzScheme:'
|
echo 'MzScheme:'
|
||||||
PrintVer mzscheme (display (version))
|
PrintVer mzscheme (display (version))
|
||||||
|
|||||||
@@ -66,12 +66,15 @@ To build the installable .exe:
|
|||||||
|
|
||||||
Install NSIS if you didn't do that already.
|
Install NSIS if you didn't do that already.
|
||||||
Also install UPX, if you want a compressed file.
|
Also install UPX, if you want a compressed file.
|
||||||
|
Download and include the ShellExecAsUser.dll Unicode version which can be
|
||||||
|
sourced from: https://nsis.sourceforge.io/ShellExecAsUser_plug-in
|
||||||
|
|
||||||
|
|
||||||
Unpack the images:
|
Unpack the images:
|
||||||
cd nsis
|
cd nsis
|
||||||
unzip icons.zip
|
unzip icons.zip
|
||||||
|
|
||||||
To build then, enter:
|
Then build gvim.exe:
|
||||||
|
|
||||||
cd nsis
|
cd nsis
|
||||||
makensis gvim.nsi
|
makensis gvim.nsi
|
||||||
|
|||||||
@@ -119,17 +119,18 @@ RequestExecutionLevel highest
|
|||||||
|
|
||||||
!define MUI_COMPONENTSPAGE_SMALLDESC
|
!define MUI_COMPONENTSPAGE_SMALLDESC
|
||||||
!define MUI_LICENSEPAGE_CHECKBOX
|
!define MUI_LICENSEPAGE_CHECKBOX
|
||||||
!define MUI_FINISHPAGE_RUN "$0\gvim.exe"
|
!define MUI_FINISHPAGE_RUN
|
||||||
|
!define MUI_FINISHPAGE_RUN_FUNCTION LaunchApplication
|
||||||
!define MUI_FINISHPAGE_RUN_TEXT $(str_show_readme)
|
!define MUI_FINISHPAGE_RUN_TEXT $(str_show_readme)
|
||||||
!define MUI_FINISHPAGE_RUN_PARAMETERS "-R $\"$0\README.txt$\""
|
|
||||||
|
|
||||||
# This adds '\Vim' to the user choice automagically. The actual value is
|
# This adds '\Vim' to the user choice automagically. The actual value is
|
||||||
# obtained below with CheckOldVim.
|
# obtained below with CheckOldVim.
|
||||||
!ifdef WIN64
|
!ifdef WIN64
|
||||||
InstallDir "$PROGRAMFILES64\Vim"
|
!define DEFAULT_INSTDIR "$PROGRAMFILES64\Vim"
|
||||||
!else
|
!else
|
||||||
InstallDir "$PROGRAMFILES\Vim"
|
!define DEFAULT_INSTDIR "$PROGRAMFILES\Vim"
|
||||||
!endif
|
!endif
|
||||||
|
InstallDir ${DEFAULT_INSTDIR}
|
||||||
|
|
||||||
# Types of installs we can perform:
|
# Types of installs we can perform:
|
||||||
InstType $(str_type_typical)
|
InstType $(str_type_typical)
|
||||||
@@ -300,6 +301,11 @@ Function CheckOldVim
|
|||||||
Exch $0 # put $0 on top of stack, restore $0 to original value
|
Exch $0 # put $0 on top of stack, restore $0 to original value
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Function LaunchApplication
|
||||||
|
SetOutPath $0
|
||||||
|
ShellExecAsUser::ShellExecAsUser "" "$0\gvim.exe" '-R "$0\README.txt"'
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
Section "$(str_section_old_ver)" id_section_old_ver
|
Section "$(str_section_old_ver)" id_section_old_ver
|
||||||
SectionIn 1 2 3 RO
|
SectionIn 1 2 3 RO
|
||||||
@@ -351,7 +357,6 @@ Section "$(str_section_exe)" id_section_exe
|
|||||||
File ..\README.txt
|
File ..\README.txt
|
||||||
File ..\uninstall.txt
|
File ..\uninstall.txt
|
||||||
File ${VIMRT}\*.vim
|
File ${VIMRT}\*.vim
|
||||||
File ${VIMRT}\rgb.txt
|
|
||||||
|
|
||||||
File ${VIMTOOLS}\diff.exe
|
File ${VIMTOOLS}\diff.exe
|
||||||
File ${VIMTOOLS}\winpty${BIT}.dll
|
File ${VIMTOOLS}\winpty${BIT}.dll
|
||||||
@@ -359,6 +364,10 @@ Section "$(str_section_exe)" id_section_exe
|
|||||||
|
|
||||||
SetOutPath $0\colors
|
SetOutPath $0\colors
|
||||||
File ${VIMRT}\colors\*.*
|
File ${VIMRT}\colors\*.*
|
||||||
|
SetOutPath $0\colors\tools
|
||||||
|
File ${VIMRT}\colors\tools\*.*
|
||||||
|
SetOutPath $0\colors\lists
|
||||||
|
File ${VIMRT}\colors\lists\*.*
|
||||||
|
|
||||||
SetOutPath $0\compiler
|
SetOutPath $0\compiler
|
||||||
File ${VIMRT}\compiler\*.*
|
File ${VIMRT}\compiler\*.*
|
||||||
@@ -703,8 +712,13 @@ Function .onInit
|
|||||||
!insertmacro MUI_LANGDLL_DISPLAY
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
# Check $VIM
|
${If} $INSTDIR == ${DEFAULT_INSTDIR}
|
||||||
ReadEnvStr $INSTDIR "VIM"
|
# Check $VIM
|
||||||
|
ReadEnvStr $3 "VIM"
|
||||||
|
${If} $3 != ""
|
||||||
|
StrCpy $INSTDIR $3
|
||||||
|
${EndIf}
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
call CheckOldVim
|
call CheckOldVim
|
||||||
Pop $3
|
Pop $3
|
||||||
@@ -714,20 +728,11 @@ Function .onInit
|
|||||||
SectionSetInstTypes ${id_section_old_ver} 0
|
SectionSetInstTypes ${id_section_old_ver} 0
|
||||||
SectionSetText ${id_section_old_ver} ""
|
SectionSetText ${id_section_old_ver} ""
|
||||||
${Else}
|
${Else}
|
||||||
${If} $INSTDIR == ""
|
${If} $INSTDIR == ${DEFAULT_INSTDIR}
|
||||||
StrCpy $INSTDIR $3
|
StrCpy $INSTDIR $3
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
# If did not find a path: use the default dir.
|
|
||||||
${If} $INSTDIR == ""
|
|
||||||
!ifdef WIN64
|
|
||||||
StrCpy $INSTDIR "$PROGRAMFILES64\Vim"
|
|
||||||
!else
|
|
||||||
StrCpy $INSTDIR "$PROGRAMFILES\Vim"
|
|
||||||
!endif
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
${If} ${RunningX64}
|
${If} ${RunningX64}
|
||||||
SetRegView 64
|
SetRegView 64
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ LangString ^UninstallCaption ${LANG_ENGLISH} \
|
|||||||
# "Destination Folder (Must end with $\"vim$\")"
|
# "Destination Folder (Must end with $\"vim$\")"
|
||||||
|
|
||||||
LangString str_show_readme ${LANG_ENGLISH} \
|
LangString str_show_readme ${LANG_ENGLISH} \
|
||||||
"Show README after installation finish"
|
"Show README after installation finished"
|
||||||
|
|
||||||
# Install types:
|
# Install types:
|
||||||
LangString str_type_typical ${LANG_ENGLISH} \
|
LangString str_type_typical ${LANG_ENGLISH} \
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ LangString ^SetupCaption ${LANG_TURKISH} \
|
|||||||
"$(^Name) Setup"
|
"$(^Name) Setup"
|
||||||
LangString ^UninstallCaption ${LANG_TURKISH} \
|
LangString ^UninstallCaption ${LANG_TURKISH} \
|
||||||
"$(^Name) Uninstall"
|
"$(^Name) Uninstall"
|
||||||
|
|
||||||
LangString str_show_readme ${LANG_TURKISH} \
|
LangString str_show_readme ${LANG_TURKISH} \
|
||||||
"Kurulum bittikten sonra README dosyasını aç"
|
"Kurulum bittikten sonra README dosyasını aç"
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ LangString str_type_minimal ${LANG_TURKISH} \
|
|||||||
|
|
||||||
LangString str_type_full ${LANG_TURKISH} \
|
LangString str_type_full ${LANG_TURKISH} \
|
||||||
"Tam"
|
"Tam"
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Section Titles & Description {{{1
|
# Section Titles & Description {{{1
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@@ -62,12 +62,12 @@ LangString str_section_start_menu ${LANG_TURKISH} \
|
|||||||
"Başlat Menüsü - Programlar klasöründe"
|
"Başlat Menüsü - Programlar klasöründe"
|
||||||
LangString str_desc_start_menu ${LANG_TURKISH} \
|
LangString str_desc_start_menu ${LANG_TURKISH} \
|
||||||
"Vim kısayolunu Başlat Menüsüne ekler."
|
"Vim kısayolunu Başlat Menüsüne ekler."
|
||||||
|
|
||||||
LangString str_section_edit_with ${LANG_TURKISH} \
|
LangString str_section_edit_with ${LANG_TURKISH} \
|
||||||
"Vim ile Aç"
|
"Vim ile Aç"
|
||||||
LangString str_desc_edit_with ${LANG_TURKISH} \
|
LangString str_desc_edit_with ${LANG_TURKISH} \
|
||||||
"Vim'i $\"Birlikte aç$\" sağ tık menüsüne ekler."
|
"Vim'i $\"Birlikte aç$\" sağ tık menüsüne ekler."
|
||||||
|
|
||||||
LangString str_section_vim_rc ${LANG_TURKISH} \
|
LangString str_section_vim_rc ${LANG_TURKISH} \
|
||||||
"Bir yapılandırma dosyası oluştur"
|
"Bir yapılandırma dosyası oluştur"
|
||||||
LangString str_desc_vim_rc ${LANG_TURKISH} \
|
LangString str_desc_vim_rc ${LANG_TURKISH} \
|
||||||
@@ -93,7 +93,7 @@ LangString str_desc_plugin_vim ${LANG_TURKISH} \
|
|||||||
LangString str_section_vis_vim ${LANG_TURKISH} \
|
LangString str_section_vis_vim ${LANG_TURKISH} \
|
||||||
"VisVim eklentisi"
|
"VisVim eklentisi"
|
||||||
LangString str_desc_vis_vim ${LANG_TURKISH} \
|
LangString str_desc_vis_vim ${LANG_TURKISH} \
|
||||||
"Microsoft Visual Studio entegrasyonu için VisVim eklentisi"
|
"Microsoft Visual Studio entegrasyonu için VisVim eklentisi"
|
||||||
|
|
||||||
LangString str_section_nls ${LANG_TURKISH} \
|
LangString str_section_nls ${LANG_TURKISH} \
|
||||||
"Ek dil desteği"
|
"Ek dil desteği"
|
||||||
@@ -129,14 +129,14 @@ LangString str_unsection_rootdir ${LANG_TURKISH} \
|
|||||||
"Vim kök dizinini kaldır"
|
"Vim kök dizinini kaldır"
|
||||||
LangString str_desc_rm_rootdir ${LANG_TURKISH} \
|
LangString str_desc_rm_rootdir ${LANG_TURKISH} \
|
||||||
"Vim kök dizinini kaldırır. Bu dizin Vim yapılandırma dosyalarını içerir!"
|
"Vim kök dizinini kaldırır. Bu dizin Vim yapılandırma dosyalarını içerir!"
|
||||||
|
|
||||||
LangString str_msg_install_fail ${LANG_TURKISH} \
|
LangString str_msg_install_fail ${LANG_TURKISH} \
|
||||||
"Yükleme başarısız oldu. Yeniden deneyin."
|
"Yükleme başarısız oldu. Yeniden deneyin."
|
||||||
|
|
||||||
LangString str_msg_rm_exe_fail ${LANG_TURKISH} \
|
LangString str_msg_rm_exe_fail ${LANG_TURKISH} \
|
||||||
"$0 içindeki bazı dosyalar silinemedi!$\r$\n\
|
"$0 içindeki bazı dosyalar silinemedi!$\r$\n\
|
||||||
Bu dosyaları el ile kaldırmalısınız."
|
Bu dosyaları el ile kaldırmalısınız."
|
||||||
|
|
||||||
LangString str_msg_uninstalling ${LANG_TURKISH} \
|
LangString str_msg_uninstalling ${LANG_TURKISH} \
|
||||||
"Eski sürüm kaldırılıyor..."
|
"Eski sürüm kaldırılıyor..."
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,9 @@
|
|||||||
prefix=stock_
|
prefix=stock_
|
||||||
list=
|
list=
|
||||||
|
|
||||||
for file in "$@"
|
for file in "$@"; do
|
||||||
do
|
name=$(echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||')
|
||||||
name=`echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||'`
|
|
||||||
list="$list $prefix$name $file"
|
list="$list $prefix$name $file"
|
||||||
done
|
done
|
||||||
|
|
||||||
gdk-pixbuf-csource --raw --static --build-list $list
|
gdk-pixbuf-csource --raw --static --build-list $list
|
||||||
|
|
||||||
|
|||||||
@@ -67,13 +67,13 @@ if exists ('g:ada_with_gnat_project_files')
|
|||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Section: add standart exception {{{2
|
" Section: add standard exception {{{2
|
||||||
"
|
"
|
||||||
for Item in ['Constraint_Error', 'Program_Error', 'Storage_Error', 'Tasking_Error', 'Status_Error', 'Mode_Error', 'Name_Error', 'Use_Error', 'Device_Error', 'End_Error', 'Data_Error', 'Layout_Error', 'Length_Error', 'Pattern_Error', 'Index_Error', 'Translation_Error', 'Time_Error', 'Argument_Error', 'Tag_Error', 'Picture_Error', 'Terminator_Error', 'Conversion_Error', 'Pointer_Error', 'Dereference_Error', 'Update_Error']
|
for Item in ['Constraint_Error', 'Program_Error', 'Storage_Error', 'Tasking_Error', 'Status_Error', 'Mode_Error', 'Name_Error', 'Use_Error', 'Device_Error', 'End_Error', 'Data_Error', 'Layout_Error', 'Length_Error', 'Pattern_Error', 'Index_Error', 'Translation_Error', 'Time_Error', 'Argument_Error', 'Tag_Error', 'Picture_Error', 'Terminator_Error', 'Conversion_Error', 'Pointer_Error', 'Dereference_Error', 'Update_Error']
|
||||||
let g:ada#Keywords += [{
|
let g:ada#Keywords += [{
|
||||||
\ 'word': Item,
|
\ 'word': Item,
|
||||||
\ 'menu': 'exception',
|
\ 'menu': 'exception',
|
||||||
\ 'info': 'Ada standart exception.',
|
\ 'info': 'Ada standard exception.',
|
||||||
\ 'kind': 'x',
|
\ 'kind': 'x',
|
||||||
\ 'icase': 1}]
|
\ 'icase': 1}]
|
||||||
endfor
|
endfor
|
||||||
@@ -210,7 +210,7 @@ function ada#Word (...)
|
|||||||
let l:Line = substitute (getline (l:Line_Nr), g:ada#Comment, '', '' )
|
let l:Line = substitute (getline (l:Line_Nr), g:ada#Comment, '', '' )
|
||||||
|
|
||||||
" Cope with tag searching for items in comments; if we are, don't loop
|
" Cope with tag searching for items in comments; if we are, don't loop
|
||||||
" backards looking for previous lines
|
" backwards looking for previous lines
|
||||||
if l:Column_Nr > strlen(l:Line)
|
if l:Column_Nr > strlen(l:Line)
|
||||||
" We were in a comment
|
" We were in a comment
|
||||||
let l:Line = getline(l:Line_Nr)
|
let l:Line = getline(l:Line_Nr)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
" 15.10.2006 MK Bram's suggestion for runtime integration
|
" 15.10.2006 MK Bram's suggestion for runtime integration
|
||||||
" 05.11.2006 MK Bram suggested not to use include protection for
|
" 05.11.2006 MK Bram suggested not to use include protection for
|
||||||
" autoload
|
" autoload
|
||||||
" 05.11.2006 MK Bram suggested agaist using setlocal omnifunc
|
" 05.11.2006 MK Bram suggested against using setlocal omnifunc
|
||||||
" 05.11.2006 MK Bram suggested to save on spaces
|
" 05.11.2006 MK Bram suggested to save on spaces
|
||||||
" Help Page: ft-ada-omni
|
" Help Page: ft-ada-omni
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
|||||||
" plus CSS Speech Module <http://www.w3.org/TR/css3-speech/>
|
" plus CSS Speech Module <http://www.w3.org/TR/css3-speech/>
|
||||||
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
||||||
" Original Author: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Original Author: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2018 Jul 02
|
" Last Change: 2021 Sep 21
|
||||||
|
|
||||||
let s:values = split("all additive-symbols align-content align-items align-self animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size block-size border border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip clip-path color columns column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width content counter-increment counter-reset cue cue-before cue-after cursor direction display empty-cells fallback filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font font-family font-feature-settings font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-position grid-auto-rows grid-column grid-column-start grid-column-end grid-row grid-row-start grid-row-end grid-template grid-template-areas grid-template-rows grid-template-columns height hyphens image-rendering image-resolution image-orientation ime-mode inline-size isolation justify-content left letter-spacing line-break line-height list-style list-style-image list-style-position list-style-type margin margin-block-end margin-block-start margin-bottom margin-inline-end margin-inline-start margin-left margin-right margin-top marks mask mask-type max-block-size max-height max-inline-size max-width max-zoom min-block-size min-height min-inline-size min-width min-zoom mix-blend-mode negative object-fit object-position offset-block-end offset-block-start offset-inline-end offset-inline-start opacity order orientation orphans outline outline-color outline-offset outline-style outline-width overflow overflow-wrap overflow-x overflow-y pad padding padding-block-end padding-block-start padding-bottom padding-inline-end padding-inline-start padding-left padding-right padding-top page-break-after page-break-before page-break-inside pause-before pause-after pause perspective perspective-origin pointer-events position prefix quotes range resize rest rest-before rest-after right ruby-align ruby-merge ruby-position scroll-behavior scroll-snap-coordinate scroll-snap-destination scroll-snap-points-x scroll-snap-points-y scroll-snap-type scroll-snap-type-x scroll-snap-type-y shape-image-threshold shape-margin shape-outside speak speak-as suffix symbols system table-layout tab-size text-align text-align-last text-combine-upright text-decoration text-decoration-color text-decoration-line text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-orientation text-overflow text-rendering text-shadow text-transform text-underline-position top touch-action transform transform-box transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi unicode-range user-zoom vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-rate voice-range voice-stress voice-volume white-space widows width will-change word-break word-spacing word-wrap writing-mode z-index zoom")
|
let s:values = split("all additive-symbols align-content align-items align-self animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size block-size border border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip clip-path color columns column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width content counter-increment counter-reset cue cue-before cue-after cursor direction display empty-cells fallback filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font font-family font-feature-settings font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-position grid-auto-rows grid-column grid-column-start grid-column-end grid-row grid-row-start grid-row-end grid-template grid-template-areas grid-template-rows grid-template-columns height hyphens image-rendering image-resolution image-orientation ime-mode inline-size isolation justify-content left letter-spacing line-break line-height list-style list-style-image list-style-position list-style-type margin margin-block-end margin-block-start margin-bottom margin-inline-end margin-inline-start margin-left margin-right margin-top marks mask mask-type max-block-size max-height max-inline-size max-width max-zoom min-block-size min-height min-inline-size min-width min-zoom mix-blend-mode negative object-fit object-position offset-block-end offset-block-start offset-inline-end offset-inline-start opacity order orientation orphans outline outline-color outline-offset outline-style outline-width overflow overflow-wrap overflow-x overflow-y pad padding padding-block-end padding-block-start padding-bottom padding-inline-end padding-inline-start padding-left padding-right padding-top page-break-after page-break-before page-break-inside pause-before pause-after pause perspective perspective-origin pointer-events position prefix quotes range resize rest rest-before rest-after right ruby-align ruby-merge ruby-position scroll-behavior scroll-snap-coordinate scroll-snap-destination scroll-snap-points-x scroll-snap-points-y scroll-snap-type scroll-snap-type-x scroll-snap-type-y shape-image-threshold shape-margin shape-outside speak speak-as suffix symbols system table-layout tab-size text-align text-align-last text-combine-upright text-decoration text-decoration-color text-decoration-line text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-orientation text-overflow text-rendering text-shadow text-transform text-underline-position top touch-action transform transform-box transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi unicode-range user-zoom vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-rate voice-range voice-stress voice-volume white-space widows width will-change word-break word-spacing word-wrap writing-mode z-index zoom")
|
||||||
|
|
||||||
@@ -38,12 +38,12 @@ function! csscomplete#CompleteCSS(findstart, base)
|
|||||||
if exists("b:compl_context")
|
if exists("b:compl_context")
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
let compl_begin = col('.') - 2
|
let compl_begin = col('.') - 2
|
||||||
let after = line[compl_begin:]
|
let b:after = line[compl_begin:]
|
||||||
let line = b:compl_context
|
let line = b:compl_context
|
||||||
unlet! b:compl_context
|
unlet! b:compl_context
|
||||||
else
|
else
|
||||||
let line = a:base
|
let line = a:base
|
||||||
let after = ''
|
let b:after = ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let res = []
|
let res = []
|
||||||
@@ -311,7 +311,7 @@ function! csscomplete#CompleteCSS(findstart, base)
|
|||||||
let values = ["normal", "italic", "oblique", "small-caps", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller", "sans-serif", "serif", "monospace", "cursive", "fantasy", "caption", "icon", "menu", "message-box", "small-caption", "status-bar"]
|
let values = ["normal", "italic", "oblique", "small-caps", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller", "sans-serif", "serif", "monospace", "cursive", "fantasy", "caption", "icon", "menu", "message-box", "small-caption", "status-bar"]
|
||||||
elseif prop =~ '^\%(height\|width\)$'
|
elseif prop =~ '^\%(height\|width\)$'
|
||||||
let values = ["auto", "border-box", "content-box", "max-content", "min-content", "available", "fit-content"]
|
let values = ["auto", "border-box", "content-box", "max-content", "min-content", "available", "fit-content"]
|
||||||
elseif prop =~ '^\%(left\|rigth\)$'
|
elseif prop =~ '^\%(left\|right\)$'
|
||||||
let values = ["auto"]
|
let values = ["auto"]
|
||||||
elseif prop == 'image-rendering'
|
elseif prop == 'image-rendering'
|
||||||
let values = ["auto", "crisp-edges", "pixelated"]
|
let values = ["auto", "crisp-edges", "pixelated"]
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ endif
|
|||||||
|
|
||||||
function decada#Unit_Name () dict " {{{1
|
function decada#Unit_Name () dict " {{{1
|
||||||
" Convert filename into acs unit:
|
" Convert filename into acs unit:
|
||||||
" 1: remove the file extenstion.
|
" 1: remove the file extension.
|
||||||
" 2: replace all double '_' or '-' with an dot (which denotes a separate)
|
" 2: replace all double '_' or '-' with an dot (which denotes a separate)
|
||||||
" 3: remove a trailing '_' (which denotes a specification)
|
" 3: remove a trailing '_' (which denotes a specification)
|
||||||
return substitute (substitute (expand ("%:t:r"), '__\|-', ".", "g"), '_$', "", '')
|
return substitute (substitute (expand ("%:t:r"), '__\|-', ".", "g"), '_$', "", '')
|
||||||
|
|||||||
30
runtime/autoload/dist/ft.vim
vendored
30
runtime/autoload/dist/ft.vim
vendored
@@ -172,6 +172,17 @@ func dist#ft#FTent()
|
|||||||
setf dtd
|
setf dtd
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func dist#ft#ExCheck()
|
||||||
|
let lines = getline(1, min([line("$"), 100]))
|
||||||
|
if exists('g:filetype_euphoria')
|
||||||
|
exe 'setf ' . g:filetype_euphoria
|
||||||
|
elseif match(lines, '^--\|^ifdef\>\|^include\>') > -1
|
||||||
|
setf euphoria3
|
||||||
|
else
|
||||||
|
setf elixir
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
func dist#ft#EuphoriaCheck()
|
func dist#ft#EuphoriaCheck()
|
||||||
if exists('g:filetype_euphoria')
|
if exists('g:filetype_euphoria')
|
||||||
exe 'setf ' . g:filetype_euphoria
|
exe 'setf ' . g:filetype_euphoria
|
||||||
@@ -253,6 +264,14 @@ func dist#ft#ProtoCheck(default)
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func dist#ft#FTm()
|
func dist#ft#FTm()
|
||||||
|
if exists("g:filetype_m")
|
||||||
|
exe "setf " . g:filetype_m
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
" excluding end(for|function|if|switch|while) common to Murphi
|
||||||
|
let octave_block_terminators = '\<end\%(_try_catch\|classdef\|enumeration\|events\|methods\|parfor\|properties\)\>'
|
||||||
|
|
||||||
let n = 1
|
let n = 1
|
||||||
let saw_comment = 0 " Whether we've seen a multiline comment leader.
|
let saw_comment = 0 " Whether we've seen a multiline comment leader.
|
||||||
while n < 100
|
while n < 100
|
||||||
@@ -267,6 +286,12 @@ func dist#ft#FTm()
|
|||||||
setf objc
|
setf objc
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
if line =~ '^\s*\%(#\|%!\)' || line =~ '^\s*unwind_protect\>' ||
|
||||||
|
\ line =~ '\%(^\|;\)\s*' .. octave_block_terminators
|
||||||
|
setf octave
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
" TODO: could be Matlab or Octave
|
||||||
if line =~ '^\s*%'
|
if line =~ '^\s*%'
|
||||||
setf matlab
|
setf matlab
|
||||||
return
|
return
|
||||||
@@ -287,11 +312,8 @@ func dist#ft#FTm()
|
|||||||
" or Murphi based on the comment leader. Assume the former as it is more
|
" or Murphi based on the comment leader. Assume the former as it is more
|
||||||
" common.
|
" common.
|
||||||
setf objc
|
setf objc
|
||||||
elseif exists("g:filetype_m")
|
|
||||||
" Use user specified default filetype for .m
|
|
||||||
exe "setf " . g:filetype_m
|
|
||||||
else
|
else
|
||||||
" Default is matlab
|
" Default is Matlab
|
||||||
setf matlab
|
setf matlab
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ fun! getscript#GetLatestVimScripts()
|
|||||||
" insure that wget is executable
|
" insure that wget is executable
|
||||||
if executable(g:GetLatestVimScripts_wget) != 1
|
if executable(g:GetLatestVimScripts_wget) != 1
|
||||||
echoerr "GetLatestVimScripts needs ".g:GetLatestVimScripts_wget." which apparently is not available on your system"
|
echoerr "GetLatestVimScripts needs ".g:GetLatestVimScripts_wget." which apparently is not available on your system"
|
||||||
" call Dret("GetLatestVimScripts : wget not executable/availble")
|
" call Dret("GetLatestVimScripts : wget not executable/available")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -347,7 +347,7 @@ fun! s:GetOneScript(...)
|
|||||||
set t_ti= t_te= nors
|
set t_ti= t_te= nors
|
||||||
|
|
||||||
" put current line on top-of-screen and interpret it into
|
" put current line on top-of-screen and interpret it into
|
||||||
" a script identifer : used to obtain webpage
|
" a script identifier : used to obtain webpage
|
||||||
" source identifier : used to identify current version
|
" source identifier : used to identify current version
|
||||||
" and an associated comment: used to report on what's being considered
|
" and an associated comment: used to report on what's being considered
|
||||||
if a:0 >= 3
|
if a:0 >= 3
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ function! haskellcomplete#Complete(findstart, base)
|
|||||||
|
|
||||||
if b:completingLangExtension
|
if b:completingLangExtension
|
||||||
if a:base ==? ""
|
if a:base ==? ""
|
||||||
" Return all posible Lang extensions
|
" Return all possible Lang extensions
|
||||||
return s:langExtensions
|
return s:langExtensions
|
||||||
else
|
else
|
||||||
let l:matches = []
|
let l:matches = []
|
||||||
@@ -70,7 +70,7 @@ function! haskellcomplete#Complete(findstart, base)
|
|||||||
|
|
||||||
elseif b:completingOptionsGHC
|
elseif b:completingOptionsGHC
|
||||||
if a:base ==? ""
|
if a:base ==? ""
|
||||||
" Return all posible GHC options
|
" Return all possible GHC options
|
||||||
return s:optionsGHC
|
return s:optionsGHC
|
||||||
else
|
else
|
||||||
let l:matches = []
|
let l:matches = []
|
||||||
@@ -86,7 +86,7 @@ function! haskellcomplete#Complete(findstart, base)
|
|||||||
|
|
||||||
elseif b:completingModule
|
elseif b:completingModule
|
||||||
if a:base ==? ""
|
if a:base ==? ""
|
||||||
" Return all posible modules
|
" Return all possible modules
|
||||||
return s:commonModules
|
return s:commonModules
|
||||||
else
|
else
|
||||||
let l:matches = []
|
let l:matches = []
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ function! htmlcomplete#CompleteTags(findstart, base)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
" Value of attribute completion {{{
|
" Value of attribute completion {{{
|
||||||
" If attr contains =\s*[\"'] we catched value of attribute
|
" If attr contains =\s*[\"'] we match value of attribute
|
||||||
if attr =~ "=\s*[\"']" || attr =~ "=\s*$"
|
if attr =~ "=\s*[\"']" || attr =~ "=\s*$"
|
||||||
" Let do attribute specific completion
|
" Let do attribute specific completion
|
||||||
let attrname = matchstr(attr, '.*\ze\s*=')
|
let attrname = matchstr(attr, '.*\ze\s*=')
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" netrw.vim: Handles file transfer and remote directory listing across
|
" netrw.vim: Handles file transfer and remote directory listing across
|
||||||
" AUTOLOAD SECTION
|
" AUTOLOAD SECTION
|
||||||
" Date: Sep 18, 2020
|
" Date: Aug 16, 2021
|
||||||
" Version: 170
|
" Version: 171
|
||||||
" Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
" Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
||||||
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
|
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
|
||||||
" Copyright: Copyright (C) 2016 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2016 Charles E. Campbell {{{1
|
||||||
@@ -43,7 +43,7 @@ if exists("s:needspatches")
|
|||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:loaded_netrw = "v170"
|
let g:loaded_netrw = "v171"
|
||||||
if !exists("s:NOTE")
|
if !exists("s:NOTE")
|
||||||
let s:NOTE = 0
|
let s:NOTE = 0
|
||||||
let s:WARNING = 1
|
let s:WARNING = 1
|
||||||
@@ -93,7 +93,7 @@ fun! netrw#ErrorMsg(level,msg,errnum)
|
|||||||
else
|
else
|
||||||
let msg= level.a:msg
|
let msg= level.a:msg
|
||||||
endif
|
endif
|
||||||
let s:popuperr_id = popup_beval(msg,{})
|
let s:popuperr_id = popup_atcursor(msg,{})
|
||||||
let s:popuperr_text= ""
|
let s:popuperr_text= ""
|
||||||
elseif g:netrw_use_errorwindow
|
elseif g:netrw_use_errorwindow
|
||||||
" (default) netrw creates a one-line window to show error/warning
|
" (default) netrw creates a one-line window to show error/warning
|
||||||
@@ -322,6 +322,7 @@ call s:NetrwInit("g:netrw_banner" , 1)
|
|||||||
call s:NetrwInit("g:netrw_browse_split", 0)
|
call s:NetrwInit("g:netrw_browse_split", 0)
|
||||||
call s:NetrwInit("g:netrw_bufsettings" , "noma nomod nonu nobl nowrap ro nornu")
|
call s:NetrwInit("g:netrw_bufsettings" , "noma nomod nonu nobl nowrap ro nornu")
|
||||||
call s:NetrwInit("g:netrw_chgwin" , -1)
|
call s:NetrwInit("g:netrw_chgwin" , -1)
|
||||||
|
call s:NetrwInit("g:netrw_clipboard" , 1)
|
||||||
call s:NetrwInit("g:netrw_compress" , "gzip")
|
call s:NetrwInit("g:netrw_compress" , "gzip")
|
||||||
call s:NetrwInit("g:netrw_ctags" , "ctags")
|
call s:NetrwInit("g:netrw_ctags" , "ctags")
|
||||||
if exists("g:netrw_cursorline") && !exists("g:netrw_cursor")
|
if exists("g:netrw_cursorline") && !exists("g:netrw_cursor")
|
||||||
@@ -331,6 +332,7 @@ endif
|
|||||||
call s:NetrwInit("g:netrw_cursor" , 2)
|
call s:NetrwInit("g:netrw_cursor" , 2)
|
||||||
let s:netrw_usercul = &cursorline
|
let s:netrw_usercul = &cursorline
|
||||||
let s:netrw_usercuc = &cursorcolumn
|
let s:netrw_usercuc = &cursorcolumn
|
||||||
|
"call Decho("(netrw) COMBAK: cuc=".&l:cuc." cul=".&l:cul." initialization of s:netrw_cu[cl]")
|
||||||
call s:NetrwInit("g:netrw_cygdrive","/cygdrive")
|
call s:NetrwInit("g:netrw_cygdrive","/cygdrive")
|
||||||
" Default values - d-g ---------- {{{3
|
" Default values - d-g ---------- {{{3
|
||||||
call s:NetrwInit("s:didstarstar",0)
|
call s:NetrwInit("s:didstarstar",0)
|
||||||
@@ -703,7 +705,7 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" save registers
|
" save registers
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(netrw#Explore) save @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(netrw#Explore) save @* and @+",'~'.expand("<slnum>"))
|
||||||
sil! let keepregstar = @*
|
sil! let keepregstar = @*
|
||||||
sil! let keepregplus = @+
|
sil! let keepregplus = @+
|
||||||
@@ -931,7 +933,7 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
|||||||
" call Decho("..case Nexplore with starpat=".starpat.": (indx=".indx.")",'~'.expand("<slnum>"))
|
" call Decho("..case Nexplore with starpat=".starpat.": (indx=".indx.")",'~'.expand("<slnum>"))
|
||||||
if !exists("w:netrw_explore_list") " sanity check
|
if !exists("w:netrw_explore_list") " sanity check
|
||||||
NetrwKeepj call netrw#ErrorMsg(s:WARNING,"using Nexplore or <s-down> improperly; see help for netrw-starstar",40)
|
NetrwKeepj call netrw#ErrorMsg(s:WARNING,"using Nexplore or <s-down> improperly; see help for netrw-starstar",40)
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
||||||
if @* != keepregstar | sil! let @* = keepregstar | endif
|
if @* != keepregstar | sil! let @* = keepregstar | endif
|
||||||
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
||||||
@@ -957,7 +959,7 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
|||||||
" call Decho("case Pexplore with starpat=".starpat.": (indx=".indx.")",'~'.expand("<slnum>"))
|
" call Decho("case Pexplore with starpat=".starpat.": (indx=".indx.")",'~'.expand("<slnum>"))
|
||||||
if !exists("w:netrw_explore_list") " sanity check
|
if !exists("w:netrw_explore_list") " sanity check
|
||||||
NetrwKeepj call netrw#ErrorMsg(s:WARNING,"using Pexplore or <s-up> improperly; see help for netrw-starstar",41)
|
NetrwKeepj call netrw#ErrorMsg(s:WARNING,"using Pexplore or <s-up> improperly; see help for netrw-starstar",41)
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
||||||
if @* != keepregstar | sil! let @* = keepregstar | endif
|
if @* != keepregstar | sil! let @* = keepregstar | endif
|
||||||
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
||||||
@@ -1013,7 +1015,7 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
|||||||
catch /^Vim\%((\a\+)\)\=:E480/
|
catch /^Vim\%((\a\+)\)\=:E480/
|
||||||
keepalt call netrw#ErrorMsg(s:WARNING,'no files matched pattern<'.pattern.'>',45)
|
keepalt call netrw#ErrorMsg(s:WARNING,'no files matched pattern<'.pattern.'>',45)
|
||||||
if &hls | let keepregslash= s:ExplorePatHls(pattern) | endif
|
if &hls | let keepregslash= s:ExplorePatHls(pattern) | endif
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
||||||
if @* != keepregstar | sil! let @* = keepregstar | endif
|
if @* != keepregstar | sil! let @* = keepregstar | endif
|
||||||
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
||||||
@@ -1050,7 +1052,7 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
|||||||
|
|
||||||
if w:netrw_explore_listlen == 0 || (w:netrw_explore_listlen == 1 && w:netrw_explore_list[0] =~ '\*\*\/')
|
if w:netrw_explore_listlen == 0 || (w:netrw_explore_listlen == 1 && w:netrw_explore_list[0] =~ '\*\*\/')
|
||||||
keepalt NetrwKeepj call netrw#ErrorMsg(s:WARNING,"no files matched",42)
|
keepalt NetrwKeepj call netrw#ErrorMsg(s:WARNING,"no files matched",42)
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
||||||
if @* != keepregstar | sil! let @* = keepregstar | endif
|
if @* != keepregstar | sil! let @* = keepregstar | endif
|
||||||
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
||||||
@@ -1099,7 +1101,7 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
|||||||
if !exists("g:netrw_quiet")
|
if !exists("g:netrw_quiet")
|
||||||
keepalt NetrwKeepj call netrw#ErrorMsg(s:WARNING,"your vim needs the +path_extra feature for Exploring with **!",44)
|
keepalt NetrwKeepj call netrw#ErrorMsg(s:WARNING,"your vim needs the +path_extra feature for Exploring with **!",44)
|
||||||
endif
|
endif
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
||||||
if @* != keepregstar | sil! let @* = keepregstar | endif
|
if @* != keepregstar | sil! let @* = keepregstar | endif
|
||||||
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
||||||
@@ -1173,7 +1175,7 @@ fun! netrw#Explore(indx,dosplit,style,...)
|
|||||||
" there's no danger of a late FocusGained event on initialization.
|
" there's no danger of a late FocusGained event on initialization.
|
||||||
" Consequently, set s:netrw_events to 2.
|
" Consequently, set s:netrw_events to 2.
|
||||||
let s:netrw_events= 2
|
let s:netrw_events= 2
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(netrw#Explore) restore @* and @+",'~'.expand("<slnum>"))
|
||||||
if @* != keepregstar | sil! let @* = keepregstar | endif
|
if @* != keepregstar | sil! let @* = keepregstar | endif
|
||||||
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
if @+ != keepregplus | sil! let @+ = keepregplus | endif
|
||||||
@@ -1641,7 +1643,8 @@ endfun
|
|||||||
fun! s:NetrwOptionsSave(vt)
|
fun! s:NetrwOptionsSave(vt)
|
||||||
" call Dfunc("s:NetrwOptionsSave(vt<".a:vt.">) win#".winnr()." buf#".bufnr("%")."<".bufname(bufnr("%")).">"." winnr($)=".winnr("$")." mod=".&mod." ma=".&ma)
|
" call Dfunc("s:NetrwOptionsSave(vt<".a:vt.">) win#".winnr()." buf#".bufnr("%")."<".bufname(bufnr("%")).">"." winnr($)=".winnr("$")." mod=".&mod." ma=".&ma)
|
||||||
" call Decho(a:vt."netrw_optionsave".(exists("{a:vt}netrw_optionsave")? ("=".{a:vt}netrw_optionsave) : " doesn't exist"),'~'.expand("<slnum>"))
|
" call Decho(a:vt."netrw_optionsave".(exists("{a:vt}netrw_optionsave")? ("=".{a:vt}netrw_optionsave) : " doesn't exist"),'~'.expand("<slnum>"))
|
||||||
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt." hid=".&hid,'~'.expand("<slnum>"))
|
||||||
|
" call Decho("(s:NetrwOptionsSave) lines=".&lines)
|
||||||
|
|
||||||
if !exists("{a:vt}netrw_optionsave")
|
if !exists("{a:vt}netrw_optionsave")
|
||||||
let {a:vt}netrw_optionsave= 1
|
let {a:vt}netrw_optionsave= 1
|
||||||
@@ -1667,6 +1670,9 @@ fun! s:NetrwOptionsSave(vt)
|
|||||||
let {a:vt}netrw_cinokeep = &l:cino
|
let {a:vt}netrw_cinokeep = &l:cino
|
||||||
let {a:vt}netrw_comkeep = &l:com
|
let {a:vt}netrw_comkeep = &l:com
|
||||||
let {a:vt}netrw_cpokeep = &l:cpo
|
let {a:vt}netrw_cpokeep = &l:cpo
|
||||||
|
let {a:vt}netrw_cuckeep = &l:cuc
|
||||||
|
let {a:vt}netrw_culkeep = &l:cul
|
||||||
|
" call Decho("(s:NetrwOptionsSave) COMBAK: cuc=".&l:cuc." cul=".&l:cul)
|
||||||
let {a:vt}netrw_diffkeep = &l:diff
|
let {a:vt}netrw_diffkeep = &l:diff
|
||||||
let {a:vt}netrw_fenkeep = &l:fen
|
let {a:vt}netrw_fenkeep = &l:fen
|
||||||
if !exists("g:netrw_ffkeep") || g:netrw_ffkeep
|
if !exists("g:netrw_ffkeep") || g:netrw_ffkeep
|
||||||
@@ -1674,9 +1680,11 @@ fun! s:NetrwOptionsSave(vt)
|
|||||||
endif
|
endif
|
||||||
let {a:vt}netrw_fokeep = &l:fo " formatoptions
|
let {a:vt}netrw_fokeep = &l:fo " formatoptions
|
||||||
let {a:vt}netrw_gdkeep = &l:gd " gdefault
|
let {a:vt}netrw_gdkeep = &l:gd " gdefault
|
||||||
|
let {a:vt}netrw_gokeep = &l:go " guioptions
|
||||||
let {a:vt}netrw_hidkeep = &l:hidden
|
let {a:vt}netrw_hidkeep = &l:hidden
|
||||||
let {a:vt}netrw_imkeep = &l:im
|
let {a:vt}netrw_imkeep = &l:im
|
||||||
let {a:vt}netrw_iskkeep = &l:isk
|
let {a:vt}netrw_iskkeep = &l:isk
|
||||||
|
let {a:vt}netrw_lines = &lines
|
||||||
let {a:vt}netrw_lskeep = &l:ls
|
let {a:vt}netrw_lskeep = &l:ls
|
||||||
let {a:vt}netrw_makeep = &l:ma
|
let {a:vt}netrw_makeep = &l:ma
|
||||||
let {a:vt}netrw_magickeep = &l:magic
|
let {a:vt}netrw_magickeep = &l:magic
|
||||||
@@ -1702,12 +1710,13 @@ fun! s:NetrwOptionsSave(vt)
|
|||||||
let {a:vt}netrw_dirkeep = getcwd()
|
let {a:vt}netrw_dirkeep = getcwd()
|
||||||
" call Decho("saving to ".a:vt."netrw_dirkeep<".{a:vt}netrw_dirkeep.">",'~'.expand("<slnum>"))
|
" call Decho("saving to ".a:vt."netrw_dirkeep<".{a:vt}netrw_dirkeep.">",'~'.expand("<slnum>"))
|
||||||
endif
|
endif
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
sil! let {a:vt}netrw_starkeep = @*
|
sil! let {a:vt}netrw_starkeep = @*
|
||||||
sil! let {a:vt}netrw_pluskeep = @+
|
sil! let {a:vt}netrw_pluskeep = @+
|
||||||
endif
|
endif
|
||||||
sil! let {a:vt}netrw_slashkeep= @/
|
sil! let {a:vt}netrw_slashkeep= @/
|
||||||
|
|
||||||
|
" call Decho("(s:NetrwOptionsSave) lines=".&lines)
|
||||||
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
||||||
" call Dret("s:NetrwOptionsSave : tab#".tabpagenr()." win#".winnr())
|
" call Dret("s:NetrwOptionsSave : tab#".tabpagenr()." win#".winnr())
|
||||||
endfun
|
endfun
|
||||||
@@ -1732,12 +1741,18 @@ fun! s:NetrwOptionsSafe(islocal)
|
|||||||
endif
|
endif
|
||||||
call s:NetrwSetSafeSetting("&l:ci",0)
|
call s:NetrwSetSafeSetting("&l:ci",0)
|
||||||
call s:NetrwSetSafeSetting("&l:cin",0)
|
call s:NetrwSetSafeSetting("&l:cin",0)
|
||||||
call s:NetrwSetSafeSetting("&l:bh","hide")
|
if g:netrw_fastbrowse > a:islocal
|
||||||
|
call s:NetrwSetSafeSetting("&l:bh","hide")
|
||||||
|
else
|
||||||
|
call s:NetrwSetSafeSetting("&l:bh","delete")
|
||||||
|
endif
|
||||||
call s:NetrwSetSafeSetting("&l:cino","")
|
call s:NetrwSetSafeSetting("&l:cino","")
|
||||||
call s:NetrwSetSafeSetting("&l:com","")
|
call s:NetrwSetSafeSetting("&l:com","")
|
||||||
if &cpo =~ 'a' | call s:NetrwSetSafeSetting("&cpo",substitute(&cpo,'a','','g')) | endif
|
if &cpo =~ 'a' | call s:NetrwSetSafeSetting("&cpo",substitute(&cpo,'a','','g')) | endif
|
||||||
if &cpo =~ 'A' | call s:NetrwSetSafeSetting("&cpo",substitute(&cpo,'A','','g')) | endif
|
if &cpo =~ 'A' | call s:NetrwSetSafeSetting("&cpo",substitute(&cpo,'A','','g')) | endif
|
||||||
setl fo=nroql2
|
setl fo=nroql2
|
||||||
|
" call s:NetrwSetSafeSetting("&go","begmr")
|
||||||
|
if &go =~ '\ca' | call s:NetrwSetSafeSetting("&go",substitute(&go,'\ca','','g')) | endif
|
||||||
call s:NetrwSetSafeSetting("&l:hid",0)
|
call s:NetrwSetSafeSetting("&l:hid",0)
|
||||||
call s:NetrwSetSafeSetting("&l:im",0)
|
call s:NetrwSetSafeSetting("&l:im",0)
|
||||||
setl isk+=@ isk+=* isk+=/
|
setl isk+=@ isk+=* isk+=/
|
||||||
@@ -1751,7 +1766,10 @@ fun! s:NetrwOptionsSafe(islocal)
|
|||||||
call s:NetrwSetSafeSetting("&l:tw",0)
|
call s:NetrwSetSafeSetting("&l:tw",0)
|
||||||
call s:NetrwSetSafeSetting("&l:wig","")
|
call s:NetrwSetSafeSetting("&l:wig","")
|
||||||
setl cedit&
|
setl cedit&
|
||||||
call s:NetrwCursor()
|
|
||||||
|
" set up cuc and cul based on g:netrw_cursor and listing style
|
||||||
|
" COMBAK -- cuc cul related
|
||||||
|
call s:NetrwCursor(0)
|
||||||
|
|
||||||
" allow the user to override safe options
|
" allow the user to override safe options
|
||||||
" call Decho("ft<".&ft."> ei=".&ei,'~'.expand("<slnum>"))
|
" call Decho("ft<".&ft."> ei=".&ei,'~'.expand("<slnum>"))
|
||||||
@@ -1769,11 +1787,14 @@ endfun
|
|||||||
" s:NetrwOptionsRestore: restore options (based on prior s:NetrwOptionsSave) {{{2
|
" s:NetrwOptionsRestore: restore options (based on prior s:NetrwOptionsSave) {{{2
|
||||||
fun! s:NetrwOptionsRestore(vt)
|
fun! s:NetrwOptionsRestore(vt)
|
||||||
" call Dfunc("s:NetrwOptionsRestore(vt<".a:vt.">) win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> winnr($)=".winnr("$"))
|
" call Dfunc("s:NetrwOptionsRestore(vt<".a:vt.">) win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> winnr($)=".winnr("$"))
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) lines=".&lines)
|
||||||
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
||||||
if !exists("{a:vt}netrw_optionsave")
|
if !exists("{a:vt}netrw_optionsave")
|
||||||
" call Decho("case ".a:vt."netrw_optionsave : doesn't exist",'~'.expand("<slnum>"))
|
" call Decho("case ".a:vt."netrw_optionsave : doesn't exist",'~'.expand("<slnum>"))
|
||||||
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
" call Decho("..doing filetype detect anyway")
|
||||||
" call Decho("ro=".&l:ro." ma=".&l:ma." mod=".&l:mod." wrap=".&l:wrap." (filename<".expand("%")."> win#".winnr()." ft<".&ft.">)",'~'.expand("<slnum>"))
|
filetype detect
|
||||||
|
" call Decho("..settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
||||||
|
" call Decho("..ro=".&l:ro." ma=".&l:ma." mod=".&l:mod." wrap=".&l:wrap." (filename<".expand("%")."> win#".winnr()." ft<".&ft.">)",'~'.expand("<slnum>"))
|
||||||
" call Dret("s:NetrwOptionsRestore : ".a:vt."netrw_optionsave doesn't exist")
|
" call Dret("s:NetrwOptionsRestore : ".a:vt."netrw_optionsave doesn't exist")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
@@ -1790,41 +1811,53 @@ fun! s:NetrwOptionsRestore(vt)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) #1 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_aikeep","&l:ai")
|
call s:NetrwRestoreSetting(a:vt."netrw_aikeep","&l:ai")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_awkeep","&l:aw")
|
call s:NetrwRestoreSetting(a:vt."netrw_awkeep","&l:aw")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_blkeep","&l:bl")
|
call s:NetrwRestoreSetting(a:vt."netrw_blkeep","&l:bl")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_btkeep","&l:bt")
|
call s:NetrwRestoreSetting(a:vt."netrw_btkeep","&l:bt")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_bombkeep","&l:bomb")
|
call s:NetrwRestoreSetting(a:vt."netrw_bombkeep","&l:bomb")
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) #2 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_cedit","&cedit")
|
call s:NetrwRestoreSetting(a:vt."netrw_cedit","&cedit")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_cikeep","&l:ci")
|
call s:NetrwRestoreSetting(a:vt."netrw_cikeep","&l:ci")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_cinkeep","&l:cin")
|
call s:NetrwRestoreSetting(a:vt."netrw_cinkeep","&l:cin")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_cinokeep","&l:cino")
|
call s:NetrwRestoreSetting(a:vt."netrw_cinokeep","&l:cino")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_comkeep","&l:com")
|
call s:NetrwRestoreSetting(a:vt."netrw_comkeep","&l:com")
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) #3 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_cpokeep","&l:cpo")
|
call s:NetrwRestoreSetting(a:vt."netrw_cpokeep","&l:cpo")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_diffkeep","&l:diff")
|
call s:NetrwRestoreSetting(a:vt."netrw_diffkeep","&l:diff")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_fenkeep","&l:fen")
|
call s:NetrwRestoreSetting(a:vt."netrw_fenkeep","&l:fen")
|
||||||
if exists("g:netrw_ffkeep") && g:netrw_ffkeep
|
if exists("g:netrw_ffkeep") && g:netrw_ffkeep
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_ffkeep")","&l:ff")
|
call s:NetrwRestoreSetting(a:vt."netrw_ffkeep")","&l:ff")
|
||||||
endif
|
endif
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_fokeep","&l:fo")
|
" call Decho("(s:NetrwOptionsRestore) #4 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_gdkeep","&l:gd")
|
call s:NetrwRestoreSetting(a:vt."netrw_fokeep" ,"&l:fo")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_hidkeep","&l:hidden")
|
call s:NetrwRestoreSetting(a:vt."netrw_gdkeep" ,"&l:gd")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_imkeep","&l:im")
|
call s:NetrwRestoreSetting(a:vt."netrw_gokeep" ,"&l:go")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_iskkeep","&l:isk")
|
call s:NetrwRestoreSetting(a:vt."netrw_hidkeep" ,"&l:hidden")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_lskeep","&l:ls")
|
" call Decho("(s:NetrwOptionsRestore) #5 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_makeep","&l:ma")
|
call s:NetrwRestoreSetting(a:vt."netrw_imkeep" ,"&l:im")
|
||||||
|
call s:NetrwRestoreSetting(a:vt."netrw_iskkeep" ,"&l:isk")
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) #6 lines=".&lines)
|
||||||
|
call s:NetrwRestoreSetting(a:vt."netrw_lines" ,"&lines")
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) #7 lines=".&lines)
|
||||||
|
call s:NetrwRestoreSetting(a:vt."netrw_lskeep" ,"&l:ls")
|
||||||
|
call s:NetrwRestoreSetting(a:vt."netrw_makeep" ,"&l:ma")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_magickeep","&l:magic")
|
call s:NetrwRestoreSetting(a:vt."netrw_magickeep","&l:magic")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_modkeep","&l:mod")
|
call s:NetrwRestoreSetting(a:vt."netrw_modkeep" ,"&l:mod")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_nukeep","&l:nu")
|
call s:NetrwRestoreSetting(a:vt."netrw_nukeep" ,"&l:nu")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_rnukeep","&l:rnu")
|
" call Decho("(s:NetrwOptionsRestore) #8 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_repkeep","&l:report")
|
call s:NetrwRestoreSetting(a:vt."netrw_rnukeep" ,"&l:rnu")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_rokeep","&l:ro")
|
call s:NetrwRestoreSetting(a:vt."netrw_repkeep" ,"&l:report")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_selkeep","&l:sel")
|
call s:NetrwRestoreSetting(a:vt."netrw_rokeep" ,"&l:ro")
|
||||||
|
call s:NetrwRestoreSetting(a:vt."netrw_selkeep" ,"&l:sel")
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) #9 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_spellkeep","&l:spell")
|
call s:NetrwRestoreSetting(a:vt."netrw_spellkeep","&l:spell")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_twkeep","&l:tw")
|
call s:NetrwRestoreSetting(a:vt."netrw_twkeep" ,"&l:tw")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_wigkeep","&l:wig")
|
call s:NetrwRestoreSetting(a:vt."netrw_wigkeep" ,"&l:wig")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_wrapkeep","&l:wrap")
|
call s:NetrwRestoreSetting(a:vt."netrw_wrapkeep" ,"&l:wrap")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_writekeep","&l:write")
|
call s:NetrwRestoreSetting(a:vt."netrw_writekeep","&l:write")
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) #10 lines=".&lines)
|
||||||
call s:NetrwRestoreSetting("s:yykeep","@@")
|
call s:NetrwRestoreSetting("s:yykeep","@@")
|
||||||
" former problem: start with liststyle=0; press <i> : result, following line resets l:ts.
|
" former problem: start with liststyle=0; press <i> : result, following line resets l:ts.
|
||||||
" Fixed; in s:PerformListing, when w:netrw_liststyle is s:LONGLIST, will use a printf to pad filename with spaces
|
" Fixed; in s:PerformListing, when w:netrw_liststyle is s:LONGLIST, will use a printf to pad filename with spaces
|
||||||
@@ -1855,7 +1888,7 @@ fun! s:NetrwOptionsRestore(vt)
|
|||||||
unlet {a:vt}netrw_dirkeep
|
unlet {a:vt}netrw_dirkeep
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("has clipboard",'~'.expand("<slnum>"))
|
" call Decho("has clipboard",'~'.expand("<slnum>"))
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_starkeep","@*")
|
call s:NetrwRestoreSetting(a:vt."netrw_starkeep","@*")
|
||||||
call s:NetrwRestoreSetting(a:vt."netrw_pluskeep","@+")
|
call s:NetrwRestoreSetting(a:vt."netrw_pluskeep","@+")
|
||||||
@@ -1871,9 +1904,11 @@ fun! s:NetrwOptionsRestore(vt)
|
|||||||
" were having their filetype detect-generated settings overwritten by
|
" were having their filetype detect-generated settings overwritten by
|
||||||
" NetrwOptionRestore.
|
" NetrwOptionRestore.
|
||||||
if &ft != "netrw"
|
if &ft != "netrw"
|
||||||
" call Decho("filetype detect (ft=".&ft.")",'~'.expand("<slnum>"))
|
" call Decho("before: filetype detect (ft=".&ft.")",'~'.expand("<slnum>"))
|
||||||
filetype detect
|
filetype detect
|
||||||
|
" call Decho("after : filetype detect (ft=".&ft.")",'~'.expand("<slnum>"))
|
||||||
endif
|
endif
|
||||||
|
" call Decho("(s:NetrwOptionsRestore) lines=".&lines)
|
||||||
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." a:vt=".a:vt,'~'.expand("<slnum>"))
|
||||||
" call Dret("s:NetrwOptionsRestore : tab#".tabpagenr()." win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> modified=".&modified." modifiable=".&modifiable." readonly=".&readonly)
|
" call Dret("s:NetrwOptionsRestore : tab#".tabpagenr()." win#".winnr()." buf#".bufnr("%")."<".bufname("%")."> modified=".&modified." modifiable=".&modifiable." readonly=".&readonly)
|
||||||
endfun
|
endfun
|
||||||
@@ -1923,7 +1958,7 @@ fun! s:NetrwRestoreSetting(keepvar,setting)
|
|||||||
" typically called from s:NetrwOptionsRestore
|
" typically called from s:NetrwOptionsRestore
|
||||||
" call s:NetrwRestoreSettings(keep-option-variable-name,'associated-option')
|
" call s:NetrwRestoreSettings(keep-option-variable-name,'associated-option')
|
||||||
" ex. call s:NetrwRestoreSetting(a:vt."netrw_selkeep","&l:sel")
|
" ex. call s:NetrwRestoreSetting(a:vt."netrw_selkeep","&l:sel")
|
||||||
" Restores option (if different) from a keepvar
|
" Restores option (but only if different) from a:keepvar
|
||||||
if exists(a:keepvar)
|
if exists(a:keepvar)
|
||||||
exe "let keepvarval= ".a:keepvar
|
exe "let keepvarval= ".a:keepvar
|
||||||
exe "let setting= ".a:setting
|
exe "let setting= ".a:setting
|
||||||
@@ -2845,14 +2880,16 @@ fun! netrw#SetTreetop(iscmd,...)
|
|||||||
" call Decho("inittreetop<".(exists("inittreetop")? inittreetop : "n/a").">")
|
" call Decho("inittreetop<".(exists("inittreetop")? inittreetop : "n/a").">")
|
||||||
|
|
||||||
if (a:iscmd == 0 || a:1 == "") && exists("inittreetop")
|
if (a:iscmd == 0 || a:1 == "") && exists("inittreetop")
|
||||||
let treedir= s:NetrwTreePath(inittreetop)
|
let treedir = s:NetrwTreePath(inittreetop)
|
||||||
" call Decho("treedir<".treedir.">",'~'.expand("<slnum>"))
|
" call Decho("treedir<".treedir.">",'~'.expand("<slnum>"))
|
||||||
else
|
else
|
||||||
if isdirectory(s:NetrwFile(a:1))
|
if isdirectory(s:NetrwFile(a:1))
|
||||||
" call Decho("a:1<".a:1."> is a directory",'~'.expand("<slnum>"))
|
" call Decho("a:1<".a:1."> is a directory",'~'.expand("<slnum>"))
|
||||||
let treedir= a:1
|
let treedir = a:1
|
||||||
|
let s:netrw_treetop = treedir
|
||||||
elseif exists("b:netrw_curdir") && (isdirectory(s:NetrwFile(b:netrw_curdir."/".a:1)) || a:1 =~ '^\a\{3,}://')
|
elseif exists("b:netrw_curdir") && (isdirectory(s:NetrwFile(b:netrw_curdir."/".a:1)) || a:1 =~ '^\a\{3,}://')
|
||||||
let treedir= b:netrw_curdir."/".a:1
|
let treedir = b:netrw_curdir."/".a:1
|
||||||
|
let s:netrw_treetop = treedir
|
||||||
" call Decho("a:1<".a:1."> is NOT a directory, using treedir<".treedir.">",'~'.expand("<slnum>"))
|
" call Decho("a:1<".a:1."> is NOT a directory, using treedir<".treedir.">",'~'.expand("<slnum>"))
|
||||||
else
|
else
|
||||||
" normally the cursor is left in the message window.
|
" normally the cursor is left in the message window.
|
||||||
@@ -2860,7 +2897,8 @@ fun! netrw#SetTreetop(iscmd,...)
|
|||||||
let netrwbuf= bufnr("%")
|
let netrwbuf= bufnr("%")
|
||||||
call netrw#ErrorMsg(s:ERROR,"sorry, ".a:1." doesn't seem to be a directory!",95)
|
call netrw#ErrorMsg(s:ERROR,"sorry, ".a:1." doesn't seem to be a directory!",95)
|
||||||
exe bufwinnr(netrwbuf)."wincmd w"
|
exe bufwinnr(netrwbuf)."wincmd w"
|
||||||
let treedir= "."
|
let treedir = "."
|
||||||
|
let s:netrw_treetop = getcwd()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
" call Decho("treedir<".treedir.">",'~'.expand("<slnum>"))
|
" call Decho("treedir<".treedir.">",'~'.expand("<slnum>"))
|
||||||
@@ -4115,6 +4153,7 @@ fun! s:NetrwFileInfo(islocal,fname)
|
|||||||
elseif g:netrw_sizestyle =~# 'h'
|
elseif g:netrw_sizestyle =~# 'h'
|
||||||
let lsopt= "-lsadh --si"
|
let lsopt= "-lsadh --si"
|
||||||
endif
|
endif
|
||||||
|
" call Decho("(s:NetrwFileInfo) lsopt<".lsopt.">")
|
||||||
if (has("unix") || has("macunix")) && executable("/bin/ls")
|
if (has("unix") || has("macunix")) && executable("/bin/ls")
|
||||||
|
|
||||||
if getline(".") == "../"
|
if getline(".") == "../"
|
||||||
@@ -4176,9 +4215,10 @@ endfun
|
|||||||
" s:NetrwGetBuffer: [get a new|find an old netrw] buffer for a netrw listing {{{2
|
" s:NetrwGetBuffer: [get a new|find an old netrw] buffer for a netrw listing {{{2
|
||||||
" returns 0=cleared buffer
|
" returns 0=cleared buffer
|
||||||
" 1=re-used buffer (buffer not cleared)
|
" 1=re-used buffer (buffer not cleared)
|
||||||
|
" Nov 09, 2020: tst952 shows that when user does :set hidden that NetrwGetBuffer will come up with a [No Name] buffer (hid fix)
|
||||||
fun! s:NetrwGetBuffer(islocal,dirname)
|
fun! s:NetrwGetBuffer(islocal,dirname)
|
||||||
" call Dfunc("s:NetrwGetBuffer(islocal=".a:islocal." dirname<".a:dirname.">) liststyle=".g:netrw_liststyle)
|
" call Dfunc("s:NetrwGetBuffer(islocal=".a:islocal." dirname<".a:dirname.">) liststyle=".g:netrw_liststyle)
|
||||||
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo,'~'.expand("<slnum>"))
|
" call Decho("settings buf#".bufnr("%")."<".bufname("%").">: ".((&l:ma == 0)? "no" : "")."ma ".((&l:mod == 0)? "no" : "")."mod ".((&l:bl == 0)? "no" : "")."bl ".((&l:ro == 0)? "no" : "")."ro fo=".&l:fo." hid=".&hid,'~'.expand("<slnum>"))
|
||||||
" call Decho("netrwbuf dictionary=".(exists("s:netrwbuf")? string(s:netrwbuf) : 'n/a'),'~'.expand("<slnum>"))
|
" call Decho("netrwbuf dictionary=".(exists("s:netrwbuf")? string(s:netrwbuf) : 'n/a'),'~'.expand("<slnum>"))
|
||||||
" call Dredir("ls!","s:NetrwGetBuffer")
|
" call Dredir("ls!","s:NetrwGetBuffer")
|
||||||
let dirname= a:dirname
|
let dirname= a:dirname
|
||||||
@@ -4228,17 +4268,26 @@ fun! s:NetrwGetBuffer(islocal,dirname)
|
|||||||
endif
|
endif
|
||||||
" call Decho(" bufnum#".bufnum,'~'.expand("<slnum>"))
|
" call Decho(" bufnum#".bufnum,'~'.expand("<slnum>"))
|
||||||
|
|
||||||
" highjack the current buffer if
|
" hijack the current buffer
|
||||||
" it has the desired name
|
" IF the buffer already has the desired name
|
||||||
" it is empty
|
" AND it is empty
|
||||||
" call Decho("deciding if I can highjack the current buffer#".bufnr("%"),'~'.expand("<slnum>"))
|
let curbuf = bufname("%")
|
||||||
" call Decho("..dirname<".dirname.">",'~'.expand("<slnum>"))
|
if curbuf == '.'
|
||||||
" call Decho("..bufname<".bufname("%").">",'~'.expand("<slnum>"))
|
let curbuf = getcwd()
|
||||||
" call Decho("..getline($)<".getline("$").">",'~'.expand("<slnum>"))
|
endif
|
||||||
if dirname == bufname("%") && line("$") == 1 && getline("%") == ""
|
" call Dredir("ls!","NetrwGetFile (renamed buffer back to remote filename<".rfile."> : expand(%)<".expand("%").">)")
|
||||||
|
" call Decho("deciding if netrw may hijack the current buffer#".bufnr("%")."<".curbuf.">",'~'.expand("<slnum>"))
|
||||||
|
" call Decho("..dirname<".dirname."> IF dirname == bufname",'~'.expand("<slnum>"))
|
||||||
|
" call Decho("..curbuf<".curbuf.">",'~'.expand("<slnum>"))
|
||||||
|
" call Decho("..line($)=".line("$")." AND this is 1",'~'.expand("<slnum>"))
|
||||||
|
" call Decho("..getline(%)<".getline("%")."> AND this line is empty",'~'.expand("<slnum>"))
|
||||||
|
if dirname == curbuf && line("$") == 1 && getline("%") == ""
|
||||||
" call Dret("s:NetrwGetBuffer 0<cleared buffer> : highjacking buffer#".bufnr("%"))
|
" call Dret("s:NetrwGetBuffer 0<cleared buffer> : highjacking buffer#".bufnr("%"))
|
||||||
return 0
|
return 0
|
||||||
|
else " DEBUG
|
||||||
|
" call Decho("..did NOT hijack buffer",'~'.expand("<slnum>"))
|
||||||
endif
|
endif
|
||||||
|
" Aug 14, 2021: was thinking about looking for a [No Name] buffer here and using it, but that might cause problems
|
||||||
|
|
||||||
" get enew buffer and name it -or- re-use buffer {{{3
|
" get enew buffer and name it -or- re-use buffer {{{3
|
||||||
if bufnum < 0 " get enew buffer and name it
|
if bufnum < 0 " get enew buffer and name it
|
||||||
@@ -4563,7 +4612,7 @@ fun! s:NetrwListStyle(islocal)
|
|||||||
" refresh the listing
|
" refresh the listing
|
||||||
" call Decho("refresh the listing",'~'.expand("<slnum>"))
|
" call Decho("refresh the listing",'~'.expand("<slnum>"))
|
||||||
NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./'))
|
NetrwKeepj call s:NetrwRefresh(a:islocal,s:NetrwBrowseChgDir(a:islocal,'./'))
|
||||||
NetrwKeepj call s:NetrwCursor()
|
NetrwKeepj call s:NetrwCursor(0)
|
||||||
|
|
||||||
" repoint t:netrw_lexbufnr if appropriate
|
" repoint t:netrw_lexbufnr if appropriate
|
||||||
if exists("repointlexbufnr")
|
if exists("repointlexbufnr")
|
||||||
@@ -4769,7 +4818,7 @@ fun! s:NetrwBrowseChgDir(islocal,newdir,...)
|
|||||||
endif
|
endif
|
||||||
" call Decho("b:netrw_curdir<".b:netrw_curdir.">")
|
" call Decho("b:netrw_curdir<".b:netrw_curdir.">")
|
||||||
|
|
||||||
" NetrwBrowseChgDir: save options and initialize {{{3
|
" NetrwBrowseChgDir; save options and initialize {{{3
|
||||||
" call Decho("saving options",'~'.expand("<slnum>"))
|
" call Decho("saving options",'~'.expand("<slnum>"))
|
||||||
call s:SavePosn(s:netrw_posn)
|
call s:SavePosn(s:netrw_posn)
|
||||||
NetrwKeepj call s:NetrwOptionsSave("s:")
|
NetrwKeepj call s:NetrwOptionsSave("s:")
|
||||||
@@ -4837,6 +4886,8 @@ fun! s:NetrwBrowseChgDir(islocal,newdir,...)
|
|||||||
if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict") && newdir !~ '^\(/\|\a:\)'
|
if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST && exists("w:netrw_treedict") && newdir !~ '^\(/\|\a:\)'
|
||||||
" call Decho("edit-a-file: handle tree listing: w:netrw_treedict<".(exists("w:netrw_treedict")? string(w:netrw_treedict) : 'n/a').">",'~'.expand("<slnum>"))
|
" call Decho("edit-a-file: handle tree listing: w:netrw_treedict<".(exists("w:netrw_treedict")? string(w:netrw_treedict) : 'n/a').">",'~'.expand("<slnum>"))
|
||||||
" call Decho("edit-a-file: newdir<".newdir.">",'~'.expand("<slnum>"))
|
" call Decho("edit-a-file: newdir<".newdir.">",'~'.expand("<slnum>"))
|
||||||
|
" let newdir = s:NetrwTreePath(s:netrw_treetop)
|
||||||
|
" call Decho("edit-a-file: COMBAK why doesn't this recognize file1's directory???")
|
||||||
let dirname= s:NetrwTreeDir(a:islocal)
|
let dirname= s:NetrwTreeDir(a:islocal)
|
||||||
"COMBAK : not working for a symlink -- but what about a regular file? a directory?
|
"COMBAK : not working for a symlink -- but what about a regular file? a directory?
|
||||||
" call Decho("COMBAK : not working for a symlink -- but what about a regular file? a directory?")
|
" call Decho("COMBAK : not working for a symlink -- but what about a regular file? a directory?")
|
||||||
@@ -4950,7 +5001,8 @@ fun! s:NetrwBrowseChgDir(islocal,newdir,...)
|
|||||||
exe "NetrwKeepj e ".fnameescape(dirname)
|
exe "NetrwKeepj e ".fnameescape(dirname)
|
||||||
endif
|
endif
|
||||||
" call Decho("edit-a-file: after e! ".dirname.": hidden=".&hidden." bufhidden<".&bufhidden."> mod=".&mod,'~'.expand("<slnum>"))
|
" call Decho("edit-a-file: after e! ".dirname.": hidden=".&hidden." bufhidden<".&bufhidden."> mod=".&mod,'~'.expand("<slnum>"))
|
||||||
call s:NetrwCursor()
|
" COMBAK -- cuc cul related
|
||||||
|
call s:NetrwCursor(1)
|
||||||
if &hidden || &bufhidden == "hide"
|
if &hidden || &bufhidden == "hide"
|
||||||
" file came from vim's hidden storage. Don't "restore" options with it.
|
" file came from vim's hidden storage. Don't "restore" options with it.
|
||||||
let dorestore= 0
|
let dorestore= 0
|
||||||
@@ -4971,8 +5023,8 @@ fun! s:NetrwBrowseChgDir(islocal,newdir,...)
|
|||||||
elseif type(g:Netrw_funcref) == 3
|
elseif type(g:Netrw_funcref) == 3
|
||||||
" call Decho("edit-a-file: handling a list of g:Netrw_funcrefs",'~'.expand("<slnum>"))
|
" call Decho("edit-a-file: handling a list of g:Netrw_funcrefs",'~'.expand("<slnum>"))
|
||||||
for Fncref in g:Netrw_funcref
|
for Fncref in g:Netrw_funcref
|
||||||
if type(FncRef) == 2
|
if type(Fncref) == 2
|
||||||
NetrwKeepj call FncRef()
|
NetrwKeepj call Fncref()
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
@@ -5264,6 +5316,12 @@ fun! netrw#BrowseX(fname,remote)
|
|||||||
endif
|
endif
|
||||||
" call Decho("not a local file nor a webpage request",'~'.expand("<slnum>"))
|
" call Decho("not a local file nor a webpage request",'~'.expand("<slnum>"))
|
||||||
|
|
||||||
|
if exists("g:netrw_browsex_viewer") && exists("g:netrw_browsex_support_remote") && !g:netrw_browsex_support_remote
|
||||||
|
let remote = a:remote
|
||||||
|
else
|
||||||
|
let remote = 0
|
||||||
|
endif
|
||||||
|
|
||||||
let ykeep = @@
|
let ykeep = @@
|
||||||
let screenposn = winsaveview()
|
let screenposn = winsaveview()
|
||||||
" call Decho("saving posn to screenposn<".string(screenposn).">",'~'.expand("<slnum>"))
|
" call Decho("saving posn to screenposn<".string(screenposn).">",'~'.expand("<slnum>"))
|
||||||
@@ -5308,9 +5366,9 @@ fun! netrw#BrowseX(fname,remote)
|
|||||||
endif
|
endif
|
||||||
" call Decho("exten<".exten.">",'~'.expand("<slnum>"))
|
" call Decho("exten<".exten.">",'~'.expand("<slnum>"))
|
||||||
|
|
||||||
if a:remote == 1
|
if remote == 1
|
||||||
" create a local copy
|
" create a local copy
|
||||||
" call Decho("remote: a:remote=".a:remote.": create a local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
" call Decho("remote: remote=".remote.": create a local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
||||||
setl bh=delete
|
setl bh=delete
|
||||||
call netrw#NetRead(3,a:fname)
|
call netrw#NetRead(3,a:fname)
|
||||||
" attempt to rename tempfile
|
" attempt to rename tempfile
|
||||||
@@ -5332,7 +5390,7 @@ fun! netrw#BrowseX(fname,remote)
|
|||||||
let fname= s:netrw_tmpfile
|
let fname= s:netrw_tmpfile
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
" call Decho("local: a:remote=".a:remote.": handling local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
" call Decho("local: remote=".remote.": handling local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
||||||
let fname= a:fname
|
let fname= a:fname
|
||||||
" special ~ handler for local
|
" special ~ handler for local
|
||||||
if fname =~ '^\~' && expand("$HOME") != ""
|
if fname =~ '^\~' && expand("$HOME") != ""
|
||||||
@@ -5426,8 +5484,8 @@ fun! netrw#BrowseX(fname,remote)
|
|||||||
if a:fname =~ '^https\=://'
|
if a:fname =~ '^https\=://'
|
||||||
" atril does not appear to understand how to handle html -- so use gvim to edit the document
|
" atril does not appear to understand how to handle html -- so use gvim to edit the document
|
||||||
let use_ctrlo= 0
|
let use_ctrlo= 0
|
||||||
" call Decho("(COMBAK) fname<".fname.">")
|
" call Decho("fname<".fname.">")
|
||||||
" call Decho("(COMBAK) a:fname<".a:fname.">")
|
" call Decho("a:fname<".a:fname.">")
|
||||||
call s:NetrwExe("sil! !gvim ".fname.' -c "keepj keepalt file '.fnameescape(a:fname).'"')
|
call s:NetrwExe("sil! !gvim ".fname.' -c "keepj keepalt file '.fnameescape(a:fname).'"')
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -5475,12 +5533,12 @@ fun! netrw#BrowseX(fname,remote)
|
|||||||
" return to prior buffer (directory listing)
|
" return to prior buffer (directory listing)
|
||||||
" Feb 12, 2008: had to de-activiate removal of
|
" Feb 12, 2008: had to de-activiate removal of
|
||||||
" temporary file because it wasn't getting seen.
|
" temporary file because it wasn't getting seen.
|
||||||
" if a:remote == 1 && fname != a:fname
|
" if remote == 1 && fname != a:fname
|
||||||
"" call Decho("deleting temporary file<".fname.">",'~'.expand("<slnum>"))
|
"" call Decho("deleting temporary file<".fname.">",'~'.expand("<slnum>"))
|
||||||
" call s:NetrwDelete(fname)
|
" call s:NetrwDelete(fname)
|
||||||
" endif
|
" endif
|
||||||
|
|
||||||
if a:remote == 1
|
if remote == 1
|
||||||
setl bh=delete bt=nofile
|
setl bh=delete bt=nofile
|
||||||
if g:netrw_use_noswf
|
if g:netrw_use_noswf
|
||||||
setl noswf
|
setl noswf
|
||||||
@@ -5539,7 +5597,7 @@ fun! s:NetrwBufRename(newname)
|
|||||||
let b:junk= 1
|
let b:junk= 1
|
||||||
" call Decho("rename buffer: sil! keepj keepalt file ".fnameescape(a:newname),'~'.expand("<slnum>"))
|
" call Decho("rename buffer: sil! keepj keepalt file ".fnameescape(a:newname),'~'.expand("<slnum>"))
|
||||||
exe 'sil! keepj keepalt file '.fnameescape(a:newname)
|
exe 'sil! keepj keepalt file '.fnameescape(a:newname)
|
||||||
" call Dredir("ls!","s:NetrwBufRename (before bwipe)")
|
" call Dredir("ls!","s:NetrwBufRename (before bwipe)~".expand("<slnum>"))
|
||||||
let oldbufnr= bufnr(oldbufname)
|
let oldbufnr= bufnr(oldbufname)
|
||||||
" call Decho("oldbufname<".oldbufname."> oldbufnr#".oldbufnr,'~'.expand("<slnum>"))
|
" call Decho("oldbufname<".oldbufname."> oldbufnr#".oldbufnr,'~'.expand("<slnum>"))
|
||||||
" call Decho("bufnr(%)=".bufnr("%"),'~'.expand("<slnum>"))
|
" call Decho("bufnr(%)=".bufnr("%"),'~'.expand("<slnum>"))
|
||||||
@@ -5548,6 +5606,9 @@ fun! s:NetrwBufRename(newname)
|
|||||||
exe "bwipe! ".oldbufnr
|
exe "bwipe! ".oldbufnr
|
||||||
" else " Decho
|
" else " Decho
|
||||||
" call Decho("did *not* bwipe buf#".oldbufnr,'~'.expand("<slnum>"))
|
" call Decho("did *not* bwipe buf#".oldbufnr,'~'.expand("<slnum>"))
|
||||||
|
" call Decho("..reason: if oldbufname<".oldbufname."> is empty",'~'.expand("<slnum>"))"
|
||||||
|
" call Decho("..reason: if oldbufnr#".oldbufnr." is -1",'~'.expand("<slnum>"))"
|
||||||
|
" call Decho("..reason: if oldbufnr#".oldbufnr." != bufnr(%)#".bufnr("%"),'~'.expand("<slnum>"))"
|
||||||
endif
|
endif
|
||||||
" call Dredir("ls!","s:NetrwBufRename (after rename)")
|
" call Dredir("ls!","s:NetrwBufRename (after rename)")
|
||||||
" else " Decho
|
" else " Decho
|
||||||
@@ -6536,7 +6597,7 @@ fun! s:NetrwMaps(islocal)
|
|||||||
if !hasmapto('<Plug>NetrwRefresh')
|
if !hasmapto('<Plug>NetrwRefresh')
|
||||||
nmap <buffer> <unique> <c-l> <Plug>NetrwRefresh
|
nmap <buffer> <unique> <c-l> <Plug>NetrwRefresh
|
||||||
endif
|
endif
|
||||||
nnoremap <buffer> <silent> <Plug>NetrwRefresh <c-l>:call <SID>NetrwRefresh(1,<SID>NetrwBrowseChgDir(1,(w:netrw_liststyle == 3)? w:netrw_treetop : './'))<cr>
|
nnoremap <buffer> <silent> <Plug>NetrwRefresh <c-l>:call <SID>NetrwRefresh(1,<SID>NetrwBrowseChgDir(1,(exists("w:netrw_liststyle") && exists("w:netrw_treetop") && w:netrw_liststyle == 3)? w:netrw_treetop : './'))<cr>
|
||||||
if s:didstarstar || !mapcheck("<s-down>","n")
|
if s:didstarstar || !mapcheck("<s-down>","n")
|
||||||
nnoremap <buffer> <silent> <s-down> :Nexplore<cr>
|
nnoremap <buffer> <silent> <s-down> :Nexplore<cr>
|
||||||
endif
|
endif
|
||||||
@@ -6785,7 +6846,7 @@ fun! s:NetrwMarkFile(islocal,fname)
|
|||||||
|
|
||||||
" sanity check
|
" sanity check
|
||||||
if empty(a:fname)
|
if empty(a:fname)
|
||||||
" call Dret("s:NetrwMarkFile : emtpy fname")
|
" call Dret("s:NetrwMarkFile : empty fname")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let curdir = s:NetrwGetCurdir(a:islocal)
|
let curdir = s:NetrwGetCurdir(a:islocal)
|
||||||
@@ -8164,6 +8225,23 @@ fun! s:NetrwOpenFile(islocal)
|
|||||||
call inputsave()
|
call inputsave()
|
||||||
let fname= input("Enter filename: ")
|
let fname= input("Enter filename: ")
|
||||||
call inputrestore()
|
call inputrestore()
|
||||||
|
" call Decho("(s:NetrwOpenFile) fname<".fname.">",'~'.expand("<slnum>"))
|
||||||
|
|
||||||
|
" determine if Lexplore is in use
|
||||||
|
if exists("t:netrw_lexbufnr")
|
||||||
|
" check if t:netrw_lexbufnr refers to a netrw window
|
||||||
|
" call Decho("(s:netrwOpenFile) ..t:netrw_lexbufnr=".t:netrw_lexbufnr,'~'.expand("<slnum>"))
|
||||||
|
let lexwinnr = bufwinnr(t:netrw_lexbufnr)
|
||||||
|
if lexwinnr != -1 && exists("g:netrw_chgwin") && g:netrw_chgwin != -1
|
||||||
|
" call Decho("(s:netrwOpenFile) ..Lexplore in use",'~'.expand("<slnum>"))
|
||||||
|
exe "NetrwKeepj keepalt ".g:netrw_chgwin."wincmd w"
|
||||||
|
exe "NetrwKeepj e ".fnameescape(fname)
|
||||||
|
let @@= ykeep
|
||||||
|
" call Dret("s:NetrwOpenFile : creating a file with Lexplore mode")
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Does the filename contain a path?
|
||||||
if fname !~ '[/\\]'
|
if fname !~ '[/\\]'
|
||||||
if exists("b:netrw_curdir")
|
if exists("b:netrw_curdir")
|
||||||
if exists("g:netrw_quiet")
|
if exists("g:netrw_quiet")
|
||||||
@@ -8502,6 +8580,7 @@ fun! s:NetrwPrevWinOpen(islocal)
|
|||||||
let lastwinnr = winnr("$")
|
let lastwinnr = winnr("$")
|
||||||
let curword = s:NetrwGetWord()
|
let curword = s:NetrwGetWord()
|
||||||
let choice = 0
|
let choice = 0
|
||||||
|
let s:prevwinopen= 1 " lets s:NetrwTreeDir() know that NetrwPrevWinOpen called it
|
||||||
let s:treedir = s:NetrwTreeDir(a:islocal)
|
let s:treedir = s:NetrwTreeDir(a:islocal)
|
||||||
let curdir = s:treedir
|
let curdir = s:treedir
|
||||||
" call Decho("winnr($)#".lastwinnr." curword<".curword.">",'~'.expand("<slnum>"))
|
" call Decho("winnr($)#".lastwinnr." curword<".curword.">",'~'.expand("<slnum>"))
|
||||||
@@ -8829,7 +8908,7 @@ fun! s:NetrwPreview(path) range
|
|||||||
" 0 : 1: top -- preview window is horizontally split off and on the top
|
" 0 : 1: top -- preview window is horizontally split off and on the top
|
||||||
" 0 : 0: bot -- preview window is horizontally split off and on the bottom
|
" 0 : 0: bot -- preview window is horizontally split off and on the bottom
|
||||||
"
|
"
|
||||||
" Note that the file being previewed is already known to not be a directory, hence we can avoid doing a LocalBrowse() check via
|
" Note that the file being previewed is already known to not be a directory, hence we can avoid doing a LocalBrowseCheck() check via
|
||||||
" the BufEnter event set up in netrwPlugin.vim
|
" the BufEnter event set up in netrwPlugin.vim
|
||||||
" call Decho("exe ".(g:netrw_alto? "top " : "bot ").(g:netrw_preview? "vert " : "")."pedit ".fnameescape(a:path),'~'.expand("<slnum>"))
|
" call Decho("exe ".(g:netrw_alto? "top " : "bot ").(g:netrw_preview? "vert " : "")."pedit ".fnameescape(a:path),'~'.expand("<slnum>"))
|
||||||
let eikeep = &ei
|
let eikeep = &ei
|
||||||
@@ -9264,14 +9343,20 @@ fun! s:NetrwTreeDir(islocal)
|
|||||||
" call Decho("g:netrw_keepdir =".(exists("g:netrw_keepdir")? g:netrw_keepdir : 'n/a'),'~'.expand("<slnum>"))
|
" call Decho("g:netrw_keepdir =".(exists("g:netrw_keepdir")? g:netrw_keepdir : 'n/a'),'~'.expand("<slnum>"))
|
||||||
" call Decho("w:netrw_liststyle=".(exists("w:netrw_liststyle")? w:netrw_liststyle : 'n/a'),'~'.expand("<slnum>"))
|
" call Decho("w:netrw_liststyle=".(exists("w:netrw_liststyle")? w:netrw_liststyle : 'n/a'),'~'.expand("<slnum>"))
|
||||||
" call Decho("w:netrw_treetop =".(exists("w:netrw_treetop")? w:netrw_treetop : 'n/a'),'~'.expand("<slnum>"))
|
" call Decho("w:netrw_treetop =".(exists("w:netrw_treetop")? w:netrw_treetop : 'n/a'),'~'.expand("<slnum>"))
|
||||||
|
" call Decho("current line<".getline(".").">")
|
||||||
|
|
||||||
if exists("s:treedir")
|
if exists("s:treedir") && exists("s:prevwinopen")
|
||||||
" s:NetrwPrevWinOpen opens a "previous" window -- and thus needs to and does call s:NetrwTreeDir early
|
" s:NetrwPrevWinOpen opens a "previous" window -- and thus needs to and does call s:NetrwTreeDir early
|
||||||
|
" call Decho('s:NetrwPrevWinOpen opens a "previous" window -- and thus needs to and does call s:NetrwTreeDir early')
|
||||||
let treedir= s:treedir
|
let treedir= s:treedir
|
||||||
unlet s:treedir
|
unlet s:treedir
|
||||||
" call Dret("s:NetrwTreeDir ".treedir)
|
unlet s:prevwinopen
|
||||||
|
" call Dret("s:NetrwTreeDir ".treedir.": early return since s:treedir existed previously")
|
||||||
return treedir
|
return treedir
|
||||||
endif
|
endif
|
||||||
|
if exists("s:prevwinopen")
|
||||||
|
unlet s:prevwinopen
|
||||||
|
endif
|
||||||
|
|
||||||
if !exists("b:netrw_curdir") || b:netrw_curdir == ""
|
if !exists("b:netrw_curdir") || b:netrw_curdir == ""
|
||||||
let b:netrw_curdir= getcwd()
|
let b:netrw_curdir= getcwd()
|
||||||
@@ -9478,20 +9563,29 @@ endfun
|
|||||||
" Called by s:PerformListing()
|
" Called by s:PerformListing()
|
||||||
fun! s:NetrwTreeListing(dirname)
|
fun! s:NetrwTreeListing(dirname)
|
||||||
if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST
|
if exists("w:netrw_liststyle") && w:netrw_liststyle == s:TREELIST
|
||||||
" call Dfunc("NetrwTreeListing() bufname<".expand("%").">")
|
" call Dfunc("s:NetrwTreeListing() bufname<".expand("%").">")
|
||||||
" call Decho("curdir<".a:dirname.">",'~'.expand("<slnum>"))
|
" call Decho("curdir<".a:dirname.">",'~'.expand("<slnum>"))
|
||||||
" call Decho("win#".winnr().": w:netrw_treetop ".(exists("w:netrw_treetop")? "exists" : "doesn't exist")." w:netrw_treedict ".(exists("w:netrw_treedict")? "exists" : "doesn't exit"),'~'.expand("<slnum>"))
|
" call Decho("win#".winnr().": w:netrw_treetop ".(exists("w:netrw_treetop")? "exists" : "doesn't exist")." w:netrw_treedict ".(exists("w:netrw_treedict")? "exists" : "doesn't exit"),'~'.expand("<slnum>"))
|
||||||
" call Decho("g:netrw_banner=".g:netrw_banner.": banner ".(g:netrw_banner? "enabled" : "suppressed").": (line($)=".line("$")." byte2line(1)=".byte2line(1)." bannercnt=".w:netrw_bannercnt.")",'~'.expand("<slnum>"))
|
" call Decho("g:netrw_banner=".g:netrw_banner.": banner ".(g:netrw_banner? "enabled" : "suppressed").": (line($)=".line("$")." byte2line(1)=".byte2line(1)." bannercnt=".w:netrw_bannercnt.")",'~'.expand("<slnum>"))
|
||||||
|
|
||||||
" update the treetop
|
" update the treetop
|
||||||
" call Decho("update the treetop",'~'.expand("<slnum>"))
|
|
||||||
if !exists("w:netrw_treetop")
|
if !exists("w:netrw_treetop")
|
||||||
|
" call Decho("update the treetop (w:netrw_treetop doesn't exist yet)",'~'.expand("<slnum>"))
|
||||||
let w:netrw_treetop= a:dirname
|
let w:netrw_treetop= a:dirname
|
||||||
|
let s:netrw_treetop= w:netrw_treetop
|
||||||
" call Decho("w:netrw_treetop<".w:netrw_treetop."> (reusing)",'~'.expand("<slnum>"))
|
" call Decho("w:netrw_treetop<".w:netrw_treetop."> (reusing)",'~'.expand("<slnum>"))
|
||||||
elseif (w:netrw_treetop =~ ('^'.a:dirname) && s:Strlen(a:dirname) < s:Strlen(w:netrw_treetop)) || a:dirname !~ ('^'.w:netrw_treetop)
|
elseif (w:netrw_treetop =~ ('^'.a:dirname) && s:Strlen(a:dirname) < s:Strlen(w:netrw_treetop)) || a:dirname !~ ('^'.w:netrw_treetop)
|
||||||
|
" call Decho("update the treetop (override w:netrw_treetop with a:dirname<".a:dirname.">)",'~'.expand("<slnum>"))
|
||||||
let w:netrw_treetop= a:dirname
|
let w:netrw_treetop= a:dirname
|
||||||
|
let s:netrw_treetop= w:netrw_treetop
|
||||||
" call Decho("w:netrw_treetop<".w:netrw_treetop."> (went up)",'~'.expand("<slnum>"))
|
" call Decho("w:netrw_treetop<".w:netrw_treetop."> (went up)",'~'.expand("<slnum>"))
|
||||||
endif
|
endif
|
||||||
|
if exists("w:netrw_treetop")
|
||||||
|
let s:netrw_treetop= w:netrw_treetop
|
||||||
|
else
|
||||||
|
let w:netrw_treetop= getcwd()
|
||||||
|
let s:netrw_treetop= w:netrw_treetop
|
||||||
|
endif
|
||||||
|
|
||||||
if !exists("w:netrw_treedict")
|
if !exists("w:netrw_treedict")
|
||||||
" insure that we have a treedict, albeit empty
|
" insure that we have a treedict, albeit empty
|
||||||
@@ -9529,7 +9623,7 @@ fun! s:NetrwTreeListing(dirname)
|
|||||||
|
|
||||||
exe "setl ".g:netrw_bufsettings
|
exe "setl ".g:netrw_bufsettings
|
||||||
|
|
||||||
" call Dret("NetrwTreeListing : bufname<".expand("%").">")
|
" call Dret("s:NetrwTreeListing : bufname<".expand("%").">")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
endfun
|
endfun
|
||||||
@@ -9637,7 +9731,7 @@ fun! s:NetrwWideListing()
|
|||||||
let newcolstart = w:netrw_bannercnt + fpc
|
let newcolstart = w:netrw_bannercnt + fpc
|
||||||
let newcolend = newcolstart + fpc - 1
|
let newcolend = newcolstart + fpc - 1
|
||||||
" call Decho("bannercnt=".w:netrw_bannercnt." fpl=".w:netrw_fpl." fpc=".fpc." newcol[".newcolstart.",".newcolend."]",'~'.expand("<slnum>"))
|
" call Decho("bannercnt=".w:netrw_bannercnt." fpl=".w:netrw_fpl." fpc=".fpc." newcol[".newcolstart.",".newcolend."]",'~'.expand("<slnum>"))
|
||||||
if has("clipboard")
|
if has("clipboard") && g:netrw_clipboard
|
||||||
" call Decho("(s:NetrwWideListing) save @* and @+",'~'.expand("<slnum>"))
|
" call Decho("(s:NetrwWideListing) save @* and @+",'~'.expand("<slnum>"))
|
||||||
sil! let keepregstar = @*
|
sil! let keepregstar = @*
|
||||||
sil! let keepregplus = @+
|
sil! let keepregplus = @+
|
||||||
@@ -10683,7 +10777,7 @@ endfun
|
|||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" netrw#LocalBrowseCheck: {{{2
|
" netrw#LocalBrowseCheck: {{{2
|
||||||
fun! netrw#LocalBrowseCheck(dirname)
|
fun! netrw#LocalBrowseCheck(dirname)
|
||||||
" This function is called by netrwPlugin.vim's s:LocalBrowse(), s:NetrwRexplore(),
|
" This function is called by netrwPlugin.vim's s:LocalBrowseCheck(), s:NetrwRexplore(),
|
||||||
" and by <cr> when atop a listed file/directory (via a buffer-local map)
|
" and by <cr> when atop a listed file/directory (via a buffer-local map)
|
||||||
"
|
"
|
||||||
" unfortunate interaction -- split window debugging can't be used here, must use
|
" unfortunate interaction -- split window debugging can't be used here, must use
|
||||||
@@ -10834,7 +10928,7 @@ endfun
|
|||||||
" Hiding a buffer means that it will be re-used when examined, hence "fast".
|
" Hiding a buffer means that it will be re-used when examined, hence "fast".
|
||||||
" (re-using a buffer may not be as accurate)
|
" (re-using a buffer may not be as accurate)
|
||||||
"
|
"
|
||||||
" s:netrw_events : doesn't exist, s:LocalFastBrowser() will install autocmds whena med or fast browsing
|
" s:netrw_events : doesn't exist, s:LocalFastBrowser() will install autocmds with medium-speed or fast browsing
|
||||||
" =1: autocmds installed, but ignore next FocusGained event to avoid initial double-refresh of listing.
|
" =1: autocmds installed, but ignore next FocusGained event to avoid initial double-refresh of listing.
|
||||||
" BufEnter may be first event, then a FocusGained event. Ignore the first FocusGained event.
|
" BufEnter may be first event, then a FocusGained event. Ignore the first FocusGained event.
|
||||||
" If :Explore used: it sets s:netrw_events to 2, so no FocusGained events are ignored.
|
" If :Explore used: it sets s:netrw_events to 2, so no FocusGained events are ignored.
|
||||||
@@ -10996,13 +11090,14 @@ fun! s:LocalListing()
|
|||||||
let sz= s:NetrwHumanReadable(sz)
|
let sz= s:NetrwHumanReadable(sz)
|
||||||
endif
|
endif
|
||||||
let longfile= printf("%-".(g:netrw_maxfilenamelen+1)."s",pfile)
|
let longfile= printf("%-".(g:netrw_maxfilenamelen+1)."s",pfile)
|
||||||
let pfile = longfile.fsz." ".strftime(g:netrw_timefmt,getftime(filename))
|
let pfile = longfile.sz." ".strftime(g:netrw_timefmt,getftime(filename))
|
||||||
" call Decho("longlist support: sz=".sz." fsz=".fsz,'~'.expand("<slnum>"))
|
" call Decho("longlist support: sz=".sz." fsz=".fsz,'~'.expand("<slnum>"))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if g:netrw_sort_by =~# "^t"
|
if g:netrw_sort_by =~# "^t"
|
||||||
" sort by time (handles time up to 1 quintillion seconds, US)
|
" sort by time (handles time up to 1 quintillion seconds, US)
|
||||||
" Decorate listing by prepending a timestamp/ . Sorting will then be done based on time.
|
" Decorate listing by prepending a timestamp/ . Sorting will then be done based on time.
|
||||||
|
" call Decho("implementing g:netrw_sort_by=".g:netrw_sort_by." (time)")
|
||||||
" call Decho("getftime(".filename.")=".getftime(filename),'~'.expand("<slnum>"))
|
" call Decho("getftime(".filename.")=".getftime(filename),'~'.expand("<slnum>"))
|
||||||
let t = getftime(filename)
|
let t = getftime(filename)
|
||||||
let ft = strpart("000000000000000000",1,18-strlen(t)).t
|
let ft = strpart("000000000000000000",1,18-strlen(t)).t
|
||||||
@@ -11012,6 +11107,7 @@ fun! s:LocalListing()
|
|||||||
|
|
||||||
elseif g:netrw_sort_by =~ "^s"
|
elseif g:netrw_sort_by =~ "^s"
|
||||||
" sort by size (handles file sizes up to 1 quintillion bytes, US)
|
" sort by size (handles file sizes up to 1 quintillion bytes, US)
|
||||||
|
" call Decho("implementing g:netrw_sort_by=".g:netrw_sort_by." (size)")
|
||||||
" call Decho("getfsize(".filename.")=".getfsize(filename),'~'.expand("<slnum>"))
|
" call Decho("getfsize(".filename.")=".getfsize(filename),'~'.expand("<slnum>"))
|
||||||
let sz = getfsize(filename)
|
let sz = getfsize(filename)
|
||||||
if g:netrw_sizestyle =~# "[hH]"
|
if g:netrw_sizestyle =~# "[hH]"
|
||||||
@@ -11024,6 +11120,7 @@ fun! s:LocalListing()
|
|||||||
|
|
||||||
else
|
else
|
||||||
" sort by name
|
" sort by name
|
||||||
|
" call Decho("implementing g:netrw_sort_by=".g:netrw_sort_by." (name)")
|
||||||
" call Decho("exe NetrwKeepj put ='".pfile."'",'~'.expand("<slnum>"))
|
" call Decho("exe NetrwKeepj put ='".pfile."'",'~'.expand("<slnum>"))
|
||||||
sil! NetrwKeepj put=pfile
|
sil! NetrwKeepj put=pfile
|
||||||
endif
|
endif
|
||||||
@@ -11746,19 +11843,32 @@ endfun
|
|||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" s:NetrwCursor: responsible for setting cursorline/cursorcolumn based upon g:netrw_cursor {{{2
|
" s:NetrwCursor: responsible for setting cursorline/cursorcolumn based upon g:netrw_cursor {{{2
|
||||||
fun! s:NetrwCursor()
|
fun! s:NetrwCursor(editfile)
|
||||||
if !exists("w:netrw_liststyle")
|
if !exists("w:netrw_liststyle")
|
||||||
let w:netrw_liststyle= g:netrw_liststyle
|
let w:netrw_liststyle= g:netrw_liststyle
|
||||||
endif
|
endif
|
||||||
" call Dfunc("s:NetrwCursor() ft<".&ft."> liststyle=".w:netrw_liststyle." g:netrw_cursor=".g:netrw_cursor." s:netrw_usercuc=".s:netrw_usercuc." s:netrw_usercul=".s:netrw_usercul)
|
" call Dfunc("s:NetrwCursor() ft<".&ft."> liststyle=".w:netrw_liststyle." g:netrw_cursor=".g:netrw_cursor." s:netrw_usercuc=".s:netrw_usercuc." s:netrw_usercul=".s:netrw_usercul)
|
||||||
|
|
||||||
|
" call Decho("(s:NetrwCursor) COMBAK: cuc=".&l:cuc." cul=".&l:cul)
|
||||||
|
|
||||||
if &ft != "netrw"
|
if &ft != "netrw"
|
||||||
" if the current window isn't a netrw directory listing window, then use user cursorline/column
|
" if the current window isn't a netrw directory listing window, then use user cursorline/column
|
||||||
" settings. Affects when netrw is used to read/write a file using scp/ftp/etc.
|
" settings. Affects when netrw is used to read/write a file using scp/ftp/etc.
|
||||||
" call Decho("case ft!=netrw: use user cul,cuc",'~'.expand("<slnum>"))
|
" call Decho("case ft!=netrw: use user cul,cuc",'~'.expand("<slnum>"))
|
||||||
let &l:cursorline = s:netrw_usercul
|
|
||||||
let &l:cursorcolumn = s:netrw_usercuc
|
|
||||||
|
|
||||||
|
elseif g:netrw_cursor == 8
|
||||||
|
if w:netrw_liststyle == s:WIDELIST
|
||||||
|
setl cursorline
|
||||||
|
setl cursorcolumn
|
||||||
|
else
|
||||||
|
setl cursorline
|
||||||
|
endif
|
||||||
|
elseif g:netrw_cursor == 7
|
||||||
|
setl cursorline
|
||||||
|
elseif g:netrw_cursor == 6
|
||||||
|
if w:netrw_liststyle == s:WIDELIST
|
||||||
|
setl cursorline
|
||||||
|
endif
|
||||||
elseif g:netrw_cursor == 4
|
elseif g:netrw_cursor == 4
|
||||||
" all styles: cursorline, cursorcolumn
|
" all styles: cursorline, cursorcolumn
|
||||||
" call Decho("case g:netrw_cursor==4: setl cul cuc",'~'.expand("<slnum>"))
|
" call Decho("case g:netrw_cursor==4: setl cul cuc",'~'.expand("<slnum>"))
|
||||||
@@ -11775,26 +11885,22 @@ fun! s:NetrwCursor()
|
|||||||
else
|
else
|
||||||
" call Decho("case g:netrw_cursor==3 and not wide: setl cul (use user's cuc)",'~'.expand("<slnum>"))
|
" call Decho("case g:netrw_cursor==3 and not wide: setl cul (use user's cuc)",'~'.expand("<slnum>"))
|
||||||
setl cursorline
|
setl cursorline
|
||||||
let &l:cursorcolumn = s:netrw_usercuc
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
elseif g:netrw_cursor == 2
|
elseif g:netrw_cursor == 2
|
||||||
" thin-long-tree: cursorline, user's cursorcolumn
|
" thin-long-tree: cursorline, user's cursorcolumn
|
||||||
" wide : cursorline, user's cursorcolumn
|
" wide : cursorline, user's cursorcolumn
|
||||||
" call Decho("case g:netrw_cursor==2: setl cuc (use user's cul)",'~'.expand("<slnum>"))
|
" call Decho("case g:netrw_cursor==2: setl cuc (use user's cul)",'~'.expand("<slnum>"))
|
||||||
let &l:cursorcolumn = s:netrw_usercuc
|
|
||||||
setl cursorline
|
setl cursorline
|
||||||
|
|
||||||
elseif g:netrw_cursor == 1
|
elseif g:netrw_cursor == 1
|
||||||
" thin-long-tree: user's cursorline, user's cursorcolumn
|
" thin-long-tree: user's cursorline, user's cursorcolumn
|
||||||
" wide : cursorline, user's cursorcolumn
|
" wide : cursorline, user's cursorcolumn
|
||||||
let &l:cursorcolumn = s:netrw_usercuc
|
|
||||||
if w:netrw_liststyle == s:WIDELIST
|
if w:netrw_liststyle == s:WIDELIST
|
||||||
" call Decho("case g:netrw_cursor==2 and wide: setl cul (use user's cuc)",'~'.expand("<slnum>"))
|
" call Decho("case g:netrw_cursor==2 and wide: setl cul (use user's cuc)",'~'.expand("<slnum>"))
|
||||||
setl cursorline
|
setl cursorline
|
||||||
else
|
else
|
||||||
" call Decho("case g:netrw_cursor==2 and not wide: (use user's cul,cuc)",'~'.expand("<slnum>"))
|
" call Decho("case g:netrw_cursor==2 and not wide: (use user's cul,cuc)",'~'.expand("<slnum>"))
|
||||||
let &l:cursorline = s:netrw_usercul
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -11804,6 +11910,7 @@ fun! s:NetrwCursor()
|
|||||||
let &l:cursorcolumn = s:netrw_usercuc
|
let &l:cursorcolumn = s:netrw_usercuc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" call Decho("(s:NetrwCursor) COMBAK: cuc=".&l:cuc." cul=".&l:cul)
|
||||||
" call Dret("s:NetrwCursor : l:cursorline=".&l:cursorline." l:cursorcolumn=".&l:cursorcolumn)
|
" call Dret("s:NetrwCursor : l:cursorline=".&l:cursorline." l:cursorcolumn=".&l:cursorcolumn)
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
@@ -11817,6 +11924,7 @@ fun! s:RestoreCursorline()
|
|||||||
if exists("s:netrw_usercuc")
|
if exists("s:netrw_usercuc")
|
||||||
let &l:cursorcolumn = s:netrw_usercuc
|
let &l:cursorcolumn = s:netrw_usercuc
|
||||||
endif
|
endif
|
||||||
|
" call Decho("(s:RestoreCursorline) COMBAK: cuc=".&l:cuc." cul=".&l:cul)
|
||||||
" call Dret("s:RestoreCursorline : restored cul=".&l:cursorline." cuc=".&l:cursorcolumn)
|
" call Dret("s:RestoreCursorline : restored cul=".&l:cursorline." cuc=".&l:cursorcolumn)
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
@@ -11851,12 +11959,38 @@ fun! s:NetrwDelete(path)
|
|||||||
return result
|
return result
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" s:NetrwBufRemover: removes a buffer that: {{{2s
|
||||||
|
" has buffer-id > 1
|
||||||
|
" is unlisted
|
||||||
|
" is unnamed
|
||||||
|
" does not appear in any window
|
||||||
|
fun! s:NetrwBufRemover(bufid)
|
||||||
|
" call Dfunc("s:NetrwBufRemover(".a:bufid.")")
|
||||||
|
" call Decho("buf#".a:bufid." ".((a:bufid > 1)? ">" : "≯")." must be >1 for removal","~".expand("<slnum>"))
|
||||||
|
" call Decho("buf#".a:bufid." is ".(buflisted(a:bufid)? "listed" : "unlisted"),"~".expand("<slnum>"))
|
||||||
|
" call Decho("buf#".a:bufid." has name <".bufname(a:bufid).">","~".expand("<slnum>"))
|
||||||
|
" call Decho("buf#".a:bufid." has winid#".bufwinid(a:bufid),"~".expand("<slnum>"))
|
||||||
|
|
||||||
|
if a:bufid > 1 && !buflisted(a:bufid) && bufname(a:bufid) == "" && bufwinid(a:bufid) == -1
|
||||||
|
" call Decho("(s:NetrwBufRemover) removing buffer#".a:bufid,"~".expand("<slnum>"))
|
||||||
|
exe "bd! ".a:bufid
|
||||||
|
endif
|
||||||
|
|
||||||
|
" call Dret("s:NetrwBufRemover")
|
||||||
|
endfun
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" s:NetrwEnew: opens a new buffer, passes netrw buffer variables through {{{2
|
" s:NetrwEnew: opens a new buffer, passes netrw buffer variables through {{{2
|
||||||
fun! s:NetrwEnew(...)
|
fun! s:NetrwEnew(...)
|
||||||
" call Dfunc("s:NetrwEnew() a:0=".a:0." win#".winnr()." winnr($)=".winnr("$")." bufnr($)=".bufnr("$")." expand(%)<".expand("%").">")
|
" call Dfunc("s:NetrwEnew() a:0=".a:0." win#".winnr()." winnr($)=".winnr("$")." bufnr($)=".bufnr("$")." expand(%)<".expand("%").">")
|
||||||
" call Decho("curdir<".((a:0>0)? a:1 : "")."> buf#".bufnr("%")."<".bufname("%").">",'~'.expand("<slnum>"))
|
" call Decho("curdir<".((a:0>0)? a:1 : "")."> buf#".bufnr("%")."<".bufname("%").">",'~'.expand("<slnum>"))
|
||||||
|
|
||||||
|
" Clean out the last buffer:
|
||||||
|
" Check if the last buffer has # > 1, is unlisted, is unnamed, and does not appear in a window
|
||||||
|
" If so, delete it.
|
||||||
|
call s:NetrwBufRemover(bufnr("$"))
|
||||||
|
|
||||||
" grab a function-local-variable copy of buffer variables
|
" grab a function-local-variable copy of buffer variables
|
||||||
" call Decho("make function-local copy of netrw variables",'~'.expand("<slnum>"))
|
" call Decho("make function-local copy of netrw variables",'~'.expand("<slnum>"))
|
||||||
if exists("b:netrw_bannercnt") |let netrw_bannercnt = b:netrw_bannercnt |endif
|
if exists("b:netrw_bannercnt") |let netrw_bannercnt = b:netrw_bannercnt |endif
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" netrwSettings.vim: makes netrw settings simpler
|
" netrwSettings.vim: makes netrw settings simpler
|
||||||
" Date: Nov 09, 2016
|
" Date: Aug 12, 2021
|
||||||
" Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
" Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
||||||
" Version: 16
|
" Version: 17 ASTRO-ONLY
|
||||||
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
if exists("g:loaded_netrwSettings") || &cp
|
if exists("g:loaded_netrwSettings") || &cp
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_netrwSettings = "v16"
|
let g:loaded_netrwSettings = "v17"
|
||||||
if v:version < 700
|
if v:version < 700
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
||||||
@@ -31,7 +31,7 @@ endif
|
|||||||
" NetrwSettings: {{{1
|
" NetrwSettings: {{{1
|
||||||
fun! netrwSettings#NetrwSettings()
|
fun! netrwSettings#NetrwSettings()
|
||||||
" this call is here largely just to insure that netrw has been loaded
|
" this call is here largely just to insure that netrw has been loaded
|
||||||
call netrw#SavePosn()
|
call netrw#WinPath("")
|
||||||
if !exists("g:loaded_netrw")
|
if !exists("g:loaded_netrw")
|
||||||
echohl WarningMsg | echomsg "***sorry*** netrw needs to be loaded prior to using NetrwSettings" | echohl None
|
echohl WarningMsg | echomsg "***sorry*** netrw needs to be loaded prior to using NetrwSettings" | echohl None
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
" 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: 2018 Oct 10
|
" Last Change: 2021 Feb 08
|
||||||
"
|
"
|
||||||
" OPTIONS:
|
" OPTIONS:
|
||||||
"
|
"
|
||||||
" let g:phpcomplete_relax_static_constraint = 1/0 [default 0]
|
" let g:phpcomplete_relax_static_constraint = 1/0 [default 0]
|
||||||
" Enables completion for non-static methods when completing for static context (::).
|
" Enables completion for non-static methods when completing for static context (::).
|
||||||
" This generates E_STRICT level warning, but php calls these methods nontheless.
|
" This generates E_STRICT level warning, but php calls these methods nonetheless.
|
||||||
"
|
"
|
||||||
" let g:phpcomplete_complete_for_unknown_classes = 1/0 [default 0]
|
" let g:phpcomplete_complete_for_unknown_classes = 1/0 [default 0]
|
||||||
" Enables completion of variables and functions in "everything under the sun" fashion
|
" Enables completion of variables and functions in "everything under the sun" fashion
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
" This option controls the number of characters the user needs to type before
|
" This option controls the number of characters the user needs to type before
|
||||||
" the tags will be searched for namespaces and classes in typed out namespaces in
|
" the tags will be searched for namespaces and classes in typed out namespaces in
|
||||||
" "use ..." context. Setting this to 0 is not recommended because that means the code
|
" "use ..." context. Setting this to 0 is not recommended because that means the code
|
||||||
" have to scan every tag, and vim's taglist() function runs extremly slow with a
|
" have to scan every tag, and vim's taglist() function runs extremely slow with a
|
||||||
" "match everything" pattern.
|
" "match everything" pattern.
|
||||||
"
|
"
|
||||||
" let g:phpcomplete_parse_docblock_comments = 1/0 [default 0]
|
" let g:phpcomplete_parse_docblock_comments = 1/0 [default 0]
|
||||||
@@ -122,7 +122,6 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
" If exists b:php_menu it means completion was already constructed we
|
" If exists b:php_menu it means completion was already constructed we
|
||||||
" don't need to do anything more
|
" don't need to do anything more
|
||||||
if exists("b:php_menu")
|
if exists("b:php_menu")
|
||||||
@@ -148,8 +147,6 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
|||||||
try
|
try
|
||||||
let eventignore = &eventignore
|
let eventignore = &eventignore
|
||||||
let &eventignore = 'all'
|
let &eventignore = 'all'
|
||||||
let winheight = winheight(0)
|
|
||||||
let winnr = winnr()
|
|
||||||
|
|
||||||
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(getline(0, line('.')))
|
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(getline(0, line('.')))
|
||||||
|
|
||||||
@@ -183,7 +180,6 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if filereadable(classlocation)
|
if filereadable(classlocation)
|
||||||
let classfile = readfile(classlocation)
|
|
||||||
let classcontent = ''
|
let classcontent = ''
|
||||||
let classcontent .= "\n".phpcomplete#GetClassContents(classlocation, classname)
|
let classcontent .= "\n".phpcomplete#GetClassContents(classlocation, classname)
|
||||||
let sccontent = split(classcontent, "\n")
|
let sccontent = split(classcontent, "\n")
|
||||||
@@ -217,7 +213,6 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
|||||||
return phpcomplete#CompleteGeneral(a:base, current_namespace, imports)
|
return phpcomplete#CompleteGeneral(a:base, current_namespace, imports)
|
||||||
endif
|
endif
|
||||||
finally
|
finally
|
||||||
silent! exec winnr.'resize '.winheight
|
|
||||||
let &eventignore = eventignore
|
let &eventignore = eventignore
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
@@ -268,7 +263,7 @@ function! phpcomplete#CompleteUse(base) " {{{
|
|||||||
call add(no_namespace_matches, {'word': namespace_for_class.'\'.tag.name, 'kind': tag.kind, 'menu': tag.filename, 'info': tag.filename })
|
call add(no_namespace_matches, {'word': namespace_for_class.'\'.tag.name, 'kind': tag.kind, 'menu': tag.filename, 'info': tag.filename })
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
" if it seems that the tags file have namespace informations we can safely throw
|
" if it seems that the tags file have namespace information we can safely throw
|
||||||
" away namespaceless tag matches since we can be sure they are invalid
|
" away namespaceless tag matches since we can be sure they are invalid
|
||||||
if patched_ctags_detected
|
if patched_ctags_detected
|
||||||
no_namespace_matches = []
|
no_namespace_matches = []
|
||||||
@@ -810,7 +805,7 @@ function! phpcomplete#CompleteClassName(base, kinds, current_namespace, imports)
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
" resolve the typed in part with namespaces (if theres a \ in it)
|
" resolve the typed in part with namespaces (if there's a \ in it)
|
||||||
let [tag_match_pattern, namespace_for_class] = phpcomplete#ExpandClassName(a:base, a:current_namespace, a:imports)
|
let [tag_match_pattern, namespace_for_class] = phpcomplete#ExpandClassName(a:base, a:current_namespace, a:imports)
|
||||||
|
|
||||||
let tags = []
|
let tags = []
|
||||||
@@ -926,11 +921,11 @@ function! s:getNextCharWithPos(filelines, current_pos) " {{{
|
|||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
function! phpcomplete#EvaluateModifiers(modifiers, required_modifiers, prohibited_modifiers) " {{{
|
function! phpcomplete#EvaluateModifiers(modifiers, required_modifiers, prohibited_modifiers) " {{{
|
||||||
" if theres no modifier, and no modifier is allowed and no modifier is required
|
" if there's no modifier, and no modifier is allowed and no modifier is required
|
||||||
if len(a:modifiers) == 0 && len(a:required_modifiers) == 0
|
if len(a:modifiers) == 0 && len(a:required_modifiers) == 0
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
" check if every requred modifier is present
|
" check if every required modifier is present
|
||||||
for required_modifier in a:required_modifiers
|
for required_modifier in a:required_modifiers
|
||||||
if index(a:modifiers, required_modifier) == -1
|
if index(a:modifiers, required_modifier) == -1
|
||||||
return 0
|
return 0
|
||||||
@@ -1025,7 +1020,7 @@ function! phpcomplete#CompleteUserClass(context, base, sccontent, visibility) "
|
|||||||
let c_var = '$'.c_var
|
let c_var = '$'.c_var
|
||||||
endif
|
endif
|
||||||
let c_variables[c_var] = ''
|
let c_variables[c_var] = ''
|
||||||
if g:phpcomplete_parse_docblock_comments && len(get(variables, var_index)) > 0
|
if g:phpcomplete_parse_docblock_comments && len(get(variables, var_index, '')) > 0
|
||||||
let c_doc[c_var] = phpcomplete#GetDocBlock(a:sccontent, variables[var_index])
|
let c_doc[c_var] = phpcomplete#GetDocBlock(a:sccontent, variables[var_index])
|
||||||
endif
|
endif
|
||||||
let var_index += 1
|
let var_index += 1
|
||||||
@@ -1258,7 +1253,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" save the coma position for later use if theres a "naked" , possibly separating a parameter and it is not in a parented part
|
" save the coma position for later use if there's a "naked" , possibly separating a parameter and it is not in a parented part
|
||||||
if first_coma_break_pos == -1 && current_char == ','
|
if first_coma_break_pos == -1 && current_char == ','
|
||||||
let first_coma_break_pos = len(instruction)
|
let first_coma_break_pos = len(instruction)
|
||||||
endif
|
endif
|
||||||
@@ -1304,7 +1299,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
|
|||||||
|
|
||||||
" there were a "naked" coma in the instruction
|
" there were a "naked" coma in the instruction
|
||||||
if first_coma_break_pos != -1
|
if first_coma_break_pos != -1
|
||||||
if instruction !~? '^use' && instruction !~? '^class' " use ... statements and class delcarations should not be broken up by comas
|
if instruction !~? '^use' && instruction !~? '^class' " use ... statements and class declarations should not be broken up by comas
|
||||||
let pos = (-1 * first_coma_break_pos) + 1
|
let pos = (-1 * first_coma_break_pos) + 1
|
||||||
let instruction = instruction[pos :]
|
let instruction = instruction[pos :]
|
||||||
endif
|
endif
|
||||||
@@ -1316,7 +1311,7 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
|
|||||||
" clear everything up until the first (
|
" clear everything up until the first (
|
||||||
let instruction = substitute(instruction, '^\(if\|while\|foreach\|for\)\s*(\s*', '', '')
|
let instruction = substitute(instruction, '^\(if\|while\|foreach\|for\)\s*(\s*', '', '')
|
||||||
|
|
||||||
" lets iterate trough the instruction until we can find the pair for the opening (
|
" lets iterate through the instruction until we can find the pair for the opening (
|
||||||
let i = 0
|
let i = 0
|
||||||
let depth = 1
|
let depth = 1
|
||||||
while i < len(instruction)
|
while i < len(instruction)
|
||||||
@@ -1424,7 +1419,7 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
|
|||||||
let parts = split(substitute(type, '^\\', '', ''), '\')
|
let parts = split(substitute(type, '^\\', '', ''), '\')
|
||||||
let class_candidate_namespace = join(parts[0:-2], '\')
|
let class_candidate_namespace = join(parts[0:-2], '\')
|
||||||
let classname_candidate = parts[-1]
|
let classname_candidate = parts[-1]
|
||||||
" check for renamed namepsace in imports
|
" check for renamed namespace in imports
|
||||||
if has_key(classstructure.imports, class_candidate_namespace)
|
if has_key(classstructure.imports, class_candidate_namespace)
|
||||||
let class_candidate_namespace = classstructure.imports[class_candidate_namespace].name
|
let class_candidate_namespace = classstructure.imports[class_candidate_namespace].name
|
||||||
endif
|
endif
|
||||||
@@ -2023,7 +2018,7 @@ function! phpcomplete#GetCachedClassContents(classlocation, class_name) " {{{
|
|||||||
if getftime(classstructure.file) != classstructure.mtime
|
if getftime(classstructure.file) != classstructure.mtime
|
||||||
let valid = 0
|
let valid = 0
|
||||||
" we could break here, but the time required for checking probably worth
|
" we could break here, but the time required for checking probably worth
|
||||||
" the the memory we can free by checking every file in the cached hirearchy
|
" the the memory we can free by checking every file in the cached hierarchy
|
||||||
call phpcomplete#ClearCachedClassContents(classstructure.file)
|
call phpcomplete#ClearCachedClassContents(classstructure.file)
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
@@ -2037,7 +2032,7 @@ function! phpcomplete#GetCachedClassContents(classlocation, class_name) " {{{
|
|||||||
call remove(s:cache_classstructures, cache_key)
|
call remove(s:cache_classstructures, cache_key)
|
||||||
call phpcomplete#ClearCachedClassContents(full_file_path)
|
call phpcomplete#ClearCachedClassContents(full_file_path)
|
||||||
|
|
||||||
" fall trough for the read from files path
|
" fall through for the read from files path
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
call phpcomplete#ClearCachedClassContents(full_file_path)
|
call phpcomplete#ClearCachedClassContents(full_file_path)
|
||||||
@@ -2082,26 +2077,17 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
|||||||
" ...
|
" ...
|
||||||
" ]
|
" ]
|
||||||
"
|
"
|
||||||
let full_file_path = fnamemodify(a:file_path, ':p')
|
|
||||||
let class_name_pattern = '[a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
let class_name_pattern = '[a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
||||||
let cfile = join(a:file_lines, "\n")
|
let full_file_path = fnamemodify(a:file_path, ':p')
|
||||||
let result = []
|
let result = []
|
||||||
" We use new buffer and (later) normal! because
|
let popup_id = popup_create(a:file_lines, {'hidden': v:true})
|
||||||
" this is the most efficient way. The other way
|
|
||||||
" is to go through the looong string looking for
|
|
||||||
" matching {}
|
|
||||||
|
|
||||||
" remember the window we started at
|
call win_execute(popup_id, 'call search(''\c\(class\|interface\|trait\)\_s\+'.a:class_name.'\(\>\|$\)'')')
|
||||||
let phpcomplete_original_window = winnr()
|
call win_execute(popup_id, "let cfline = line('.')")
|
||||||
|
call win_execute(popup_id, "call search('{')")
|
||||||
|
call win_execute(popup_id, "let endline = line('.')")
|
||||||
|
|
||||||
silent! below 1new
|
call win_execute(popup_id, 'let content = join(getline('.cfline.', '.endline.'), "\n")')
|
||||||
silent! 0put =cfile
|
|
||||||
call search('\c\(class\|interface\|trait\)\_s\+'.a:class_name.'\(\>\|$\)')
|
|
||||||
let cfline = line('.')
|
|
||||||
call search('{')
|
|
||||||
let endline = line('.')
|
|
||||||
|
|
||||||
let content = join(getline(cfline, endline), "\n")
|
|
||||||
" Catch extends
|
" Catch extends
|
||||||
if content =~? 'extends'
|
if content =~? 'extends'
|
||||||
let extends_string = matchstr(content, '\(class\|interface\)\_s\+'.a:class_name.'\_.\+extends\_s\+\zs\('.class_name_pattern.'\(,\|\_s\)*\)\+\ze\(extends\|{\)')
|
let extends_string = matchstr(content, '\(class\|interface\)\_s\+'.a:class_name.'\_.\+extends\_s\+\zs\('.class_name_pattern.'\(,\|\_s\)*\)\+\ze\(extends\|{\)')
|
||||||
@@ -2117,14 +2103,16 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
|||||||
else
|
else
|
||||||
let implemented_interfaces = []
|
let implemented_interfaces = []
|
||||||
endif
|
endif
|
||||||
call searchpair('{', '', '}', 'W')
|
|
||||||
let class_closing_bracket_line = line('.')
|
call win_execute(popup_id, 'let [class_closing_bracket_line, class_closing_bracket_col] = searchpairpos("{", "", "}", "W")')
|
||||||
|
|
||||||
" Include class docblock
|
" Include class docblock
|
||||||
let doc_line = cfline - 1
|
let doc_line = cfline - 1
|
||||||
if getline(doc_line) =~? '^\s*\*/'
|
call win_execute(popup_id, 'let l = getline('.doc_line.')')
|
||||||
|
if l =~? '^\s*\*/'
|
||||||
while doc_line != 0
|
while doc_line != 0
|
||||||
if getline(doc_line) =~? '^\s*/\*\*'
|
call win_execute(popup_id, 'let l = getline('.doc_line.')')
|
||||||
|
if l =~? '^\s*/\*\*'
|
||||||
let cfline = doc_line
|
let cfline = doc_line
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
@@ -2132,50 +2120,48 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
|||||||
endwhile
|
endwhile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let classcontent = join(getline(cfline, class_closing_bracket_line), "\n")
|
call win_execute(popup_id, 'let classcontent = join(getline('.cfline.', '.class_closing_bracket_line.'), "\n")')
|
||||||
|
|
||||||
let used_traits = []
|
let used_traits = []
|
||||||
" move back to the line next to the class's definition
|
" move back to the line next to the class's definition
|
||||||
call cursor(endline + 1, 1)
|
call win_execute(popup_id, 'call cursor('.(endline + 1).', 1)')
|
||||||
let keep_searching = 1
|
let keep_searching = 1
|
||||||
while keep_searching != 0
|
while keep_searching != 0
|
||||||
" try to grab "use..." keywords
|
" try to grab "use..." keywords
|
||||||
let [lnum, col] = searchpos('\c^\s\+use\s\+'.class_name_pattern, 'cW', class_closing_bracket_line)
|
call win_execute(popup_id, 'let [lnum, col] = searchpos(''\c^\s\+use\s\+'.class_name_pattern.''', "cW", '.class_closing_bracket_line.')')
|
||||||
let syn_name = synIDattr(synID(lnum, col, 0), "name")
|
call win_execute(popup_id, 'let syn_name = synIDattr(synID('.lnum.', '.col.', 0), "name")')
|
||||||
if syn_name =~? 'string\|comment'
|
if syn_name =~? 'string\|comment'
|
||||||
call cursor(lnum + 1, 1)
|
call win_execute(popup_id, 'call cursor('.(lnum + 1).', 1)')
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let trait_line = getline(lnum)
|
call win_execute(popup_id, 'let trait_line = getline('.lnum.')')
|
||||||
if trait_line !~? ';'
|
if trait_line !~? ';'
|
||||||
" try to find the next line containing ';'
|
" try to find the next line containing ';'
|
||||||
let l = lnum
|
let l = lnum
|
||||||
let search_line = trait_line
|
let search_line = trait_line
|
||||||
|
|
||||||
" add lines from the file until theres no ';' in them
|
" add lines from the file until there's no ';' in them
|
||||||
while search_line !~? ';' && l > 0
|
while search_line !~? ';' && l > 0
|
||||||
" file lines are reversed so we need to go backwards
|
" file lines are reversed so we need to go backwards
|
||||||
let l += 1
|
let l += 1
|
||||||
let search_line = getline(l)
|
call win_execute(popup_id, 'let search_line = getline('.l.')')
|
||||||
let trait_line .= ' '.substitute(search_line, '\(^\s\+\|\s\+$\)', '', 'g')
|
let trait_line .= ' '.substitute(search_line, '\(^\s\+\|\s\+$\)', '', 'g')
|
||||||
endwhile
|
endwhile
|
||||||
endif
|
endif
|
||||||
let use_expression = matchstr(trait_line, '^\s*use\s\+\zs.\{-}\ze;')
|
let use_expression = matchstr(trait_line, '^\s*use\s\+\zs.\{-}\ze;')
|
||||||
let use_parts = map(split(use_expression, '\s*,\s*'), 'substitute(v:val, "\\s+", " ", "g")')
|
let use_parts = map(split(use_expression, '\s*,\s*'), 'substitute(v:val, "\\s+", " ", "g")')
|
||||||
let used_traits += map(use_parts, 'substitute(v:val, "\\s", "", "g")')
|
let used_traits += map(use_parts, 'substitute(v:val, "\\s", "", "g")')
|
||||||
call cursor(lnum + 1, 1)
|
call win_execute(popup_id, 'call cursor('.(lnum + 1).', 1)')
|
||||||
|
|
||||||
if [lnum, col] == [0, 0]
|
if [lnum, col] == [0, 0]
|
||||||
let keep_searching = 0
|
let keep_searching = 0
|
||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
silent! bw! %
|
call popup_close(popup_id)
|
||||||
|
|
||||||
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(a:file_lines[0:cfline])
|
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(a:file_lines[0:cfline])
|
||||||
" go back to original window
|
|
||||||
exe phpcomplete_original_window.'wincmd w'
|
|
||||||
call add(result, {
|
call add(result, {
|
||||||
\ 'class': a:class_name,
|
\ 'class': a:class_name,
|
||||||
\ 'content': classcontent,
|
\ 'content': classcontent,
|
||||||
@@ -2532,40 +2518,37 @@ function! phpcomplete#FormatDocBlock(info) " {{{
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
return res
|
return res
|
||||||
endfunction!
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
||||||
let original_window = winnr()
|
let popup_id = popup_create(a:file_lines, {'hidden': v:true})
|
||||||
|
call win_execute(popup_id, 'normal! G')
|
||||||
silent! below 1new
|
|
||||||
silent! 0put =a:file_lines
|
|
||||||
normal! G
|
|
||||||
|
|
||||||
" clear out classes, functions and other blocks
|
" clear out classes, functions and other blocks
|
||||||
while 1
|
while 1
|
||||||
let block_start_pos = searchpos('\c\(class\|trait\|function\|interface\)\s\+\_.\{-}\zs{', 'Web')
|
call win_execute(popup_id, 'let block_start_pos = searchpos(''\c\(class\|trait\|function\|interface\)\s\+\_.\{-}\zs{'', "Web")')
|
||||||
if block_start_pos == [0, 0]
|
if block_start_pos == [0, 0]
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
let block_end_pos = searchpairpos('{', '', '}\|\%$', 'W', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"')
|
call win_execute(popup_id, 'let block_end_pos = searchpairpos("{", "", ''}\|\%$'', "W", ''synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"'')')
|
||||||
|
|
||||||
|
let popup_lines = winbufnr(popup_id)->getbufline(1, '$')
|
||||||
if block_end_pos != [0, 0]
|
if block_end_pos != [0, 0]
|
||||||
" end of the block found, just delete it
|
" end of the block found, just delete it
|
||||||
silent! exec block_start_pos[0].','.block_end_pos[0].'d _'
|
call remove(popup_lines, block_start_pos[0] - 1, block_end_pos[0] - 1)
|
||||||
else
|
else
|
||||||
" block pair not found, use block start as beginning and the end
|
" block pair not found, use block start as beginning and the end
|
||||||
" of the buffer instead
|
" of the buffer instead
|
||||||
silent! exec block_start_pos[0].',$d _'
|
call remove(popup_lines, block_start_pos[0] - 1, -1)
|
||||||
endif
|
endif
|
||||||
|
call popup_settext(popup_id, popup_lines)
|
||||||
endwhile
|
endwhile
|
||||||
normal! G
|
call win_execute(popup_id, 'normal! G', 'silent!')
|
||||||
|
|
||||||
" grab the remains
|
" grab the remains
|
||||||
let file_lines = reverse(getline(1, line('.') - 1))
|
call win_execute(popup_id, "let file_lines = reverse(getline(1, line('.')-1))")
|
||||||
|
call popup_close(popup_id)
|
||||||
silent! bw! %
|
|
||||||
exe original_window.'wincmd w'
|
|
||||||
|
|
||||||
let namespace_name_pattern = '[a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
let namespace_name_pattern = '[a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
||||||
let i = 0
|
let i = 0
|
||||||
@@ -2590,7 +2573,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
|||||||
let search_line = line
|
let search_line = line
|
||||||
let use_line = line
|
let use_line = line
|
||||||
|
|
||||||
" add lines from the file until theres no ';' in them
|
" add lines from the file until there's no ';' in them
|
||||||
while search_line !~? ';' && l > 0
|
while search_line !~? ';' && l > 0
|
||||||
" file lines are reversed so we need to go backwards
|
" file lines are reversed so we need to go backwards
|
||||||
let l -= 1
|
let l -= 1
|
||||||
@@ -2622,7 +2605,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
|||||||
" find kind flags from tags or built in methods for the objects we extracted
|
" find kind flags from tags or built in methods for the objects we extracted
|
||||||
" they can be either classes, interfaces or namespaces, no other thing is importable in php
|
" they can be either classes, interfaces or namespaces, no other thing is importable in php
|
||||||
for [key, import] in items(imports)
|
for [key, import] in items(imports)
|
||||||
" if theres a \ in the name we have it's definitely not a built in thing, look for tags
|
" if there's a \ in the name we have it's definitely not a built in thing, look for tags
|
||||||
if import.name =~ '\\'
|
if import.name =~ '\\'
|
||||||
let patched_ctags_detected = 0
|
let patched_ctags_detected = 0
|
||||||
let [classname, namespace_for_classes] = phpcomplete#ExpandClassName(import.name, '\', {})
|
let [classname, namespace_for_classes] = phpcomplete#ExpandClassName(import.name, '\', {})
|
||||||
@@ -2679,10 +2662,10 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
|||||||
let import['kind'] = 'i'
|
let import['kind'] = 'i'
|
||||||
let import['builtin'] = 1
|
let import['builtin'] = 1
|
||||||
else
|
else
|
||||||
" or can be a tag with exactly matchign name
|
" or can be a tag with exactly matching name
|
||||||
let tags = phpcomplete#GetTaglist('^'.import['name'].'$')
|
let tags = phpcomplete#GetTaglist('^'.import['name'].'$')
|
||||||
for tag in tags
|
for tag in tags
|
||||||
" search for the first matchin namespace, class, interface with no namespace
|
" search for the first matching namespace, class, interface with no namespace
|
||||||
if !has_key(tag, 'namespace') && (tag.kind == 'n' || tag.kind == 'c' || tag.kind == 'i' || tag.kind == 't')
|
if !has_key(tag, 'namespace') && (tag.kind == 'n' || tag.kind == 'c' || tag.kind == 'i' || tag.kind == 't')
|
||||||
call extend(import, tag)
|
call extend(import, tag)
|
||||||
let import['builtin'] = 0
|
let import['builtin'] = 0
|
||||||
@@ -2900,7 +2883,7 @@ for [ext, data] in items(php_builtin['functions'])
|
|||||||
call extend(g:php_builtin_functions, data)
|
call extend(g:php_builtin_functions, data)
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
" Built in classs
|
" Built in class
|
||||||
let g:php_builtin_classes = {}
|
let g:php_builtin_classes = {}
|
||||||
for [ext, data] in items(php_builtin['classes'])
|
for [ext, data] in items(php_builtin['classes'])
|
||||||
call extend(g:php_builtin_classes, data)
|
call extend(g:php_builtin_classes, data)
|
||||||
@@ -2918,10 +2901,10 @@ for [ext, data] in items(php_builtin['constants'])
|
|||||||
call extend(g:php_constants, data)
|
call extend(g:php_constants, data)
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
" When the classname not found or found but the tags dosen't contain that
|
" When the classname not found or found but the tags doesn't contain that
|
||||||
" class we will try to complate any method of any builtin class. To speed up
|
" class we will try to complete any method of any builtin class. To speed up
|
||||||
" that lookup we compile a 'ClassName::MethodName':'info' dictionary from the
|
" that lookup we compile a 'ClassName::MethodName':'info' dictionary from the
|
||||||
" builtin class informations
|
" builtin class information
|
||||||
let g:php_builtin_object_functions = {}
|
let g:php_builtin_object_functions = {}
|
||||||
|
|
||||||
" When completing for 'everyting imaginable' (no class context, not a
|
" When completing for 'everyting imaginable' (no class context, not a
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ class Completer(object):
|
|||||||
pass
|
pass
|
||||||
if len(arg_text) == 0:
|
if len(arg_text) == 0:
|
||||||
# The doc string sometimes contains the function signature
|
# The doc string sometimes contains the function signature
|
||||||
# this works for alot of C modules that are part of the
|
# this works for a lot of C modules that are part of the
|
||||||
# standard library
|
# standard library
|
||||||
doc = func_obj.__doc__
|
doc = func_obj.__doc__
|
||||||
if doc:
|
if doc:
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ class Completer(object):
|
|||||||
pass
|
pass
|
||||||
if len(arg_text) == 0:
|
if len(arg_text) == 0:
|
||||||
# The doc string sometimes contains the function signature
|
# The doc string sometimes contains the function signature
|
||||||
# this works for alot of C modules that are part of the
|
# this works for a lot of C modules that are part of the
|
||||||
# standard library
|
# standard library
|
||||||
doc = func_obj.__doc__
|
doc = func_obj.__doc__
|
||||||
if doc:
|
if doc:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Mark Guzman <segfault@hasno.info>
|
" Maintainer: Mark Guzman <segfault@hasno.info>
|
||||||
" URL: https://github.com/vim-ruby/vim-ruby
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2019 Feb 25
|
" Last Change: 2020 Apr 12
|
||||||
" ----------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
" Ruby IRB/Complete author: Keiju ISHITSUKA(keiju@ishitsuka.com)
|
" Ruby IRB/Complete author: Keiju ISHITSUKA(keiju@ishitsuka.com)
|
||||||
@@ -501,13 +501,8 @@ class VimRubyCompletion
|
|||||||
return if rails_base == nil
|
return if rails_base == nil
|
||||||
$:.push rails_base unless $:.index( rails_base )
|
$:.push rails_base unless $:.index( rails_base )
|
||||||
|
|
||||||
rails_config = rails_base + "config/"
|
bootfile = rails_base + "config/boot.rb"
|
||||||
rails_lib = rails_base + "lib/"
|
envfile = rails_base + "config/environment.rb"
|
||||||
$:.push rails_config unless $:.index( rails_config )
|
|
||||||
$:.push rails_lib unless $:.index( rails_lib )
|
|
||||||
|
|
||||||
bootfile = rails_config + "boot.rb"
|
|
||||||
envfile = rails_config + "environment.rb"
|
|
||||||
if File.exists?( bootfile ) && File.exists?( envfile )
|
if File.exists?( bootfile ) && File.exists?( envfile )
|
||||||
begin
|
begin
|
||||||
require bootfile
|
require bootfile
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
" and complete it.
|
" and complete it.
|
||||||
"
|
"
|
||||||
" Version 16.0 (Dec 2015)
|
" Version 16.0 (Dec 2015)
|
||||||
" - NF: If reseting the cache and table, procedure or view completion
|
" - NF: If resetting the cache and table, procedure or view completion
|
||||||
" had been used via dbext, have dbext delete or recreate the
|
" had been used via dbext, have dbext delete or recreate the
|
||||||
" dictionary so that new objects are picked up for the
|
" dictionary so that new objects are picked up for the
|
||||||
" next completion.
|
" next completion.
|
||||||
@@ -554,7 +554,7 @@ function! sqlcomplete#PreCacheSyntax(...)
|
|||||||
let syn_group_arr = g:omni_sql_precache_syntax_groups
|
let syn_group_arr = g:omni_sql_precache_syntax_groups
|
||||||
endif
|
endif
|
||||||
" For each group specified in the list, precache all
|
" For each group specified in the list, precache all
|
||||||
" the sytnax items.
|
" the syntax items.
|
||||||
if !empty(syn_group_arr)
|
if !empty(syn_group_arr)
|
||||||
for group_name in syn_group_arr
|
for group_name in syn_group_arr
|
||||||
let syn_items = extend( syn_items, s:SQLCGetSyntaxList(group_name) )
|
let syn_items = extend( syn_items, s:SQLCGetSyntaxList(group_name) )
|
||||||
@@ -577,7 +577,7 @@ function! sqlcomplete#ResetCacheSyntax(...)
|
|||||||
let syn_group_arr = g:omni_sql_precache_syntax_groups
|
let syn_group_arr = g:omni_sql_precache_syntax_groups
|
||||||
endif
|
endif
|
||||||
" For each group specified in the list, precache all
|
" For each group specified in the list, precache all
|
||||||
" the sytnax items.
|
" the syntax items.
|
||||||
if !empty(syn_group_arr)
|
if !empty(syn_group_arr)
|
||||||
for group_name in syn_group_arr
|
for group_name in syn_group_arr
|
||||||
let list_idx = index(s:syn_list, group_name, 0, &ignorecase)
|
let list_idx = index(s:syn_list, group_name, 0, &ignorecase)
|
||||||
@@ -617,7 +617,7 @@ function! sqlcomplete#DrillIntoTable()
|
|||||||
else
|
else
|
||||||
" If the popup is not visible, simple perform the normal
|
" If the popup is not visible, simple perform the normal
|
||||||
" key behaviour.
|
" key behaviour.
|
||||||
" Must use exec since they key must be preceeded by "\"
|
" Must use exec since the key must be preceded by "\"
|
||||||
" or feedkeys will simply push each character of the string
|
" or feedkeys will simply push each character of the string
|
||||||
" rather than the "key press".
|
" rather than the "key press".
|
||||||
exec 'call feedkeys("\'.g:ftplugin_sql_omni_key_right.'", "n")'
|
exec 'call feedkeys("\'.g:ftplugin_sql_omni_key_right.'", "n")'
|
||||||
@@ -634,7 +634,7 @@ function! sqlcomplete#DrillOutOfColumns()
|
|||||||
else
|
else
|
||||||
" If the popup is not visible, simple perform the normal
|
" If the popup is not visible, simple perform the normal
|
||||||
" key behaviour.
|
" key behaviour.
|
||||||
" Must use exec since they key must be preceeded by "\"
|
" Must use exec since the key must be preceded by "\"
|
||||||
" or feedkeys will simply push each character of the string
|
" or feedkeys will simply push each character of the string
|
||||||
" rather than the "key press".
|
" rather than the "key press".
|
||||||
exec 'call feedkeys("\'.g:ftplugin_sql_omni_key_left.'", "n")'
|
exec 'call feedkeys("\'.g:ftplugin_sql_omni_key_left.'", "n")'
|
||||||
@@ -843,7 +843,7 @@ function! s:SQLCGetColumns(table_name, list_type)
|
|||||||
let curline = line(".")
|
let curline = line(".")
|
||||||
let curcol = col(".")
|
let curcol = col(".")
|
||||||
|
|
||||||
" Do not let searchs wrap
|
" Do not let searches wrap
|
||||||
setlocal nowrapscan
|
setlocal nowrapscan
|
||||||
" If . was entered, look at the word just before the .
|
" If . was entered, look at the word just before the .
|
||||||
" We are looking for something like this:
|
" We are looking for something like this:
|
||||||
@@ -863,7 +863,7 @@ function! s:SQLCGetColumns(table_name, list_type)
|
|||||||
" Search forward until one of the following:
|
" Search forward until one of the following:
|
||||||
" 1. Another select/update/delete statement
|
" 1. Another select/update/delete statement
|
||||||
" 2. A ; at the end of a line (the delimiter)
|
" 2. A ; at the end of a line (the delimiter)
|
||||||
" 3. The end of the file (incase no delimiter)
|
" 3. The end of the file (in case no delimiter)
|
||||||
" Yank the visually selected text into the "y register.
|
" Yank the visually selected text into the "y register.
|
||||||
exec 'silent! normal! vl/\c\(\<select\>\|\<update\>\|\<delete\>\|;\s*$\|\%$\)'."\n".'"yy'
|
exec 'silent! normal! vl/\c\(\<select\>\|\<update\>\|\<delete\>\|;\s*$\|\%$\)'."\n".'"yy'
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,20 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: All languages, uses existing syntax highlighting rules
|
" Language: All languages, uses existing syntax highlighting rules
|
||||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||||
" Version: 13.0
|
" Version: 15.0
|
||||||
" Last Change: 2019 Aug 08
|
" Last Change: 2021 Apr 27
|
||||||
" Usage: For detailed help, ":help ft-syntax-omni"
|
" Usage: For detailed help, ":help ft-syntax-omni"
|
||||||
|
|
||||||
" History
|
" History
|
||||||
"
|
"
|
||||||
|
" Version 15.0
|
||||||
|
" - SyntaxComplete ignored all buffer specific overrides, always used global
|
||||||
|
" https://github.com/vim/vim/issues/8153
|
||||||
|
"
|
||||||
|
" Version 14.0
|
||||||
|
" - Fixed issue with single quotes and is_keyword
|
||||||
|
" https://github.com/vim/vim/issues/7463
|
||||||
|
"
|
||||||
" Version 13.0
|
" Version 13.0
|
||||||
" - Extended the option omni_syntax_group_include_{filetype}
|
" - Extended the option omni_syntax_group_include_{filetype}
|
||||||
" to accept a comma separated list of regex's rather than
|
" to accept a comma separated list of regex's rather than
|
||||||
@@ -38,7 +46,7 @@
|
|||||||
" let g:omni_syntax_use_single_byte = 1
|
" let g:omni_syntax_use_single_byte = 1
|
||||||
" - This by default will only allow single byte ASCII
|
" - This by default will only allow single byte ASCII
|
||||||
" characters to be added and an additional check to ensure
|
" characters to be added and an additional check to ensure
|
||||||
" the charater is printable (see documentation for isprint).
|
" the character is printable (see documentation for isprint).
|
||||||
"
|
"
|
||||||
" Version 9.0
|
" Version 9.0
|
||||||
" - Add the check for cpo.
|
" - Add the check for cpo.
|
||||||
@@ -86,7 +94,7 @@ endif
|
|||||||
if exists('g:loaded_syntax_completion')
|
if exists('g:loaded_syntax_completion')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntax_completion = 130
|
let g:loaded_syntax_completion = 150
|
||||||
|
|
||||||
" Turn on support for line continuations when creating the script
|
" Turn on support for line continuations when creating the script
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
@@ -141,14 +149,10 @@ let s:prepended = ''
|
|||||||
" This function is used for the 'omnifunc' option.
|
" This function is used for the 'omnifunc' option.
|
||||||
function! syntaxcomplete#Complete(findstart, base)
|
function! syntaxcomplete#Complete(findstart, base)
|
||||||
|
|
||||||
" Only display items in the completion window that are at least
|
" Allow user to override ignorecase per buffer
|
||||||
" this many characters in length
|
let l:omni_syntax_ignorecase = g:omni_syntax_ignorecase
|
||||||
if !exists('b:omni_syntax_ignorecase')
|
if exists('b:omni_syntax_ignorecase')
|
||||||
if exists('g:omni_syntax_ignorecase')
|
let l:omni_syntax_ignorecase = b:omni_syntax_ignorecase
|
||||||
let b:omni_syntax_ignorecase = g:omni_syntax_ignorecase
|
|
||||||
else
|
|
||||||
let b:omni_syntax_ignorecase = &ignorecase
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:findstart
|
if a:findstart
|
||||||
@@ -179,7 +183,7 @@ function! syntaxcomplete#Complete(findstart, base)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" let base = s:prepended . a:base
|
" let base = s:prepended . a:base
|
||||||
let base = s:prepended
|
let base = substitute(s:prepended, "'", "''", 'g')
|
||||||
|
|
||||||
let filetype = substitute(&filetype, '\.', '_', 'g')
|
let filetype = substitute(&filetype, '\.', '_', 'g')
|
||||||
let list_idx = index(s:cache_name, filetype, 0, &ignorecase)
|
let list_idx = index(s:cache_name, filetype, 0, &ignorecase)
|
||||||
@@ -195,13 +199,13 @@ function! syntaxcomplete#Complete(findstart, base)
|
|||||||
|
|
||||||
if base != ''
|
if base != ''
|
||||||
" let compstr = join(compl_list, ' ')
|
" let compstr = join(compl_list, ' ')
|
||||||
" let expr = (b:omni_syntax_ignorecase==0?'\C':'').'\<\%('.base.'\)\@!\w\+\s*'
|
" let expr = (l:omni_syntax_ignorecase==0?'\C':'').'\<\%('.base.'\)\@!\w\+\s*'
|
||||||
" let compstr = substitute(compstr, expr, '', 'g')
|
" let compstr = substitute(compstr, expr, '', 'g')
|
||||||
" let compl_list = split(compstr, '\s\+')
|
" let compl_list = split(compstr, '\s\+')
|
||||||
|
|
||||||
" Filter the list based on the first few characters the user
|
" Filter the list based on the first few characters the user
|
||||||
" entered
|
" entered
|
||||||
let expr = 'v:val '.(g:omni_syntax_ignorecase==1?'=~?':'=~#')." '^".escape(base, '\\/.*$^~[]').".*'"
|
let expr = 'v:val '.(l:omni_syntax_ignorecase==1?'=~?':'=~#')." '^".escape(base, '\\/.*$^~[]').".*'"
|
||||||
let compl_list = filter(deepcopy(compl_list), expr)
|
let compl_list = filter(deepcopy(compl_list), expr)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -222,6 +226,26 @@ function! syntaxcomplete#OmniSyntaxList(...)
|
|||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
function! syntaxcomplete#OmniSyntaxClearCache()
|
||||||
|
let s:cache_name = []
|
||||||
|
let s:cache_list = []
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" To retrieve all syntax items regardless of syntax group:
|
||||||
|
" echo OmniSyntaxList( [] )
|
||||||
|
"
|
||||||
|
" To retrieve only the syntax items for the sqlOperator syntax group:
|
||||||
|
" echo OmniSyntaxList( ['sqlOperator'] )
|
||||||
|
"
|
||||||
|
" To retrieve all syntax items for both the sqlOperator and sqlType groups:
|
||||||
|
" echo OmniSyntaxList( ['sqlOperator', 'sqlType'] )
|
||||||
|
"
|
||||||
|
" A regular expression can also be used:
|
||||||
|
" echo OmniSyntaxList( ['sql\w\+'] )
|
||||||
|
"
|
||||||
|
" From within a plugin, you would typically assign the output to a List: >
|
||||||
|
" let myKeywords = []
|
||||||
|
" let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
||||||
function! OmniSyntaxList(...)
|
function! OmniSyntaxList(...)
|
||||||
let list_parms = []
|
let list_parms = []
|
||||||
if a:0 > 0
|
if a:0 > 0
|
||||||
@@ -239,37 +263,25 @@ function! OmniSyntaxList(...)
|
|||||||
" let use_dictionary = a:1
|
" let use_dictionary = a:1
|
||||||
" endif
|
" endif
|
||||||
|
|
||||||
" Only display items in the completion window that are at least
|
|
||||||
" this many characters in length
|
|
||||||
if !exists('b:omni_syntax_use_iskeyword')
|
|
||||||
if exists('g:omni_syntax_use_iskeyword')
|
|
||||||
let b:omni_syntax_use_iskeyword = g:omni_syntax_use_iskeyword
|
|
||||||
else
|
|
||||||
let b:omni_syntax_use_iskeyword = 1
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Only display items in the completion window that are at least
|
|
||||||
" this many characters in length
|
|
||||||
if !exists('b:omni_syntax_minimum_length')
|
|
||||||
if exists('g:omni_syntax_minimum_length')
|
|
||||||
let b:omni_syntax_minimum_length = g:omni_syntax_minimum_length
|
|
||||||
else
|
|
||||||
let b:omni_syntax_minimum_length = 0
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
let saveL = @l
|
let saveL = @l
|
||||||
let filetype = substitute(&filetype, '\.', '_', 'g')
|
let filetype = substitute(&filetype, '\.', '_', 'g')
|
||||||
|
|
||||||
if empty(list_parms)
|
if empty(list_parms)
|
||||||
|
" Allow user to override per buffer
|
||||||
|
if exists('g:omni_syntax_group_include_'.filetype)
|
||||||
|
let l:omni_syntax_group_include_{filetype} = g:omni_syntax_group_include_{filetype}
|
||||||
|
endif
|
||||||
|
if exists('b:omni_syntax_group_include_'.filetype)
|
||||||
|
let l:omni_syntax_group_include_{filetype} = b:omni_syntax_group_include_{filetype}
|
||||||
|
endif
|
||||||
|
|
||||||
" Default the include group to include the requested syntax group
|
" Default the include group to include the requested syntax group
|
||||||
let syntax_group_include_{filetype} = ''
|
let syntax_group_include_{filetype} = ''
|
||||||
" Check if there are any overrides specified for this filetype
|
" Check if there are any overrides specified for this filetype
|
||||||
if exists('g:omni_syntax_group_include_'.filetype)
|
if exists('l:omni_syntax_group_include_'.filetype)
|
||||||
let syntax_group_include_{filetype} =
|
let syntax_group_include_{filetype} =
|
||||||
\ substitute( g:omni_syntax_group_include_{filetype},'\s\+','','g')
|
\ substitute( l:omni_syntax_group_include_{filetype},'\s\+','','g')
|
||||||
let list_parms = split(g:omni_syntax_group_include_{filetype}, ',')
|
let list_parms = split(l:omni_syntax_group_include_{filetype}, ',')
|
||||||
if syntax_group_include_{filetype} =~ '\w'
|
if syntax_group_include_{filetype} =~ '\w'
|
||||||
let syntax_group_include_{filetype} =
|
let syntax_group_include_{filetype} =
|
||||||
\ substitute( syntax_group_include_{filetype},
|
\ substitute( syntax_group_include_{filetype},
|
||||||
@@ -324,11 +336,20 @@ function! OmniSyntaxList(...)
|
|||||||
else
|
else
|
||||||
" Default the exclude group to nothing
|
" Default the exclude group to nothing
|
||||||
let syntax_group_exclude_{filetype} = ''
|
let syntax_group_exclude_{filetype} = ''
|
||||||
" Check if there are any overrides specified for this filetype
|
|
||||||
|
" Allow user to override per buffer
|
||||||
if exists('g:omni_syntax_group_exclude_'.filetype)
|
if exists('g:omni_syntax_group_exclude_'.filetype)
|
||||||
|
let l:omni_syntax_group_exclude_{filetype} = g:omni_syntax_group_exclude_{filetype}
|
||||||
|
endif
|
||||||
|
if exists('b:omni_syntax_group_exclude_'.filetype)
|
||||||
|
let l:omni_syntax_group_exclude_{filetype} = b:omni_syntax_group_exclude_{filetype}
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Check if there are any overrides specified for this filetype
|
||||||
|
if exists('l:omni_syntax_group_exclude_'.filetype)
|
||||||
let syntax_group_exclude_{filetype} =
|
let syntax_group_exclude_{filetype} =
|
||||||
\ substitute( g:omni_syntax_group_exclude_{filetype},'\s\+','','g')
|
\ substitute( l:omni_syntax_group_exclude_{filetype},'\s\+','','g')
|
||||||
let list_exclude_groups = split(g:omni_syntax_group_exclude_{filetype}, ',')
|
let list_exclude_groups = split(l:omni_syntax_group_exclude_{filetype}, ',')
|
||||||
if syntax_group_exclude_{filetype} =~ '\w'
|
if syntax_group_exclude_{filetype} =~ '\w'
|
||||||
let syntax_group_exclude_{filetype} =
|
let syntax_group_exclude_{filetype} =
|
||||||
\ substitute( syntax_group_exclude_{filetype},
|
\ substitute( syntax_group_exclude_{filetype},
|
||||||
@@ -524,6 +545,30 @@ endfunction
|
|||||||
|
|
||||||
function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
||||||
|
|
||||||
|
" Allow user to override iskeyword per buffer
|
||||||
|
let l:omni_syntax_use_iskeyword = g:omni_syntax_use_iskeyword
|
||||||
|
if exists('b:omni_syntax_use_iskeyword')
|
||||||
|
let l:omni_syntax_use_iskeyword = b:omni_syntax_use_iskeyword
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Allow user to override iskeyword_numeric per buffer
|
||||||
|
let l:omni_syntax_use_iskeyword_numeric = g:omni_syntax_use_iskeyword_numeric
|
||||||
|
if exists('b:omni_syntax_use_iskeyword_numeric')
|
||||||
|
let l:omni_syntax_use_iskeyword_numeric = b:omni_syntax_use_iskeyword_numeric
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Allow user to override iskeyword_numeric per buffer
|
||||||
|
let l:omni_syntax_use_single_byte = g:omni_syntax_use_single_byte
|
||||||
|
if exists('b:omni_syntax_use_single_byte')
|
||||||
|
let l:omni_syntax_use_single_byte = b:omni_syntax_use_single_byte
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Allow user to override minimum_length per buffer
|
||||||
|
let l:omni_syntax_minimum_length = g:omni_syntax_minimum_length
|
||||||
|
if exists('b:omni_syntax_minimum_length')
|
||||||
|
let l:omni_syntax_minimum_length = b:omni_syntax_minimum_length
|
||||||
|
endif
|
||||||
|
|
||||||
let syn_list = ""
|
let syn_list = ""
|
||||||
|
|
||||||
" From the full syntax listing, strip out the portion for the
|
" From the full syntax listing, strip out the portion for the
|
||||||
@@ -548,7 +593,7 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
|||||||
" let syn_list = substitute( @l, '^.*xxx\s*\%(contained\s*\)\?', "", '' )
|
" let syn_list = substitute( @l, '^.*xxx\s*\%(contained\s*\)\?', "", '' )
|
||||||
" let syn_list = substitute( @l, '^.*xxx\s*', "", '' )
|
" let syn_list = substitute( @l, '^.*xxx\s*', "", '' )
|
||||||
|
|
||||||
" We only want the words for the lines begining with
|
" We only want the words for the lines beginning with
|
||||||
" containedin, but there could be other items.
|
" containedin, but there could be other items.
|
||||||
|
|
||||||
" Tried to remove all lines that do not begin with contained
|
" Tried to remove all lines that do not begin with contained
|
||||||
@@ -642,14 +687,23 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
|||||||
\ syn_list, '\%(^\|\n\)\@<=\s*\(@\w\+\)'
|
\ syn_list, '\%(^\|\n\)\@<=\s*\(@\w\+\)'
|
||||||
\ , "", 'g'
|
\ , "", 'g'
|
||||||
\ )
|
\ )
|
||||||
|
|
||||||
if b:omni_syntax_use_iskeyword == 0
|
if l:omni_syntax_use_iskeyword == 0
|
||||||
" There are a number of items which have non-word characters in
|
" There are a number of items which have non-word characters in
|
||||||
" them, *'T_F1'*. vim.vim is one such file.
|
" them, *'T_F1'*. vim.vim is one such file.
|
||||||
" This will replace non-word characters with spaces.
|
" This will replace non-word characters with spaces.
|
||||||
|
" setlocal filetype=forth
|
||||||
|
" let g:omni_syntax_use_iskeyword = 1
|
||||||
|
" let g:omni_syntax_use_iskeyword_numeric = 1
|
||||||
|
" You will see entries like
|
||||||
|
" #>>
|
||||||
|
" (.local)
|
||||||
|
" These were found doing a grep in vim82\syntax
|
||||||
|
" grep iskeyword *
|
||||||
|
" forth.vim:setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
|
||||||
let syn_list = substitute( syn_list, '[^0-9A-Za-z_ ]', ' ', 'g' )
|
let syn_list = substitute( syn_list, '[^0-9A-Za-z_ ]', ' ', 'g' )
|
||||||
else
|
else
|
||||||
if g:omni_syntax_use_iskeyword_numeric == 1
|
if l:omni_syntax_use_iskeyword_numeric == 1
|
||||||
" iskeyword can contain value like this
|
" iskeyword can contain value like this
|
||||||
" 38,42,43,45,47-58,60-62,64-90,97-122,_,+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
|
" 38,42,43,45,47-58,60-62,64-90,97-122,_,+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
|
||||||
" Numeric values convert to their ASCII equivalent using the
|
" Numeric values convert to their ASCII equivalent using the
|
||||||
@@ -669,7 +723,7 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
|||||||
" cycle through each character within the range
|
" cycle through each character within the range
|
||||||
let [b:start, b:end] = split(item, '-')
|
let [b:start, b:end] = split(item, '-')
|
||||||
for range_item in range( b:start, b:end )
|
for range_item in range( b:start, b:end )
|
||||||
if range_item <= 127 || g:omni_syntax_use_single_byte == 0
|
if range_item <= 127 || l:omni_syntax_use_single_byte == 0
|
||||||
if nr2char(range_item) =~ '\p'
|
if nr2char(range_item) =~ '\p'
|
||||||
let accepted_chars = accepted_chars . nr2char(range_item)
|
let accepted_chars = accepted_chars . nr2char(range_item)
|
||||||
endif
|
endif
|
||||||
@@ -677,13 +731,13 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
|||||||
endfor
|
endfor
|
||||||
elseif item =~ '^\d\+$'
|
elseif item =~ '^\d\+$'
|
||||||
" Only numeric, translate to a character
|
" Only numeric, translate to a character
|
||||||
if item < 127 || g:omni_syntax_use_single_byte == 0
|
if item < 127 || l:omni_syntax_use_single_byte == 0
|
||||||
if nr2char(item) =~ '\p'
|
if nr2char(item) =~ '\p'
|
||||||
let accepted_chars = accepted_chars . nr2char(item)
|
let accepted_chars = accepted_chars . nr2char(item)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
if char2nr(item) < 127 || g:omni_syntax_use_single_byte == 0
|
if char2nr(item) < 127 || l:omni_syntax_use_single_byte == 0
|
||||||
if item =~ '\p'
|
if item =~ '\p'
|
||||||
let accepted_chars = accepted_chars . item
|
let accepted_chars = accepted_chars . item
|
||||||
endif
|
endif
|
||||||
@@ -719,9 +773,9 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if b:omni_syntax_minimum_length > 0
|
if l:omni_syntax_minimum_length > 0
|
||||||
" If the user specified a minimum length, enforce it
|
" If the user specified a minimum length, enforce it
|
||||||
let syn_list = substitute(' '.syn_list.' ', ' \S\{,'.b:omni_syntax_minimum_length.'}\ze ', ' ', 'g')
|
let syn_list = substitute(' '.syn_list.' ', ' \S\{,'.l:omni_syntax_minimum_length.'}\ze ', ' ', 'g')
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
let syn_list = ''
|
let syn_list = ''
|
||||||
@@ -751,5 +805,6 @@ function! OmniSyntaxShowChars(spec)
|
|||||||
endfor
|
endfor
|
||||||
return join(map(result, 'nr2char(v:val)'), ', ')
|
return join(map(result, 'nr2char(v:val)'), ', ')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|||||||
@@ -778,7 +778,7 @@ fun! tar#Vimuntar(...)
|
|||||||
elseif executable("gzip")
|
elseif executable("gzip")
|
||||||
silent exe "!gzip -d ".shellescape(tartail)
|
silent exe "!gzip -d ".shellescape(tartail)
|
||||||
else
|
else
|
||||||
echoerr "unable to decompress<".tartail."> on this sytem"
|
echoerr "unable to decompress<".tartail."> on this system"
|
||||||
if simplify(curdir) != simplify(tarhome)
|
if simplify(curdir) != simplify(tarhome)
|
||||||
" remove decompressed tarball, restore directory
|
" remove decompressed tarball, restore directory
|
||||||
" call Decho("delete(".tartail.".tar)")
|
" call Decho("delete(".tartail.".tar)")
|
||||||
|
|||||||
@@ -693,7 +693,7 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
let user_settings = {}
|
let user_settings = {}
|
||||||
|
|
||||||
" Define the correct option if the old option name exists and we haven't
|
" Define the correct option if the old option name exists and we haven't
|
||||||
" already defined the correct one. Maybe I'll put out a warnig message about
|
" already defined the correct one. Maybe I'll put out a warning message about
|
||||||
" this sometime and remove the old option entirely at some even later time,
|
" this sometime and remove the old option entirely at some even later time,
|
||||||
" but for now just silently accept the old option.
|
" but for now just silently accept the old option.
|
||||||
if exists('g:use_xhtml') && !exists("g:html_use_xhtml")
|
if exists('g:use_xhtml') && !exists("g:html_use_xhtml")
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ function! xmlcomplete#CompleteTags(findstart, base)
|
|||||||
" 1. Events attributes
|
" 1. Events attributes
|
||||||
if context =~ '\s'
|
if context =~ '\s'
|
||||||
|
|
||||||
" If attr contains =\s*[\"'] we catched value of attribute
|
" If attr contains =\s*[\"'] we catch value of attribute
|
||||||
if attr =~ "=\s*[\"']" || attr =~ "=\s*$"
|
if attr =~ "=\s*[\"']" || attr =~ "=\s*$"
|
||||||
" Let do attribute specific completion
|
" Let do attribute specific completion
|
||||||
let attrname = matchstr(attr, '.*\ze\s*=')
|
let attrname = matchstr(attr, '.*\ze\s*=')
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" zip.vim: Handles browsing zipfiles
|
" zip.vim: Handles browsing zipfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Jan 07, 2020
|
" Date: Nov 08, 2021
|
||||||
" Version: 31
|
" Version: 32
|
||||||
" Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
" Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
||||||
" License: Vim License (see vim's :help license)
|
" License: Vim License (see vim's :help license)
|
||||||
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
if &cp || exists("g:loaded_zip")
|
if &cp || exists("g:loaded_zip")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_zip= "v31"
|
let g:loaded_zip= "v32"
|
||||||
if v:version < 702
|
if v:version < 702
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of zip needs vim 7.2 or later"
|
echo "***warning*** this version of zip needs vim 7.2 or later"
|
||||||
@@ -81,7 +81,7 @@ fun! zip#Browse(zipfile)
|
|||||||
" sanity checks
|
" sanity checks
|
||||||
if !exists("*fnameescape")
|
if !exists("*fnameescape")
|
||||||
if &verbose > 1
|
if &verbose > 1
|
||||||
echoerr "the zip plugin is not available (your vim doens't support fnameescape())"
|
echoerr "the zip plugin is not available (your vim doesn't support fnameescape())"
|
||||||
endif
|
endif
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
@@ -115,7 +115,13 @@ fun! zip#Browse(zipfile)
|
|||||||
setlocal bufhidden=hide
|
setlocal bufhidden=hide
|
||||||
setlocal nobuflisted
|
setlocal nobuflisted
|
||||||
setlocal nowrap
|
setlocal nowrap
|
||||||
set ft=tar
|
|
||||||
|
" Oct 12, 2021: need to re-use Bram's syntax/tar.vim.
|
||||||
|
" Setting the filetype to zip doesn't do anything (currently),
|
||||||
|
" but it is perhaps less confusing to curious perusers who do
|
||||||
|
" a :echo &ft
|
||||||
|
setf zip
|
||||||
|
run! syntax/tar.vim
|
||||||
|
|
||||||
" give header
|
" give header
|
||||||
call append(0, ['" zip.vim version '.g:loaded_zip,
|
call append(0, ['" zip.vim version '.g:loaded_zip,
|
||||||
@@ -187,8 +193,8 @@ fun! s:ZipBrowseSelect()
|
|||||||
wincmd _
|
wincmd _
|
||||||
endif
|
endif
|
||||||
let s:zipfile_{winnr()}= curfile
|
let s:zipfile_{winnr()}= curfile
|
||||||
" call Decho("exe e ".fnameescape("zipfile:".zipfile.'::'.fname))
|
" call Decho("exe e ".fnameescape("zipfile://".zipfile.'::'.fname))
|
||||||
exe "noswapfile e ".fnameescape("zipfile:".zipfile.'::'.fname)
|
exe "noswapfile e ".fnameescape("zipfile://".zipfile.'::'.fname)
|
||||||
filetype detect
|
filetype detect
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
@@ -203,11 +209,11 @@ fun! zip#Read(fname,mode)
|
|||||||
set report=10
|
set report=10
|
||||||
|
|
||||||
if has("unix")
|
if has("unix")
|
||||||
let zipfile = substitute(a:fname,'zipfile:\(.\{-}\)::[^\\].*$','\1','')
|
let zipfile = substitute(a:fname,'zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||||
let fname = substitute(a:fname,'zipfile:.\{-}::\([^\\].*\)$','\1','')
|
let fname = substitute(a:fname,'zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||||
else
|
else
|
||||||
let zipfile = substitute(a:fname,'^.\{-}zipfile:\(.\{-}\)::[^\\].*$','\1','')
|
let zipfile = substitute(a:fname,'^.\{-}zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||||
let fname = substitute(a:fname,'^.\{-}zipfile:.\{-}::\([^\\].*\)$','\1','')
|
let fname = substitute(a:fname,'^.\{-}zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||||
let fname = substitute(fname, '[', '[[]', 'g')
|
let fname = substitute(fname, '[', '[[]', 'g')
|
||||||
endif
|
endif
|
||||||
" call Decho("zipfile<".zipfile.">")
|
" call Decho("zipfile<".zipfile.">")
|
||||||
@@ -224,7 +230,7 @@ fun! zip#Read(fname,mode)
|
|||||||
|
|
||||||
" 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)
|
||||||
" but allows zipfile:... entries in quickfix lists
|
" but allows zipfile://... entries in quickfix lists
|
||||||
let temp = tempname()
|
let temp = tempname()
|
||||||
" call Decho("using temp file<".temp.">")
|
" call Decho("using temp file<".temp.">")
|
||||||
let fn = expand('%:p')
|
let fn = expand('%:p')
|
||||||
@@ -296,11 +302,11 @@ fun! zip#Write(fname)
|
|||||||
" call Decho("current directory now: ".getcwd())
|
" call Decho("current directory now: ".getcwd())
|
||||||
|
|
||||||
if has("unix")
|
if has("unix")
|
||||||
let zipfile = substitute(a:fname,'zipfile:\(.\{-}\)::[^\\].*$','\1','')
|
let zipfile = substitute(a:fname,'zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||||
let fname = substitute(a:fname,'zipfile:.\{-}::\([^\\].*\)$','\1','')
|
let fname = substitute(a:fname,'zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||||
else
|
else
|
||||||
let zipfile = substitute(a:fname,'^.\{-}zipfile:\(.\{-}\)::[^\\].*$','\1','')
|
let zipfile = substitute(a:fname,'^.\{-}zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||||
let fname = substitute(a:fname,'^.\{-}zipfile:.\{-}::\([^\\].*\)$','\1','')
|
let fname = substitute(a:fname,'^.\{-}zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||||
endif
|
endif
|
||||||
" call Decho("zipfile<".zipfile.">")
|
" call Decho("zipfile<".zipfile.">")
|
||||||
" call Decho("fname <".fname.">")
|
" call Decho("fname <".fname.">")
|
||||||
|
|||||||
@@ -87,4 +87,5 @@ please check the following items:
|
|||||||
- In the GUI, is it easy to find the cursor, also in a file with lots of
|
- In the GUI, is it easy to find the cursor, also in a file with lots of
|
||||||
syntax highlighting?
|
syntax highlighting?
|
||||||
- Do not use hard coded escape sequences, these will not work in other
|
- Do not use hard coded escape sequences, these will not work in other
|
||||||
terminals. Always use color names or #RRGGBB for the GUI.
|
terminals. Always use color names or #RRGGBB for the GUI. See v:colornames
|
||||||
|
for details on how to define your own color names.
|
||||||
|
|||||||
166
runtime/colors/lists/csscolors.vim
Normal file
166
runtime/colors/lists/csscolors.vim
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
" Maintainer: Drew Vogel <dvogel@sidejump.org>
|
||||||
|
" Last Change: 2021 Jul 25
|
||||||
|
|
||||||
|
" Similar in spirit to rgb.txt, this plugin establishes a human-friendly name
|
||||||
|
" for every color listed in the CSS standard:
|
||||||
|
"
|
||||||
|
" https://www.w3.org/TR/css-color-3/
|
||||||
|
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
call extend(v:colornames, {
|
||||||
|
\ 'css_black': '#000000',
|
||||||
|
\ 'css_silver': '#c0c0c0',
|
||||||
|
\ 'css_gray': '#808080',
|
||||||
|
\ 'css_white': '#FFFFFF',
|
||||||
|
\ 'css_maroon': '#800000',
|
||||||
|
\ 'css_red': '#FF0000',
|
||||||
|
\ 'css_purple': '#800080',
|
||||||
|
\ 'css_fuchsia': '#FF00FF',
|
||||||
|
\ 'css_green': '#008000',
|
||||||
|
\ 'css_lime': '#00FF00',
|
||||||
|
\ 'css_olive': '#808000',
|
||||||
|
\ 'css_yellow': '#FFFF00',
|
||||||
|
\ 'css_navy': '#000080',
|
||||||
|
\ 'css_blue': '#0000FF',
|
||||||
|
\ 'css_teal': '#008080',
|
||||||
|
\ 'css_aqua': '#00FFFF',
|
||||||
|
\
|
||||||
|
\ 'css_aliceblue': '#f0f8ff',
|
||||||
|
\ 'css_antiquewhite': '#faebd7',
|
||||||
|
\ 'css_aquamarine': '#7fffd4',
|
||||||
|
\ 'css_azure': '#f0ffff',
|
||||||
|
\ 'css_beige': '#f5f5dc',
|
||||||
|
\ 'css_bisque': '#ffe4c4',
|
||||||
|
\ 'css_blanchedalmond': '#ffebcd',
|
||||||
|
\ 'css_blueviolet': '#8a2be2',
|
||||||
|
\ 'css_brown': '#a52a2a',
|
||||||
|
\ 'css_burlywood': '#deb887',
|
||||||
|
\ 'css_cadetblue': '#5f9ea0',
|
||||||
|
\ 'css_chartreuse': '#7fff00',
|
||||||
|
\ 'css_chocolate': '#d2691e',
|
||||||
|
\ 'css_coral': '#ff7f50',
|
||||||
|
\ 'css_cornflowerblue': '#6495ed',
|
||||||
|
\ 'css_cornsilk': '#fff8dc',
|
||||||
|
\ 'css_crimson': '#dc143c',
|
||||||
|
\ 'css_cyan': '#00ffff',
|
||||||
|
\ 'css_darkblue': '#00008b',
|
||||||
|
\ 'css_darkcyan': '#008b8b',
|
||||||
|
\ 'css_darkgoldenrod': '#b8860b',
|
||||||
|
\ 'css_darkgray': '#a9a9a9',
|
||||||
|
\ 'css_darkgreen': '#006400',
|
||||||
|
\ 'css_darkgrey': '#a9a9a9',
|
||||||
|
\ 'css_darkkhaki': '#bdb76b',
|
||||||
|
\ 'css_darkmagenta': '#8b008b',
|
||||||
|
\ 'css_darkolivegreen': '#556b2f',
|
||||||
|
\ 'css_darkorange': '#ff8c00',
|
||||||
|
\ 'css_darkorchid': '#9932cc',
|
||||||
|
\ 'css_darkred': '#8b0000',
|
||||||
|
\ 'css_darksalmon': '#e9967a',
|
||||||
|
\ 'css_darkseagreen': '#8fbc8f',
|
||||||
|
\ 'css_darkslateblue': '#483d8b',
|
||||||
|
\ 'css_darkslategray': '#2f4f4f',
|
||||||
|
\ 'css_darkslategrey': '#2f4f4f',
|
||||||
|
\ 'css_darkturquoise': '#00ced1',
|
||||||
|
\ 'css_darkviolet': '#9400d3',
|
||||||
|
\ 'css_deeppink': '#ff1493',
|
||||||
|
\ 'css_deepskyblue': '#00bfff',
|
||||||
|
\ 'css_dimgray': '#696969',
|
||||||
|
\ 'css_dimgrey': '#696969',
|
||||||
|
\ 'css_dodgerblue': '#1e90ff',
|
||||||
|
\ 'css_firebrick': '#b22222',
|
||||||
|
\ 'css_floralwhite': '#fffaf0',
|
||||||
|
\ 'css_forestgreen': '#228b22',
|
||||||
|
\ 'css_gainsboro': '#dcdcdc',
|
||||||
|
\ 'css_ghostwhite': '#f8f8ff',
|
||||||
|
\ 'css_gold': '#ffd700',
|
||||||
|
\ 'css_goldenrod': '#daa520',
|
||||||
|
\ 'css_greenyellow': '#adff2f',
|
||||||
|
\ 'css_grey': '#808080',
|
||||||
|
\ 'css_honeydew': '#f0fff0',
|
||||||
|
\ 'css_hotpink': '#ff69b4',
|
||||||
|
\ 'css_indianred': '#cd5c5c',
|
||||||
|
\ 'css_indigo': '#4b0082',
|
||||||
|
\ 'css_ivory': '#fffff0',
|
||||||
|
\ 'css_khaki': '#f0e68c',
|
||||||
|
\ 'css_lavender': '#e6e6fa',
|
||||||
|
\ 'css_lavenderblush': '#fff0f5',
|
||||||
|
\ 'css_lawngreen': '#7cfc00',
|
||||||
|
\ 'css_lemonchiffon': '#fffacd',
|
||||||
|
\ 'css_lightblue': '#add8e6',
|
||||||
|
\ 'css_lightcoral': '#f08080',
|
||||||
|
\ 'css_lightcyan': '#e0ffff',
|
||||||
|
\ 'css_lightgoldenrodyellow': '#fafad2',
|
||||||
|
\ 'css_lightgray': '#d3d3d3',
|
||||||
|
\ 'css_lightgreen': '#90ee90',
|
||||||
|
\ 'css_lightgrey': '#d3d3d3',
|
||||||
|
\ 'css_lightpink': '#ffb6c1',
|
||||||
|
\ 'css_lightsalmon': '#ffa07a',
|
||||||
|
\ 'css_lightseagreen': '#20b2aa',
|
||||||
|
\ 'css_lightskyblue': '#87cefa',
|
||||||
|
\ 'css_lightslategray': '#778899',
|
||||||
|
\ 'css_lightslategrey': '#778899',
|
||||||
|
\ 'css_lightsteelblue': '#b0c4de',
|
||||||
|
\ 'css_lightyellow': '#ffffe0',
|
||||||
|
\ 'css_limegreen': '#32cd32',
|
||||||
|
\ 'css_linen': '#faf0e6',
|
||||||
|
\ 'css_magenta': '#ff00ff',
|
||||||
|
\ 'css_mediumaquamarine': '#66cdaa',
|
||||||
|
\ 'css_mediumblue': '#0000cd',
|
||||||
|
\ 'css_mediumorchid': '#ba55d3',
|
||||||
|
\ 'css_mediumpurple': '#9370db',
|
||||||
|
\ 'css_mediumseagreen': '#3cb371',
|
||||||
|
\ 'css_mediumslateblue': '#7b68ee',
|
||||||
|
\ 'css_mediumspringgreen': '#00fa9a',
|
||||||
|
\ 'css_mediumturquoise': '#48d1cc',
|
||||||
|
\ 'css_mediumvioletred': '#c71585',
|
||||||
|
\ 'css_midnightblue': '#191970',
|
||||||
|
\ 'css_mintcream': '#f5fffa',
|
||||||
|
\ 'css_mistyrose': '#ffe4e1',
|
||||||
|
\ 'css_moccasin': '#ffe4b5',
|
||||||
|
\ 'css_navajowhite': '#ffdead',
|
||||||
|
\ 'css_oldlace': '#fdf5e6',
|
||||||
|
\ 'css_olivedrab': '#6b8e23',
|
||||||
|
\ 'css_orange': '#ffa500',
|
||||||
|
\ 'css_orangered': '#ff4500',
|
||||||
|
\ 'css_orchid': '#da70d6',
|
||||||
|
\ 'css_palegoldenrod': '#eee8aa',
|
||||||
|
\ 'css_palegreen': '#98fb98',
|
||||||
|
\ 'css_paleturquoise': '#afeeee',
|
||||||
|
\ 'css_palevioletred': '#db7093',
|
||||||
|
\ 'css_papayawhip': '#ffefd5',
|
||||||
|
\ 'css_peachpuff': '#ffdab9',
|
||||||
|
\ 'css_peru': '#cd853f',
|
||||||
|
\ 'css_pink': '#ffc0cb',
|
||||||
|
\ 'css_plum': '#dda0dd',
|
||||||
|
\ 'css_powderblue': '#b0e0e6',
|
||||||
|
\ 'css_rosybrown': '#bc8f8f',
|
||||||
|
\ 'css_royalblue': '#4169e1',
|
||||||
|
\ 'css_saddlebrown': '#8b4513',
|
||||||
|
\ 'css_salmon': '#fa8072',
|
||||||
|
\ 'css_sandybrown': '#f4a460',
|
||||||
|
\ 'css_seagreen': '#2e8b57',
|
||||||
|
\ 'css_seashell': '#fff5ee',
|
||||||
|
\ 'css_sienna': '#a0522d',
|
||||||
|
\ 'css_skyblue': '#87ceeb',
|
||||||
|
\ 'css_slateblue': '#6a5acd',
|
||||||
|
\ 'css_slategray': '#708090',
|
||||||
|
\ 'css_slategrey': '#708090',
|
||||||
|
\ 'css_snow': '#fffafa',
|
||||||
|
\ 'css_springgreen': '#00ff7f',
|
||||||
|
\ 'css_steelblue': '#4682b4',
|
||||||
|
\ 'css_tan': '#d2b48c',
|
||||||
|
\ 'css_thistle': '#d8bfd8',
|
||||||
|
\ 'css_tomato': '#ff6347',
|
||||||
|
\ 'css_turquoise': '#40e0d0',
|
||||||
|
\ 'css_violet': '#ee82ee',
|
||||||
|
\ 'css_wheat': '#f5deb3',
|
||||||
|
\ 'css_whitesmoke': '#f5f5f5',
|
||||||
|
\ 'css_yellowgreen': '#9acd32',
|
||||||
|
\ }, 'keep')
|
||||||
|
|
||||||
|
let &cpo= s:keepcpo
|
||||||
|
unlet s:keepcpo
|
||||||
|
|
||||||
|
"vim: sw=4
|
||||||
801
runtime/colors/lists/default.vim
Normal file
801
runtime/colors/lists/default.vim
Normal file
@@ -0,0 +1,801 @@
|
|||||||
|
" Maintainer: Drew Vogel <dvogel@sidejump.org>
|
||||||
|
" Last Change: 2021 Jul 25
|
||||||
|
"
|
||||||
|
" Replaced rgb.txt as the source of de facto standard color names. This is
|
||||||
|
" sourced each time the colorscheme command is run. It is also sourced each
|
||||||
|
" time the highlight command fails to recognize a gui color. You can override
|
||||||
|
" these colors by introducing a new colors/lists/default.vim file earlier in
|
||||||
|
" the runtimepath.
|
||||||
|
|
||||||
|
let s:keepcpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
call extend(v:colornames, {
|
||||||
|
\ 'snow': '#fffafa',
|
||||||
|
\ 'ghost white': '#f8f8ff',
|
||||||
|
\ 'ghostwhite': '#f8f8ff',
|
||||||
|
\ 'white smoke': '#f5f5f5',
|
||||||
|
\ 'whitesmoke': '#f5f5f5',
|
||||||
|
\ 'gainsboro': '#dcdcdc',
|
||||||
|
\ 'floral white': '#fffaf0',
|
||||||
|
\ 'floralwhite': '#fffaf0',
|
||||||
|
\ 'old lace': '#fdf5e6',
|
||||||
|
\ 'oldlace': '#fdf5e6',
|
||||||
|
\ 'linen': '#faf0e6',
|
||||||
|
\ 'antique white': '#faebd7',
|
||||||
|
\ 'antiquewhite': '#faebd7',
|
||||||
|
\ 'papaya whip': '#ffefd5',
|
||||||
|
\ 'papayawhip': '#ffefd5',
|
||||||
|
\ 'blanched almond': '#ffebcd',
|
||||||
|
\ 'blanchedalmond': '#ffebcd',
|
||||||
|
\ 'bisque': '#ffe4c4',
|
||||||
|
\ 'peach puff': '#ffdab9',
|
||||||
|
\ 'peachpuff': '#ffdab9',
|
||||||
|
\ 'navajo white': '#ffdead',
|
||||||
|
\ 'navajowhite': '#ffdead',
|
||||||
|
\ 'moccasin': '#ffe4b5',
|
||||||
|
\ 'cornsilk': '#fff8dc',
|
||||||
|
\ 'ivory': '#fffff0',
|
||||||
|
\ 'lemon chiffon': '#fffacd',
|
||||||
|
\ 'lemonchiffon': '#fffacd',
|
||||||
|
\ 'seashell': '#fff5ee',
|
||||||
|
\ 'honeydew': '#f0fff0',
|
||||||
|
\ 'mint cream': '#f5fffa',
|
||||||
|
\ 'mintcream': '#f5fffa',
|
||||||
|
\ 'azure': '#f0ffff',
|
||||||
|
\ 'alice blue': '#f0f8ff',
|
||||||
|
\ 'aliceblue': '#f0f8ff',
|
||||||
|
\ 'lavender': '#e6e6fa',
|
||||||
|
\ 'lavender blush': '#fff0f5',
|
||||||
|
\ 'lavenderblush': '#fff0f5',
|
||||||
|
\ 'misty rose': '#ffe4e1',
|
||||||
|
\ 'mistyrose': '#ffe4e1',
|
||||||
|
\ 'white': '#ffffff',
|
||||||
|
\ 'black': '#000000',
|
||||||
|
\ 'dark slate gray': '#2f4f4f',
|
||||||
|
\ 'darkslategray': '#2f4f4f',
|
||||||
|
\ 'dark slate grey': '#2f4f4f',
|
||||||
|
\ 'darkslategrey': '#2f4f4f',
|
||||||
|
\ 'dim gray': '#696969',
|
||||||
|
\ 'dimgray': '#696969',
|
||||||
|
\ 'dim grey': '#696969',
|
||||||
|
\ 'dimgrey': '#696969',
|
||||||
|
\ 'slate gray': '#708090',
|
||||||
|
\ 'slategray': '#708090',
|
||||||
|
\ 'slate grey': '#708090',
|
||||||
|
\ 'slategrey': '#708090',
|
||||||
|
\ 'light slate gray': '#778899',
|
||||||
|
\ 'lightslategray': '#778899',
|
||||||
|
\ 'light slate grey': '#778899',
|
||||||
|
\ 'lightslategrey': '#778899',
|
||||||
|
\ 'gray': '#bebebe',
|
||||||
|
\ 'grey': '#bebebe',
|
||||||
|
\ 'x11 gray': '#bebebe',
|
||||||
|
\ 'x11gray': '#bebebe',
|
||||||
|
\ 'x11 grey': '#bebebe',
|
||||||
|
\ 'x11grey': '#bebebe',
|
||||||
|
\ 'web gray': '#808080',
|
||||||
|
\ 'webgray': '#808080',
|
||||||
|
\ 'web grey': '#808080',
|
||||||
|
\ 'webgrey': '#808080',
|
||||||
|
\ 'light grey': '#d3d3d3',
|
||||||
|
\ 'lightgrey': '#d3d3d3',
|
||||||
|
\ 'light gray': '#d3d3d3',
|
||||||
|
\ 'lightgray': '#d3d3d3',
|
||||||
|
\ 'midnight blue': '#191970',
|
||||||
|
\ 'midnightblue': '#191970',
|
||||||
|
\ 'navy': '#000080',
|
||||||
|
\ 'navy blue': '#000080',
|
||||||
|
\ 'navyblue': '#000080',
|
||||||
|
\ 'cornflower blue': '#6495ed',
|
||||||
|
\ 'cornflowerblue': '#6495ed',
|
||||||
|
\ 'dark slate blue': '#483d8b',
|
||||||
|
\ 'darkslateblue': '#483d8b',
|
||||||
|
\ 'slate blue': '#6a5acd',
|
||||||
|
\ 'slateblue': '#6a5acd',
|
||||||
|
\ 'medium slate blue': '#7b68ee',
|
||||||
|
\ 'mediumslateblue': '#7b68ee',
|
||||||
|
\ 'light slate blue': '#8470ff',
|
||||||
|
\ 'lightslateblue': '#8470ff',
|
||||||
|
\ 'medium blue': '#0000cd',
|
||||||
|
\ 'mediumblue': '#0000cd',
|
||||||
|
\ 'royal blue': '#4169e1',
|
||||||
|
\ 'royalblue': '#4169e1',
|
||||||
|
\ 'blue': '#0000ff',
|
||||||
|
\ 'dodger blue': '#1e90ff',
|
||||||
|
\ 'dodgerblue': '#1e90ff',
|
||||||
|
\ 'deep sky blue': '#00bfff',
|
||||||
|
\ 'deepskyblue': '#00bfff',
|
||||||
|
\ 'sky blue': '#87ceeb',
|
||||||
|
\ 'skyblue': '#87ceeb',
|
||||||
|
\ 'light sky blue': '#87cefa',
|
||||||
|
\ 'lightskyblue': '#87cefa',
|
||||||
|
\ 'steel blue': '#4682b4',
|
||||||
|
\ 'steelblue': '#4682b4',
|
||||||
|
\ 'light steel blue': '#b0c4de',
|
||||||
|
\ 'lightsteelblue': '#b0c4de',
|
||||||
|
\ 'light blue': '#add8e6',
|
||||||
|
\ 'lightblue': '#add8e6',
|
||||||
|
\ 'powder blue': '#b0e0e6',
|
||||||
|
\ 'powderblue': '#b0e0e6',
|
||||||
|
\ 'pale turquoise': '#afeeee',
|
||||||
|
\ 'paleturquoise': '#afeeee',
|
||||||
|
\ 'dark turquoise': '#00ced1',
|
||||||
|
\ 'darkturquoise': '#00ced1',
|
||||||
|
\ 'medium turquoise': '#48d1cc',
|
||||||
|
\ 'mediumturquoise': '#48d1cc',
|
||||||
|
\ 'turquoise': '#40e0d0',
|
||||||
|
\ 'cyan': '#00ffff',
|
||||||
|
\ 'aqua': '#00ffff',
|
||||||
|
\ 'light cyan': '#e0ffff',
|
||||||
|
\ 'lightcyan': '#e0ffff',
|
||||||
|
\ 'cadet blue': '#5f9ea0',
|
||||||
|
\ 'cadetblue': '#5f9ea0',
|
||||||
|
\ 'medium aquamarine': '#66cdaa',
|
||||||
|
\ 'mediumaquamarine': '#66cdaa',
|
||||||
|
\ 'aquamarine': '#7fffd4',
|
||||||
|
\ 'dark green': '#006400',
|
||||||
|
\ 'darkgreen': '#006400',
|
||||||
|
\ 'dark olive green': '#556b2f',
|
||||||
|
\ 'darkolivegreen': '#556b2f',
|
||||||
|
\ 'dark sea green': '#8fbc8f',
|
||||||
|
\ 'darkseagreen': '#8fbc8f',
|
||||||
|
\ 'sea green': '#2e8b57',
|
||||||
|
\ 'seagreen': '#2e8b57',
|
||||||
|
\ 'medium sea green': '#3cb371',
|
||||||
|
\ 'mediumseagreen': '#3cb371',
|
||||||
|
\ 'light sea green': '#20b2aa',
|
||||||
|
\ 'lightseagreen': '#20b2aa',
|
||||||
|
\ 'pale green': '#98fb98',
|
||||||
|
\ 'palegreen': '#98fb98',
|
||||||
|
\ 'spring green': '#00ff7f',
|
||||||
|
\ 'springgreen': '#00ff7f',
|
||||||
|
\ 'lawn green': '#7cfc00',
|
||||||
|
\ 'lawngreen': '#7cfc00',
|
||||||
|
\ 'green': '#00ff00',
|
||||||
|
\ 'lime': '#00ff00',
|
||||||
|
\ 'x11 green': '#00ff00',
|
||||||
|
\ 'x11green': '#00ff00',
|
||||||
|
\ 'web green': '#008000',
|
||||||
|
\ 'webgreen': '#008000',
|
||||||
|
\ 'chartreuse': '#7fff00',
|
||||||
|
\ 'medium spring green': '#00fa9a',
|
||||||
|
\ 'mediumspringgreen': '#00fa9a',
|
||||||
|
\ 'green yellow': '#adff2f',
|
||||||
|
\ 'greenyellow': '#adff2f',
|
||||||
|
\ 'lime green': '#32cd32',
|
||||||
|
\ 'limegreen': '#32cd32',
|
||||||
|
\ 'yellow green': '#9acd32',
|
||||||
|
\ 'yellowgreen': '#9acd32',
|
||||||
|
\ 'forest green': '#228b22',
|
||||||
|
\ 'forestgreen': '#228b22',
|
||||||
|
\ 'olive drab': '#6b8e23',
|
||||||
|
\ 'olivedrab': '#6b8e23',
|
||||||
|
\ 'dark khaki': '#bdb76b',
|
||||||
|
\ 'darkkhaki': '#bdb76b',
|
||||||
|
\ 'khaki': '#f0e68c',
|
||||||
|
\ 'pale goldenrod': '#eee8aa',
|
||||||
|
\ 'palegoldenrod': '#eee8aa',
|
||||||
|
\ 'light goldenrod yellow': '#fafad2',
|
||||||
|
\ 'lightgoldenrodyellow': '#fafad2',
|
||||||
|
\ 'light yellow': '#ffffe0',
|
||||||
|
\ 'lightyellow': '#ffffe0',
|
||||||
|
\ 'yellow': '#ffff00',
|
||||||
|
\ 'gold': '#ffd700',
|
||||||
|
\ 'light goldenrod': '#eedd82',
|
||||||
|
\ 'lightgoldenrod': '#eedd82',
|
||||||
|
\ 'goldenrod': '#daa520',
|
||||||
|
\ 'dark goldenrod': '#b8860b',
|
||||||
|
\ 'darkgoldenrod': '#b8860b',
|
||||||
|
\ 'rosy brown': '#bc8f8f',
|
||||||
|
\ 'rosybrown': '#bc8f8f',
|
||||||
|
\ 'indian red': '#cd5c5c',
|
||||||
|
\ 'indianred': '#cd5c5c',
|
||||||
|
\ 'saddle brown': '#8b4513',
|
||||||
|
\ 'saddlebrown': '#8b4513',
|
||||||
|
\ 'sienna': '#a0522d',
|
||||||
|
\ 'peru': '#cd853f',
|
||||||
|
\ 'burlywood': '#deb887',
|
||||||
|
\ 'beige': '#f5f5dc',
|
||||||
|
\ 'wheat': '#f5deb3',
|
||||||
|
\ 'sandy brown': '#f4a460',
|
||||||
|
\ 'sandybrown': '#f4a460',
|
||||||
|
\ 'tan': '#d2b48c',
|
||||||
|
\ 'chocolate': '#d2691e',
|
||||||
|
\ 'firebrick': '#b22222',
|
||||||
|
\ 'brown': '#a52a2a',
|
||||||
|
\ 'dark salmon': '#e9967a',
|
||||||
|
\ 'darksalmon': '#e9967a',
|
||||||
|
\ 'salmon': '#fa8072',
|
||||||
|
\ 'light salmon': '#ffa07a',
|
||||||
|
\ 'lightsalmon': '#ffa07a',
|
||||||
|
\ 'orange': '#ffa500',
|
||||||
|
\ 'dark orange': '#ff8c00',
|
||||||
|
\ 'darkorange': '#ff8c00',
|
||||||
|
\ 'coral': '#ff7f50',
|
||||||
|
\ 'light coral': '#f08080',
|
||||||
|
\ 'lightcoral': '#f08080',
|
||||||
|
\ 'tomato': '#ff6347',
|
||||||
|
\ 'orange red': '#ff4500',
|
||||||
|
\ 'orangered': '#ff4500',
|
||||||
|
\ 'red': '#ff0000',
|
||||||
|
\ 'hot pink': '#ff69b4',
|
||||||
|
\ 'hotpink': '#ff69b4',
|
||||||
|
\ 'deep pink': '#ff1493',
|
||||||
|
\ 'deeppink': '#ff1493',
|
||||||
|
\ 'pink': '#ffc0cb',
|
||||||
|
\ 'light pink': '#ffb6c1',
|
||||||
|
\ 'lightpink': '#ffb6c1',
|
||||||
|
\ 'pale violet red': '#db7093',
|
||||||
|
\ 'palevioletred': '#db7093',
|
||||||
|
\ 'maroon': '#b03060',
|
||||||
|
\ 'x11 maroon': '#b03060',
|
||||||
|
\ 'x11maroon': '#b03060',
|
||||||
|
\ 'web maroon': '#800000',
|
||||||
|
\ 'webmaroon': '#800000',
|
||||||
|
\ 'medium violet red': '#c71585',
|
||||||
|
\ 'mediumvioletred': '#c71585',
|
||||||
|
\ 'violet red': '#d02090',
|
||||||
|
\ 'violetred': '#d02090',
|
||||||
|
\ 'magenta': '#ff00ff',
|
||||||
|
\ 'fuchsia': '#ff00ff',
|
||||||
|
\ 'violet': '#ee82ee',
|
||||||
|
\ 'plum': '#dda0dd',
|
||||||
|
\ 'orchid': '#da70d6',
|
||||||
|
\ 'medium orchid': '#ba55d3',
|
||||||
|
\ 'mediumorchid': '#ba55d3',
|
||||||
|
\ 'dark orchid': '#9932cc',
|
||||||
|
\ 'darkorchid': '#9932cc',
|
||||||
|
\ 'dark violet': '#9400d3',
|
||||||
|
\ 'darkviolet': '#9400d3',
|
||||||
|
\ 'blue violet': '#8a2be2',
|
||||||
|
\ 'blueviolet': '#8a2be2',
|
||||||
|
\ 'purple': '#a020f0',
|
||||||
|
\ 'x11 purple': '#a020f0',
|
||||||
|
\ 'x11purple': '#a020f0',
|
||||||
|
\ 'web purple': '#800080',
|
||||||
|
\ 'webpurple': '#800080',
|
||||||
|
\ 'medium purple': '#9370db',
|
||||||
|
\ 'mediumpurple': '#9370db',
|
||||||
|
\ 'thistle': '#d8bfd8',
|
||||||
|
\ 'snow1': '#fffafa',
|
||||||
|
\ 'snow2': '#eee9e9',
|
||||||
|
\ 'snow3': '#cdc9c9',
|
||||||
|
\ 'snow4': '#8b8989',
|
||||||
|
\ 'seashell1': '#fff5ee',
|
||||||
|
\ 'seashell2': '#eee5de',
|
||||||
|
\ 'seashell3': '#cdc5bf',
|
||||||
|
\ 'seashell4': '#8b8682',
|
||||||
|
\ 'antiquewhite1': '#ffefdb',
|
||||||
|
\ 'antiquewhite2': '#eedfcc',
|
||||||
|
\ 'antiquewhite3': '#cdc0b0',
|
||||||
|
\ 'antiquewhite4': '#8b8378',
|
||||||
|
\ 'bisque1': '#ffe4c4',
|
||||||
|
\ 'bisque2': '#eed5b7',
|
||||||
|
\ 'bisque3': '#cdb79e',
|
||||||
|
\ 'bisque4': '#8b7d6b',
|
||||||
|
\ 'peachpuff1': '#ffdab9',
|
||||||
|
\ 'peachpuff2': '#eecbad',
|
||||||
|
\ 'peachpuff3': '#cdaf95',
|
||||||
|
\ 'peachpuff4': '#8b7765',
|
||||||
|
\ 'navajowhite1': '#ffdead',
|
||||||
|
\ 'navajowhite2': '#eecfa1',
|
||||||
|
\ 'navajowhite3': '#cdb38b',
|
||||||
|
\ 'navajowhite4': '#8b795e',
|
||||||
|
\ 'lemonchiffon1': '#fffacd',
|
||||||
|
\ 'lemonchiffon2': '#eee9bf',
|
||||||
|
\ 'lemonchiffon3': '#cdc9a5',
|
||||||
|
\ 'lemonchiffon4': '#8b8970',
|
||||||
|
\ 'cornsilk1': '#fff8dc',
|
||||||
|
\ 'cornsilk2': '#eee8cd',
|
||||||
|
\ 'cornsilk3': '#cdc8b1',
|
||||||
|
\ 'cornsilk4': '#8b8878',
|
||||||
|
\ 'ivory1': '#fffff0',
|
||||||
|
\ 'ivory2': '#eeeee0',
|
||||||
|
\ 'ivory3': '#cdcdc1',
|
||||||
|
\ 'ivory4': '#8b8b83',
|
||||||
|
\ 'honeydew1': '#f0fff0',
|
||||||
|
\ 'honeydew2': '#e0eee0',
|
||||||
|
\ 'honeydew3': '#c1cdc1',
|
||||||
|
\ 'honeydew4': '#838b83',
|
||||||
|
\ 'lavenderblush1': '#fff0f5',
|
||||||
|
\ 'lavenderblush2': '#eee0e5',
|
||||||
|
\ 'lavenderblush3': '#cdc1c5',
|
||||||
|
\ 'lavenderblush4': '#8b8386',
|
||||||
|
\ 'mistyrose1': '#ffe4e1',
|
||||||
|
\ 'mistyrose2': '#eed5d2',
|
||||||
|
\ 'mistyrose3': '#cdb7b5',
|
||||||
|
\ 'mistyrose4': '#8b7d7b',
|
||||||
|
\ 'azure1': '#f0ffff',
|
||||||
|
\ 'azure2': '#e0eeee',
|
||||||
|
\ 'azure3': '#c1cdcd',
|
||||||
|
\ 'azure4': '#838b8b',
|
||||||
|
\ 'slateblue1': '#836fff',
|
||||||
|
\ 'slateblue2': '#7a67ee',
|
||||||
|
\ 'slateblue3': '#6959cd',
|
||||||
|
\ 'slateblue4': '#473c8b',
|
||||||
|
\ 'royalblue1': '#4876ff',
|
||||||
|
\ 'royalblue2': '#436eee',
|
||||||
|
\ 'royalblue3': '#3a5fcd',
|
||||||
|
\ 'royalblue4': '#27408b',
|
||||||
|
\ 'blue1': '#0000ff',
|
||||||
|
\ 'blue2': '#0000ee',
|
||||||
|
\ 'blue3': '#0000cd',
|
||||||
|
\ 'blue4': '#00008b',
|
||||||
|
\ 'dodgerblue1': '#1e90ff',
|
||||||
|
\ 'dodgerblue2': '#1c86ee',
|
||||||
|
\ 'dodgerblue3': '#1874cd',
|
||||||
|
\ 'dodgerblue4': '#104e8b',
|
||||||
|
\ 'steelblue1': '#63b8ff',
|
||||||
|
\ 'steelblue2': '#5cacee',
|
||||||
|
\ 'steelblue3': '#4f94cd',
|
||||||
|
\ 'steelblue4': '#36648b',
|
||||||
|
\ 'deepskyblue1': '#00bfff',
|
||||||
|
\ 'deepskyblue2': '#00b2ee',
|
||||||
|
\ 'deepskyblue3': '#009acd',
|
||||||
|
\ 'deepskyblue4': '#00688b',
|
||||||
|
\ 'skyblue1': '#87ceff',
|
||||||
|
\ 'skyblue2': '#7ec0ee',
|
||||||
|
\ 'skyblue3': '#6ca6cd',
|
||||||
|
\ 'skyblue4': '#4a708b',
|
||||||
|
\ 'lightskyblue1': '#b0e2ff',
|
||||||
|
\ 'lightskyblue2': '#a4d3ee',
|
||||||
|
\ 'lightskyblue3': '#8db6cd',
|
||||||
|
\ 'lightskyblue4': '#607b8b',
|
||||||
|
\ 'slategray1': '#c6e2ff',
|
||||||
|
\ 'slategray2': '#b9d3ee',
|
||||||
|
\ 'slategray3': '#9fb6cd',
|
||||||
|
\ 'slategray4': '#6c7b8b',
|
||||||
|
\ 'lightsteelblue1': '#cae1ff',
|
||||||
|
\ 'lightsteelblue2': '#bcd2ee',
|
||||||
|
\ 'lightsteelblue3': '#a2b5cd',
|
||||||
|
\ 'lightsteelblue4': '#6e7b8b',
|
||||||
|
\ 'lightblue1': '#bfefff',
|
||||||
|
\ 'lightblue2': '#b2dfee',
|
||||||
|
\ 'lightblue3': '#9ac0cd',
|
||||||
|
\ 'lightblue4': '#68838b',
|
||||||
|
\ 'lightcyan1': '#e0ffff',
|
||||||
|
\ 'lightcyan2': '#d1eeee',
|
||||||
|
\ 'lightcyan3': '#b4cdcd',
|
||||||
|
\ 'lightcyan4': '#7a8b8b',
|
||||||
|
\ 'paleturquoise1': '#bbffff',
|
||||||
|
\ 'paleturquoise2': '#aeeeee',
|
||||||
|
\ 'paleturquoise3': '#96cdcd',
|
||||||
|
\ 'paleturquoise4': '#668b8b',
|
||||||
|
\ 'cadetblue1': '#98f5ff',
|
||||||
|
\ 'cadetblue2': '#8ee5ee',
|
||||||
|
\ 'cadetblue3': '#7ac5cd',
|
||||||
|
\ 'cadetblue4': '#53868b',
|
||||||
|
\ 'turquoise1': '#00f5ff',
|
||||||
|
\ 'turquoise2': '#00e5ee',
|
||||||
|
\ 'turquoise3': '#00c5cd',
|
||||||
|
\ 'turquoise4': '#00868b',
|
||||||
|
\ 'cyan1': '#00ffff',
|
||||||
|
\ 'cyan2': '#00eeee',
|
||||||
|
\ 'cyan3': '#00cdcd',
|
||||||
|
\ 'cyan4': '#008b8b',
|
||||||
|
\ 'darkslategray1': '#97ffff',
|
||||||
|
\ 'darkslategray2': '#8deeee',
|
||||||
|
\ 'darkslategray3': '#79cdcd',
|
||||||
|
\ 'darkslategray4': '#528b8b',
|
||||||
|
\ 'aquamarine1': '#7fffd4',
|
||||||
|
\ 'aquamarine2': '#76eec6',
|
||||||
|
\ 'aquamarine3': '#66cdaa',
|
||||||
|
\ 'aquamarine4': '#458b74',
|
||||||
|
\ 'darkseagreen1': '#c1ffc1',
|
||||||
|
\ 'darkseagreen2': '#b4eeb4',
|
||||||
|
\ 'darkseagreen3': '#9bcd9b',
|
||||||
|
\ 'darkseagreen4': '#698b69',
|
||||||
|
\ 'seagreen1': '#54ff9f',
|
||||||
|
\ 'seagreen2': '#4eee94',
|
||||||
|
\ 'seagreen3': '#43cd80',
|
||||||
|
\ 'seagreen4': '#2e8b57',
|
||||||
|
\ 'palegreen1': '#9aff9a',
|
||||||
|
\ 'palegreen2': '#90ee90',
|
||||||
|
\ 'palegreen3': '#7ccd7c',
|
||||||
|
\ 'palegreen4': '#548b54',
|
||||||
|
\ 'springgreen1': '#00ff7f',
|
||||||
|
\ 'springgreen2': '#00ee76',
|
||||||
|
\ 'springgreen3': '#00cd66',
|
||||||
|
\ 'springgreen4': '#008b45',
|
||||||
|
\ 'green1': '#00ff00',
|
||||||
|
\ 'green2': '#00ee00',
|
||||||
|
\ 'green3': '#00cd00',
|
||||||
|
\ 'green4': '#008b00',
|
||||||
|
\ 'chartreuse1': '#7fff00',
|
||||||
|
\ 'chartreuse2': '#76ee00',
|
||||||
|
\ 'chartreuse3': '#66cd00',
|
||||||
|
\ 'chartreuse4': '#458b00',
|
||||||
|
\ 'olivedrab1': '#c0ff3e',
|
||||||
|
\ 'olivedrab2': '#b3ee3a',
|
||||||
|
\ 'olivedrab3': '#9acd32',
|
||||||
|
\ 'olivedrab4': '#698b22',
|
||||||
|
\ 'darkolivegreen1': '#caff70',
|
||||||
|
\ 'darkolivegreen2': '#bcee68',
|
||||||
|
\ 'darkolivegreen3': '#a2cd5a',
|
||||||
|
\ 'darkolivegreen4': '#6e8b3d',
|
||||||
|
\ 'khaki1': '#fff68f',
|
||||||
|
\ 'khaki2': '#eee685',
|
||||||
|
\ 'khaki3': '#cdc673',
|
||||||
|
\ 'khaki4': '#8b864e',
|
||||||
|
\ 'lightgoldenrod1': '#ffec8b',
|
||||||
|
\ 'lightgoldenrod2': '#eedc82',
|
||||||
|
\ 'lightgoldenrod3': '#cdbe70',
|
||||||
|
\ 'lightgoldenrod4': '#8b814c',
|
||||||
|
\ 'lightyellow1': '#ffffe0',
|
||||||
|
\ 'lightyellow2': '#eeeed1',
|
||||||
|
\ 'lightyellow3': '#cdcdb4',
|
||||||
|
\ 'lightyellow4': '#8b8b7a',
|
||||||
|
\ 'yellow1': '#ffff00',
|
||||||
|
\ 'yellow2': '#eeee00',
|
||||||
|
\ 'yellow3': '#cdcd00',
|
||||||
|
\ 'yellow4': '#8b8b00',
|
||||||
|
\ 'gold1': '#ffd700',
|
||||||
|
\ 'gold2': '#eec900',
|
||||||
|
\ 'gold3': '#cdad00',
|
||||||
|
\ 'gold4': '#8b7500',
|
||||||
|
\ 'goldenrod1': '#ffc125',
|
||||||
|
\ 'goldenrod2': '#eeb422',
|
||||||
|
\ 'goldenrod3': '#cd9b1d',
|
||||||
|
\ 'goldenrod4': '#8b6914',
|
||||||
|
\ 'darkgoldenrod1': '#ffb90f',
|
||||||
|
\ 'darkgoldenrod2': '#eead0e',
|
||||||
|
\ 'darkgoldenrod3': '#cd950c',
|
||||||
|
\ 'darkgoldenrod4': '#8b6508',
|
||||||
|
\ 'rosybrown1': '#ffc1c1',
|
||||||
|
\ 'rosybrown2': '#eeb4b4',
|
||||||
|
\ 'rosybrown3': '#cd9b9b',
|
||||||
|
\ 'rosybrown4': '#8b6969',
|
||||||
|
\ 'indianred1': '#ff6a6a',
|
||||||
|
\ 'indianred2': '#ee6363',
|
||||||
|
\ 'indianred3': '#cd5555',
|
||||||
|
\ 'indianred4': '#8b3a3a',
|
||||||
|
\ 'sienna1': '#ff8247',
|
||||||
|
\ 'sienna2': '#ee7942',
|
||||||
|
\ 'sienna3': '#cd6839',
|
||||||
|
\ 'sienna4': '#8b4726',
|
||||||
|
\ 'burlywood1': '#ffd39b',
|
||||||
|
\ 'burlywood2': '#eec591',
|
||||||
|
\ 'burlywood3': '#cdaa7d',
|
||||||
|
\ 'burlywood4': '#8b7355',
|
||||||
|
\ 'wheat1': '#ffe7ba',
|
||||||
|
\ 'wheat2': '#eed8ae',
|
||||||
|
\ 'wheat3': '#cdba96',
|
||||||
|
\ 'wheat4': '#8b7e66',
|
||||||
|
\ 'tan1': '#ffa54f',
|
||||||
|
\ 'tan2': '#ee9a49',
|
||||||
|
\ 'tan3': '#cd853f',
|
||||||
|
\ 'tan4': '#8b5a2b',
|
||||||
|
\ 'chocolate1': '#ff7f24',
|
||||||
|
\ 'chocolate2': '#ee7621',
|
||||||
|
\ 'chocolate3': '#cd661d',
|
||||||
|
\ 'chocolate4': '#8b4513',
|
||||||
|
\ 'firebrick1': '#ff3030',
|
||||||
|
\ 'firebrick2': '#ee2c2c',
|
||||||
|
\ 'firebrick3': '#cd2626',
|
||||||
|
\ 'firebrick4': '#8b1a1a',
|
||||||
|
\ 'brown1': '#ff4040',
|
||||||
|
\ 'brown2': '#ee3b3b',
|
||||||
|
\ 'brown3': '#cd3333',
|
||||||
|
\ 'brown4': '#8b2323',
|
||||||
|
\ 'salmon1': '#ff8c69',
|
||||||
|
\ 'salmon2': '#ee8262',
|
||||||
|
\ 'salmon3': '#cd7054',
|
||||||
|
\ 'salmon4': '#8b4c39',
|
||||||
|
\ 'lightsalmon1': '#ffa07a',
|
||||||
|
\ 'lightsalmon2': '#ee9572',
|
||||||
|
\ 'lightsalmon3': '#cd8162',
|
||||||
|
\ 'lightsalmon4': '#8b5742',
|
||||||
|
\ 'orange1': '#ffa500',
|
||||||
|
\ 'orange2': '#ee9a00',
|
||||||
|
\ 'orange3': '#cd8500',
|
||||||
|
\ 'orange4': '#8b5a00',
|
||||||
|
\ 'darkorange1': '#ff7f00',
|
||||||
|
\ 'darkorange2': '#ee7600',
|
||||||
|
\ 'darkorange3': '#cd6600',
|
||||||
|
\ 'darkorange4': '#8b4500',
|
||||||
|
\ 'coral1': '#ff7256',
|
||||||
|
\ 'coral2': '#ee6a50',
|
||||||
|
\ 'coral3': '#cd5b45',
|
||||||
|
\ 'coral4': '#8b3e2f',
|
||||||
|
\ 'tomato1': '#ff6347',
|
||||||
|
\ 'tomato2': '#ee5c42',
|
||||||
|
\ 'tomato3': '#cd4f39',
|
||||||
|
\ 'tomato4': '#8b3626',
|
||||||
|
\ 'orangered1': '#ff4500',
|
||||||
|
\ 'orangered2': '#ee4000',
|
||||||
|
\ 'orangered3': '#cd3700',
|
||||||
|
\ 'orangered4': '#8b2500',
|
||||||
|
\ 'red1': '#ff0000',
|
||||||
|
\ 'red2': '#ee0000',
|
||||||
|
\ 'red3': '#cd0000',
|
||||||
|
\ 'red4': '#8b0000',
|
||||||
|
\ 'deeppink1': '#ff1493',
|
||||||
|
\ 'deeppink2': '#ee1289',
|
||||||
|
\ 'deeppink3': '#cd1076',
|
||||||
|
\ 'deeppink4': '#8b0a50',
|
||||||
|
\ 'hotpink1': '#ff6eb4',
|
||||||
|
\ 'hotpink2': '#ee6aa7',
|
||||||
|
\ 'hotpink3': '#cd6090',
|
||||||
|
\ 'hotpink4': '#8b3a62',
|
||||||
|
\ 'pink1': '#ffb5c5',
|
||||||
|
\ 'pink2': '#eea9b8',
|
||||||
|
\ 'pink3': '#cd919e',
|
||||||
|
\ 'pink4': '#8b636c',
|
||||||
|
\ 'lightpink1': '#ffaeb9',
|
||||||
|
\ 'lightpink2': '#eea2ad',
|
||||||
|
\ 'lightpink3': '#cd8c95',
|
||||||
|
\ 'lightpink4': '#8b5f65',
|
||||||
|
\ 'palevioletred1': '#ff82ab',
|
||||||
|
\ 'palevioletred2': '#ee799f',
|
||||||
|
\ 'palevioletred3': '#cd6889',
|
||||||
|
\ 'palevioletred4': '#8b475d',
|
||||||
|
\ 'maroon1': '#ff34b3',
|
||||||
|
\ 'maroon2': '#ee30a7',
|
||||||
|
\ 'maroon3': '#cd2990',
|
||||||
|
\ 'maroon4': '#8b1c62',
|
||||||
|
\ 'violetred1': '#ff3e96',
|
||||||
|
\ 'violetred2': '#ee3a8c',
|
||||||
|
\ 'violetred3': '#cd3278',
|
||||||
|
\ 'violetred4': '#8b2252',
|
||||||
|
\ 'magenta1': '#ff00ff',
|
||||||
|
\ 'magenta2': '#ee00ee',
|
||||||
|
\ 'magenta3': '#cd00cd',
|
||||||
|
\ 'magenta4': '#8b008b',
|
||||||
|
\ 'orchid1': '#ff83fa',
|
||||||
|
\ 'orchid2': '#ee7ae9',
|
||||||
|
\ 'orchid3': '#cd69c9',
|
||||||
|
\ 'orchid4': '#8b4789',
|
||||||
|
\ 'plum1': '#ffbbff',
|
||||||
|
\ 'plum2': '#eeaeee',
|
||||||
|
\ 'plum3': '#cd96cd',
|
||||||
|
\ 'plum4': '#8b668b',
|
||||||
|
\ 'mediumorchid1': '#e066ff',
|
||||||
|
\ 'mediumorchid2': '#d15fee',
|
||||||
|
\ 'mediumorchid3': '#b452cd',
|
||||||
|
\ 'mediumorchid4': '#7a378b',
|
||||||
|
\ 'darkorchid1': '#bf3eff',
|
||||||
|
\ 'darkorchid2': '#b23aee',
|
||||||
|
\ 'darkorchid3': '#9a32cd',
|
||||||
|
\ 'darkorchid4': '#68228b',
|
||||||
|
\ 'purple1': '#9b30ff',
|
||||||
|
\ 'purple2': '#912cee',
|
||||||
|
\ 'purple3': '#7d26cd',
|
||||||
|
\ 'purple4': '#551a8b',
|
||||||
|
\ 'mediumpurple1': '#ab82ff',
|
||||||
|
\ 'mediumpurple2': '#9f79ee',
|
||||||
|
\ 'mediumpurple3': '#8968cd',
|
||||||
|
\ 'mediumpurple4': '#5d478b',
|
||||||
|
\ 'thistle1': '#ffe1ff',
|
||||||
|
\ 'thistle2': '#eed2ee',
|
||||||
|
\ 'thistle3': '#cdb5cd',
|
||||||
|
\ 'thistle4': '#8b7b8b',
|
||||||
|
\ 'gray0': '#000000',
|
||||||
|
\ 'grey0': '#000000',
|
||||||
|
\ 'gray1': '#030303',
|
||||||
|
\ 'grey1': '#030303',
|
||||||
|
\ 'gray2': '#050505',
|
||||||
|
\ 'grey2': '#050505',
|
||||||
|
\ 'gray3': '#080808',
|
||||||
|
\ 'grey3': '#080808',
|
||||||
|
\ 'gray4': '#0a0a0a',
|
||||||
|
\ 'grey4': '#0a0a0a',
|
||||||
|
\ 'gray5': '#0d0d0d',
|
||||||
|
\ 'grey5': '#0d0d0d',
|
||||||
|
\ 'gray6': '#0f0f0f',
|
||||||
|
\ 'grey6': '#0f0f0f',
|
||||||
|
\ 'gray7': '#121212',
|
||||||
|
\ 'grey7': '#121212',
|
||||||
|
\ 'gray8': '#141414',
|
||||||
|
\ 'grey8': '#141414',
|
||||||
|
\ 'gray9': '#171717',
|
||||||
|
\ 'grey9': '#171717',
|
||||||
|
\ 'gray10': '#1a1a1a',
|
||||||
|
\ 'grey10': '#1a1a1a',
|
||||||
|
\ 'gray11': '#1c1c1c',
|
||||||
|
\ 'grey11': '#1c1c1c',
|
||||||
|
\ 'gray12': '#1f1f1f',
|
||||||
|
\ 'grey12': '#1f1f1f',
|
||||||
|
\ 'gray13': '#212121',
|
||||||
|
\ 'grey13': '#212121',
|
||||||
|
\ 'gray14': '#242424',
|
||||||
|
\ 'grey14': '#242424',
|
||||||
|
\ 'gray15': '#262626',
|
||||||
|
\ 'grey15': '#262626',
|
||||||
|
\ 'gray16': '#292929',
|
||||||
|
\ 'grey16': '#292929',
|
||||||
|
\ 'gray17': '#2b2b2b',
|
||||||
|
\ 'grey17': '#2b2b2b',
|
||||||
|
\ 'gray18': '#2e2e2e',
|
||||||
|
\ 'grey18': '#2e2e2e',
|
||||||
|
\ 'gray19': '#303030',
|
||||||
|
\ 'grey19': '#303030',
|
||||||
|
\ 'gray20': '#333333',
|
||||||
|
\ 'grey20': '#333333',
|
||||||
|
\ 'gray21': '#363636',
|
||||||
|
\ 'grey21': '#363636',
|
||||||
|
\ 'gray22': '#383838',
|
||||||
|
\ 'grey22': '#383838',
|
||||||
|
\ 'gray23': '#3b3b3b',
|
||||||
|
\ 'grey23': '#3b3b3b',
|
||||||
|
\ 'gray24': '#3d3d3d',
|
||||||
|
\ 'grey24': '#3d3d3d',
|
||||||
|
\ 'gray25': '#404040',
|
||||||
|
\ 'grey25': '#404040',
|
||||||
|
\ 'gray26': '#424242',
|
||||||
|
\ 'grey26': '#424242',
|
||||||
|
\ 'gray27': '#454545',
|
||||||
|
\ 'grey27': '#454545',
|
||||||
|
\ 'gray28': '#474747',
|
||||||
|
\ 'grey28': '#474747',
|
||||||
|
\ 'gray29': '#4a4a4a',
|
||||||
|
\ 'grey29': '#4a4a4a',
|
||||||
|
\ 'gray30': '#4d4d4d',
|
||||||
|
\ 'grey30': '#4d4d4d',
|
||||||
|
\ 'gray31': '#4f4f4f',
|
||||||
|
\ 'grey31': '#4f4f4f',
|
||||||
|
\ 'gray32': '#525252',
|
||||||
|
\ 'grey32': '#525252',
|
||||||
|
\ 'gray33': '#545454',
|
||||||
|
\ 'grey33': '#545454',
|
||||||
|
\ 'gray34': '#575757',
|
||||||
|
\ 'grey34': '#575757',
|
||||||
|
\ 'gray35': '#595959',
|
||||||
|
\ 'grey35': '#595959',
|
||||||
|
\ 'gray36': '#5c5c5c',
|
||||||
|
\ 'grey36': '#5c5c5c',
|
||||||
|
\ 'gray37': '#5e5e5e',
|
||||||
|
\ 'grey37': '#5e5e5e',
|
||||||
|
\ 'gray38': '#616161',
|
||||||
|
\ 'grey38': '#616161',
|
||||||
|
\ 'gray39': '#636363',
|
||||||
|
\ 'grey39': '#636363',
|
||||||
|
\ 'gray40': '#666666',
|
||||||
|
\ 'grey40': '#666666',
|
||||||
|
\ 'gray41': '#696969',
|
||||||
|
\ 'grey41': '#696969',
|
||||||
|
\ 'gray42': '#6b6b6b',
|
||||||
|
\ 'grey42': '#6b6b6b',
|
||||||
|
\ 'gray43': '#6e6e6e',
|
||||||
|
\ 'grey43': '#6e6e6e',
|
||||||
|
\ 'gray44': '#707070',
|
||||||
|
\ 'grey44': '#707070',
|
||||||
|
\ 'gray45': '#737373',
|
||||||
|
\ 'grey45': '#737373',
|
||||||
|
\ 'gray46': '#757575',
|
||||||
|
\ 'grey46': '#757575',
|
||||||
|
\ 'gray47': '#787878',
|
||||||
|
\ 'grey47': '#787878',
|
||||||
|
\ 'gray48': '#7a7a7a',
|
||||||
|
\ 'grey48': '#7a7a7a',
|
||||||
|
\ 'gray49': '#7d7d7d',
|
||||||
|
\ 'grey49': '#7d7d7d',
|
||||||
|
\ 'gray50': '#7f7f7f',
|
||||||
|
\ 'grey50': '#7f7f7f',
|
||||||
|
\ 'gray51': '#828282',
|
||||||
|
\ 'grey51': '#828282',
|
||||||
|
\ 'gray52': '#858585',
|
||||||
|
\ 'grey52': '#858585',
|
||||||
|
\ 'gray53': '#878787',
|
||||||
|
\ 'grey53': '#878787',
|
||||||
|
\ 'gray54': '#8a8a8a',
|
||||||
|
\ 'grey54': '#8a8a8a',
|
||||||
|
\ 'gray55': '#8c8c8c',
|
||||||
|
\ 'grey55': '#8c8c8c',
|
||||||
|
\ 'gray56': '#8f8f8f',
|
||||||
|
\ 'grey56': '#8f8f8f',
|
||||||
|
\ 'gray57': '#919191',
|
||||||
|
\ 'grey57': '#919191',
|
||||||
|
\ 'gray58': '#949494',
|
||||||
|
\ 'grey58': '#949494',
|
||||||
|
\ 'gray59': '#969696',
|
||||||
|
\ 'grey59': '#969696',
|
||||||
|
\ 'gray60': '#999999',
|
||||||
|
\ 'grey60': '#999999',
|
||||||
|
\ 'gray61': '#9c9c9c',
|
||||||
|
\ 'grey61': '#9c9c9c',
|
||||||
|
\ 'gray62': '#9e9e9e',
|
||||||
|
\ 'grey62': '#9e9e9e',
|
||||||
|
\ 'gray63': '#a1a1a1',
|
||||||
|
\ 'grey63': '#a1a1a1',
|
||||||
|
\ 'gray64': '#a3a3a3',
|
||||||
|
\ 'grey64': '#a3a3a3',
|
||||||
|
\ 'gray65': '#a6a6a6',
|
||||||
|
\ 'grey65': '#a6a6a6',
|
||||||
|
\ 'gray66': '#a8a8a8',
|
||||||
|
\ 'grey66': '#a8a8a8',
|
||||||
|
\ 'gray67': '#ababab',
|
||||||
|
\ 'grey67': '#ababab',
|
||||||
|
\ 'gray68': '#adadad',
|
||||||
|
\ 'grey68': '#adadad',
|
||||||
|
\ 'gray69': '#b0b0b0',
|
||||||
|
\ 'grey69': '#b0b0b0',
|
||||||
|
\ 'gray70': '#b3b3b3',
|
||||||
|
\ 'grey70': '#b3b3b3',
|
||||||
|
\ 'gray71': '#b5b5b5',
|
||||||
|
\ 'grey71': '#b5b5b5',
|
||||||
|
\ 'gray72': '#b8b8b8',
|
||||||
|
\ 'grey72': '#b8b8b8',
|
||||||
|
\ 'gray73': '#bababa',
|
||||||
|
\ 'grey73': '#bababa',
|
||||||
|
\ 'gray74': '#bdbdbd',
|
||||||
|
\ 'grey74': '#bdbdbd',
|
||||||
|
\ 'gray75': '#bfbfbf',
|
||||||
|
\ 'grey75': '#bfbfbf',
|
||||||
|
\ 'gray76': '#c2c2c2',
|
||||||
|
\ 'grey76': '#c2c2c2',
|
||||||
|
\ 'gray77': '#c4c4c4',
|
||||||
|
\ 'grey77': '#c4c4c4',
|
||||||
|
\ 'gray78': '#c7c7c7',
|
||||||
|
\ 'grey78': '#c7c7c7',
|
||||||
|
\ 'gray79': '#c9c9c9',
|
||||||
|
\ 'grey79': '#c9c9c9',
|
||||||
|
\ 'gray80': '#cccccc',
|
||||||
|
\ 'grey80': '#cccccc',
|
||||||
|
\ 'gray81': '#cfcfcf',
|
||||||
|
\ 'grey81': '#cfcfcf',
|
||||||
|
\ 'gray82': '#d1d1d1',
|
||||||
|
\ 'grey82': '#d1d1d1',
|
||||||
|
\ 'gray83': '#d4d4d4',
|
||||||
|
\ 'grey83': '#d4d4d4',
|
||||||
|
\ 'gray84': '#d6d6d6',
|
||||||
|
\ 'grey84': '#d6d6d6',
|
||||||
|
\ 'gray85': '#d9d9d9',
|
||||||
|
\ 'grey85': '#d9d9d9',
|
||||||
|
\ 'gray86': '#dbdbdb',
|
||||||
|
\ 'grey86': '#dbdbdb',
|
||||||
|
\ 'gray87': '#dedede',
|
||||||
|
\ 'grey87': '#dedede',
|
||||||
|
\ 'gray88': '#e0e0e0',
|
||||||
|
\ 'grey88': '#e0e0e0',
|
||||||
|
\ 'gray89': '#e3e3e3',
|
||||||
|
\ 'grey89': '#e3e3e3',
|
||||||
|
\ 'gray90': '#e5e5e5',
|
||||||
|
\ 'grey90': '#e5e5e5',
|
||||||
|
\ 'gray91': '#e8e8e8',
|
||||||
|
\ 'grey91': '#e8e8e8',
|
||||||
|
\ 'gray92': '#ebebeb',
|
||||||
|
\ 'grey92': '#ebebeb',
|
||||||
|
\ 'gray93': '#ededed',
|
||||||
|
\ 'grey93': '#ededed',
|
||||||
|
\ 'gray94': '#f0f0f0',
|
||||||
|
\ 'grey94': '#f0f0f0',
|
||||||
|
\ 'gray95': '#f2f2f2',
|
||||||
|
\ 'grey95': '#f2f2f2',
|
||||||
|
\ 'gray96': '#f5f5f5',
|
||||||
|
\ 'grey96': '#f5f5f5',
|
||||||
|
\ 'gray97': '#f7f7f7',
|
||||||
|
\ 'grey97': '#f7f7f7',
|
||||||
|
\ 'gray98': '#fafafa',
|
||||||
|
\ 'grey98': '#fafafa',
|
||||||
|
\ 'gray99': '#fcfcfc',
|
||||||
|
\ 'grey99': '#fcfcfc',
|
||||||
|
\ 'gray100': '#ffffff',
|
||||||
|
\ 'grey100': '#ffffff',
|
||||||
|
\ 'dark grey': '#a9a9a9',
|
||||||
|
\ 'darkgrey': '#a9a9a9',
|
||||||
|
\ 'dark gray': '#a9a9a9',
|
||||||
|
\ 'darkgray': '#a9a9a9',
|
||||||
|
\ 'dark blue': '#00008b',
|
||||||
|
\ 'darkblue': '#00008b',
|
||||||
|
\ 'dark cyan': '#008b8b',
|
||||||
|
\ 'darkcyan': '#008b8b',
|
||||||
|
\ 'dark magenta': '#8b008b',
|
||||||
|
\ 'darkmagenta': '#8b008b',
|
||||||
|
\ 'dark red': '#8b0000',
|
||||||
|
\ 'darkred': '#8b0000',
|
||||||
|
\ 'light green': '#90ee90',
|
||||||
|
\ 'lightgreen': '#90ee90',
|
||||||
|
\ 'crimson': '#dc143c',
|
||||||
|
\ 'indigo': '#4b0082',
|
||||||
|
\ 'olive': '#808000',
|
||||||
|
\ 'rebecca purple': '#663399',
|
||||||
|
\ 'rebeccapurple': '#663399',
|
||||||
|
\ 'silver': '#c0c0c0',
|
||||||
|
\ 'teal': '#008080'
|
||||||
|
\ }, 'keep')
|
||||||
|
|
||||||
|
let &cpo= s:keepcpo
|
||||||
|
unlet s:keepcpo
|
||||||
|
|
||||||
|
"vim: sw=4
|
||||||
26
runtime/compiler/cm3.vim
Normal file
26
runtime/compiler/cm3.vim
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Critical Mass Modula-3 Compiler
|
||||||
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
" Last Change: 2021 Apr 08
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "cm3"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" TODO: better handling of Quake errors
|
||||||
|
CompilerSet makeprg=cm3
|
||||||
|
CompilerSet errorformat=%D---\ building\ in\ %f\ ---,
|
||||||
|
\%W\"%f\"\\,\ line\ %l:\ warning:\ %m,
|
||||||
|
\%E\"%f\"\\,\ line\ %l:\ %m,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
27
runtime/compiler/fbc.vim
Normal file
27
runtime/compiler/fbc.vim
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: FreeBASIC Compiler
|
||||||
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
" Last Change: 2015 Jan 10
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "fbc"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
CompilerSet makeprg=fbc
|
||||||
|
CompilerSet errorformat=%-G%.%#Too\ many\ errors\\,\ exiting,
|
||||||
|
\%f(%l)\ %tarning\ %n(%\\d%\\+):\ %m,
|
||||||
|
\%E%f(%l)\ error\ %n:\ %m,
|
||||||
|
\%-Z%p^,
|
||||||
|
\%-C%.%#,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
@@ -12,6 +12,6 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|||||||
command -nargs=* CompilerSet setlocal <args>
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" NOTE: compiler must be runned with -vb to write whole source path, not only file
|
" NOTE: compiler must be run with -vb to write whole source path, not only file
|
||||||
" name.
|
" name.
|
||||||
CompilerSet errorformat=%f(%l\\,%c)\ %m
|
CompilerSet errorformat=%f(%l\\,%c)\ %m
|
||||||
|
|||||||
84
runtime/compiler/powershell.vim
Normal file
84
runtime/compiler/powershell.vim
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: powershell
|
||||||
|
" URL: https://github.com/PProvost/vim-ps1
|
||||||
|
" Last Change: 2020 Mar 30
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "powershell"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
if !exists("g:ps1_makeprg_cmd")
|
||||||
|
if executable('pwsh')
|
||||||
|
" pwsh is the future
|
||||||
|
let g:ps1_makeprg_cmd = 'pwsh'
|
||||||
|
elseif executable('pwsh.exe')
|
||||||
|
let g:ps1_makeprg_cmd = 'pwsh.exe'
|
||||||
|
elseif executable('powershell.exe')
|
||||||
|
let g:ps1_makeprg_cmd = 'powershell.exe'
|
||||||
|
else
|
||||||
|
let g:ps1_makeprg_cmd = ''
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !executable(g:ps1_makeprg_cmd)
|
||||||
|
echoerr "To use the powershell compiler, please set g:ps1_makeprg_cmd to the powershell executable!"
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Show CategoryInfo, FullyQualifiedErrorId, etc?
|
||||||
|
let g:ps1_efm_show_error_categories = get(g:, 'ps1_efm_show_error_categories', 0)
|
||||||
|
|
||||||
|
" Use absolute path because powershell requires explicit relative paths
|
||||||
|
" (./file.ps1 is okay, but # expands to file.ps1)
|
||||||
|
let &l:makeprg = g:ps1_makeprg_cmd .' %:p:S'
|
||||||
|
|
||||||
|
" Parse file, line, char from callstacks:
|
||||||
|
" Write-Ouput : The term 'Write-Ouput' is not recognized as the name of a
|
||||||
|
" cmdlet, function, script file, or operable program. Check the spelling
|
||||||
|
" of the name, or if a path was included, verify that the path is correct
|
||||||
|
" and try again.
|
||||||
|
" At C:\script.ps1:11 char:5
|
||||||
|
" + Write-Ouput $content
|
||||||
|
" + ~~~~~~~~~~~
|
||||||
|
" + CategoryInfo : ObjectNotFound: (Write-Ouput:String) [], CommandNotFoundException
|
||||||
|
" + FullyQualifiedErrorId : CommandNotFoundException
|
||||||
|
|
||||||
|
" Showing error in context with underlining.
|
||||||
|
CompilerSet errorformat=%+G+%m
|
||||||
|
" Error summary.
|
||||||
|
CompilerSet errorformat+=%E%*\\S\ :\ %m
|
||||||
|
" Error location.
|
||||||
|
CompilerSet errorformat+=%CAt\ %f:%l\ char:%c
|
||||||
|
" Errors that span multiple lines (may be wrapped to width of terminal).
|
||||||
|
CompilerSet errorformat+=%C%m
|
||||||
|
" Ignore blank/whitespace-only lines.
|
||||||
|
CompilerSet errorformat+=%Z\\s%#
|
||||||
|
|
||||||
|
if g:ps1_efm_show_error_categories
|
||||||
|
CompilerSet errorformat^=%+G\ \ \ \ +\ %.%#\\s%#:\ %m
|
||||||
|
else
|
||||||
|
CompilerSet errorformat^=%-G\ \ \ \ +\ %.%#\\s%#:\ %m
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
" Parse file, line, char from of parse errors:
|
||||||
|
" At C:\script.ps1:22 char:16
|
||||||
|
" + Stop-Process -Name "invalidprocess
|
||||||
|
" + ~~~~~~~~~~~~~~~
|
||||||
|
" The string is missing the terminator: ".
|
||||||
|
" + CategoryInfo : ParserError: (:) [], ParseException
|
||||||
|
" + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
|
||||||
|
CompilerSet errorformat+=At\ %f:%l\ char:%c
|
||||||
|
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim:set sw=2 sts=2:
|
||||||
16
runtime/compiler/scdoc.vim
Normal file
16
runtime/compiler/scdoc.vim
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
" scdoc compiler for Vim
|
||||||
|
" Compiler: scdoc
|
||||||
|
" Maintainer: Greg Anders <greg@gpanders.com>
|
||||||
|
" Last Updated: 2019-10-24
|
||||||
|
|
||||||
|
if exists('current_compiler')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = 'scdoc'
|
||||||
|
|
||||||
|
if exists(':CompilerSet') != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=scdoc\ <\ %\ 2>&1
|
||||||
|
CompilerSet errorformat=Error\ at\ %l:%c:\ %m,%-G%.%#
|
||||||
28
runtime/compiler/sml.vim
Normal file
28
runtime/compiler/sml.vim
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: SML/NJ Compiler
|
||||||
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
" Last Change: 2020 Feb 10
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "sml"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
CompilerSet makeprg=sml
|
||||||
|
CompilerSet errorformat=%f:%l.%c-%\\d%\\+.%\\d%\\+\ %trror:\ %m,
|
||||||
|
\%f:%l.%c\ %trror:\ %m,
|
||||||
|
\%trror:\ %m
|
||||||
|
\%f:%l.%c-%\\d%\\+.%\\d%\\+\ %tarning:\ %m,
|
||||||
|
\%f:%l.%c\ %tarning:\ %m,
|
||||||
|
\%tarning:\ %m,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
17
runtime/compiler/spectral.vim
Normal file
17
runtime/compiler/spectral.vim
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Spectral for YAML
|
||||||
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
|
" Last Change: 2021 July 21
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "spectral"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=spectral\ lint\ %\ -f\ text
|
||||||
|
CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ endif
|
|||||||
if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
|
if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
|
||||||
\(!filereadable('Makefile') && !filereadable('makefile'))
|
\(!filereadable('Makefile') && !filereadable('makefile'))
|
||||||
" If buffer-local variable 'tex_flavor' exists, it defines TeX flavor,
|
" If buffer-local variable 'tex_flavor' exists, it defines TeX flavor,
|
||||||
" otherwize the same for global variable with same name, else it will be
|
" otherwise the same for global variable with same name, else it will be
|
||||||
" LaTeX
|
" LaTeX
|
||||||
if exists("b:tex_flavor")
|
if exists("b:tex_flavor")
|
||||||
let current_compiler = b:tex_flavor
|
let current_compiler = b:tex_flavor
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: HTML Tidy
|
" Compiler: HTML Tidy
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2016 Apr 21
|
" Last Change: 2020 Sep 4
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@@ -12,8 +12,15 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|||||||
command -nargs=* CompilerSet setlocal <args>
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
" foo.html:8:1: Warning: inserting missing 'foobar' element
|
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes
|
||||||
" foo.html:9:2: Error: <foobar> is not recognized!
|
CompilerSet errorformat=%f:%l:%c:\ %trror:\ %m,
|
||||||
CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%#
|
\%f:%l:%c:\ %tarning:\ %m,
|
||||||
|
\%f:%l:%c:\ %tnfo:\ %m,
|
||||||
|
\%f:%l:%c:\ %m,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|||||||
16
runtime/compiler/yamllint.vim
Normal file
16
runtime/compiler/yamllint.vim
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Yamllint for YAML
|
||||||
|
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||||
|
" Last Change: 2021 July 21
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "yamllint"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet makeprg=yamllint\ -f\ parsable
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
" The default vimrc file.
|
" The default vimrc file.
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last change: 2020 Sep 30
|
" Last change: 2021 Nov 17
|
||||||
"
|
"
|
||||||
" This is loaded if no vimrc file was found.
|
" This is loaded if no vimrc file was found.
|
||||||
" Except when Vim is run with "-u NONE" or "-C".
|
" Except when Vim is run with "-u NONE" or "-C".
|
||||||
@@ -96,7 +96,7 @@ if 1
|
|||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
" Put these in an autocmd group, so that you can revert them with:
|
" Put these in an autocmd group, so that you can revert them with:
|
||||||
" ":augroup vimStartup | au! | augroup END"
|
" ":augroup vimStartup | exe 'au!' | augroup END"
|
||||||
augroup vimStartup
|
augroup vimStartup
|
||||||
au!
|
au!
|
||||||
|
|
||||||
@@ -111,6 +111,18 @@ if 1
|
|||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
" Quite a few people accidentally type "q:" instead of ":q" and get confused
|
||||||
|
" by the command line window. Give a hint about how to get out.
|
||||||
|
" If you don't like this you can put this in your vimrc:
|
||||||
|
" ":augroup vimHints | exe 'au!' | augroup END"
|
||||||
|
augroup vimHints
|
||||||
|
au!
|
||||||
|
autocmd CmdwinEnter *
|
||||||
|
\ echohl Todo |
|
||||||
|
\ echo 'You discovered the command-line window! You can close it with ":q".' |
|
||||||
|
\ echohl None
|
||||||
|
augroup END
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Switch syntax highlighting on when the terminal has colors or when using the
|
" Switch syntax highlighting on when the terminal has colors or when using the
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ DOCS = \
|
|||||||
filetype.txt \
|
filetype.txt \
|
||||||
fold.txt \
|
fold.txt \
|
||||||
ft_ada.txt \
|
ft_ada.txt \
|
||||||
|
ft_ps1.txt \
|
||||||
|
ft_raku.txt \
|
||||||
ft_rust.txt \
|
ft_rust.txt \
|
||||||
ft_sql.txt \
|
ft_sql.txt \
|
||||||
gui.txt \
|
gui.txt \
|
||||||
@@ -173,6 +175,8 @@ HTMLS = \
|
|||||||
filetype.html \
|
filetype.html \
|
||||||
fold.html \
|
fold.html \
|
||||||
ft_ada.html \
|
ft_ada.html \
|
||||||
|
ft_ps1.html \
|
||||||
|
ft_raku.html \
|
||||||
ft_rust.html \
|
ft_rust.html \
|
||||||
ft_sql.html \
|
ft_sql.html \
|
||||||
gui.html \
|
gui.html \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*arabic.txt* For Vim version 8.2. Last change: 2019 May 05
|
*arabic.txt* For Vim version 8.2. Last change: 2021 Jun 22
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||||
@@ -176,6 +176,13 @@ o Enable Arabic settings [short-cut]
|
|||||||
and its support is preferred due to its level of offerings.
|
and its support is preferred due to its level of offerings.
|
||||||
'arabic' when 'termbidi' is enabled only sets the keymap.
|
'arabic' when 'termbidi' is enabled only sets the keymap.
|
||||||
|
|
||||||
|
For vertical window isolation while setting 'termbidi' an LTR
|
||||||
|
vertical separator like "l" or "𝖨" may be used. It may also be
|
||||||
|
hidden by changing its color to the foreground color: >
|
||||||
|
:set fillchars=vert:l
|
||||||
|
:hi VertSplit ctermbg=White
|
||||||
|
< Note that this is a workaround, not a proper solution.
|
||||||
|
|
||||||
If, on the other hand, you'd like to be verbose and explicit and
|
If, on the other hand, you'd like to be verbose and explicit and
|
||||||
are opting not to use the 'arabic' short-cut command, here's what
|
are opting not to use the 'arabic' short-cut command, here's what
|
||||||
is needed (i.e. if you use ':set arabic' you can skip this section) -
|
is needed (i.e. if you use ':set arabic' you can skip this section) -
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*autocmd.txt* For Vim version 8.2. Last change: 2020 Dec 19
|
*autocmd.txt* For Vim version 8.2. Last change: 2021 Nov 20
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -55,6 +55,7 @@ effects. Be careful not to destroy your text.
|
|||||||
Add {cmd} to the list of commands that Vim will
|
Add {cmd} to the list of commands that Vim will
|
||||||
execute automatically on {event} for a file matching
|
execute automatically on {event} for a file matching
|
||||||
{pat} |autocmd-patterns|.
|
{pat} |autocmd-patterns|.
|
||||||
|
Here {event} cannot be "*". *E1155*
|
||||||
Note: A quote character is seen as argument to the
|
Note: A quote character is seen as argument to the
|
||||||
:autocmd and won't start a comment.
|
:autocmd and won't start a comment.
|
||||||
Vim always adds the {cmd} after existing autocommands,
|
Vim always adds the {cmd} after existing autocommands,
|
||||||
@@ -75,8 +76,14 @@ and in a `:def` function) then {cmd} will be executed as in Vim9
|
|||||||
script. Thus this depends on where the autocmd is defined, not where it is
|
script. Thus this depends on where the autocmd is defined, not where it is
|
||||||
triggered.
|
triggered.
|
||||||
|
|
||||||
|
{cmd} can be a block, like with `:command`, see |:command-repl|. Example: >
|
||||||
|
au BufReadPost *.xml {
|
||||||
|
setlocal matchpairs+=<:>
|
||||||
|
/<start
|
||||||
|
}
|
||||||
|
|
||||||
Note: The ":autocmd" command can only be followed by another command when the
|
Note: The ":autocmd" command can only be followed by another command when the
|
||||||
'|' appears before {cmd}. This works: >
|
'|' appears where the pattern is expected. This works: >
|
||||||
:augroup mine | au! BufRead | augroup END
|
:augroup mine | au! BufRead | augroup END
|
||||||
But this sees "augroup" as part of the defined command: >
|
But this sees "augroup" as part of the defined command: >
|
||||||
:augroup mine | au! BufRead * | augroup END
|
:augroup mine | au! BufRead * | augroup END
|
||||||
@@ -341,6 +348,7 @@ Name triggered by ~
|
|||||||
|
|
||||||
|WinNew| after creating a new window
|
|WinNew| after creating a new window
|
||||||
|TabNew| after creating a new tab page
|
|TabNew| after creating a new tab page
|
||||||
|
|WinClosed| after closing a window
|
||||||
|TabClosed| after closing a 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
|
||||||
@@ -359,6 +367,8 @@ Name triggered by ~
|
|||||||
|InsertCharPre| when a character was typed in Insert mode, before
|
|InsertCharPre| when a character was typed in Insert mode, before
|
||||||
inserting it
|
inserting it
|
||||||
|
|
||||||
|
|ModeChanged| after changing the mode
|
||||||
|
|
||||||
|TextChanged| after a change was made to the text in Normal mode
|
|TextChanged| after a change was made to the text in Normal mode
|
||||||
|TextChangedI| after a change was made to the text in Insert mode
|
|TextChangedI| after a change was made to the text in Insert mode
|
||||||
when popup menu is not visible
|
when popup menu is not visible
|
||||||
@@ -678,8 +688,11 @@ CursorHoldI Just like CursorHold, but in Insert mode.
|
|||||||
CursorMoved After the cursor was moved in Normal or Visual
|
CursorMoved After the cursor was moved in Normal or Visual
|
||||||
mode. Also when the text of the cursor line
|
mode. Also when the text of the cursor line
|
||||||
has been changed, e.g., with "x", "rx" or "p".
|
has been changed, e.g., with "x", "rx" or "p".
|
||||||
Not triggered when there is typeahead or when
|
Not triggered when there is typeahead, while
|
||||||
an operator is pending.
|
executing commands in a script file, when
|
||||||
|
an operator is pending or when moving to
|
||||||
|
another window while remaining at the same
|
||||||
|
cursor position.
|
||||||
For an example see |match-parens|.
|
For an example see |match-parens|.
|
||||||
Note: This can not be skipped with
|
Note: This can not be skipped with
|
||||||
`:noautocmd`.
|
`:noautocmd`.
|
||||||
@@ -696,7 +709,7 @@ EncodingChanged Fires off after the 'encoding' option has been
|
|||||||
*FileAppendCmd*
|
*FileAppendCmd*
|
||||||
FileAppendCmd Before appending to a file. Should do the
|
FileAppendCmd Before appending to a file. Should do the
|
||||||
appending to the file. Use the '[ and ']
|
appending to the file. Use the '[ and ']
|
||||||
marks for the range of lines.|Cmd-event|
|
marks for the range of lines. |Cmd-event|
|
||||||
*FileAppendPost*
|
*FileAppendPost*
|
||||||
FileAppendPost After appending to a file.
|
FileAppendPost After appending to a file.
|
||||||
*FileAppendPre*
|
*FileAppendPre*
|
||||||
@@ -824,7 +837,7 @@ FilterReadPre Before reading a file from a filter command.
|
|||||||
*FilterWritePost*
|
*FilterWritePost*
|
||||||
FilterWritePost After writing a file for a filter command or
|
FilterWritePost After writing a file for a filter command or
|
||||||
making a diff with an external diff (see
|
making a diff with an external diff (see
|
||||||
DiffUpdated for internal diff).
|
|DiffUpdated| for internal diff).
|
||||||
Vim checks the pattern against the name of
|
Vim checks the pattern against the name of
|
||||||
the current buffer as with FilterWritePre.
|
the current buffer as with FilterWritePre.
|
||||||
Not triggered when 'shelltemp' is off.
|
Not triggered when 'shelltemp' is off.
|
||||||
@@ -915,7 +928,27 @@ MenuPopup Just before showing the popup menu (under the
|
|||||||
i Insert
|
i Insert
|
||||||
c Command line
|
c Command line
|
||||||
tl Terminal
|
tl Terminal
|
||||||
*OptionSet*
|
*ModeChanged*
|
||||||
|
ModeChanged After changing the mode. The pattern is
|
||||||
|
matched against `'old_mode:new_mode'`, for
|
||||||
|
example match against `*:c*` to simulate
|
||||||
|
|CmdlineEnter|.
|
||||||
|
The following values of |v:event| are set:
|
||||||
|
old_mode The mode before it changed.
|
||||||
|
new_mode The new mode as also returned
|
||||||
|
by |mode()| called with a
|
||||||
|
non-zero argument.
|
||||||
|
When ModeChanged is triggered, old_mode will
|
||||||
|
have the value of new_mode when the event was
|
||||||
|
last triggered.
|
||||||
|
This will be triggered on every minor mode
|
||||||
|
change.
|
||||||
|
Usage example to use relative line numbers
|
||||||
|
when entering Visual mode: >
|
||||||
|
:au ModeChanged [vV\x16]*:* let &l:rnu = mode() =~# '^[vV\x16]'
|
||||||
|
:au ModeChanged *:[vV\x16]* let &l:rnu = mode() =~# '^[vV\x16]'
|
||||||
|
:au WinEnter,WinLeave * let &l:rnu = mode() =~# '^[vV\x16]'
|
||||||
|
< *OptionSet*
|
||||||
OptionSet After setting an option. The pattern is
|
OptionSet After setting an option. The pattern is
|
||||||
matched against the long option name.
|
matched against the long option name.
|
||||||
|<amatch>| indicates what option has been set.
|
|<amatch>| indicates what option has been set.
|
||||||
@@ -984,9 +1017,10 @@ QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
|
|||||||
*QuitPre*
|
*QuitPre*
|
||||||
QuitPre When using `:quit`, `:wq` or `:qall`, before
|
QuitPre When using `:quit`, `:wq` or `:qall`, before
|
||||||
deciding whether it closes the current window
|
deciding whether it closes the current window
|
||||||
or quits Vim. Can be used to close any
|
or quits Vim. For `:wq` the buffer is written
|
||||||
non-essential window if the current window is
|
before QuitPre is triggered. Can be used to
|
||||||
the last ordinary window.
|
close any non-essential window if the current
|
||||||
|
window is the last ordinary window.
|
||||||
Also see |ExitPre|.
|
Also see |ExitPre|.
|
||||||
*RemoteReply*
|
*RemoteReply*
|
||||||
RemoteReply When a reply from a Vim that functions as
|
RemoteReply When a reply from a Vim that functions as
|
||||||
@@ -1167,9 +1201,9 @@ TextYankPost After text has been yanked or deleted in the
|
|||||||
register, as a list of lines,
|
register, as a list of lines,
|
||||||
like with: >
|
like with: >
|
||||||
getreg(r, 1, 1)
|
getreg(r, 1, 1)
|
||||||
< regname Name of the |register| or
|
< regname Name of the register or empty
|
||||||
empty string for the unnamed
|
string for the unnamed
|
||||||
register.
|
register, see |registers|.
|
||||||
regtype Type of the register, see
|
regtype Type of the register, see
|
||||||
|getregtype()|.
|
|getregtype()|.
|
||||||
visual True if the operation is
|
visual True if the operation is
|
||||||
@@ -1247,6 +1281,12 @@ VimResume When the Vim instance is resumed after being
|
|||||||
VimSuspend When the Vim instance is suspended. Only when
|
VimSuspend When the Vim instance is suspended. Only when
|
||||||
CTRL-Z was typed inside Vim, not when the
|
CTRL-Z was typed inside Vim, not when the
|
||||||
SIGSTOP or SIGTSTP signal was sent to Vim.
|
SIGSTOP or SIGTSTP signal was sent to Vim.
|
||||||
|
*WinClosed*
|
||||||
|
WinClosed After closing a window. The pattern is
|
||||||
|
matched against the |window-ID|. Both
|
||||||
|
<amatch> and <afile> are set to the
|
||||||
|
|window-ID|. Non-recursive (event cannot
|
||||||
|
trigger itself).
|
||||||
*WinEnter*
|
*WinEnter*
|
||||||
WinEnter After entering another window. Not done for
|
WinEnter After entering another window. Not done for
|
||||||
the first window, when Vim has just started.
|
the first window, when Vim has just started.
|
||||||
@@ -1474,6 +1514,13 @@ Example: >
|
|||||||
This prevents having the autocommands defined twice (e.g., after sourcing the
|
This prevents having the autocommands defined twice (e.g., after sourcing the
|
||||||
.vimrc file again).
|
.vimrc file again).
|
||||||
|
|
||||||
|
*FileExplorer*
|
||||||
|
There is one group that is recognized by Vim: FileExplorer. If this group
|
||||||
|
exists Vim assumes that editing a directory is possible and will trigger a
|
||||||
|
plugin that lists the files in that directory. This is used by the |netrw|
|
||||||
|
plugin. This allows you to do: >
|
||||||
|
browse edit
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
9. Executing autocommands *autocmd-execute*
|
9. Executing autocommands *autocmd-execute*
|
||||||
|
|
||||||
@@ -1518,9 +1565,18 @@ option will not cause any commands to be executed.
|
|||||||
*:doautoa* *:doautoall*
|
*:doautoa* *:doautoall*
|
||||||
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
|
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
|
||||||
Like ":doautocmd", but apply the autocommands to each
|
Like ":doautocmd", but apply the autocommands to each
|
||||||
loaded buffer. Note that [fname] is used to select
|
loaded buffer. The current buffer is done last.
|
||||||
the autocommands, not the buffers to which they are
|
|
||||||
applied.
|
Note that [fname] is used to select the autocommands,
|
||||||
|
not the buffers to which they are applied. Example: >
|
||||||
|
augroup mine
|
||||||
|
autocmd!
|
||||||
|
autocmd FileType * echo expand('<amatch>')
|
||||||
|
augroup END
|
||||||
|
doautoall mine FileType Loaded-Buffer
|
||||||
|
< Sourcing this script, you'll see as many
|
||||||
|
"Loaded-Buffer" echoed as there are loaded buffers.
|
||||||
|
|
||||||
Careful: Don't use this for autocommands that delete a
|
Careful: Don't use this for autocommands that delete a
|
||||||
buffer, change to another buffer or change the
|
buffer, change to another buffer or change the
|
||||||
contents of a buffer; the result is unpredictable.
|
contents of a buffer; the result is unpredictable.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*change.txt* For Vim version 8.2. Last change: 2020 Nov 21
|
*change.txt* For Vim version 8.2. Last change: 2021 Jun 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -649,6 +649,8 @@ For other systems the tmpnam() library function is used.
|
|||||||
The space between `:substitute` and the 'c', 'g',
|
The space between `:substitute` and the 'c', 'g',
|
||||||
'i', 'I' and 'r' flags isn't required, but in scripts
|
'i', 'I' and 'r' flags isn't required, but in scripts
|
||||||
it's a good idea to keep it to avoid confusion.
|
it's a good idea to keep it to avoid confusion.
|
||||||
|
Also see the two and three letter commands to repeat
|
||||||
|
:substitute below |:substitute-repeat|.
|
||||||
|
|
||||||
:[range]~[&][flags] [count] *:~*
|
:[range]~[&][flags] [count] *:~*
|
||||||
Repeat last substitute with same substitute string
|
Repeat last substitute with same substitute string
|
||||||
@@ -778,12 +780,15 @@ For compatibility with Vi these two exceptions are allowed:
|
|||||||
"\/{string}/" and "\?{string}?" do the same as "//{string}/r".
|
"\/{string}/" and "\?{string}?" do the same as "//{string}/r".
|
||||||
"\&{string}&" does the same as "//{string}/".
|
"\&{string}&" does the same as "//{string}/".
|
||||||
*pattern-delimiter* *E146*
|
*pattern-delimiter* *E146*
|
||||||
Instead of the '/' which surrounds the pattern and replacement string, you
|
Instead of the '/' which surrounds the pattern and replacement string, you can
|
||||||
can use any other single-byte character, but not an alphanumeric character,
|
use another single-byte character. This is useful if you want to include a
|
||||||
'\', '"' or '|'. This is useful if you want to include a '/' in the search
|
'/' in the search pattern or replacement string. Example: >
|
||||||
pattern or replacement string. Example: >
|
|
||||||
:s+/+//+
|
:s+/+//+
|
||||||
|
|
||||||
|
You can use most characters, but not an alphanumeric character, '\', '"' or
|
||||||
|
'|'. In Vim9 script you should not use '#' because it may be recognized as
|
||||||
|
the start of a comment.
|
||||||
|
|
||||||
For the definition of a pattern, see |pattern|. In Visual block mode, use
|
For the definition of a pattern, see |pattern|. In Visual block mode, use
|
||||||
|/\%V| in the pattern to have the substitute work in the block only.
|
|/\%V| in the pattern to have the substitute work in the block only.
|
||||||
Otherwise it works on whole lines anyway.
|
Otherwise it works on whole lines anyway.
|
||||||
@@ -877,20 +882,26 @@ either the first or second pattern in parentheses did not match, so either
|
|||||||
*:sge* *:sgi* *:sgI* *:sgl* *:sgn* *:sgp* *:sgr* *:sI* *:si*
|
*:sge* *:sgi* *:sgI* *:sgl* *:sgn* *:sgp* *:sgr* *:sI* *:si*
|
||||||
*:sic* *:sIc* *:sie* *:sIe* *:sIg* *:sIl* *:sin* *:sIn* *:sIp*
|
*:sic* *:sIc* *:sie* *:sIe* *:sIg* *:sIl* *:sin* *:sIn* *:sIp*
|
||||||
*:sip* *:sIr* *:sir* *:sr* *:src* *:srg* *:sri* *:srI* *:srl*
|
*:sip* *:sIr* *:sir* *:sr* *:src* *:srg* *:sri* *:srI* *:srl*
|
||||||
*:srn* *:srp*
|
*:srn* *:srp* *:substitute-repeat*
|
||||||
2-letter and 3-letter :substitute commands ~
|
2-letter and 3-letter :substitute commands ~
|
||||||
|
|
||||||
|
These commands repeat the previous `:substitute` command with the given flags.
|
||||||
|
The first letter is always "s", followed by one or two of the possible flag
|
||||||
|
characters. For example `:sce` works like `:s///ce`. The table lists the
|
||||||
|
possible combinations, not all flags are possible, because the command is
|
||||||
|
short for another command.
|
||||||
|
|
||||||
List of :substitute commands
|
List of :substitute commands
|
||||||
| c e g i I n p l r
|
| c e g i I n p l r
|
||||||
| c :sc :sce :scg :sci :scI :scn :scp :scl ---
|
| c :sc :sce :scg :sci :scI :scn :scp :scl
|
||||||
| e
|
| e
|
||||||
| g :sgc :sge :sg :sgi :sgI :sgn :sgp :sgl :sgr
|
| g :sgc :sge :sg :sgi :sgI :sgn :sgp :sgl :sgr
|
||||||
| i :sic :sie --- :si :siI :sin :sip --- :sir
|
| i :sic :sie :si :siI :sin :sip :sir
|
||||||
| I :sIc :sIe :sIg :sIi :sI :sIn :sIp :sIl :sIr
|
| I :sIc :sIe :sIg :sIi :sI :sIn :sIp :sIl :sIr
|
||||||
| n
|
| n
|
||||||
| p
|
| p
|
||||||
| l
|
| l
|
||||||
| r :src --- :srg :sri :srI :srn :srp :srl :sr
|
| r :src :srg :sri :srI :srn :srp :srl :sr
|
||||||
|
|
||||||
Exceptions:
|
Exceptions:
|
||||||
:scr is `:scriptnames`
|
:scr is `:scriptnames`
|
||||||
@@ -1034,6 +1045,10 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
cursor to the end of line (which is more logical,
|
cursor to the end of line (which is more logical,
|
||||||
but not Vi-compatible) use ":map Y y$".
|
but not Vi-compatible) use ":map Y y$".
|
||||||
|
|
||||||
|
*zy*
|
||||||
|
["x]zy{motion} Yank {motion} text [into register x]. Only differs
|
||||||
|
from `y` when selecting a block of text, see |v_zy|.
|
||||||
|
|
||||||
*v_y*
|
*v_y*
|
||||||
{Visual}["x]y Yank the highlighted text [into register x] (for
|
{Visual}["x]y Yank the highlighted text [into register x] (for
|
||||||
{Visual} see |Visual-mode|).
|
{Visual} see |Visual-mode|).
|
||||||
@@ -1042,6 +1057,12 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
{Visual}["x]Y Yank the highlighted lines [into register x] (for
|
{Visual}["x]Y Yank the highlighted lines [into register x] (for
|
||||||
{Visual} see |Visual-mode|).
|
{Visual} see |Visual-mode|).
|
||||||
|
|
||||||
|
*v_zy*
|
||||||
|
{Visual}["x]zy Yank the highlighted text [into register x]. Trailing
|
||||||
|
whitespace at the end of each line of a selected block
|
||||||
|
won't be yanked. Especially useful in combination
|
||||||
|
with `zp`. (for {Visual} see |Visual-mode|)
|
||||||
|
|
||||||
*:y* *:yank* *E850*
|
*:y* *:yank* *E850*
|
||||||
:[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the
|
:[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the
|
||||||
"* or "+ registers is possible only when the
|
"* or "+ registers is possible only when the
|
||||||
@@ -1118,6 +1139,12 @@ inside of strings can change! Also see 'softtabstop' option. >
|
|||||||
Using the mouse only works when 'mouse' contains 'n'
|
Using the mouse only works when 'mouse' contains 'n'
|
||||||
or 'a'.
|
or 'a'.
|
||||||
|
|
||||||
|
["x]zp or *zp* *zP*
|
||||||
|
["x]zP Like "p" and "P", except without adding trailing spaces
|
||||||
|
when pasting a block. Thus the inserted text will not
|
||||||
|
always be a rectangle. Especially useful in
|
||||||
|
combination with |v_zy|.
|
||||||
|
|
||||||
You can use these commands to copy text from one place to another. Do this
|
You can use these commands to copy text from one place to another. Do this
|
||||||
by first getting the text into a register with a yank, delete or change
|
by first getting the text into a register with a yank, delete or change
|
||||||
command, then inserting the register contents with a put command. You can
|
command, then inserting the register contents with a put command. You can
|
||||||
@@ -1167,6 +1194,9 @@ this happen. However, if the width of the block is not a multiple of a <Tab>
|
|||||||
width and the text after the inserted block contains <Tab>s, that text may be
|
width and the text after the inserted block contains <Tab>s, that text may be
|
||||||
misaligned.
|
misaligned.
|
||||||
|
|
||||||
|
Use |zP|/|zp| to paste a blockwise yanked register without appending trailing
|
||||||
|
spaces.
|
||||||
|
|
||||||
Note that after a characterwise yank command, Vim leaves the cursor on the
|
Note that after a characterwise yank command, Vim leaves the cursor on the
|
||||||
first yanked character that is closest to the start of the buffer. This means
|
first yanked character that is closest to the start of the buffer. This means
|
||||||
that "yl" doesn't move the cursor, but "yh" moves the cursor one character
|
that "yl" doesn't move the cursor, but "yh" moves the cursor one character
|
||||||
@@ -1631,24 +1661,31 @@ default setting is "tcq". You can separate the option letters with commas for
|
|||||||
readability.
|
readability.
|
||||||
|
|
||||||
letter meaning when present in 'formatoptions' ~
|
letter meaning when present in 'formatoptions' ~
|
||||||
|
*fo-t*
|
||||||
t Auto-wrap text using textwidth
|
t Auto-wrap text using textwidth
|
||||||
|
*fo-c*
|
||||||
c Auto-wrap comments using textwidth, inserting the current comment
|
c Auto-wrap comments using textwidth, inserting the current comment
|
||||||
leader automatically.
|
leader automatically.
|
||||||
|
*fo-r*
|
||||||
r Automatically insert the current comment leader after hitting
|
r Automatically insert the current comment leader after hitting
|
||||||
<Enter> in Insert mode.
|
<Enter> in Insert mode.
|
||||||
|
*fo-o*
|
||||||
o Automatically insert the current comment leader after hitting 'o' or
|
o Automatically insert the current comment leader after hitting 'o' or
|
||||||
'O' in Normal mode.
|
'O' in Normal mode.
|
||||||
|
*fo-q*
|
||||||
q Allow formatting of comments with "gq".
|
q Allow formatting of comments with "gq".
|
||||||
Note that formatting will not change blank lines or lines containing
|
Note that formatting will not change blank lines or lines containing
|
||||||
only the comment leader. A new paragraph starts after such a line,
|
only the comment leader. A new paragraph starts after such a line,
|
||||||
or when the comment leader changes.
|
or when the comment leader changes.
|
||||||
|
*fo-w*
|
||||||
w Trailing white space indicates a paragraph continues in the next line.
|
w Trailing white space indicates a paragraph continues in the next line.
|
||||||
A line that ends in a non-white character ends a paragraph.
|
A line that ends in a non-white character ends a paragraph.
|
||||||
|
*fo-a*
|
||||||
a Automatic formatting of paragraphs. Every time text is inserted or
|
a Automatic formatting of paragraphs. Every time text is inserted or
|
||||||
deleted the paragraph will be reformatted. See |auto-format|.
|
deleted the paragraph will be reformatted. See |auto-format|.
|
||||||
When the 'c' flag is present this only happens for recognized
|
When the 'c' flag is present this only happens for recognized
|
||||||
comments.
|
comments.
|
||||||
|
*fo-n*
|
||||||
n When formatting text, recognize numbered lists. This actually uses
|
n When formatting text, recognize numbered lists. This actually uses
|
||||||
the 'formatlistpat' option, thus any kind of list can be used. The
|
the 'formatlistpat' option, thus any kind of list can be used. The
|
||||||
indent of the text after the number is used for the next line. The
|
indent of the text after the number is used for the next line. The
|
||||||
@@ -1659,6 +1696,7 @@ n When formatting text, recognize numbered lists. This actually uses
|
|||||||
1. the first item
|
1. the first item
|
||||||
wraps
|
wraps
|
||||||
2. the second item
|
2. the second item
|
||||||
|
< *fo-2*
|
||||||
2 When formatting text, use the indent of the second line of a paragraph
|
2 When formatting text, use the indent of the second line of a paragraph
|
||||||
for the rest of the paragraph, instead of the indent of the first
|
for the rest of the paragraph, instead of the indent of the first
|
||||||
line. This supports paragraphs in which the first line has a
|
line. This supports paragraphs in which the first line has a
|
||||||
@@ -1668,36 +1706,46 @@ n When formatting text, recognize numbered lists. This actually uses
|
|||||||
second line of the same paragraph
|
second line of the same paragraph
|
||||||
third line.
|
third line.
|
||||||
< This also works inside comments, ignoring the comment leader.
|
< This also works inside comments, ignoring the comment leader.
|
||||||
|
*fo-v*
|
||||||
v Vi-compatible auto-wrapping in insert mode: Only break a line at a
|
v Vi-compatible auto-wrapping in insert mode: Only break a line at a
|
||||||
blank that you have entered during the current insert command. (Note:
|
blank that you have entered during the current insert command. (Note:
|
||||||
this is not 100% Vi compatible. Vi has some "unexpected features" or
|
this is not 100% Vi compatible. Vi has some "unexpected features" or
|
||||||
bugs in this area. It uses the screen column instead of the line
|
bugs in this area. It uses the screen column instead of the line
|
||||||
column.)
|
column.)
|
||||||
|
*fo-b*
|
||||||
b Like 'v', but only auto-wrap if you enter a blank at or before
|
b Like 'v', but only auto-wrap if you enter a blank at or before
|
||||||
the wrap margin. If the line was longer than 'textwidth' when you
|
the wrap margin. If the line was longer than 'textwidth' when you
|
||||||
started the insert, or you do not enter a blank in the insert before
|
started the insert, or you do not enter a blank in the insert before
|
||||||
reaching 'textwidth', Vim does not perform auto-wrapping.
|
reaching 'textwidth', Vim does not perform auto-wrapping.
|
||||||
|
*fo-l*
|
||||||
l Long lines are not broken in insert mode: When a line was longer than
|
l Long lines are not broken in insert mode: When a line was longer than
|
||||||
'textwidth' when the insert command started, Vim does not
|
'textwidth' when the insert command started, Vim does not
|
||||||
automatically format it.
|
automatically format it.
|
||||||
|
*fo-m*
|
||||||
m Also break at a multibyte character above 255. This is useful for
|
m Also break at a multibyte character above 255. This is useful for
|
||||||
Asian text where every character is a word on its own.
|
Asian text where every character is a word on its own.
|
||||||
|
*fo-M*
|
||||||
M When joining lines, don't insert a space before or after a multibyte
|
M When joining lines, don't insert a space before or after a multibyte
|
||||||
character. Overrules the 'B' flag.
|
character. Overrules the 'B' flag.
|
||||||
|
*fo-B*
|
||||||
B When joining lines, don't insert a space between two multibyte
|
B When joining lines, don't insert a space between two multibyte
|
||||||
characters. Overruled by the 'M' flag.
|
characters. Overruled by the 'M' flag.
|
||||||
|
*fo-1*
|
||||||
1 Don't break a line after a one-letter word. It's broken before it
|
1 Don't break a line after a one-letter word. It's broken before it
|
||||||
instead (if possible).
|
instead (if possible).
|
||||||
|
*fo-]*
|
||||||
] Respect textwidth rigorously. With this flag set, no line can be
|
] Respect textwidth rigorously. With this flag set, no line can be
|
||||||
longer than textwidth, unless line-break-prohibition rules make this
|
longer than textwidth, unless line-break-prohibition rules make this
|
||||||
impossible. Mainly for CJK scripts and works only if 'encoding' is
|
impossible. Mainly for CJK scripts and works only if 'encoding' is
|
||||||
"utf-8".
|
"utf-8".
|
||||||
|
*fo-j*
|
||||||
j Where it makes sense, remove a comment leader when joining lines. For
|
j Where it makes sense, remove a comment leader when joining lines. For
|
||||||
example, joining:
|
example, joining:
|
||||||
int i; // the index ~
|
int i; // the index ~
|
||||||
// in the list ~
|
// in the list ~
|
||||||
Becomes:
|
Becomes:
|
||||||
int i; // the index in the list ~
|
int i; // the index in the list ~
|
||||||
|
*fo-p*
|
||||||
p Don't break lines at single spaces that follow periods. This is
|
p Don't break lines at single spaces that follow periods. This is
|
||||||
intended to complement 'joinspaces' and |cpo-J|, for prose with
|
intended to complement 'joinspaces' and |cpo-J|, for prose with
|
||||||
sentences separated by two spaces. For example, with 'textwidth' set
|
sentences separated by two spaces. For example, with 'textwidth' set
|
||||||
|
|||||||
@@ -536,7 +536,7 @@ ch_evalraw({handle}, {string} [, {options}]) *ch_evalraw()*
|
|||||||
GetChannel()->ch_evalraw(rawstring)
|
GetChannel()->ch_evalraw(rawstring)
|
||||||
|
|
||||||
ch_getbufnr({handle}, {what}) *ch_getbufnr()*
|
ch_getbufnr({handle}, {what}) *ch_getbufnr()*
|
||||||
Get the buffer number that {handle} is using for {what}.
|
Get the buffer number that {handle} is using for String {what}.
|
||||||
{handle} can be a Channel or a Job that has a Channel.
|
{handle} can be a Channel or a Job that has a Channel.
|
||||||
{what} can be "err" for stderr, "out" for stdout or empty for
|
{what} can be "err" for stderr, "out" for stdout or empty for
|
||||||
socket output.
|
socket output.
|
||||||
@@ -586,8 +586,8 @@ ch_info({handle}) *ch_info()*
|
|||||||
|
|
||||||
|
|
||||||
ch_log({msg} [, {handle}]) *ch_log()*
|
ch_log({msg} [, {handle}]) *ch_log()*
|
||||||
Write {msg} in the channel log file, if it was opened with
|
Write String {msg} in the channel log file, if it was opened
|
||||||
|ch_logfile()|.
|
with |ch_logfile()|.
|
||||||
When {handle} is passed the channel number is used for the
|
When {handle} is passed the channel number is used for the
|
||||||
message.
|
message.
|
||||||
{handle} can be a Channel or a Job that has a Channel. The
|
{handle} can be a Channel or a Job that has a Channel. The
|
||||||
@@ -625,7 +625,7 @@ ch_open({address} [, {options}]) *ch_open()*
|
|||||||
Open a channel to {address}. See |channel|.
|
Open a channel to {address}. See |channel|.
|
||||||
Returns a Channel. Use |ch_status()| to check for failure.
|
Returns a Channel. Use |ch_status()| to check for failure.
|
||||||
|
|
||||||
{address} has the form "hostname:port", e.g.,
|
{address} is a String and has the form "hostname:port", e.g.,
|
||||||
"localhost:8765".
|
"localhost:8765".
|
||||||
|
|
||||||
When using an IPv6 address, enclose it within square brackets.
|
When using an IPv6 address, enclose it within square brackets.
|
||||||
@@ -852,7 +852,7 @@ available.
|
|||||||
job_getchannel({job}) *job_getchannel()*
|
job_getchannel({job}) *job_getchannel()*
|
||||||
Get the channel handle that {job} is using.
|
Get the channel handle that {job} is using.
|
||||||
To check if the job has no channel: >
|
To check if the job has no channel: >
|
||||||
if string(job_getchannel()) == 'channel fail'
|
if string(job_getchannel(job)) == 'channel fail'
|
||||||
<
|
<
|
||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetJob()->job_getchannel()
|
GetJob()->job_getchannel()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 8.2. Last change: 2020 Dec 26
|
*cmdline.txt* For Vim version 8.2. Last change: 2021 Aug 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -170,7 +170,12 @@ CTRL-R {register} *c_CTRL-R* *c_<C-R>*
|
|||||||
too.
|
too.
|
||||||
When the result is a Float it's automatically
|
When the result is a Float it's automatically
|
||||||
converted to a String.
|
converted to a String.
|
||||||
See |registers| about registers.
|
Note that when you only want to move the
|
||||||
|
cursor and not insert anything, you must make
|
||||||
|
sure the expression evaluates to an empty
|
||||||
|
string. E.g.: >
|
||||||
|
<C-R><C-R>=setcmdpos(2)[-1]<CR>
|
||||||
|
< See |registers| about registers.
|
||||||
Implementation detail: When using the |expression| register
|
Implementation detail: When using the |expression| register
|
||||||
and invoking setcmdpos(), this sets the position before
|
and invoking setcmdpos(), this sets the position before
|
||||||
inserting the resulting string. Use CTRL-R CTRL-R to set the
|
inserting the resulting string. Use CTRL-R CTRL-R to set the
|
||||||
@@ -597,9 +602,11 @@ followed by another Vim command:
|
|||||||
:global
|
:global
|
||||||
:help
|
:help
|
||||||
:helpfind
|
:helpfind
|
||||||
|
:helpgrep
|
||||||
:lcscope
|
:lcscope
|
||||||
:ldo
|
:ldo
|
||||||
:lfdo
|
:lfdo
|
||||||
|
:lhelpgrep
|
||||||
:make
|
:make
|
||||||
:normal
|
:normal
|
||||||
:perl
|
:perl
|
||||||
@@ -796,18 +803,20 @@ three lines: >
|
|||||||
3:d<CR> is translated into: .,.+2d<CR>
|
3:d<CR> is translated into: .,.+2d<CR>
|
||||||
<
|
<
|
||||||
|
|
||||||
Visual Mode and Range *v_:*
|
Visual Mode and Range
|
||||||
*:star-visual-range*
|
*v_:*
|
||||||
{Visual}: Starts a command-line with the Visual selected lines as a
|
{Visual}: Starts a command-line with the Visual selected lines as a
|
||||||
range. The code `:'<,'>` is used for this range, which makes
|
range. The code `:'<,'>` is used for this range, which makes
|
||||||
it possible to select a similar line from the command-line
|
it possible to select a similar line from the command-line
|
||||||
history for repeating a command on different Visually selected
|
history for repeating a command on different Visually selected
|
||||||
lines.
|
lines.
|
||||||
|
|
||||||
|
:* *:star* *:star-visual-range*
|
||||||
When Visual mode was already ended, a short way to use the
|
When Visual mode was already ended, a short way to use the
|
||||||
Visual area for a range is `:*`. This requires that "*" does
|
Visual area for a range is `:*`. This requires that "*" does
|
||||||
not appear in 'cpo', see |cpo-star|. Otherwise you will have
|
not appear in 'cpo', see |cpo-star|. Otherwise you will have
|
||||||
to type `:'<,'>`
|
to type `:'<,'>`
|
||||||
|
For when "*" is in 'cpo' see |:star-compatible|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
5. Ex command-line flags *ex-flags*
|
5. Ex command-line flags *ex-flags*
|
||||||
@@ -1096,7 +1105,7 @@ Also see |`=|.
|
|||||||
In the command-line window the command line can be edited just like editing
|
In the command-line window the command line can be edited just like editing
|
||||||
text in any window. It is a special kind of window, because you cannot leave
|
text in any window. It is a special kind of window, because you cannot leave
|
||||||
it in a normal way.
|
it in a normal way.
|
||||||
{not available when compiled without the |+cmdline_hist| feature}
|
{not available when compiled without the |+cmdwin| feature}
|
||||||
|
|
||||||
|
|
||||||
OPEN *c_CTRL-F* *q:* *q/* *q?*
|
OPEN *c_CTRL-F* *q:* *q/* *q?*
|
||||||
@@ -1130,7 +1139,7 @@ in Normal mode and Insert mode.
|
|||||||
It is possible to use ":", "/" and other commands that use the command-line,
|
It is possible to use ":", "/" and other commands that use the command-line,
|
||||||
but it's not possible to open another command-line window then. There is no
|
but it's not possible to open another command-line window then. There is no
|
||||||
nesting.
|
nesting.
|
||||||
*E11*
|
*E11* *E1188*
|
||||||
The command-line window is not a normal window. It is not possible to move to
|
The command-line window is not a normal window. It is not possible to move to
|
||||||
another window or edit another buffer. All commands that would do this are
|
another window or edit another buffer. All commands that would do this are
|
||||||
disabled in the command-line window. Of course it _is_ possible to execute
|
disabled in the command-line window. Of course it _is_ possible to execute
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*diff.txt* For Vim version 8.2. Last change: 2019 Nov 10
|
*diff.txt* For Vim version 8.2. Last change: 2021 May 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -59,7 +59,7 @@ In each of the edited files these options are set:
|
|||||||
'scrollbind' on
|
'scrollbind' on
|
||||||
'cursorbind' on
|
'cursorbind' on
|
||||||
'scrollopt' includes "hor"
|
'scrollopt' includes "hor"
|
||||||
'wrap' off
|
'wrap' off, or leave as-is if 'diffopt' includes "followwrap"
|
||||||
'foldmethod' "diff"
|
'foldmethod' "diff"
|
||||||
'foldcolumn' value from 'diffopt', default is 2
|
'foldcolumn' value from 'diffopt', default is 2
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ Otherwise they are set to their default value:
|
|||||||
'scrollbind' off
|
'scrollbind' off
|
||||||
'cursorbind' off
|
'cursorbind' off
|
||||||
'scrollopt' without "hor"
|
'scrollopt' without "hor"
|
||||||
'wrap' on
|
'wrap' on, or leave as-is if 'diffopt' includes "followwrap"
|
||||||
'foldmethod' "manual"
|
'foldmethod' "manual"
|
||||||
'foldcolumn' 0
|
'foldcolumn' 0
|
||||||
|
|
||||||
@@ -345,9 +345,11 @@ between file1 and file2: >
|
|||||||
|
|
||||||
The ">" is replaced with the value of 'shellredir'.
|
The ">" is replaced with the value of 'shellredir'.
|
||||||
|
|
||||||
The output of "diff" must be a normal "ed" style diff or a unified diff. Do
|
The output of "diff" must be a normal "ed" style diff or a unified diff. A
|
||||||
NOT use a context diff. This example explains the format that Vim expects for
|
context diff will NOT work. For a unified diff no context lines can be used.
|
||||||
the "ed" style diff: >
|
Using "diff -u" will NOT work, use "diff -U0".
|
||||||
|
|
||||||
|
This example explains the format that Vim expects for the "ed" style diff: >
|
||||||
|
|
||||||
1a2
|
1a2
|
||||||
> bbb
|
> bbb
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*digraph.txt* For Vim version 8.2. Last change: 2020 Jul 16
|
*digraph.txt* For Vim version 8.2. Last change: 2021 Jul 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -38,6 +38,9 @@ An alternative is using the 'keymap' option.
|
|||||||
< Avoid defining a digraph with '_' (underscore) as the
|
< Avoid defining a digraph with '_' (underscore) as the
|
||||||
first character, it has a special meaning in the
|
first character, it has a special meaning in the
|
||||||
future.
|
future.
|
||||||
|
NOTE: This command cannot add a digraph that starts
|
||||||
|
with a white space. If you want to add such digraph,
|
||||||
|
you can use |digraph_set()| instead.
|
||||||
|
|
||||||
Vim is normally compiled with the |+digraphs| feature. If the feature is
|
Vim is normally compiled with the |+digraphs| feature. If the feature is
|
||||||
disabled, the ":digraph" command will display an error message.
|
disabled, the ":digraph" command will display an error message.
|
||||||
@@ -348,8 +351,8 @@ $ DO 0x24 36 DOLLAR SIGN
|
|||||||
þ th 0xfe 254 LATIN SMALL LETTER THORN (Icelandic)
|
þ th 0xfe 254 LATIN SMALL LETTER THORN (Icelandic)
|
||||||
ÿ y: 0xff 255 LATIN SMALL LETTER Y WITH DIAERESIS
|
ÿ y: 0xff 255 LATIN SMALL LETTER Y WITH DIAERESIS
|
||||||
|
|
||||||
If your Vim is compiled with |multibyte| support and you are using a multibyte
|
If you are using a |multibyte| 'encoding', Vim provides this enhanced set of
|
||||||
'encoding', Vim provides this enhanced set of additional digraphs:
|
additional digraphs:
|
||||||
|
|
||||||
*digraph-table-mbyte*
|
*digraph-table-mbyte*
|
||||||
char digraph hex dec official name ~
|
char digraph hex dec official name ~
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 8.2. Last change: 2021 Jan 08
|
*editing.txt* For Vim version 8.2. Last change: 2021 Oct 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -1225,7 +1225,9 @@ If you want to always use ":confirm", set the 'confirm' option.
|
|||||||
|:diffsplit|, |:diffpatch|, |:open|, |:pedit|,
|
|:diffsplit|, |:diffpatch|, |:open|, |:pedit|,
|
||||||
|:redir|, |:source|, |:update|, |:visual|, |:vsplit|,
|
|:redir|, |:source|, |:update|, |:visual|, |:vsplit|,
|
||||||
and |:qall| if 'confirm' is set.
|
and |:qall| if 'confirm' is set.
|
||||||
{only in Win32, Athena, Motif, GTK and Mac GUI}
|
{only in Win32, Athena, Motif, GTK and Mac GUI, in
|
||||||
|
console `browse edit` works if the FileExplorer
|
||||||
|
autocommand group exists}
|
||||||
When ":browse" is not possible you get an error
|
When ":browse" is not possible you get an error
|
||||||
message. If the |+browse| feature is missing or the
|
message. If the |+browse| feature is missing or the
|
||||||
{command} doesn't support browsing, the {command} is
|
{command} doesn't support browsing, the {command} is
|
||||||
@@ -1253,7 +1255,7 @@ For versions of Vim where browsing is not supported, the command is executed
|
|||||||
unmodified.
|
unmodified.
|
||||||
|
|
||||||
*browsefilter*
|
*browsefilter*
|
||||||
For MS Windows and GTK, you can modify the filters that are used in the browse
|
For MS-Windows and GTK, you can modify the filters that are used in the browse
|
||||||
dialog. By setting the g:browsefilter or b:browsefilter variables, you can
|
dialog. By setting the g:browsefilter or b:browsefilter variables, you can
|
||||||
change the filters globally or locally to the buffer. The variable is set to
|
change the filters globally or locally to the buffer. The variable is set to
|
||||||
a string in the format "{filter label}\t{pattern};{pattern}\n" where {filter
|
a string in the format "{filter label}\t{pattern};{pattern}\n" where {filter
|
||||||
@@ -1320,33 +1322,33 @@ present in 'cpoptions' and "!" is not used in the command.
|
|||||||
*:chd* *:chdir*
|
*:chd* *:chdir*
|
||||||
:chd[ir][!] [path] Same as |:cd|.
|
:chd[ir][!] [path] Same as |:cd|.
|
||||||
|
|
||||||
*:tcd*
|
*:tc* *:tcd*
|
||||||
:tcd[!] {path} Like |:cd|, but only set the directory for the current
|
:tc[d][!] {path} Like |:cd|, but only set the directory for the current
|
||||||
tab. The current window will also use this directory.
|
tab. The current window will also use this directory.
|
||||||
The current directory is not changed for windows in
|
The current directory is not changed for windows in
|
||||||
other tabs and for windows in the current tab that
|
other tabs and for windows in the current tab that
|
||||||
have their own window-local directory.
|
have their own window-local directory.
|
||||||
|
|
||||||
|
*:tcd-*
|
||||||
|
:tc[d][!] - Change to the previous current directory, before the
|
||||||
|
last ":tcd {path}" command.
|
||||||
|
|
||||||
*:tch* *:tchdir*
|
*:tch* *:tchdir*
|
||||||
:tch[dir][!] Same as |:tcd|.
|
:tch[dir][!] Same as |:tcd|.
|
||||||
|
|
||||||
*:tcd-*
|
|
||||||
:tcd[!] - Change to the previous current directory, before the
|
|
||||||
last ":tcd {path}" command.
|
|
||||||
|
|
||||||
*:lc* *:lcd*
|
*:lc* *:lcd*
|
||||||
:lc[d][!] {path} Like |:cd|, but only set the current directory when
|
:lc[d][!] {path} Like |:cd|, but only set the current directory when
|
||||||
the cursor is in the current window. The current
|
the cursor is in the current window. The current
|
||||||
directory for other windows is not changed, switching
|
directory for other windows is not changed, switching
|
||||||
to another window will stop using {path}.
|
to another window will stop using {path}.
|
||||||
|
|
||||||
*:lch* *:lchdir*
|
|
||||||
:lch[dir][!] Same as |:lcd|.
|
|
||||||
|
|
||||||
*:lcd-*
|
*:lcd-*
|
||||||
:lcd[!] - Change to the previous current directory, before the
|
:lcd[!] - Change to the previous current directory, before the
|
||||||
last ":lcd {path}" command.
|
last ":lcd {path}" command.
|
||||||
|
|
||||||
|
*:lch* *:lchdir*
|
||||||
|
:lch[dir][!] Same as |:lcd|.
|
||||||
|
|
||||||
*:pw* *:pwd* *E187*
|
*:pw* *:pwd* *E187*
|
||||||
:pw[d] Print the current directory name.
|
:pw[d] Print the current directory name.
|
||||||
Also see |getcwd()|.
|
Also see |getcwd()|.
|
||||||
@@ -1373,14 +1375,14 @@ change anything for the current directory.
|
|||||||
When a |:lcd| command has been used for a window, the specified directory
|
When a |:lcd| command has been used for a window, the specified directory
|
||||||
becomes the current directory for that window. Windows where the |:lcd|
|
becomes the current directory for that window. Windows where the |:lcd|
|
||||||
command has not been used stick to the global or tab-local current directory.
|
command has not been used stick to the global or tab-local current directory.
|
||||||
When jumping to another window the current directory will become the last
|
When jumping to another window the current directory is changed to the last
|
||||||
specified local current directory. If none was specified, the global or
|
specified local current directory. If none was specified, the global or
|
||||||
tab-local current directory is used.
|
tab-local current directory is used.
|
||||||
|
|
||||||
When a |:tcd| command has been used for a tab page, the specified directory
|
When a |:tcd| command has been used for a tab page, the specified directory
|
||||||
becomes the current directory for the current tab page and the current window.
|
becomes the current directory for the current tab page and the current window.
|
||||||
The current directory of other tab pages is not affected. When jumping to
|
The current directory of other tab pages is not affected. When jumping to
|
||||||
another tab page, the current directory will become the last specified local
|
another tab page, the current directory is changed to the last specified local
|
||||||
directory for that tab page. If the current tab has no local current directory
|
directory for that tab page. If the current tab has no local current directory
|
||||||
the global current directory is used.
|
the global current directory is used.
|
||||||
|
|
||||||
@@ -1469,8 +1471,11 @@ be readable again. If you use a wrong key, it will be a mess.
|
|||||||
:X Prompt for an encryption key. The typing is done without showing the
|
:X Prompt for an encryption key. The typing is done without showing the
|
||||||
actual text, so that someone looking at the display won't see it.
|
actual text, so that someone looking at the display won't see it.
|
||||||
The typed key is stored in the 'key' option, which is used to encrypt
|
The typed key is stored in the 'key' option, which is used to encrypt
|
||||||
the file when it is written. The file will remain unchanged until you
|
the file when it is written.
|
||||||
write it. See also |-x|.
|
The file will remain unchanged until you write it. Note that commands
|
||||||
|
such as `:xit` and `ZZ` will NOT write the file unless there are other
|
||||||
|
changes.
|
||||||
|
See also |-x|.
|
||||||
|
|
||||||
The value of the 'key' options is used when text is written. When the option
|
The value of the 'key' options is used when text is written. When the option
|
||||||
is not empty, the written file will be encrypted, using the value as the
|
is not empty, the written file will be encrypted, using the value as the
|
||||||
@@ -1671,6 +1676,11 @@ It is also possible that you modified the file yourself, from another edit
|
|||||||
session or with another command (e.g., a filter command). Then you will know
|
session or with another command (e.g., a filter command). Then you will know
|
||||||
which version of the file you want to keep.
|
which version of the file you want to keep.
|
||||||
|
|
||||||
|
The accuracy of the time check depends on the filesystem. On Unix it is
|
||||||
|
usually sub-second. With old file sytems and on MS-Windows it is normally one
|
||||||
|
second. Use has('nanotime') check if sub-second time stamp checks are
|
||||||
|
available.
|
||||||
|
|
||||||
There is one situation where you get the message while there is nothing wrong:
|
There is one situation where you get the message while there is nothing wrong:
|
||||||
On a Win32 system on the day daylight saving time starts. There is something
|
On a Win32 system on the day daylight saving time starts. There is something
|
||||||
in the Win32 libraries that confuses Vim about the hour time difference. The
|
in the Win32 libraries that confuses Vim about the hour time difference. The
|
||||||
@@ -1749,6 +1759,12 @@ There are three different types of searching:
|
|||||||
/u/user_x/work/include
|
/u/user_x/work/include
|
||||||
/u/user_x/include
|
/u/user_x/include
|
||||||
|
|
||||||
|
< Note: If your 'path' setting includes an non-existing directory, Vim will
|
||||||
|
skip the non-existing directory, but continues searching in the parent of
|
||||||
|
the non-existing directory if upwards searching is used. E.g. when
|
||||||
|
searching "../include" and that doesn't exist, and upward searching is
|
||||||
|
used, also searches in "..".
|
||||||
|
|
||||||
3) Combined up/downward search:
|
3) Combined up/downward search:
|
||||||
If Vim's current path is /u/user_x/work/release and you do >
|
If Vim's current path is /u/user_x/work/release and you do >
|
||||||
set path=**;/u/user_x
|
set path=**;/u/user_x
|
||||||
|
|||||||
1288
runtime/doc/eval.txt
1288
runtime/doc/eval.txt
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 8.2. Last change: 2020 Sep 28
|
*filetype.txt* For Vim version 8.2. Last change: 2021 Sep 22
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -146,6 +146,7 @@ can be used to overrule the filetype used for certain extensions:
|
|||||||
*.inc g:filetype_inc
|
*.inc g:filetype_inc
|
||||||
*.w g:filetype_w |ft-cweb-syntax|
|
*.w g:filetype_w |ft-cweb-syntax|
|
||||||
*.i g:filetype_i |ft-progress-syntax|
|
*.i g:filetype_i |ft-progress-syntax|
|
||||||
|
*.m g:filetype_m |ft-mathematica-syntax|
|
||||||
*.p g:filetype_p |ft-pascal-syntax|
|
*.p g:filetype_p |ft-pascal-syntax|
|
||||||
*.pp g:filetype_pp |ft-pascal-syntax|
|
*.pp g:filetype_pp |ft-pascal-syntax|
|
||||||
*.sh g:bash_is_sh |ft-sh-syntax|
|
*.sh g:bash_is_sh |ft-sh-syntax|
|
||||||
@@ -544,6 +545,14 @@ One command, :DiffGitCached, is provided to show a diff of the current commit
|
|||||||
in the preview window. It is equivalent to calling "git diff --cached" plus
|
in the preview window. It is equivalent to calling "git diff --cached" plus
|
||||||
any arguments given to the command.
|
any arguments given to the command.
|
||||||
|
|
||||||
|
GPROF *ft-gprof-plugin*
|
||||||
|
|
||||||
|
The gprof filetype plugin defines a mapping <C-]> to jump from a function
|
||||||
|
entry in the gprof flat profile or from a function entry in the call graph
|
||||||
|
to the details of that function in the call graph.
|
||||||
|
|
||||||
|
The mapping can be disabled with: >
|
||||||
|
let g:no_gprof_maps = 1
|
||||||
|
|
||||||
MAIL *ft-mail-plugin*
|
MAIL *ft-mail-plugin*
|
||||||
|
|
||||||
@@ -628,6 +637,13 @@ For fish, add to the config file
|
|||||||
|
|
||||||
set -x MANPAGER "vim -M +MANPAGER -"
|
set -x MANPAGER "vim -M +MANPAGER -"
|
||||||
|
|
||||||
|
|
||||||
|
MARKDOWN *ft-markdown-plugin*
|
||||||
|
|
||||||
|
To enable folding use this: >
|
||||||
|
let g:markdown_folding = 1
|
||||||
|
<
|
||||||
|
|
||||||
PDF *ft-pdf-plugin*
|
PDF *ft-pdf-plugin*
|
||||||
|
|
||||||
Two maps, <C-]> and <C-T>, are provided to simulate a tag stack for navigating
|
Two maps, <C-]> and <C-T>, are provided to simulate a tag stack for navigating
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*fold.txt* For Vim version 8.2. Last change: 2019 Jun 02
|
*fold.txt* For Vim version 8.2. Last change: 2021 Jul 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -541,6 +541,8 @@ nest, the nested fold is one character right of the fold it's contained in.
|
|||||||
|
|
||||||
A closed fold is indicated with a '+'.
|
A closed fold is indicated with a '+'.
|
||||||
|
|
||||||
|
These characters can be changed with the 'fillchars' option.
|
||||||
|
|
||||||
Where the fold column is too narrow to display all nested folds, digits are
|
Where the fold column is too narrow to display all nested folds, digits are
|
||||||
shown to indicate the nesting level.
|
shown to indicate the nesting level.
|
||||||
|
|
||||||
|
|||||||
64
runtime/doc/ft_ps1.txt
Normal file
64
runtime/doc/ft_ps1.txt
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
*ft_ps1.txt* A Windows PowerShell syntax plugin for Vim
|
||||||
|
|
||||||
|
Author: Peter Provost <https://www.github.com/PProvost>
|
||||||
|
License: Apache 2.0
|
||||||
|
URL: https://github.com/PProvost/vim-ps1
|
||||||
|
|
||||||
|
INTRODUCTION *ps1-syntax*
|
||||||
|
|
||||||
|
This plugin provides Vim syntax, indent and filetype detection for Windows
|
||||||
|
PowerShell scripts, modules, and XML configuration files.
|
||||||
|
|
||||||
|
|
||||||
|
ABOUT *ps1-about*
|
||||||
|
|
||||||
|
Grab the latest version or report a bug on GitHub:
|
||||||
|
|
||||||
|
https://github.com/PProvost/vim-ps1
|
||||||
|
|
||||||
|
|
||||||
|
FOLDING *ps1-folding*
|
||||||
|
|
||||||
|
The ps1 syntax file provides syntax folding (see |:syn-fold|) for script blocks
|
||||||
|
and digital signatures in scripts.
|
||||||
|
|
||||||
|
When 'foldmethod' is set to "syntax" then function script blocks will be
|
||||||
|
folded unless you use the following in your .vimrc or before opening a script: >
|
||||||
|
|
||||||
|
:let g:ps1_nofold_blocks = 1
|
||||||
|
<
|
||||||
|
Digital signatures in scripts will also be folded unless you use: >
|
||||||
|
|
||||||
|
:let g:ps1_nofold_sig = 1
|
||||||
|
<
|
||||||
|
Note: syntax folding might slow down syntax highlighting significantly,
|
||||||
|
especially for large files.
|
||||||
|
|
||||||
|
|
||||||
|
COMPILER *ps1-compiler*
|
||||||
|
|
||||||
|
The powershell `:compiler` script configures |:make| to execute the script in
|
||||||
|
PowerShell.
|
||||||
|
|
||||||
|
It tries to pick a smart default PowerShell command: `pwsh` if available and
|
||||||
|
`powershell` otherwise, but you can customize the command: >
|
||||||
|
|
||||||
|
:let g:ps1_makeprg_cmd = '/path/to/pwsh'
|
||||||
|
<
|
||||||
|
To configure whether to show the exception type information: >
|
||||||
|
|
||||||
|
:let g:ps1_efm_show_error_categories = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
KEYWORD LOOKUP *ps1-keyword*
|
||||||
|
|
||||||
|
To look up keywords using PowerShell's Get-Help, press the |K| key. For more
|
||||||
|
convenient paging, the pager `less` should be installed, which is included in
|
||||||
|
many Linux distributions and in macOS.
|
||||||
|
|
||||||
|
Many other distributions are available for Windows like
|
||||||
|
https://chocolatey.org/packages/less/. Make sure `less` is in a directory
|
||||||
|
listed in the `PATH` environment variable, which chocolatey above does.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
vim:ft=help:
|
||||||
126
runtime/doc/ft_raku.txt
Normal file
126
runtime/doc/ft_raku.txt
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
*ft_raku.txt* The Raku programming language filetype
|
||||||
|
|
||||||
|
*vim-raku*
|
||||||
|
|
||||||
|
Vim-raku provides syntax highlighting, indentation, and other support for
|
||||||
|
editing Raku programs.
|
||||||
|
|
||||||
|
1. Using Unicode in your Raku files |raku-unicode|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
1. Using Unicode in your Raku files *raku-unicode*
|
||||||
|
|
||||||
|
Defining new operators using Unicode symbols is a good way to make your
|
||||||
|
Raku program easy to read. See:
|
||||||
|
https://perl6advent.wordpress.com/2012/12/18/day-18-formulas-resistance-is-futile/
|
||||||
|
|
||||||
|
While Raku does define ASCII alternatives for some common operators (see
|
||||||
|
https://docs.raku.org/language/unicode_ascii), using the full range of
|
||||||
|
Unicode operators is highly desirable. Your operating system provides input
|
||||||
|
facilities, but using the features built in to Vim may be preferable.
|
||||||
|
|
||||||
|
The natural way to produce these symbols in Vim is to use digraph shortcuts
|
||||||
|
(:help |digraphs-use|). Many of them are defined; type `:digraphs` to get
|
||||||
|
the list. A convenient way to read the list of digraphs is to save them in a
|
||||||
|
file. From the shell: >
|
||||||
|
vim +'redir >/tmp/vim-digraphs-listing.txt' +digraphs +'redir END' +q
|
||||||
|
|
||||||
|
Some of them are available with standard Vim digraphs:
|
||||||
|
<< « /0 ∅ !< ≮ ~
|
||||||
|
>> » Ob ∘ !> ≯ ~
|
||||||
|
., … 00 ∞ (C ⊂ ~
|
||||||
|
(U ∩ -: ÷ )C ⊃ ~
|
||||||
|
)U ∪ (_ ⊆ >= ≥ ~
|
||||||
|
?= ≅ )_ ⊇ =< ≤ ~
|
||||||
|
(- ∈ ?= ≅ != ≠ ~
|
||||||
|
-) ∋ ?- ≃ ~
|
||||||
|
|
||||||
|
The Greek alphabet is available with '*' followed by a similar Latin symbol:
|
||||||
|
*p π ~
|
||||||
|
*t τ ~
|
||||||
|
*X × ~
|
||||||
|
|
||||||
|
Numbers, subscripts and superscripts are available with 's' and 'S':
|
||||||
|
0s ₀ 0S ⁰ ~
|
||||||
|
1s ₁ 1S ¹ ~
|
||||||
|
2s ₂ 9S ⁹ ~
|
||||||
|
|
||||||
|
But some don't come defined by default. Those are digraph definitions you can
|
||||||
|
add in your ~/.vimrc file. >
|
||||||
|
exec 'digraph \\ '.char2nr('∖')
|
||||||
|
exec 'digraph \< '.char2nr('≼')
|
||||||
|
exec 'digraph \> '.char2nr('≽')
|
||||||
|
exec 'digraph (L '.char2nr('⊈')
|
||||||
|
exec 'digraph )L '.char2nr('⊉')
|
||||||
|
exec 'digraph (/ '.char2nr('⊄')
|
||||||
|
exec 'digraph )/ '.char2nr('⊅')
|
||||||
|
exec 'digraph )/ '.char2nr('⊅')
|
||||||
|
exec 'digraph U+ '.char2nr('⊎')
|
||||||
|
exec 'digraph 0- '.char2nr('⊖')
|
||||||
|
" Euler's constant
|
||||||
|
exec 'digraph ne '.char2nr('𝑒')
|
||||||
|
" Raku's atomic operations marker
|
||||||
|
exec 'digraph @@ '.char2nr('⚛')
|
||||||
|
|
||||||
|
Alternatively, you can write Insert mode abbreviations that convert ASCII-
|
||||||
|
based operators into their single-character Unicode equivalent. >
|
||||||
|
iabbrev <buffer> !(<) ⊄
|
||||||
|
iabbrev <buffer> !(<=) ⊈
|
||||||
|
iabbrev <buffer> !(>) ⊅
|
||||||
|
iabbrev <buffer> !(>=) ⊉
|
||||||
|
iabbrev <buffer> !(cont) ∌
|
||||||
|
iabbrev <buffer> !(elem) ∉
|
||||||
|
iabbrev <buffer> != ≠
|
||||||
|
iabbrev <buffer> (&) ∩
|
||||||
|
iabbrev <buffer> (+) ⊎
|
||||||
|
iabbrev <buffer> (-) ∖
|
||||||
|
iabbrev <buffer> (.) ⊍
|
||||||
|
iabbrev <buffer> (<) ⊂
|
||||||
|
iabbrev <buffer> (<+) ≼
|
||||||
|
iabbrev <buffer> (<=) ⊆
|
||||||
|
iabbrev <buffer> (>) ⊃
|
||||||
|
iabbrev <buffer> (>+) ≽
|
||||||
|
iabbrev <buffer> (>=) ⊇
|
||||||
|
iabbrev <buffer> (\|) ∪
|
||||||
|
iabbrev <buffer> (^) ⊖
|
||||||
|
iabbrev <buffer> (atomic) ⚛
|
||||||
|
iabbrev <buffer> (cont) ∋
|
||||||
|
iabbrev <buffer> (elem) ∈
|
||||||
|
iabbrev <buffer> * ×
|
||||||
|
iabbrev <buffer> **0 ⁰
|
||||||
|
iabbrev <buffer> **1 ¹
|
||||||
|
iabbrev <buffer> **2 ²
|
||||||
|
iabbrev <buffer> **3 ³
|
||||||
|
iabbrev <buffer> **4 ⁴
|
||||||
|
iabbrev <buffer> **5 ⁵
|
||||||
|
iabbrev <buffer> **6 ⁶
|
||||||
|
iabbrev <buffer> **7 ⁷
|
||||||
|
iabbrev <buffer> **8 ⁸
|
||||||
|
iabbrev <buffer> **9 ⁹
|
||||||
|
iabbrev <buffer> ... …
|
||||||
|
iabbrev <buffer> / ÷
|
||||||
|
iabbrev <buffer> << «
|
||||||
|
iabbrev <buffer> <<[=]<< «=«
|
||||||
|
iabbrev <buffer> <<[=]>> «=»
|
||||||
|
iabbrev <buffer> <= ≤
|
||||||
|
iabbrev <buffer> =~= ≅
|
||||||
|
iabbrev <buffer> >= ≥
|
||||||
|
iabbrev <buffer> >> »
|
||||||
|
iabbrev <buffer> >>[=]<< »=«
|
||||||
|
iabbrev <buffer> >>[=]>> »=»
|
||||||
|
iabbrev <buffer> Inf ∞
|
||||||
|
iabbrev <buffer> atomic-add-fetch ⚛+=
|
||||||
|
iabbrev <buffer> atomic-assign ⚛=
|
||||||
|
iabbrev <buffer> atomic-fetch ⚛
|
||||||
|
iabbrev <buffer> atomic-dec-fetch --⚛
|
||||||
|
iabbrev <buffer> atomic-fetch-dec ⚛--
|
||||||
|
iabbrev <buffer> atomic-fetch-inc ⚛++
|
||||||
|
iabbrev <buffer> atomic-inc-fetch ++⚛
|
||||||
|
iabbrev <buffer> atomic-sub-fetch ⚛−=
|
||||||
|
iabbrev <buffer> e 𝑒
|
||||||
|
iabbrev <buffer> o ∘
|
||||||
|
iabbrev <buffer> pi π
|
||||||
|
iabbrev <buffer> set() ∅
|
||||||
|
iabbrev <buffer> tau τ
|
||||||
|
<
|
||||||
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
@@ -440,7 +440,7 @@ the space bar):
|
|||||||
replace the column list with the list of tables.
|
replace the column list with the list of tables.
|
||||||
- This allows you to quickly drill down into a
|
- This allows you to quickly drill down into a
|
||||||
table to view its columns and back again.
|
table to view its columns and back again.
|
||||||
- <Right> and <Left> can be also be chosen via
|
- <Right> and <Left> can also be chosen via
|
||||||
your |.vimrc| >
|
your |.vimrc| >
|
||||||
let g:ftplugin_sql_omni_key_right = '<Right>'
|
let g:ftplugin_sql_omni_key_right = '<Right>'
|
||||||
let g:ftplugin_sql_omni_key_left = '<Left>'
|
let g:ftplugin_sql_omni_key_left = '<Left>'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui.txt* For Vim version 8.2. Last change: 2020 Sep 28
|
*gui.txt* For Vim version 8.2. Last change: 2021 Jun 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -411,7 +411,8 @@ Mouse mapping with modifiers does not work for modeless selection.
|
|||||||
3.7 Drag and drop *drag-n-drop*
|
3.7 Drag and drop *drag-n-drop*
|
||||||
|
|
||||||
You can drag and drop one or more files into the Vim window, where they will
|
You can drag and drop one or more files into the Vim window, where they will
|
||||||
be opened as if a |:drop| command was used.
|
be opened as if a |:drop| command was used. You can check if this is
|
||||||
|
supported with the *drop_file* feature: `has('drop_file')`.
|
||||||
|
|
||||||
If you hold down Shift while doing this, Vim changes to the first dropped
|
If you hold down Shift while doing this, Vim changes to the first dropped
|
||||||
file's directory. If you hold Ctrl Vim will always split a new window for the
|
file's directory. If you hold Ctrl Vim will always split a new window for the
|
||||||
@@ -620,6 +621,11 @@ expression register: >
|
|||||||
|
|
||||||
:amenu Insert.foobar "='foobar'<CR>P
|
:amenu Insert.foobar "='foobar'<CR>P
|
||||||
|
|
||||||
|
The special text <Cmd> begins a "command menu", it executes the command
|
||||||
|
directly without changing modes. Where you might use ":...<CR>" you can
|
||||||
|
instead use "<Cmd>...<CR>". See |<Cmd>| for more info. Example: >
|
||||||
|
anoremenu File.Next <Cmd>next<CR>
|
||||||
|
|
||||||
Note that the '<' and 'k' flags in 'cpoptions' also apply here (when
|
Note that the '<' and 'k' flags in 'cpoptions' also apply here (when
|
||||||
included they make the <> form and raw key codes not being recognized).
|
included they make the <> form and raw key codes not being recognized).
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui_w32.txt* For Vim version 8.2. Last change: 2020 Mar 25
|
*gui_w32.txt* For Vim version 8.2. Last change: 2021 Oct 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -323,20 +323,10 @@ These extra colors are also available:
|
|||||||
Gray, Grey, LightYellow, SeaGreen, Orange, Purple, SlateBlue, Violet,
|
Gray, Grey, LightYellow, SeaGreen, Orange, Purple, SlateBlue, Violet,
|
||||||
|
|
||||||
*rgb.txt*
|
*rgb.txt*
|
||||||
Additionally, colors defined by a "rgb.txt" file can be used. This file is
|
Additionally, colors defined by a default color list can be used. For more
|
||||||
well known from X11. A few lines from it: >
|
info see |:colorscheme|. These colors used to be defined in
|
||||||
|
$VIMRUNTIME/rgb.txt, now they are in |v:colornames| which is initialized from
|
||||||
255 218 185 peach puff
|
$VIMRUNTIME/colors/lists/default.vim.
|
||||||
205 133 63 peru
|
|
||||||
255 181 197 pink
|
|
||||||
|
|
||||||
This shows the layout of the file: First the R, G and B value as a decimal
|
|
||||||
number, followed by the name of the color. The four fields are separated by
|
|
||||||
spaces.
|
|
||||||
|
|
||||||
You can get an rgb.txt file from any X11 distribution. It is located in a
|
|
||||||
directory like "/usr/X11R6/lib/X11/". For Vim it must be located in the
|
|
||||||
$VIMRUNTIME directory. Thus the file can be found with "$VIMRUNTIME/rgb.txt".
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
*gui-w32-dialogs* *dialog*
|
*gui-w32-dialogs* *dialog*
|
||||||
@@ -403,7 +393,7 @@ The "File/Print" menu prints the text with syntax highlighting, see
|
|||||||
printer installed this should also work: >
|
printer installed this should also work: >
|
||||||
:w >>prn
|
:w >>prn
|
||||||
|
|
||||||
Vim supports a number of standard MS Windows features. Some of these are
|
Vim supports a number of standard MS-Windows features. Some of these are
|
||||||
detailed elsewhere: see |'mouse'|, |win32-hidden-menus|.
|
detailed elsewhere: see |'mouse'|, |win32-hidden-menus|.
|
||||||
|
|
||||||
*drag-n-drop-win32*
|
*drag-n-drop-win32*
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Vim had built-in support for hangul, the Korean language, for users without
|
|||||||
XIM (X Input Method). Since it didn't work well and was not maintained it was
|
XIM (X Input Method). Since it didn't work well and was not maintained it was
|
||||||
removed in Vim 8.1.2327.
|
removed in Vim 8.1.2327.
|
||||||
|
|
||||||
If you want this hangul input mehod you can go back to Vim 8.1.2326 or
|
If you want this hangul input method you can go back to Vim 8.1.2326 or
|
||||||
earlier. If you think this code is still useful and want to maintain it, make
|
earlier. If you think this code is still useful and want to maintain it, make
|
||||||
a patch to add it back. However, making it work with UTF-8 encoding would be
|
a patch to add it back. However, making it work with UTF-8 encoding would be
|
||||||
best.
|
best.
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ Tuning Vim ~
|
|||||||
|usr_43.txt| Using filetypes
|
|usr_43.txt| Using filetypes
|
||||||
|usr_44.txt| Your own syntax highlighted
|
|usr_44.txt| Your own syntax highlighted
|
||||||
|usr_45.txt| Select your language
|
|usr_45.txt| Select your language
|
||||||
|
|usr_46.txt| Write plugins using Vim9 script
|
||||||
|
|
||||||
Making Vim Run ~
|
Making Vim Run ~
|
||||||
|usr_90.txt| Installing Vim
|
|usr_90.txt| Installing Vim
|
||||||
@@ -132,7 +133,7 @@ Advanced editing ~
|
|||||||
|windows.txt| commands for using multiple windows and buffers
|
|windows.txt| commands for using multiple windows and buffers
|
||||||
|tabpage.txt| commands for using multiple tab pages
|
|tabpage.txt| commands for using multiple tab pages
|
||||||
|spell.txt| spell checking
|
|spell.txt| spell checking
|
||||||
|diff.txt| working with two to four versions of the same file
|
|diff.txt| working with two to eight versions of the same file
|
||||||
|autocmd.txt| automatically executing commands on an event
|
|autocmd.txt| automatically executing commands on an event
|
||||||
|eval.txt| expression evaluation, conditional commands
|
|eval.txt| expression evaluation, conditional commands
|
||||||
|channel.txt| Jobs, Channels, inter-process communication
|
|channel.txt| Jobs, Channels, inter-process communication
|
||||||
@@ -145,6 +146,7 @@ Special issues ~
|
|||||||
|term.txt| using different terminals and mice
|
|term.txt| using different terminals and mice
|
||||||
|terminal.txt| Terminal window support
|
|terminal.txt| Terminal window support
|
||||||
|popup.txt| popup window support
|
|popup.txt| popup window support
|
||||||
|
|vim9.txt| using Vim9 script
|
||||||
|
|
||||||
Programming language support ~
|
Programming language support ~
|
||||||
|indent.txt| automatic indenting for C and other languages
|
|indent.txt| automatic indenting for C and other languages
|
||||||
@@ -153,6 +155,8 @@ Programming language support ~
|
|||||||
|filetype.txt| settings done specifically for a type of file
|
|filetype.txt| settings done specifically for a type of file
|
||||||
|quickfix.txt| commands for a quick edit-compile-fix cycle
|
|quickfix.txt| commands for a quick edit-compile-fix cycle
|
||||||
|ft_ada.txt| Ada (the programming language) support
|
|ft_ada.txt| Ada (the programming language) support
|
||||||
|
|ft_ps1.txt| Filetype plugin for Windows PowerShell
|
||||||
|
|ft_raku.txt| Filetype plugin for Raku
|
||||||
|ft_rust.txt| Filetype plugin for Rust
|
|ft_rust.txt| Filetype plugin for Rust
|
||||||
|ft_sql.txt| about the SQL filetype plugin
|
|ft_sql.txt| about the SQL filetype plugin
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*helphelp.txt* For Vim version 8.2. Last change: 2020 Dec 29
|
*helphelp.txt* For Vim version 8.2. Last change: 2021 Nov 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -323,21 +323,25 @@ Hints for translators:
|
|||||||
3. Writing help files *help-writing*
|
3. Writing help files *help-writing*
|
||||||
|
|
||||||
For ease of use, a Vim help file for a plugin should follow the format of the
|
For ease of use, a Vim help file for a plugin should follow the format of the
|
||||||
standard Vim help files. If you are writing a new help file it's best to copy
|
standard Vim help files, except for the first line. If you are writing a new
|
||||||
one of the existing files and use it as a template.
|
help file it's best to copy one of the existing files and use it as a
|
||||||
|
template.
|
||||||
|
|
||||||
The first line in a help file should have the following format:
|
The first line in a help file should have the following format:
|
||||||
|
|
||||||
*helpfile_name.txt* For Vim version 7.3 Last change: 2010 June 4
|
*plugin_name.txt* {short description of the plugin}
|
||||||
|
|
||||||
The first field is a link to the help file name. The second field describes
|
The first field is a help tag where ":help plugin_name" will jump to. The
|
||||||
the applicable Vim version. The last field specifies the last modification
|
remainder of the line, after a Tab, describes the plugin purpose in a short
|
||||||
date of the file. Each field is separated by a tab.
|
way. This will show up in the "LOCAL ADDITIONS" section of the main help
|
||||||
|
file. Check there that it shows up properly: |local-additions|.
|
||||||
|
|
||||||
|
If you want to add a version number or last modification date, put it in the
|
||||||
|
second line, right aligned.
|
||||||
|
|
||||||
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 undesired consequences.
|
||||||
help.
|
|
||||||
|
|
||||||
|
|
||||||
TAGS
|
TAGS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_lua.txt* For Vim version 8.2. Last change: 2020 Jun 28
|
*if_lua.txt* For Vim version 8.2. Last change: 2021 Aug 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Luis Carvalho
|
VIM REFERENCE MANUAL by Luis Carvalho
|
||||||
@@ -175,10 +175,17 @@ Vim evaluation and command execution, and others.
|
|||||||
:lua print(type(l), vim.type(l))
|
:lua print(type(l), vim.type(l))
|
||||||
:" list
|
:" list
|
||||||
<
|
<
|
||||||
vim.command({cmd}) Executes the vim (ex-mode) command {cmd}.
|
vim.command({cmds}) Executes one or more lines of Ex-mode commands
|
||||||
|
in {cmds}.
|
||||||
Examples: >
|
Examples: >
|
||||||
:lua vim.command"set tw=60"
|
:lua vim.command"set tw=60"
|
||||||
:lua vim.command"normal ddp"
|
:lua vim.command"normal ddp"
|
||||||
|
lua << trim END
|
||||||
|
vim.command([[
|
||||||
|
new Myfile.js
|
||||||
|
call search('start')
|
||||||
|
]])
|
||||||
|
END
|
||||||
<
|
<
|
||||||
vim.eval({expr}) Evaluates expression {expr} (see |expression|),
|
vim.eval({expr}) Evaluates expression {expr} (see |expression|),
|
||||||
converts the result to Lua, and returns it.
|
converts the result to Lua, and returns it.
|
||||||
@@ -208,6 +215,46 @@ Vim evaluation and command execution, and others.
|
|||||||
created on demand. Example: >
|
created on demand. Example: >
|
||||||
:lua print(vim.fn.has('timers'))
|
:lua print(vim.fn.has('timers'))
|
||||||
<
|
<
|
||||||
|
vim.lua_version The Lua version Vim was compiled with, in the
|
||||||
|
form {major}.{minor}.{patch}, e.g. "5.1.4".
|
||||||
|
|
||||||
|
vim.version() Returns a Lua table with the Vim version.
|
||||||
|
The table will have the following keys:
|
||||||
|
major - major Vim version.
|
||||||
|
minor - minor Vim version.
|
||||||
|
patch - latest patch included.
|
||||||
|
|
||||||
|
*lua-vim-variables*
|
||||||
|
The Vim editor global dictionaries |g:| |w:| |b:| |t:| |v:| can be accessed
|
||||||
|
from Lua conveniently and idiomatically by referencing the `vim.*` Lua tables
|
||||||
|
described below. In this way you can easily read and modify global Vim script
|
||||||
|
variables from Lua.
|
||||||
|
|
||||||
|
Example: >
|
||||||
|
|
||||||
|
vim.g.foo = 5 -- Set the g:foo Vim script variable.
|
||||||
|
print(vim.g.foo) -- Get and print the g:foo Vim script variable.
|
||||||
|
vim.g.foo = nil -- Delete (:unlet) the Vim script variable.
|
||||||
|
|
||||||
|
vim.g *vim.g*
|
||||||
|
Global (|g:|) editor variables.
|
||||||
|
Key with no value returns `nil`.
|
||||||
|
|
||||||
|
vim.b *vim.b*
|
||||||
|
Buffer-scoped (|b:|) variables for the current buffer.
|
||||||
|
Invalid or unset key returns `nil`.
|
||||||
|
|
||||||
|
vim.w *vim.w*
|
||||||
|
Window-scoped (|w:|) variables for the current window.
|
||||||
|
Invalid or unset key returns `nil`.
|
||||||
|
|
||||||
|
vim.t *vim.t*
|
||||||
|
Tabpage-scoped (|t:|) variables for the current tabpage.
|
||||||
|
Invalid or unset key returns `nil`.
|
||||||
|
|
||||||
|
vim.v *vim.v*
|
||||||
|
|v:| variables.
|
||||||
|
Invalid or unset key returns `nil`.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. List userdata *lua-list*
|
3. List userdata *lua-list*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_pyth.txt* For Vim version 8.2. Last change: 2019 Dec 07
|
*if_pyth.txt* For Vim version 8.2. Last change: 2021 Nov 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@@ -63,6 +63,11 @@ To see what version of Python you have: >
|
|||||||
|
|
||||||
There is no need to import sys, it's done by default.
|
There is no need to import sys, it's done by default.
|
||||||
|
|
||||||
|
*python-environment*
|
||||||
|
Environment variables set in Vim are not always available in Python. This
|
||||||
|
depends on how Vim and Python were build. Also see
|
||||||
|
https://docs.python.org/3/library/os.html#os.environ
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_tcl.txt* For Vim version 8.2. Last change: 2019 Jul 21
|
*if_tcl.txt* For Vim version 8.2. Last change: 2021 May 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ingo Wilken
|
VIM REFERENCE MANUAL by Ingo Wilken
|
||||||
@@ -25,12 +25,12 @@ comments, ideas etc to <Ingo.Wilken@informatik.uni-oldenburg.de>
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
1. Commands *tcl-ex-commands* *E571* *E572*
|
1. Commands *tcl-ex-commands* *E571* *E572*
|
||||||
|
|
||||||
*:tcl* *:tc*
|
*:tcl*
|
||||||
:tc[l] {cmd} Execute Tcl command {cmd}. A simple check if `:tcl`
|
:tcl {cmd} Execute Tcl command {cmd}. A simple check if `:tcl`
|
||||||
is working: >
|
is working: >
|
||||||
:tcl puts "Hello"
|
:tcl puts "Hello"
|
||||||
|
|
||||||
:[range]tc[l] << [trim] [{endmarker}]
|
:[range]tcl << [trim] [{endmarker}]
|
||||||
{script}
|
{script}
|
||||||
{endmarker}
|
{endmarker}
|
||||||
Execute Tcl script {script}.
|
Execute Tcl script {script}.
|
||||||
|
|||||||
@@ -608,26 +608,25 @@ CLOJURE *ft-clojure-indent* *clojure-indent*
|
|||||||
Clojure indentation differs somewhat from traditional Lisps, due in part to
|
Clojure indentation differs somewhat from traditional Lisps, due in part to
|
||||||
the use of square and curly brackets, and otherwise by community convention.
|
the use of square and curly brackets, and otherwise by community convention.
|
||||||
These conventions are not universally followed, so the Clojure indent script
|
These conventions are not universally followed, so the Clojure indent script
|
||||||
offers a few configurable options, listed below.
|
offers a few configuration options.
|
||||||
|
|
||||||
|
(If the current Vim does not include |searchpairpos()|, the indent script falls
|
||||||
|
back to normal 'lisp' indenting, and the following options are ignored.)
|
||||||
|
|
||||||
If the current vim does not include |searchpairpos()|, the indent script falls
|
|
||||||
back to normal 'lisp' indenting, and the following options are ignored.
|
|
||||||
|
|
||||||
*g:clojure_maxlines*
|
*g:clojure_maxlines*
|
||||||
|
|
||||||
Set maximum scan distance of |searchpairpos()|. Larger values trade
|
Sets maximum scan distance of `searchpairpos()`. Larger values trade
|
||||||
performance for correctness when dealing with very long forms. A value of 0
|
performance for correctness when dealing with very long forms. A value of
|
||||||
will scan without limits.
|
0 will scan without limits. The default is 300.
|
||||||
>
|
|
||||||
" Default
|
|
||||||
let g:clojure_maxlines = 100
|
|
||||||
<
|
|
||||||
*g:clojure_fuzzy_indent*
|
*g:clojure_fuzzy_indent*
|
||||||
*g:clojure_fuzzy_indent_patterns*
|
*g:clojure_fuzzy_indent_patterns*
|
||||||
*g:clojure_fuzzy_indent_blacklist*
|
*g:clojure_fuzzy_indent_blacklist*
|
||||||
|
|
||||||
The 'lispwords' option is a list of comma-separated words that mark special
|
The 'lispwords' option is a list of comma-separated words that mark special
|
||||||
forms whose subforms must be indented with two spaces.
|
forms whose subforms should be indented with two spaces.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
>
|
>
|
||||||
@@ -645,15 +644,11 @@ the fuzzy indent feature:
|
|||||||
let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let']
|
let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let']
|
||||||
let g:clojure_fuzzy_indent_blacklist =
|
let g:clojure_fuzzy_indent_blacklist =
|
||||||
\ ['-fn$', '\v^with-%(meta|out-str|loading-context)$']
|
\ ['-fn$', '\v^with-%(meta|out-str|loading-context)$']
|
||||||
|
|
||||||
" Legacy comma-delimited string version; the list format above is
|
|
||||||
" recommended. Note that patterns are implicitly anchored with ^ and $
|
|
||||||
let g:clojure_fuzzy_indent_patterns = 'with.*,def.*,let.*'
|
|
||||||
<
|
<
|
||||||
|g:clojure_fuzzy_indent_patterns| and |g:clojure_fuzzy_indent_blacklist| are
|
|g:clojure_fuzzy_indent_patterns| and |g:clojure_fuzzy_indent_blacklist| are
|
||||||
|Lists| of patterns that will be matched against the unquoted, unqualified
|
lists of patterns that will be matched against the unqualified symbol at the
|
||||||
symbol at the head of a list. This means that a pattern like "^foo" will match
|
head of a list. This means that a pattern like `"^foo"` will match all these
|
||||||
all these candidates: "foobar", "my.ns/foobar", and "#'foobar".
|
candidates: `foobar`, `my.ns/foobar`, and `#'foobar`.
|
||||||
|
|
||||||
Each candidate word is tested for special treatment in this order:
|
Each candidate word is tested for special treatment in this order:
|
||||||
|
|
||||||
@@ -664,20 +659,22 @@ Each candidate word is tested for special treatment in this order:
|
|||||||
|g:clojure_fuzzy_indent_patterns|
|
|g:clojure_fuzzy_indent_patterns|
|
||||||
4. Return false and indent normally otherwise
|
4. Return false and indent normally otherwise
|
||||||
|
|
||||||
|
|
||||||
*g:clojure_special_indent_words*
|
*g:clojure_special_indent_words*
|
||||||
|
|
||||||
Some forms in Clojure are indented so that every subform is indented only two
|
Some forms in Clojure are indented such that every subform is indented by only
|
||||||
spaces, regardless of 'lispwords'. If you have a custom construct that should
|
two spaces, regardless of 'lispwords'. If you have a custom construct that
|
||||||
be indented in this idiosyncratic fashion, you can add your symbols to the
|
should be indented in this idiosyncratic fashion, you can add your symbols to
|
||||||
default list below.
|
the default list below.
|
||||||
>
|
>
|
||||||
" Default
|
" Default
|
||||||
let g:clojure_special_indent_words =
|
let g:clojure_special_indent_words =
|
||||||
\ 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
|
\ 'deftype,defrecord,reify,proxy,extend-type,extend-protocol,letfn'
|
||||||
<
|
<
|
||||||
|
|
||||||
*g:clojure_align_multiline_strings*
|
*g:clojure_align_multiline_strings*
|
||||||
|
|
||||||
Align subsequent lines in multiline strings to the column after the opening
|
Align subsequent lines in multi-line strings to the column after the opening
|
||||||
quote, instead of the same column.
|
quote, instead of the same column.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
@@ -694,11 +691,7 @@ For example:
|
|||||||
enim ad minim veniam, quis nostrud exercitation ullamco laboris
|
enim ad minim veniam, quis nostrud exercitation ullamco laboris
|
||||||
nisi ut aliquip ex ea commodo consequat.")
|
nisi ut aliquip ex ea commodo consequat.")
|
||||||
<
|
<
|
||||||
This option is off by default.
|
|
||||||
>
|
|
||||||
" Default
|
|
||||||
let g:clojure_align_multiline_strings = 0
|
|
||||||
<
|
|
||||||
*g:clojure_align_subforms*
|
*g:clojure_align_subforms*
|
||||||
|
|
||||||
By default, parenthesized compound forms that look like function calls and
|
By default, parenthesized compound forms that look like function calls and
|
||||||
@@ -709,18 +702,14 @@ two spaces relative to the opening paren:
|
|||||||
bar
|
bar
|
||||||
baz)
|
baz)
|
||||||
<
|
<
|
||||||
Setting this option changes this behavior so that all subforms are aligned to
|
Setting this option to `1` changes this behaviour so that all subforms are
|
||||||
the same column, emulating the default behavior of clojure-mode.el:
|
aligned to the same column, emulating the default behaviour of
|
||||||
|
clojure-mode.el:
|
||||||
>
|
>
|
||||||
(foo
|
(foo
|
||||||
bar
|
bar
|
||||||
baz)
|
baz)
|
||||||
<
|
<
|
||||||
This option is off by default.
|
|
||||||
>
|
|
||||||
" Default
|
|
||||||
let g:clojure_align_subforms = 0
|
|
||||||
<
|
|
||||||
|
|
||||||
FORTRAN *ft-fortran-indent*
|
FORTRAN *ft-fortran-indent*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 8.2. Last change: 2021 Jan 15
|
*index.txt* For Vim version 8.2. Last change: 2021 Aug 31
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -168,6 +168,7 @@ commands in CTRL-X submode *i_CTRL-X_index*
|
|||||||
|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
|
|i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down
|
||||||
|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
|
|i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc'
|
||||||
|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
|
|i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line
|
||||||
|
|i_CTRL-X_CTRL-Z| CTRL-X CTRL-Z stop completion, keeping the text as-is
|
||||||
|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
|
|i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags
|
||||||
|i_CTRL-X_s| CTRL-X s spelling suggestions
|
|i_CTRL-X_s| CTRL-X s spelling suggestions
|
||||||
|
|
||||||
@@ -864,6 +865,8 @@ tag char note action in Normal mode ~
|
|||||||
|zm| zm subtract one from 'foldlevel'
|
|zm| zm subtract one from 'foldlevel'
|
||||||
|zn| zn reset 'foldenable'
|
|zn| zn reset 'foldenable'
|
||||||
|zo| zo open fold
|
|zo| zo open fold
|
||||||
|
|zp| zp paste in block-mode without trailing spaces
|
||||||
|
|zP| zP paste in block-mode without trailing spaces
|
||||||
|zr| zr add one to 'foldlevel'
|
|zr| zr add one to 'foldlevel'
|
||||||
|zs| zs when 'wrap' off scroll horizontally to
|
|zs| zs when 'wrap' off scroll horizontally to
|
||||||
position the cursor at the start (left
|
position the cursor at the start (left
|
||||||
@@ -876,6 +879,7 @@ tag char note action in Normal mode ~
|
|||||||
|zv| zv open enough folds to view the cursor line
|
|zv| zv open enough folds to view the cursor line
|
||||||
|zw| zw permanently mark word as incorrectly spelled
|
|zw| zw permanently mark word as incorrectly spelled
|
||||||
|zx| zx re-apply 'foldlevel' and do "zv"
|
|zx| zx re-apply 'foldlevel' and do "zv"
|
||||||
|
|zy| zy yank without trailing spaces
|
||||||
|zz| zz redraw, cursor line at center of window
|
|zz| zz redraw, cursor line at center of window
|
||||||
|z<Left>| z<Left> same as "zh"
|
|z<Left>| z<Left> same as "zh"
|
||||||
|z<Right>| z<Right> same as "zl"
|
|z<Right>| z<Right> same as "zl"
|
||||||
@@ -1176,6 +1180,7 @@ tag command action ~
|
|||||||
|:bNext| :bN[ext] go to previous buffer in the buffer list
|
|:bNext| :bN[ext] go to previous buffer in the buffer list
|
||||||
|:ball| :ba[ll] open a window for each buffer in the buffer list
|
|:ball| :ba[ll] open a window for each buffer in the buffer list
|
||||||
|:badd| :bad[d] add buffer to the buffer list
|
|:badd| :bad[d] add buffer to the buffer list
|
||||||
|
|:balt| :balt like ":badd" but also set the alternate file
|
||||||
|:bdelete| :bd[elete] remove a buffer from the buffer list
|
|:bdelete| :bd[elete] remove a buffer from the buffer list
|
||||||
|:behave| :be[have] set mouse and selection behavior
|
|:behave| :be[have] set mouse and selection behavior
|
||||||
|:belowright| :bel[owright] make split window appear right or below
|
|:belowright| :bel[owright] make split window appear right or below
|
||||||
@@ -1293,6 +1298,7 @@ tag command action ~
|
|||||||
|:edit| :e[dit] edit a file
|
|:edit| :e[dit] edit a file
|
||||||
|:earlier| :ea[rlier] go to older change, undo
|
|:earlier| :ea[rlier] go to older change, undo
|
||||||
|:echo| :ec[ho] echoes the result of expressions
|
|:echo| :ec[ho] echoes the result of expressions
|
||||||
|
|:echoconsole| :echoc[onsole] like :echomsg but write to stdout
|
||||||
|:echoerr| :echoe[rr] like :echo, show like an error and use history
|
|:echoerr| :echoe[rr] like :echo, show like an error and use history
|
||||||
|:echohl| :echoh[l] set highlighting for echo commands
|
|:echohl| :echoh[l] set highlighting for echo commands
|
||||||
|:echomsg| :echom[sg] same as :echo, put message in history
|
|:echomsg| :echom[sg] same as :echo, put message in history
|
||||||
@@ -1307,6 +1313,7 @@ tag command action ~
|
|||||||
|:endtry| :endt[ry] end previous :try
|
|:endtry| :endt[ry] end previous :try
|
||||||
|:endwhile| :endw[hile] end previous :while
|
|:endwhile| :endw[hile] end previous :while
|
||||||
|:enew| :ene[w] edit a new, unnamed buffer
|
|:enew| :ene[w] edit a new, unnamed buffer
|
||||||
|
|:eval| :ev[al] evaluate an expression and discard the result
|
||||||
|:ex| :ex same as ":edit"
|
|:ex| :ex same as ":edit"
|
||||||
|:execute| :exe[cute] execute result of expressions
|
|:execute| :exe[cute] execute result of expressions
|
||||||
|:exit| :exi[t] same as ":xit"
|
|:exit| :exi[t] same as ":xit"
|
||||||
@@ -1394,6 +1401,7 @@ tag command action ~
|
|||||||
|:lfdo| :lfd[o] execute command in each file in location list
|
|:lfdo| :lfd[o] execute command in each file in location list
|
||||||
|:left| :le[ft] left align lines
|
|:left| :le[ft] left align lines
|
||||||
|:leftabove| :lefta[bove] make split window appear left or above
|
|:leftabove| :lefta[bove] make split window appear left or above
|
||||||
|
|:legacy| :leg[acy] make following command use legacy script syntax
|
||||||
|:let| :let assign a value to a variable or option
|
|:let| :let assign a value to a variable or option
|
||||||
|:lexpr| :lex[pr] read locations from expr and jump to first
|
|:lexpr| :lex[pr] read locations from expr and jump to first
|
||||||
|:lfile| :lf[ile] read file with locations and jump to first
|
|:lfile| :lf[ile] read file with locations and jump to first
|
||||||
@@ -1654,9 +1662,9 @@ tag command action ~
|
|||||||
|:tab| :tab create new tab when opening new window
|
|:tab| :tab create new tab when opening new window
|
||||||
|:tag| :ta[g] jump to tag
|
|:tag| :ta[g] jump to tag
|
||||||
|:tags| :tags show the contents of the tag stack
|
|:tags| :tags show the contents of the tag stack
|
||||||
|:tcd| :tcd change directory for tab page
|
|:tcd| :tc[d] change directory for tab page
|
||||||
|:tchdir| :tch[dir] change directory for tab page
|
|:tchdir| :tch[dir] change directory for tab page
|
||||||
|:tcl| :tc[l] execute Tcl command
|
|:tcl| :tcl execute Tcl command
|
||||||
|:tcldo| :tcld[o] execute Tcl command for each line
|
|:tcldo| :tcld[o] execute Tcl command for each line
|
||||||
|:tclfile| :tclf[ile] execute Tcl script file
|
|:tclfile| :tclf[ile] execute Tcl script file
|
||||||
|:tearoff| :te[aroff] tear-off a menu
|
|:tearoff| :te[aroff] tear-off a menu
|
||||||
@@ -1698,7 +1706,8 @@ tag command action ~
|
|||||||
|:version| :ve[rsion] print version number and other info
|
|:version| :ve[rsion] print version number and other info
|
||||||
|:verbose| :verb[ose] execute command with 'verbose' set
|
|:verbose| :verb[ose] execute command with 'verbose' set
|
||||||
|:vertical| :vert[ical] make following command split vertically
|
|:vertical| :vert[ical] make following command split vertically
|
||||||
|:vim9script| :vim9[script] indicates Vim9 script file
|
|:vim9cmd| :vim9[cmd] make following command use Vim9 script syntax
|
||||||
|
|:vim9script| :vim9s[cript] indicates Vim9 script file
|
||||||
|:vimgrep| :vim[grep] search for pattern in files
|
|:vimgrep| :vim[grep] search for pattern in files
|
||||||
|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
|
|:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list
|
||||||
|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
|
|:visual| :vi[sual] same as ":edit", but turns off "Ex" mode
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*insert.txt* For Vim version 8.2. Last change: 2020 Oct 16
|
*insert.txt* For Vim version 8.2. Last change: 2021 Oct 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -640,6 +640,8 @@ Completion can be done for:
|
|||||||
12. Spelling suggestions |i_CTRL-X_s|
|
12. Spelling suggestions |i_CTRL-X_s|
|
||||||
13. keywords in 'complete' |i_CTRL-N| |i_CTRL-P|
|
13. keywords in 'complete' |i_CTRL-N| |i_CTRL-P|
|
||||||
|
|
||||||
|
Additionally, |i_CTRL-X_CTRL-Z| stops completion without changing the text.
|
||||||
|
|
||||||
All these, except CTRL-N and CTRL-P, are done in CTRL-X mode. This is a
|
All these, except CTRL-N and CTRL-P, are done in CTRL-X mode. This is a
|
||||||
sub-mode of Insert and Replace modes. You enter CTRL-X mode by typing CTRL-X
|
sub-mode of Insert and Replace modes. You enter CTRL-X mode by typing CTRL-X
|
||||||
and one of the CTRL-X commands. You exit CTRL-X mode by typing a key that is
|
and one of the CTRL-X commands. You exit CTRL-X mode by typing a key that is
|
||||||
@@ -822,6 +824,9 @@ CTRL-X CTRL-K Search the files given with the 'dictionary' option
|
|||||||
CTRL-P Search backwards for next matching keyword. This
|
CTRL-P Search backwards for next matching keyword. This
|
||||||
keyword replaces the previous matching keyword.
|
keyword replaces the previous matching keyword.
|
||||||
|
|
||||||
|
|
||||||
|
Completing words in 'thesaurus' *compl-thesaurus*
|
||||||
|
|
||||||
*i_CTRL-X_CTRL-T*
|
*i_CTRL-X_CTRL-T*
|
||||||
CTRL-X CTRL-T Works as CTRL-X CTRL-K, but in a special way. It uses
|
CTRL-X CTRL-T Works as CTRL-X CTRL-K, but in a special way. It uses
|
||||||
the 'thesaurus' option instead of 'dictionary'. If a
|
the 'thesaurus' option instead of 'dictionary'. If a
|
||||||
@@ -830,16 +835,6 @@ CTRL-X CTRL-T Works as CTRL-X CTRL-K, but in a special way. It uses
|
|||||||
matches, even though they don't complete the word.
|
matches, even though they don't complete the word.
|
||||||
Thus a word can be completely replaced.
|
Thus a word can be completely replaced.
|
||||||
|
|
||||||
For an example, imagine the 'thesaurus' file has a
|
|
||||||
line like this: >
|
|
||||||
angry furious mad enraged
|
|
||||||
< Placing the cursor after the letters "ang" and typing
|
|
||||||
CTRL-X CTRL-T would complete the word "angry";
|
|
||||||
subsequent presses would change the word to "furious",
|
|
||||||
"mad" etc.
|
|
||||||
Other uses include translation between two languages,
|
|
||||||
or grouping API functions by keyword.
|
|
||||||
|
|
||||||
CTRL-T or
|
CTRL-T or
|
||||||
CTRL-N Search forward for next matching keyword. This
|
CTRL-N Search forward for next matching keyword. This
|
||||||
keyword replaces the previous matching keyword.
|
keyword replaces the previous matching keyword.
|
||||||
@@ -847,6 +842,57 @@ CTRL-X CTRL-T Works as CTRL-X CTRL-K, but in a special way. It uses
|
|||||||
CTRL-P Search backwards for next matching keyword. This
|
CTRL-P Search backwards for next matching keyword. This
|
||||||
keyword replaces the previous matching keyword.
|
keyword replaces the previous matching keyword.
|
||||||
|
|
||||||
|
In the file used by the 'thesaurus' option each line in the file should
|
||||||
|
contain words with similar meaning, separated by non-keyword characters (white
|
||||||
|
space is preferred). Maximum line length is 510 bytes.
|
||||||
|
|
||||||
|
For an example, imagine the 'thesaurus' file has a line like this: >
|
||||||
|
angry furious mad enraged
|
||||||
|
<Placing the cursor after the letters "ang" and typing CTRL-X CTRL-T would
|
||||||
|
complete the word "angry"; subsequent presses would change the word to
|
||||||
|
"furious", "mad" etc.
|
||||||
|
|
||||||
|
Other uses include translation between two languages, or grouping API
|
||||||
|
functions by keyword.
|
||||||
|
|
||||||
|
An English word list was added to this github issue:
|
||||||
|
https://github.com/vim/vim/issues/629#issuecomment-443293282
|
||||||
|
Unpack thesaurus_pkg.zip, put the thesaurus.txt file somewhere, e.g.
|
||||||
|
~/.vim/thesaurus/english.txt, and the 'thesaurus' option to this file name.
|
||||||
|
|
||||||
|
|
||||||
|
Completing keywords with 'thesaurusfunc' *compl-thesaurusfunc*
|
||||||
|
|
||||||
|
If the 'thesaurusfunc' option is set, then the user specified function is
|
||||||
|
invoked to get the list of completion matches and the 'thesaurus' option is
|
||||||
|
not used. See |complete-functions| for an explanation of how the function is
|
||||||
|
invoked and what it should return.
|
||||||
|
|
||||||
|
Here is an example that uses the "aiksaurus" command (provided by Magnus
|
||||||
|
Groß): >
|
||||||
|
|
||||||
|
func Thesaur(findstart, base)
|
||||||
|
if a:findstart
|
||||||
|
return searchpos('\<', 'bnW', line('.'))[1] - 1
|
||||||
|
endif
|
||||||
|
let res = []
|
||||||
|
let h = ''
|
||||||
|
for l in systemlist('aiksaurus '.shellescape(a:base))
|
||||||
|
if l[:3] == '=== '
|
||||||
|
let h = '('.substitute(l[4:], ' =*$', ')', '')
|
||||||
|
elseif l ==# 'Alphabetically similar known words are: '
|
||||||
|
let h = "\U0001f52e"
|
||||||
|
elseif l[0] =~ '\a' || (h ==# "\U0001f52e" && l[0] ==# "\t")
|
||||||
|
call extend(res, map(split(substitute(l, '^\t', '', ''), ', '), {_, val -> {'word': val, 'menu': h}}))
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
return res
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
if exists('+thesaurusfunc')
|
||||||
|
set thesaurusfunc=Thesaur
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
Completing keywords in the current and included files *compl-keyword*
|
Completing keywords in the current and included files *compl-keyword*
|
||||||
|
|
||||||
@@ -1042,9 +1088,15 @@ CTRL-P Find previous match for words that start with the
|
|||||||
other contexts unless a double CTRL-X is used.
|
other contexts unless a double CTRL-X is used.
|
||||||
|
|
||||||
|
|
||||||
|
Stop completion *compl-stop*
|
||||||
|
|
||||||
|
*i_CTRL-X_CTRL-Z*
|
||||||
|
CTRL-X CTRL-Z Stop completion without changing the text.
|
||||||
|
|
||||||
|
|
||||||
FUNCTIONS FOR FINDING COMPLETIONS *complete-functions*
|
FUNCTIONS FOR FINDING COMPLETIONS *complete-functions*
|
||||||
|
|
||||||
This applies to 'completefunc' and 'omnifunc'.
|
This applies to 'completefunc', 'thesaurusfunc' and 'omnifunc'.
|
||||||
|
|
||||||
The function is called in two different ways:
|
The function is called in two different ways:
|
||||||
- First the function is called to find the start of the text to be completed.
|
- First the function is called to find the start of the text to be completed.
|
||||||
@@ -1073,7 +1125,8 @@ On the second invocation the arguments are:
|
|||||||
|
|
||||||
The function must return a List with the matching words. These matches
|
The function must return a List with the matching words. These matches
|
||||||
usually include the "a:base" text. When there are no matches return an empty
|
usually include the "a:base" text. When there are no matches return an empty
|
||||||
List.
|
List. Note that the cursor may have moved since the first invocation, the
|
||||||
|
text may have been changed.
|
||||||
|
|
||||||
In order to return more information than the matching words, return a Dict
|
In order to return more information than the matching words, return a Dict
|
||||||
that contains the List. The Dict can have these items:
|
that contains the List. The Dict can have these items:
|
||||||
@@ -1193,7 +1246,7 @@ match to the total list. These matches should then not appear in the returned
|
|||||||
list! Call |complete_check()| now and then to allow the user to press a key
|
list! Call |complete_check()| now and then to allow the user to press a key
|
||||||
while still searching for matches. Stop searching when it returns non-zero.
|
while still searching for matches. Stop searching when it returns non-zero.
|
||||||
|
|
||||||
*E839* *E840*
|
*E840*
|
||||||
The function is allowed to move the cursor, it is restored afterwards.
|
The function is allowed to move the cursor, it is restored afterwards.
|
||||||
The function is not allowed to move to another window or delete text.
|
The function is not allowed to move to another window or delete text.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*intro.txt* For Vim version 8.2. Last change: 2020 Dec 29
|
*intro.txt* For Vim version 8.2. Last change: 2021 Sep 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -421,7 +421,6 @@ notation meaning equivalent decimal value(s) ~
|
|||||||
<Tab> tab CTRL-I 9 *tab* *Tab*
|
<Tab> tab CTRL-I 9 *tab* *Tab*
|
||||||
*linefeed*
|
*linefeed*
|
||||||
<NL> linefeed CTRL-J 10 (used for <Nul>)
|
<NL> linefeed CTRL-J 10 (used for <Nul>)
|
||||||
<FF> formfeed CTRL-L 12 *formfeed*
|
|
||||||
<CR> carriage return CTRL-M 13 *carriage-return*
|
<CR> carriage return CTRL-M 13 *carriage-return*
|
||||||
<Return> same as <CR> *<Return>*
|
<Return> same as <CR> *<Return>*
|
||||||
<Enter> same as <CR> *<Enter>*
|
<Enter> same as <CR> *<Enter>*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 8.2. Last change: 2020 Dec 10
|
*map.txt* For Vim version 8.2. Last change: 2021 Nov 20
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -61,6 +61,8 @@ modes.
|
|||||||
where the map command applies. The result, including
|
where the map command applies. The result, including
|
||||||
{rhs}, is then further scanned for mappings. This
|
{rhs}, is then further scanned for mappings. This
|
||||||
allows for nested and recursive use of mappings.
|
allows for nested and recursive use of mappings.
|
||||||
|
Note: Trailing spaces are included in the {rhs},
|
||||||
|
because space is a valid Normal mode command.
|
||||||
|
|
||||||
*:nore* *:norem*
|
*:nore* *:norem*
|
||||||
:no[remap] {lhs} {rhs} |mapmode-nvo| *:no* *:noremap* *:nor*
|
:no[remap] {lhs} {rhs} |mapmode-nvo| *:no* *:noremap* *:nor*
|
||||||
@@ -94,6 +96,9 @@ modes.
|
|||||||
Remove the mapping of {lhs} for the modes where the
|
Remove the mapping of {lhs} for the modes where the
|
||||||
map command applies. The mapping may remain defined
|
map command applies. The mapping may remain defined
|
||||||
for other modes where it applies.
|
for other modes where it applies.
|
||||||
|
It also works when {lhs} matches the {rhs} of a
|
||||||
|
mapping. This is for when when an abbreviation
|
||||||
|
applied.
|
||||||
Note: Trailing spaces are included in the {lhs}. This
|
Note: Trailing spaces are included in the {lhs}. This
|
||||||
unmap does NOT work: >
|
unmap does NOT work: >
|
||||||
:map @@ foo
|
:map @@ foo
|
||||||
@@ -244,9 +249,12 @@ have a look at |maparg()|.
|
|||||||
If the first argument to one of these commands is "<expr>" and it is used to
|
If the first argument to one of these commands is "<expr>" and it is used to
|
||||||
define a new mapping or abbreviation, the argument is an expression. The
|
define a new mapping or abbreviation, the argument is an expression. The
|
||||||
expression is evaluated to obtain the {rhs} that is used. Example: >
|
expression is evaluated to obtain the {rhs} that is used. Example: >
|
||||||
:inoremap <expr> . InsertDot()
|
:inoremap <expr> . <SID>InsertDot()
|
||||||
The result of the InsertDot() function will be inserted. It could check the
|
The result of the s:InsertDot() function will be inserted. It could check the
|
||||||
text before the cursor and start omni completion when some condition is met.
|
text before the cursor and start omni completion when some condition is met.
|
||||||
|
Using a script-local function is preferred, to avoid polluting the global
|
||||||
|
namespace. Use <SID> in the RHS so that the script that the mapping was
|
||||||
|
defined in can be found.
|
||||||
|
|
||||||
For abbreviations |v:char| is set to the character that was typed to trigger
|
For abbreviations |v:char| is set to the character that was typed to trigger
|
||||||
the abbreviation. You can use this to decide how to expand the {lhs}. You
|
the abbreviation. You can use this to decide how to expand the {lhs}. You
|
||||||
@@ -261,7 +269,21 @@ input. Example: >
|
|||||||
call popup_create(... arguments ...)
|
call popup_create(... arguments ...)
|
||||||
return "\<Ignore>"
|
return "\<Ignore>"
|
||||||
endfunc
|
endfunc
|
||||||
nnoremap <expr> <F3> <Sid>OpenPopup()
|
nnoremap <expr> <F3> <SID>OpenPopup()
|
||||||
|
|
||||||
|
Also, keep in mind that the expression may be evaluated when looking for
|
||||||
|
typeahead, before the previous command has been executed. For example: >
|
||||||
|
func StoreColumn()
|
||||||
|
let g:column = col('.')
|
||||||
|
return 'x'
|
||||||
|
endfunc
|
||||||
|
nnoremap <expr> x StoreColumn()
|
||||||
|
nmap ! f!x
|
||||||
|
You will notice that g:column has the value from before executing "f!",
|
||||||
|
because "x" is evaluated before "f!" is executed.
|
||||||
|
This can be solved by inserting <Ignore> before the character that is
|
||||||
|
expression-mapped: >
|
||||||
|
nmap ! f!<Ignore>x
|
||||||
|
|
||||||
Be very careful about side effects! The expression is evaluated while
|
Be very careful about side effects! The expression is evaluated while
|
||||||
obtaining characters, you may very well make the command dysfunctional.
|
obtaining characters, you may very well make the command dysfunctional.
|
||||||
@@ -327,6 +349,8 @@ Note:
|
|||||||
- For the same reason, |keycodes| like <C-R><C-W> are interpreted as plain,
|
- For the same reason, |keycodes| like <C-R><C-W> are interpreted as plain,
|
||||||
unmapped keys.
|
unmapped keys.
|
||||||
- The command is not echo'ed, no need for <silent>.
|
- The command is not echo'ed, no need for <silent>.
|
||||||
|
- The {rhs} is not subject to abbreviations nor to other mappings, even if the
|
||||||
|
mapping is recursive.
|
||||||
- In Visual mode you can use `line('v')` and `col('v')` to get one end of the
|
- In Visual mode you can use `line('v')` and `col('v')` to get one end of the
|
||||||
Visual area, the cursor is at the other end.
|
Visual area, the cursor is at the other end.
|
||||||
- In Select mode, |:map| and |:vmap| command mappings are executed in
|
- In Select mode, |:map| and |:vmap| command mappings are executed in
|
||||||
@@ -372,6 +396,22 @@ Overview of which map command works in which mode. More details below.
|
|||||||
:cmap :cnoremap :cunmap Command-line
|
:cmap :cnoremap :cunmap Command-line
|
||||||
:tmap :tnoremap :tunmap Terminal-Job
|
:tmap :tnoremap :tunmap Terminal-Job
|
||||||
|
|
||||||
|
Same information in a table:
|
||||||
|
*map-table*
|
||||||
|
Mode | Norm | Ins | Cmd | Vis | Sel | Opr | Term | Lang | ~
|
||||||
|
Command +------+-----+-----+-----+-----+-----+------+------+ ~
|
||||||
|
[nore]map | yes | - | - | yes | yes | yes | - | - |
|
||||||
|
n[nore]map | yes | - | - | - | - | - | - | - |
|
||||||
|
[nore]map! | - | yes | yes | - | - | - | - | - |
|
||||||
|
i[nore]map | - | yes | - | - | - | - | - | - |
|
||||||
|
c[nore]map | - | - | yes | - | - | - | - | - |
|
||||||
|
v[nore]map | - | - | - | yes | yes | - | - | - |
|
||||||
|
x[nore]map | - | - | - | yes | - | - | - | - |
|
||||||
|
s[nore]map | - | - | - | - | yes | - | - | - |
|
||||||
|
o[nore]map | - | - | - | - | - | yes | - | - |
|
||||||
|
t[nore]map | - | - | - | - | - | - | yes | - |
|
||||||
|
l[nore]map | - | yes | yes | - | - | - | - | yes |
|
||||||
|
|
||||||
|
|
||||||
COMMANDS MODES ~
|
COMMANDS MODES ~
|
||||||
Normal Visual+Select Operator-pending ~
|
Normal Visual+Select Operator-pending ~
|
||||||
@@ -971,6 +1011,20 @@ Also note that the 'clipboard' option is temporarily emptied to avoid
|
|||||||
clobbering the `"*` or `"+` registers, if its value contains the item `unnamed`
|
clobbering the `"*` or `"+` registers, if its value contains the item `unnamed`
|
||||||
or `unnamedplus`.
|
or `unnamedplus`.
|
||||||
|
|
||||||
|
The `mode()` function will return the state as it will be after applying the
|
||||||
|
operator.
|
||||||
|
|
||||||
|
Here is an example for using a lambda function to create a normal-mode
|
||||||
|
operator to add quotes around text in the current line: >
|
||||||
|
|
||||||
|
nnoremap <F4> <Cmd>let &opfunc='{t ->
|
||||||
|
\ getline(".")
|
||||||
|
\ ->split("\\zs")
|
||||||
|
\ ->insert("\"", col("'']"))
|
||||||
|
\ ->insert("\"", col("''[") - 1)
|
||||||
|
\ ->join("")
|
||||||
|
\ ->setline(".")}'<CR>g@
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Abbreviations *abbreviations* *Abbreviations*
|
2. Abbreviations *abbreviations* *Abbreviations*
|
||||||
|
|
||||||
@@ -1335,6 +1389,10 @@ See |:verbose-cmd| for more information.
|
|||||||
:delc[ommand] {cmd} *:delc* *:delcommand* *E184*
|
:delc[ommand] {cmd} *:delc* *:delcommand* *E184*
|
||||||
Delete the user-defined command {cmd}.
|
Delete the user-defined command {cmd}.
|
||||||
|
|
||||||
|
:delc[ommand] -buffer {cmd} *E1237*
|
||||||
|
Delete the user-defined command {cmd} that was defined
|
||||||
|
for the current buffer.
|
||||||
|
|
||||||
:comc[lear] *:comc* *:comclear*
|
:comc[lear] *:comc* *:comclear*
|
||||||
Delete all user-defined commands.
|
Delete all user-defined commands.
|
||||||
|
|
||||||
@@ -1520,6 +1578,7 @@ Possible values are (second column is the short name used in listing):
|
|||||||
Special cases ~
|
Special cases ~
|
||||||
*:command-bang* *:command-bar*
|
*:command-bang* *:command-bar*
|
||||||
*:command-register* *:command-buffer*
|
*:command-register* *:command-buffer*
|
||||||
|
*:command-keepscript*
|
||||||
There are some special cases as well:
|
There are some special cases as well:
|
||||||
|
|
||||||
-bang The command can take a ! modifier (like :q or :w)
|
-bang The command can take a ! modifier (like :q or :w)
|
||||||
@@ -1529,6 +1588,9 @@ There are some special cases as well:
|
|||||||
-register The first argument to the command can be an optional
|
-register The first argument to the command can be an optional
|
||||||
register name (like :del, :put, :yank).
|
register name (like :del, :put, :yank).
|
||||||
-buffer The command will only be available in the current buffer.
|
-buffer The command will only be available in the current buffer.
|
||||||
|
-keepscript Do not use the location of where the user command was
|
||||||
|
defined for verbose messages, use the location of where
|
||||||
|
the user command was invoked.
|
||||||
|
|
||||||
In the cases of the -count and -register attributes, if the optional argument
|
In the cases of the -count and -register attributes, if the optional argument
|
||||||
is supplied, it is removed from the argument list and is available to the
|
is supplied, it is removed from the argument list and is available to the
|
||||||
@@ -1538,6 +1600,20 @@ feature. Use the full name for new scripts.
|
|||||||
|
|
||||||
|
|
||||||
Replacement text ~
|
Replacement text ~
|
||||||
|
*:command-repl*
|
||||||
|
The {repl} argument is normally one long string, possibly with "|" separated
|
||||||
|
commands. A special case is when the argument is "{", then the following
|
||||||
|
lines, up to a line starting with "}" are used and |Vim9| syntax applies.
|
||||||
|
Example: >
|
||||||
|
:command MyCommand {
|
||||||
|
echo 'hello'
|
||||||
|
g:calledMyCommand = true
|
||||||
|
}
|
||||||
|
< *E1231*
|
||||||
|
There must be white space before the "{". No nesting is supported, inline
|
||||||
|
functions cannot be used. Commands where a "|" may appear in the argument,
|
||||||
|
such as commands with an expression argument, cannot be followed by a "|" and
|
||||||
|
another command.
|
||||||
|
|
||||||
The replacement text {repl} for a user defined command is scanned for special
|
The replacement text {repl} for a user defined command is scanned for special
|
||||||
escape sequences, using <...> notation. Escape sequences are replaced with
|
escape sequences, using <...> notation. Escape sequences are replaced with
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*mbyte.txt* For Vim version 8.2. Last change: 2020 Aug 15
|
*mbyte.txt* For Vim version 8.2. Last change: 2021 Oct 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
@@ -770,7 +770,7 @@ is suitable for complex input, such as CJK.
|
|||||||
of the two ways: FrontEnd system and BackEnd system. In the FrontEnd
|
of the two ways: FrontEnd system and BackEnd system. In the FrontEnd
|
||||||
system, input events are snatched by the |IM-server| first, then |IM-server|
|
system, input events are snatched by the |IM-server| first, then |IM-server|
|
||||||
give the application the result of input. On the other hand, the BackEnd
|
give the application the result of input. On the other hand, the BackEnd
|
||||||
system works reverse order. MS Windows adopt BackEnd system. In X, most of
|
system works reverse order. MS-Windows adopt BackEnd system. In X, most of
|
||||||
|IM-server|s adopt FrontEnd system. The demerit of BackEnd system is the
|
|IM-server|s adopt FrontEnd system. The demerit of BackEnd system is the
|
||||||
large overhead in communication, but it provides safe synchronization with
|
large overhead in communication, but it provides safe synchronization with
|
||||||
no restrictions on applications.
|
no restrictions on applications.
|
||||||
@@ -1132,7 +1132,7 @@ This file explains what characters are available in UTF-8 and CP1255 encodings,
|
|||||||
and what the keymaps are to get those characters:
|
and what the keymaps are to get those characters:
|
||||||
|
|
||||||
glyph encoding keymap ~
|
glyph encoding keymap ~
|
||||||
Char utf-8 cp1255 hebrew hebrewp name ~
|
Char UTF-8 cp1255 hebrew hebrewp name ~
|
||||||
א 0x5d0 0xe0 t a 'alef
|
א 0x5d0 0xe0 t a 'alef
|
||||||
ב 0x5d1 0xe1 c b bet
|
ב 0x5d1 0xe1 c b bet
|
||||||
ג 0x5d2 0xe2 d g gimel
|
ג 0x5d2 0xe2 d g gimel
|
||||||
@@ -1185,11 +1185,11 @@ Vowel marks and special punctuation:
|
|||||||
ױ 0x5f1 0xd5 VY VY vav-yod
|
ױ 0x5f1 0xd5 VY VY vav-yod
|
||||||
ײ 0x5f2 0xd6 YY YY yod-yod
|
ײ 0x5f2 0xd6 YY YY yod-yod
|
||||||
|
|
||||||
The following are only available in utf-8
|
The following are only available in UTF-8
|
||||||
|
|
||||||
Cantillation marks:
|
Cantillation marks:
|
||||||
glyph
|
glyph
|
||||||
Char utf-8 hebrew name
|
Char UTF-8 hebrew name
|
||||||
ב֑ 0x591 C: etnahta
|
ב֑ 0x591 C: etnahta
|
||||||
ב֒ 0x592 Cs segol
|
ב֒ 0x592 Cs segol
|
||||||
ב֓ 0x593 CS shalshelet
|
ב֓ 0x593 CS shalshelet
|
||||||
@@ -1300,7 +1300,7 @@ ASCII. On MS-Windows UTF-16 is also used (previously UCS-2), which uses
|
|||||||
internally.
|
internally.
|
||||||
|
|
||||||
Vim has comprehensive UTF-8 support. It works well in:
|
Vim has comprehensive UTF-8 support. It works well in:
|
||||||
- xterm with utf-8 support enabled
|
- xterm with UTF-8 support enabled
|
||||||
- Athena, Motif and GTK GUI
|
- Athena, Motif and GTK GUI
|
||||||
- MS-Windows GUI
|
- MS-Windows GUI
|
||||||
- several other platforms
|
- several other platforms
|
||||||
@@ -1313,13 +1313,13 @@ is no longer relevant in the GTK+ 2 GUI.
|
|||||||
*bom-bytes*
|
*bom-bytes*
|
||||||
When reading a file a BOM (Byte Order Mark) can be used to recognize the
|
When reading a file a BOM (Byte Order Mark) can be used to recognize the
|
||||||
Unicode encoding:
|
Unicode encoding:
|
||||||
EF BB BF utf-8
|
EF BB BF UTF-8
|
||||||
FE FF utf-16 big endian
|
FE FF UTF-16 big endian
|
||||||
FF FE utf-16 little endian
|
FF FE UTF-16 little endian
|
||||||
00 00 FE FF utf-32 big endian
|
00 00 FE FF UTF-32 big endian
|
||||||
FF FE 00 00 utf-32 little endian
|
FF FE 00 00 UTF-32 little endian
|
||||||
|
|
||||||
Utf-8 is the recommended encoding. Note that it's difficult to tell utf-16
|
UTF-8 is the recommended encoding. Note that it's difficult to tell utf-16
|
||||||
and utf-32 apart. Utf-16 is often used on MS-Windows, utf-32 is not
|
and utf-32 apart. Utf-16 is often used on MS-Windows, utf-32 is not
|
||||||
widespread as file format.
|
widespread as file format.
|
||||||
|
|
||||||
@@ -1365,8 +1365,8 @@ Useful commands:
|
|||||||
|
|
||||||
STARTING VIM
|
STARTING VIM
|
||||||
|
|
||||||
If your current locale is in an utf-8 encoding, Vim will automatically start
|
If your current locale is in an UTF-8 encoding, Vim will automatically start
|
||||||
in utf-8 mode.
|
in UTF-8 mode.
|
||||||
|
|
||||||
If you are using another locale: >
|
If you are using another locale: >
|
||||||
|
|
||||||
@@ -1399,10 +1399,10 @@ Motif. Use the ":hi Menu font={fontname}" command for this. |:highlight|
|
|||||||
TYPING UTF-8 *utf-8-typing*
|
TYPING UTF-8 *utf-8-typing*
|
||||||
|
|
||||||
If you are using X-Windows, you should find an input method that supports
|
If you are using X-Windows, you should find an input method that supports
|
||||||
utf-8.
|
UTF-8.
|
||||||
|
|
||||||
If your system does not provide support for typing utf-8, you can use the
|
If your system does not provide support for typing UTF-8, you can use the
|
||||||
'keymap' feature. This allows writing a keymap file, which defines a utf-8
|
'keymap' feature. This allows writing a keymap file, which defines a UTF-8
|
||||||
character as a sequence of ASCII characters. See |mbyte-keymap|.
|
character as a sequence of ASCII characters. See |mbyte-keymap|.
|
||||||
|
|
||||||
Another method is to set the current locale to the language you want to use
|
Another method is to set the current locale to the language you want to use
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*message.txt* For Vim version 8.2. Last change: 2020 Dec 29
|
*message.txt* For Vim version 8.2. Last change: 2021 Jul 31
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -141,6 +141,11 @@ larger. When it's more there probably is an endless loop. Probably a
|
|||||||
The color name {name} is unknown. See |gui-colors| for a list of colors that
|
The color name {name} is unknown. See |gui-colors| for a list of colors that
|
||||||
are available on most systems.
|
are available on most systems.
|
||||||
|
|
||||||
|
*E1244* >
|
||||||
|
Bad color string: {str}
|
||||||
|
|
||||||
|
The provided color did not conform to the pattern #rrggbb
|
||||||
|
|
||||||
*E458* >
|
*E458* >
|
||||||
Cannot allocate colormap entry, some colors may be incorrect
|
Cannot allocate colormap entry, some colors may be incorrect
|
||||||
|
|
||||||
@@ -774,6 +779,14 @@ a user-defined command.
|
|||||||
This can only happen when changing the source code, when adding a command in
|
This can only happen when changing the source code, when adding a command in
|
||||||
src/ex_cmds.h. The lookup table then needs to be updated, by running: >
|
src/ex_cmds.h. The lookup table then needs to be updated, by running: >
|
||||||
make cmdidxs
|
make cmdidxs
|
||||||
|
<
|
||||||
|
*E928* *E889* *E839* >
|
||||||
|
E928: String required
|
||||||
|
E889: Number required
|
||||||
|
E839: Bool required
|
||||||
|
|
||||||
|
These happen when a value or expression is used that does not have the
|
||||||
|
expected type.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Messages *messages*
|
3. Messages *messages*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*motion.txt* For Vim version 8.2. Last change: 2020 Oct 18
|
*motion.txt* For Vim version 8.2. Last change: 2021 Jun 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -59,9 +59,14 @@ or change text. The following operators are available:
|
|||||||
|<| < shift left
|
|<| < shift left
|
||||||
|zf| zf define a fold
|
|zf| zf define a fold
|
||||||
|g@| g@ call function set with the 'operatorfunc' option
|
|g@| g@ call function set with the 'operatorfunc' option
|
||||||
|
*motion-count-multiplied*
|
||||||
If the motion includes a count and the operator also had a count before it,
|
If the motion includes a count and the operator also had a count before it,
|
||||||
the two counts are multiplied. For example: "2d3w" deletes six words.
|
the two counts are multiplied. For example: "2d3w" deletes six words.
|
||||||
|
*operator-doubled*
|
||||||
|
When doubling the operator it operates on a line. When using a count, before
|
||||||
|
or after the first character, that many lines are operated upon. Thus `3dd`
|
||||||
|
deletes three lines. A count before and after the first character is
|
||||||
|
multiplied, thus `2y3y` yanks six lines.
|
||||||
|
|
||||||
After applying the operator the cursor is mostly left at the start of the text
|
After applying the operator the cursor is mostly left at the start of the text
|
||||||
that was operated upon. For example, "yfe" doesn't move the cursor, but "yFe"
|
that was operated upon. For example, "yfe" doesn't move the cursor, but "yFe"
|
||||||
@@ -195,9 +200,9 @@ l or *l*
|
|||||||
*$* *<End>* *<kEnd>*
|
*$* *<End>* *<kEnd>*
|
||||||
$ or <End> To the end of the line. When a count is given also go
|
$ or <End> To the end of the line. When a count is given also go
|
||||||
[count - 1] lines downward, or as far is possible.
|
[count - 1] lines downward, or as far is possible.
|
||||||
|inclusive| motion. If a count of 2 of larger is
|
|inclusive| motion. If a count of 2 or larger is
|
||||||
given and the cursor is on the last line, that is an
|
given and the cursor is on the last line, that is an
|
||||||
error an the cursor doesn't move.
|
error and the cursor doesn't move.
|
||||||
In Visual mode the cursor goes to just after the last
|
In Visual mode the cursor goes to just after the last
|
||||||
character in the line.
|
character in the line.
|
||||||
When 'virtualedit' is active, "$" may move the cursor
|
When 'virtualedit' is active, "$" may move the cursor
|
||||||
@@ -942,8 +947,7 @@ These commands are not marks themselves, but jump to a mark:
|
|||||||
line.
|
line.
|
||||||
|
|
||||||
*]`*
|
*]`*
|
||||||
]` [count] times to lowercase mark after the cursor. {not
|
]` [count] times to lowercase mark after the cursor.
|
||||||
in Vi}
|
|
||||||
|
|
||||||
*['*
|
*['*
|
||||||
[' [count] times to previous line with a lowercase mark
|
[' [count] times to previous line with a lowercase mark
|
||||||
@@ -1037,6 +1041,12 @@ CTRL-I Go to [count] newer cursor position in jump list
|
|||||||
(not a motion command).
|
(not a motion command).
|
||||||
{not available without the |+jumplist| feature}
|
{not available without the |+jumplist| feature}
|
||||||
|
|
||||||
|
NOTE: In the GUI and in a terminal supporting
|
||||||
|
|modifyOtherKeys|, CTRL-I can be mapped separately
|
||||||
|
from <Tab>, on the condition that CTRL-I is
|
||||||
|
mapped before <Tab>, otherwise the mapping applies to
|
||||||
|
both.
|
||||||
|
|
||||||
*:ju* *:jumps*
|
*:ju* *:jumps*
|
||||||
:ju[mps] Print the jump list (not a motion command).
|
:ju[mps] Print the jump list (not a motion command).
|
||||||
{not available without the |+jumplist| feature}
|
{not available without the |+jumplist| feature}
|
||||||
@@ -1054,11 +1064,11 @@ The maximum number of entries is fixed at 100.
|
|||||||
|
|
||||||
For example, after three jump commands you have this jump list:
|
For example, after three jump commands you have this jump list:
|
||||||
|
|
||||||
jump line col file/text ~
|
jump line col file/text ~
|
||||||
3 1 0 some text ~
|
3 1 0 some text ~
|
||||||
2 70 0 another line ~
|
2 70 0 another line ~
|
||||||
1 1154 23 end. ~
|
1 1154 23 end. ~
|
||||||
> ~
|
> ~
|
||||||
|
|
||||||
The "file/text" column shows the file name, or the text at the jump if it is
|
The "file/text" column shows the file name, or the text at the jump if it is
|
||||||
in the current file (an indent is removed and a long line is truncated to fit
|
in the current file (an indent is removed and a long line is truncated to fit
|
||||||
@@ -1067,11 +1077,11 @@ in the window).
|
|||||||
You are currently in line 1167. If you then use the CTRL-O command, the
|
You are currently in line 1167. If you then use the CTRL-O command, the
|
||||||
cursor is put in line 1154. This results in:
|
cursor is put in line 1154. This results in:
|
||||||
|
|
||||||
jump line col file/text ~
|
jump line col file/text ~
|
||||||
2 1 0 some text ~
|
2 1 0 some text ~
|
||||||
1 70 0 another line ~
|
1 70 0 another line ~
|
||||||
> 0 1154 23 end. ~
|
> 0 1154 23 end. ~
|
||||||
1 1167 0 foo bar ~
|
1 1167 0 foo bar ~
|
||||||
|
|
||||||
The pointer will be set at the last used jump position. The next CTRL-O
|
The pointer will be set at the last used jump position. The next CTRL-O
|
||||||
command will use the entry above it, the next CTRL-I command will use the
|
command will use the entry above it, the next CTRL-I command will use the
|
||||||
@@ -1098,12 +1108,12 @@ that calling setpos() does not do this.
|
|||||||
After the CTRL-O command that got you into line 1154 you could give another
|
After the CTRL-O command that got you into line 1154 you could give another
|
||||||
jump command (e.g., "G"). The jump list would then become:
|
jump command (e.g., "G"). The jump list would then become:
|
||||||
|
|
||||||
jump line col file/text ~
|
jump line col file/text ~
|
||||||
4 1 0 some text ~
|
4 1 0 some text ~
|
||||||
3 70 0 another line ~
|
3 70 0 another line ~
|
||||||
2 1167 0 foo bar ~
|
2 1167 0 foo bar ~
|
||||||
1 1154 23 end. ~
|
1 1154 23 end. ~
|
||||||
> ~
|
> ~
|
||||||
|
|
||||||
The line numbers will be adjusted for deleted and inserted lines. This fails
|
The line numbers will be adjusted for deleted and inserted lines. This fails
|
||||||
if you stop editing a file without writing, like with ":n!".
|
if you stop editing a file without writing, like with ":n!".
|
||||||
@@ -1152,7 +1162,7 @@ Note that when text has been inserted or deleted the cursor position might be
|
|||||||
a bit different from the position of the change. Especially when lines have
|
a bit different from the position of the change. Especially when lines have
|
||||||
been deleted.
|
been deleted.
|
||||||
|
|
||||||
When the |:keepjumps| command modifier is used the position of a change is not
|
When the `:keepjumps` command modifier is used the position of a change is not
|
||||||
remembered.
|
remembered.
|
||||||
|
|
||||||
*:changes*
|
*:changes*
|
||||||
@@ -1193,7 +1203,7 @@ remembered.
|
|||||||
#if, #ifdef, #else, #elif, #endif
|
#if, #ifdef, #else, #elif, #endif
|
||||||
C preprocessor conditionals (when the
|
C preprocessor conditionals (when the
|
||||||
cursor is on the # or no ([{
|
cursor is on the # or no ([{
|
||||||
following)
|
is following)
|
||||||
For other items the matchit plugin can be used, see
|
For other items the matchit plugin can be used, see
|
||||||
|matchit-install|. This plugin also helps to skip
|
|matchit-install|. This plugin also helps to skip
|
||||||
matches in comments.
|
matches in comments.
|
||||||
@@ -1222,19 +1232,16 @@ remembered.
|
|||||||
#if/#else/#endif makes the movement linewise.
|
#if/#else/#endif makes the movement linewise.
|
||||||
|
|
||||||
*[(*
|
*[(*
|
||||||
[( go to [count] previous unmatched '('.
|
[( Go to [count] previous unmatched '('.
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
*[{*
|
*[{*
|
||||||
[{ go to [count] previous unmatched '{'.
|
[{ Go to [count] previous unmatched '{'.
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
*])*
|
*])*
|
||||||
]) go to [count] next unmatched ')'.
|
]) Go to [count] next unmatched ')'.
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
*]}*
|
*]}*
|
||||||
]} go to [count] next unmatched '}'.
|
]} Go to [count] next unmatched '}'.
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
The above four commands can be used to go to the start or end of the current
|
The above four commands can be used to go to the start or end of the current
|
||||||
@@ -1268,7 +1275,7 @@ bring you back to the switch statement.
|
|||||||
class. When no '}' is found before the cursor this is
|
class. When no '}' is found before the cursor this is
|
||||||
an error. |exclusive| motion.
|
an error. |exclusive| motion.
|
||||||
|
|
||||||
The above two commands assume that the file contains a class with methods.
|
The above four commands assume that the file contains a class with methods.
|
||||||
The class definition is surrounded in '{' and '}'. Each method in the class
|
The class definition is surrounded in '{' and '}'. Each method in the class
|
||||||
is also surrounded with '{' and '}'. This applies to the Java language. The
|
is also surrounded with '{' and '}'. This applies to the Java language. The
|
||||||
file looks like this: >
|
file looks like this: >
|
||||||
@@ -1282,17 +1289,21 @@ file looks like this: >
|
|||||||
body_two();
|
body_two();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[To try this out copy the text and put it in a new buffer, the help text above
|
||||||
|
confuses the jump commands]
|
||||||
|
|
||||||
Starting with the cursor on "body_two()", using "[m" will jump to the '{' at
|
Starting with the cursor on "body_two()", using "[m" will jump to the '{' at
|
||||||
the start of "method_two()" (obviously this is much more useful when the
|
the start of "method_two()" (obviously this is much more useful when the
|
||||||
method is long!). Using "2[m" will jump to the start of "method_one()".
|
method is long!). Using "2[m" will jump to the start of "method_one()".
|
||||||
Using "3[m" will jump to the start of the class.
|
Using "3[m" will jump to the start of the class.
|
||||||
|
|
||||||
*[#*
|
*[#*
|
||||||
[# go to [count] previous unmatched "#if" or "#else".
|
[# Go to [count] previous unmatched "#if" or "#else".
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
*]#*
|
*]#*
|
||||||
]# go to [count] next unmatched "#else" or "#endif".
|
]# Go to [count] next unmatched "#else" or "#endif".
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
These two commands work in C programs that contain #if/#else/#endif
|
These two commands work in C programs that contain #if/#else/#endif
|
||||||
@@ -1300,11 +1311,11 @@ constructs. It brings you to the start or end of the #if/#else/#endif where
|
|||||||
the current line is included. You can then use "%" to go to the matching line.
|
the current line is included. You can then use "%" to go to the matching line.
|
||||||
|
|
||||||
*[star* *[/*
|
*[star* *[/*
|
||||||
[* or [/ go to [count] previous start of a C comment "/*".
|
[* or [/ Go to [count] previous start of a C comment "/*".
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
*]star* *]/*
|
*]star* *]/*
|
||||||
]* or ]/ go to [count] next end of a C comment "*/".
|
]* or ]/ Go to [count] next end of a C comment "*/".
|
||||||
|exclusive| motion.
|
|exclusive| motion.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 8.2. Last change: 2021 Jan 08
|
*options.txt* For Vim version 8.2. Last change: 2021 Nov 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -195,11 +195,18 @@ include the "|" in the option value, use "\|" instead. This example sets the
|
|||||||
This sets the 'titlestring' option to "hi" and 'iconstring' to "there": >
|
This sets the 'titlestring' option to "hi" and 'iconstring' to "there": >
|
||||||
:set titlestring=hi|set iconstring=there
|
:set titlestring=hi|set iconstring=there
|
||||||
|
|
||||||
Similarly, the double quote character starts a comment. To include the '"' in
|
Similarly, in legacy script the double quote character starts a comment. To
|
||||||
the option value, use '\"' instead. This example sets the 'titlestring'
|
include the '"' in the option value, use '\"' instead. This example sets the
|
||||||
option to 'hi "there"': >
|
'titlestring' option to 'hi "there"': >
|
||||||
:set titlestring=hi\ \"there\"
|
:set titlestring=hi\ \"there\"
|
||||||
|
|
||||||
|
In |Vim9| script it's simpler, comments start with a '#' character, and only
|
||||||
|
when preceded by white space. A backslash is needed less often: >
|
||||||
|
vim9script
|
||||||
|
set titlestring=hi\ "there"
|
||||||
|
set titlestring=hi#there#
|
||||||
|
set titlestring=hi\ \#there#
|
||||||
|
|
||||||
For Win32 backslashes in file names are mostly not removed. More precise: For
|
For Win32 backslashes in file names are mostly not removed. More precise: For
|
||||||
options that expect a file name (those where environment variables are
|
options that expect a file name (those where environment variables are
|
||||||
expanded) a backslash before a normal file name character is not removed. But
|
expanded) a backslash before a normal file name character is not removed. But
|
||||||
@@ -364,6 +371,17 @@ Note: In the future more global options can be made global-local. Using
|
|||||||
":setlocal" on a global option might work differently then.
|
":setlocal" on a global option might work differently then.
|
||||||
|
|
||||||
|
|
||||||
|
*option-value-function*
|
||||||
|
Some options ('completefunc', 'imactivatefunc', 'imstatusfunc', 'omnifunc',
|
||||||
|
'operatorfunc', 'quickfixtextfunc' and 'tagfunc') are set to a function name
|
||||||
|
or a function reference or a lambda function. Examples:
|
||||||
|
>
|
||||||
|
set opfunc=MyOpFunc
|
||||||
|
set opfunc=function('MyOpFunc')
|
||||||
|
set opfunc=funcref('MyOpFunc')
|
||||||
|
let &opfunc = "{t -> MyOpFunc(t)}"
|
||||||
|
<
|
||||||
|
|
||||||
Setting the filetype
|
Setting the filetype
|
||||||
|
|
||||||
:setf[iletype] [FALLBACK] {filetype} *:setf* *:setfiletype*
|
:setf[iletype] [FALLBACK] {filetype} *:setf* *:setfiletype*
|
||||||
@@ -541,6 +559,15 @@ chance that a normal word like "lex:" is caught. There is one exception:
|
|||||||
version 3.0). Using "ex:" at the start of the line will be ignored (this
|
version 3.0). Using "ex:" at the start of the line will be ignored (this
|
||||||
could be short for "example:").
|
could be short for "example:").
|
||||||
|
|
||||||
|
If the modeline is disabled within a modeline, subsequent modelines will be
|
||||||
|
ignored. This is to allow turning off modeline on a per-file basis. This is
|
||||||
|
useful when a line looks like a modeline but isn't. For example, it would be
|
||||||
|
good to start a YAML file containing strings like "vim:" with
|
||||||
|
# vim: nomodeline ~
|
||||||
|
so as to avoid modeline misdetection. Following options on the same line
|
||||||
|
after modeline deactivation, if any, are still evaluated (but you would
|
||||||
|
normally not have any).
|
||||||
|
|
||||||
*modeline-local*
|
*modeline-local*
|
||||||
The options are set like with ":setlocal": The new value only applies to the
|
The options are set like with ":setlocal": The new value only applies to the
|
||||||
buffer and window that contain the file. Although it's possible to set global
|
buffer and window that contain the file. Although it's possible to set global
|
||||||
@@ -701,7 +728,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
"double": Use twice the width of ASCII characters.
|
"double": Use twice the width of ASCII characters.
|
||||||
*E834* *E835*
|
*E834* *E835*
|
||||||
The value "double" cannot be used if 'listchars' or 'fillchars'
|
The value "double" cannot be used if 'listchars' or 'fillchars'
|
||||||
contains a character that would be double width.
|
contains a character that would be double width. These errors may
|
||||||
|
also be given when calling setcellwidths().
|
||||||
|
|
||||||
The values are overruled for characters specified with
|
The values are overruled for characters specified with
|
||||||
|setcellwidths()|.
|
|setcellwidths()|.
|
||||||
@@ -749,6 +777,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
or selected.
|
or selected.
|
||||||
Note: When this option is on some plugins may not work.
|
Note: When this option is on some plugins may not work.
|
||||||
|
|
||||||
|
*'autoshelldir'* *'asd'* *'noautoshelldir'* *'noasd'*
|
||||||
|
'autoshelldir' 'asd' boolean (default off)
|
||||||
|
global
|
||||||
|
When on, Vim will change the current working directory whenever you
|
||||||
|
change the directory of the shell running in a terminal window. You
|
||||||
|
need proper setting-up, so whenever the shell's pwd changes an OSC 7
|
||||||
|
escape sequence will be emitted. For example, on Linux, you can source
|
||||||
|
/etc/profile.d/vte.sh in your shell profile if you use bash or zsh.
|
||||||
|
|
||||||
*'arabic'* *'arab'* *'noarabic'* *'noarab'*
|
*'arabic'* *'arab'* *'noarabic'* *'noarab'*
|
||||||
'arabic' 'arab' boolean (default off)
|
'arabic' 'arab' boolean (default off)
|
||||||
local to window
|
local to window
|
||||||
@@ -1317,7 +1354,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
continuation (positive).
|
continuation (positive).
|
||||||
sbr Display the 'showbreak' value before applying the
|
sbr Display the 'showbreak' value before applying the
|
||||||
additional indent.
|
additional indent.
|
||||||
The default value for min is 20 and shift is 0.
|
list:{n} Adds an additional indent for lines that match a
|
||||||
|
numbered or bulleted list (using the
|
||||||
|
'formatlistpat' setting).
|
||||||
|
list:-1 Uses the length of a match with 'formatlistpat'
|
||||||
|
for indentation.
|
||||||
|
The default value for min is 20, shift and list is 0.
|
||||||
|
|
||||||
*'browsedir'* *'bsdir'*
|
*'browsedir'* *'bsdir'*
|
||||||
'browsedir' 'bsdir' string (default: "last")
|
'browsedir' 'bsdir' string (default: "last")
|
||||||
@@ -1389,6 +1431,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Also see |win_gettype()|, which returns the type of the window.
|
Also see |win_gettype()|, which returns the type of the window.
|
||||||
|
|
||||||
Be careful with changing this option, it can have many side effects!
|
Be careful with changing this option, it can have many side effects!
|
||||||
|
One such effect is that Vim will not check the timestamp of the file,
|
||||||
|
if the file is changed by another program this will not be noticed.
|
||||||
|
|
||||||
A "quickfix" buffer is only used for the error list and the location
|
A "quickfix" buffer is only used for the error list and the location
|
||||||
list. This value is set by the |:cwindow| and |:lwindow| commands and
|
list. This value is set by the |:cwindow| and |:lwindow| commands and
|
||||||
@@ -1568,7 +1612,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
{only in GUI versions or when the |+xterm_clipboard|
|
{only in GUI versions or when the |+xterm_clipboard|
|
||||||
feature is included}
|
feature is included}
|
||||||
This option is a list of comma separated names.
|
This option is a list of comma separated names.
|
||||||
These names are recognized:
|
Note: if one of the items is "exclude:", then you can't add an item
|
||||||
|
after that. Therefore do append an item with += but use ^= to
|
||||||
|
prepend, e.g.: >
|
||||||
|
set clipboard^=unnamed
|
||||||
|
< These names are recognized:
|
||||||
|
|
||||||
*clipboard-unnamed*
|
*clipboard-unnamed*
|
||||||
unnamed When included, Vim will use the clipboard register '*'
|
unnamed When included, Vim will use the clipboard register '*'
|
||||||
@@ -2371,6 +2419,23 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
you write the file the encrypted bytes will be
|
you write the file the encrypted bytes will be
|
||||||
different. The whole undo file is encrypted, not just
|
different. The whole undo file is encrypted, not just
|
||||||
the pieces of text.
|
the pieces of text.
|
||||||
|
*E1193* *E1194* *E1195* *E1196*
|
||||||
|
*E1197* *E1198* *E1199* *E1200* *E1201*
|
||||||
|
xchacha20 XChaCha20 Cipher with Poly1305 Message Authentication
|
||||||
|
Code. Medium strong till strong encryption.
|
||||||
|
Encryption is provided by the libsodium library, it
|
||||||
|
requires Vim to be built with |+sodium|.
|
||||||
|
It adds a seed and a message authentication code (MAC)
|
||||||
|
to the file. This needs at least a Vim 8.2.3022 to
|
||||||
|
read the encrypted file.
|
||||||
|
Encryption of swap files is not supported, therefore
|
||||||
|
no swap file will be used when xchacha20 encryption is
|
||||||
|
enabled.
|
||||||
|
Encryption of undo files is not yet supported,
|
||||||
|
therefore no undo file will currently be written.
|
||||||
|
CURRENTLY EXPERIMENTAL: Files written with this method
|
||||||
|
might have to be read back with the same version of
|
||||||
|
Vim if the binary format changes later.
|
||||||
|
|
||||||
You should use "blowfish2", also to re-encrypt older files.
|
You should use "blowfish2", also to re-encrypt older files.
|
||||||
|
|
||||||
@@ -2677,6 +2742,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
foldcolumn:{n} Set the 'foldcolumn' option to {n} when
|
foldcolumn:{n} Set the 'foldcolumn' option to {n} when
|
||||||
starting diff mode. Without this 2 is used.
|
starting diff mode. Without this 2 is used.
|
||||||
|
|
||||||
|
followwrap Follow the 'wrap' option and leave as it is.
|
||||||
|
|
||||||
internal Use the internal diff library. This is
|
internal Use the internal diff library. This is
|
||||||
ignored when 'diffexpr' is set. *E960*
|
ignored when 'diffexpr' is set. *E960*
|
||||||
When running out of memory when writing a
|
When running out of memory when writing a
|
||||||
@@ -2813,7 +2880,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|setcellwidths()| function to change the behavior.
|
|setcellwidths()| function to change the behavior.
|
||||||
|
|
||||||
*'encoding'* *'enc'* *E543*
|
*'encoding'* *'enc'* *E543*
|
||||||
'encoding' 'enc' string (default: "latin1" or value from $LANG)
|
'encoding' 'enc' string (default for MS-Windows: "utf-8",
|
||||||
|
otherwise: value from $LANG or "latin1")
|
||||||
global
|
global
|
||||||
Sets the character encoding used inside Vim. It applies to text in
|
Sets the character encoding used inside Vim. It applies to text in
|
||||||
the buffers, registers, Strings in expressions, text stored in the
|
the buffers, registers, Strings in expressions, text stored in the
|
||||||
@@ -3100,9 +3168,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
because Vim cannot detect an error, thus the encoding is always
|
because Vim cannot detect an error, thus the encoding is always
|
||||||
accepted.
|
accepted.
|
||||||
The special value "default" can be used for the encoding from the
|
The special value "default" can be used for the encoding from the
|
||||||
environment. This is the default value for 'encoding'. It is useful
|
environment. On MS-Windows this is the system encoding. Otherwise
|
||||||
when 'encoding' is set to "utf-8" and your environment uses a
|
this is the default value for 'encoding'. It is useful when
|
||||||
non-latin1 encoding, such as Russian.
|
'encoding' is set to "utf-8" and your environment uses a non-latin1
|
||||||
|
encoding, such as Russian.
|
||||||
When 'encoding' is "utf-8" and a file contains an illegal byte
|
When 'encoding' is "utf-8" and a file contains an illegal byte
|
||||||
sequence it won't be recognized as UTF-8. You can use the |8g8|
|
sequence it won't be recognized as UTF-8. You can use the |8g8|
|
||||||
command to find the illegal byte sequence.
|
command to find the illegal byte sequence.
|
||||||
@@ -3229,7 +3298,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Only normal file name characters can be used, "/\*?[|<>" are illegal.
|
Only normal file name characters can be used, "/\*?[|<>" are illegal.
|
||||||
|
|
||||||
*'fillchars'* *'fcs'*
|
*'fillchars'* *'fcs'*
|
||||||
'fillchars' 'fcs' string (default "vert:|,fold:-")
|
'fillchars' 'fcs' string (default "vert:|,fold:-,eob:~")
|
||||||
global
|
global
|
||||||
{not available when compiled without the |+folding|
|
{not available when compiled without the |+folding|
|
||||||
feature}
|
feature}
|
||||||
@@ -3241,7 +3310,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
stlnc:c ' ' or '=' statusline of the non-current windows
|
stlnc:c ' ' or '=' statusline of the non-current windows
|
||||||
vert:c '|' vertical separators |:vsplit|
|
vert:c '|' vertical separators |:vsplit|
|
||||||
fold:c '-' filling 'foldtext'
|
fold:c '-' filling 'foldtext'
|
||||||
|
foldopen:c '-' mark the beginning of a fold
|
||||||
|
foldclose:c '+' show a closed fold
|
||||||
|
foldsep:c '|' open fold middle character
|
||||||
diff:c '-' deleted lines of the 'diff' option
|
diff:c '-' deleted lines of the 'diff' option
|
||||||
|
eob:c '~' empty lines below the end of a buffer
|
||||||
|
|
||||||
Any one that is omitted will fall back to the default. For "stl" and
|
Any one that is omitted will fall back to the default. For "stl" and
|
||||||
"stlnc" the space will be used when there is highlighting, '^' or '='
|
"stlnc" the space will be used when there is highlighting, '^' or '='
|
||||||
@@ -3252,7 +3325,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
< This is similar to the default, except that these characters will also
|
< This is similar to the default, except that these characters will also
|
||||||
be used when there is highlighting.
|
be used when there is highlighting.
|
||||||
|
|
||||||
for "stl" and "stlnc" only single-byte values are supported.
|
For "stl" and "stlnc" single-byte and multibyte characters are
|
||||||
|
supported. But double-width characters are not supported.
|
||||||
|
|
||||||
The highlighting used for these items:
|
The highlighting used for these items:
|
||||||
item highlight group ~
|
item highlight group ~
|
||||||
@@ -3261,6 +3335,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
vert:c VertSplit |hl-VertSplit|
|
vert:c VertSplit |hl-VertSplit|
|
||||||
fold:c Folded |hl-Folded|
|
fold:c Folded |hl-Folded|
|
||||||
diff:c DiffDelete |hl-DiffDelete|
|
diff:c DiffDelete |hl-DiffDelete|
|
||||||
|
eob:c EndOfBuffer |hl-EndOfBuffer|
|
||||||
|
|
||||||
*'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
|
*'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
|
||||||
'fixendofline' 'fixeol' boolean (default on)
|
'fixendofline' 'fixeol' boolean (default on)
|
||||||
@@ -3549,8 +3624,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
systems without an fsync() implementation, this variable is always
|
systems without an fsync() implementation, this variable is always
|
||||||
off.
|
off.
|
||||||
Also see 'swapsync' for controlling fsync() on swap files.
|
Also see 'swapsync' for controlling fsync() on swap files.
|
||||||
'fsync' also applies to |writefile()|, unless a flag is used to
|
'fsync' also applies to |writefile()| (unless a flag is used to
|
||||||
overrule it.
|
overrule it) and when writing undo files (see |undo-persistence|).
|
||||||
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.
|
||||||
|
|
||||||
@@ -3729,6 +3804,18 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
screen. Set it to a negative value to allow windows taller than the
|
screen. Set it to a negative value to allow windows taller than the
|
||||||
screen.
|
screen.
|
||||||
|
|
||||||
|
*'guiligatures'* *'gli'* *E1243*
|
||||||
|
'guiligatures' 'gli' string (default "")
|
||||||
|
global
|
||||||
|
{only for GTK GUI}
|
||||||
|
List of ASCII characters that, when combined together, can create more
|
||||||
|
complex shapes. Each character must be a printable ASCII character
|
||||||
|
with a value in the 32-127 range.
|
||||||
|
Example: >
|
||||||
|
:set guiligatures=!\"#$%&()*+-./:<=>?@[]^_{\|~
|
||||||
|
< Changing this option updates screen output immediately. Set it to an
|
||||||
|
empty string to disable ligatures.
|
||||||
|
|
||||||
*'guioptions'* *'go'*
|
*'guioptions'* *'go'*
|
||||||
'guioptions' 'go' string (default "egmrLtT" (MS-Windows,
|
'guioptions' 'go' string (default "egmrLtT" (MS-Windows,
|
||||||
"t" is removed in |defaults.vim|),
|
"t" is removed in |defaults.vim|),
|
||||||
@@ -3844,7 +3931,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'go-v'*
|
*'go-v'*
|
||||||
'v' Use a vertical button layout for dialogs. When not included,
|
'v' Use a vertical button layout for dialogs. When not included,
|
||||||
a horizontal layout is preferred, but when it doesn't fit a
|
a horizontal layout is preferred, but when it doesn't fit a
|
||||||
vertical layout is used anyway.
|
vertical layout is used anyway. Not supported in GTK 3.
|
||||||
*'go-p'*
|
*'go-p'*
|
||||||
'p' Use Pointer callbacks for X11 GUI. This is required for some
|
'p' Use Pointer callbacks for X11 GUI. This is required for some
|
||||||
window managers. If the cursor is not blinking or hollow at
|
window managers. If the cursor is not blinking or hollow at
|
||||||
@@ -4127,7 +4214,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
the window. This happens only when the 'icon' option is on.
|
the window. This happens only when the 'icon' option is on.
|
||||||
Only works if the terminal supports setting window icon text
|
Only works if the terminal supports setting window icon text
|
||||||
(currently only X11 GUI and terminals with a non-empty 't_IS' option).
|
(currently only X11 GUI and terminals with a non-empty 't_IS' option).
|
||||||
Does not work for MS Windows.
|
Does not work for MS-Windows.
|
||||||
When Vim was compiled with HAVE_X11 defined, the original icon will be
|
When Vim was compiled with HAVE_X11 defined, the original icon will be
|
||||||
restored if possible |X11|.
|
restored if possible |X11|.
|
||||||
When this option contains printf-style '%' items, they will be
|
When this option contains printf-style '%' items, they will be
|
||||||
@@ -4543,7 +4630,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Keywords are used in searching and recognizing with many commands:
|
Keywords are used in searching and recognizing with many commands:
|
||||||
"w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See
|
"w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See
|
||||||
'isfname' for a description of the format of this option. For '@'
|
'isfname' for a description of the format of this option. For '@'
|
||||||
characters above 255 check the "word" character class.
|
characters above 255 check the "word" character class (any character
|
||||||
|
that is not white space or punctuation).
|
||||||
For C programs you could use "a-z,A-Z,48-57,_,.,-,>".
|
For C programs you could use "a-z,A-Z,48-57,_,.,-,>".
|
||||||
For a help file it is set to all non-blank printable characters except
|
For a help file it is set to all non-blank printable characters except
|
||||||
'*', '"' and '|' (so that CTRL-] on a command finds the help for that
|
'*', '"' and '|' (so that CTRL-] on a command finds the help for that
|
||||||
@@ -4831,9 +4919,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'list'* *'nolist'*
|
*'list'* *'nolist'*
|
||||||
'list' boolean (default off)
|
'list' boolean (default off)
|
||||||
local to window
|
local to window
|
||||||
List mode: Show tabs as CTRL-I is displayed, display $ after end of
|
List mode: By default show tabs as CTRL-I is displayed, display $
|
||||||
line. Useful to see the difference between tabs and spaces and for
|
after end of line. Useful to see the difference between tabs and
|
||||||
trailing blanks. Further changed by the 'listchars' option.
|
spaces and for trailing blanks. Further changed by the 'listchars'
|
||||||
|
option.
|
||||||
|
|
||||||
The cursor is displayed at the start of the space a Tab character
|
The cursor is displayed at the start of the space a Tab character
|
||||||
occupies, not at the end as usual in Normal mode. To get this cursor
|
occupies, not at the end as usual in Normal mode. To get this cursor
|
||||||
@@ -4846,7 +4935,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'listchars'* *'lcs'*
|
*'listchars'* *'lcs'*
|
||||||
'listchars' 'lcs' string (default "eol:$")
|
'listchars' 'lcs' string (default "eol:$")
|
||||||
global
|
global or local to window |global-local|
|
||||||
Strings to use in 'list' mode and for the |:list| command. It is a
|
Strings to use in 'list' mode and for the |:list| command. It is a
|
||||||
comma separated list of string settings.
|
comma separated list of string settings.
|
||||||
*lcs-eol*
|
*lcs-eol*
|
||||||
@@ -4877,10 +4966,25 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*lcs-space*
|
*lcs-space*
|
||||||
space:c Character to show for a space. When omitted, spaces
|
space:c Character to show for a space. When omitted, spaces
|
||||||
are left blank.
|
are left blank.
|
||||||
*lcs-trail*
|
*lcs-multispace*
|
||||||
|
multispace:c...
|
||||||
|
One or more characters to use cyclically to show for
|
||||||
|
multiple consecutive spaces. Overrides the "space"
|
||||||
|
setting, except for single spaces. When omitted, the
|
||||||
|
"space" setting is used. For example,
|
||||||
|
`:set listchars=multispace:---+` shows ten consecutive
|
||||||
|
spaces as:
|
||||||
|
---+---+--
|
||||||
|
*lcs-lead*
|
||||||
|
lead:c Character to show for leading spaces. When omitted,
|
||||||
|
leading spaces are blank. Overrides the "space" and
|
||||||
|
"multispace" settings for leading spaces. You can
|
||||||
|
combine it with "tab:", for example: >
|
||||||
|
:set listchars+=tab:>-,lead:.
|
||||||
|
< *lcs-trail*
|
||||||
trail:c Character to show for trailing spaces. When omitted,
|
trail:c Character to show for trailing spaces. When omitted,
|
||||||
trailing spaces are blank. Overrides the "space"
|
trailing spaces are blank. Overrides the "space" and
|
||||||
setting for trailing spaces.
|
"multispace" settings for trailing spaces.
|
||||||
*lcs-extends*
|
*lcs-extends*
|
||||||
extends:c Character to show in the last column, when 'wrap' is
|
extends:c Character to show in the last column, when 'wrap' is
|
||||||
off and the line continues beyond the right of the
|
off and the line continues beyond the right of the
|
||||||
@@ -4901,12 +5005,20 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
be used when 'encoding' is "utf-8", otherwise only printable
|
be used when 'encoding' is "utf-8", otherwise only printable
|
||||||
characters are allowed. All characters must be single width.
|
characters are allowed. All characters must be single width.
|
||||||
|
|
||||||
|
Each character can be specified as hex: >
|
||||||
|
set listchars=eol:\\x24
|
||||||
|
set listchars=eol:\\u21b5
|
||||||
|
set listchars=eol:\\U000021b5
|
||||||
|
< Note that a double backslash is used. The number of hex characters
|
||||||
|
must be exactly 2 for \\x, 4 for \\u and 8 for \\U.
|
||||||
|
|
||||||
Examples: >
|
Examples: >
|
||||||
:set lcs=tab:>-,trail:-
|
:set lcs=tab:>-,trail:-
|
||||||
:set lcs=tab:>-,eol:<,nbsp:%
|
:set lcs=tab:>-,eol:<,nbsp:%
|
||||||
:set lcs=extends:>,precedes:<
|
:set lcs=extends:>,precedes:<
|
||||||
< The "NonText" highlighting will be used for "eol", "extends" and
|
< The "NonText" highlighting will be used for "eol", "extends" and
|
||||||
"precedes". "SpecialKey" for "nbsp", "space", "tab" and "trail".
|
"precedes". "SpecialKey" will be used for "tab", "nbsp", "space",
|
||||||
|
"multispace", "lead" and "trail".
|
||||||
|hl-NonText| |hl-SpecialKey|
|
|hl-NonText| |hl-SpecialKey|
|
||||||
|
|
||||||
*'lpl'* *'nolpl'* *'loadplugins'* *'noloadplugins'*
|
*'lpl'* *'nolpl'* *'loadplugins'* *'noloadplugins'*
|
||||||
@@ -5009,7 +5121,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
jump between two double quotes.
|
jump between two double quotes.
|
||||||
The characters must be separated by a colon.
|
The characters must be separated by a colon.
|
||||||
The pairs must be separated by a comma. Example for including '<' and
|
The pairs must be separated by a comma. Example for including '<' and
|
||||||
'>' (HTML): >
|
'>' (for HTML): >
|
||||||
:set mps+=<:>
|
:set mps+=<:>
|
||||||
|
|
||||||
< A more exotic example, to jump between the '=' and ';' in an
|
< A more exotic example, to jump between the '=' and ';' in an
|
||||||
@@ -5522,7 +5634,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'operatorfunc' 'opfunc' string (default: empty)
|
'operatorfunc' 'opfunc' string (default: empty)
|
||||||
global
|
global
|
||||||
This option specifies a function to be called by the |g@| operator.
|
This option specifies a function to be called by the |g@| operator.
|
||||||
See |:map-operator| for more info and an example.
|
See |:map-operator| for more info and an example. The value can be
|
||||||
|
the name of a function, a |lambda| or a |Funcref|. See
|
||||||
|
|option-value-function| for more information.
|
||||||
|
|
||||||
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.
|
||||||
@@ -5565,19 +5679,21 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
- abbreviations are disabled
|
- abbreviations are disabled
|
||||||
- 'autoindent' is reset
|
- 'autoindent' is reset
|
||||||
- 'expandtab' is reset
|
- 'expandtab' is reset
|
||||||
- 'formatoptions' is used like it is empty
|
- 'hkmap' is reset
|
||||||
- 'revins' is reset
|
- 'revins' is reset
|
||||||
- 'ruler' is reset
|
- 'ruler' is reset
|
||||||
- 'showmatch' is reset
|
- 'showmatch' is reset
|
||||||
- 'smartindent' is reset
|
|
||||||
- 'smarttab' is reset
|
- 'smarttab' is reset
|
||||||
- 'softtabstop' is set to 0
|
- 'softtabstop' is set to 0
|
||||||
- 'textwidth' is set to 0
|
- 'textwidth' is set to 0
|
||||||
- 'wrapmargin' is set to 0
|
- 'wrapmargin' is set to 0
|
||||||
|
- 'varsofttabstop' is made empty
|
||||||
These options keep their value, but their effect is disabled:
|
These options keep their value, but their effect is disabled:
|
||||||
- 'cindent'
|
- 'cindent'
|
||||||
|
- 'formatoptions' is used like it is empty
|
||||||
- 'indentexpr'
|
- 'indentexpr'
|
||||||
- 'lisp'
|
- 'lisp'
|
||||||
|
- 'smartindent'
|
||||||
NOTE: When you start editing another file while the 'paste' option is
|
NOTE: When you start editing another file while the 'paste' option is
|
||||||
on, settings from the modelines or autocommands may change the
|
on, settings from the modelines or autocommands may change the
|
||||||
settings again, causing trouble when pasting text. You might want to
|
settings again, causing trouble when pasting text. You might want to
|
||||||
@@ -5920,8 +6036,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
customize the information displayed in the quickfix or location window
|
customize the information displayed in the quickfix or location window
|
||||||
for each entry in the corresponding quickfix or location list. See
|
for each entry in the corresponding quickfix or location list. See
|
||||||
|quickfix-window-function| for an explanation of how to write the
|
|quickfix-window-function| for an explanation of how to write the
|
||||||
function and an example. The value can be the name of a function or a
|
function and an example. The value can be the name of a function, a
|
||||||
lambda.
|
|lambda| or a |Funcref|. See |option-value-function| for more
|
||||||
|
information.
|
||||||
|
|
||||||
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.
|
||||||
@@ -6226,7 +6343,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
<
|
<
|
||||||
*'runtimepath'* *'rtp'* *vimfiles*
|
*'runtimepath'* *'rtp'* *vimfiles*
|
||||||
'runtimepath' 'rtp' string (default:
|
'runtimepath' 'rtp' string (default:
|
||||||
Unix: "$HOME/.vim,
|
Unix: "$HOME/.vim,
|
||||||
$VIM/vimfiles,
|
$VIM/vimfiles,
|
||||||
$VIMRUNTIME,
|
$VIMRUNTIME,
|
||||||
$VIM/vimfiles/after,
|
$VIM/vimfiles/after,
|
||||||
@@ -6236,7 +6353,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
$VIMRUNTIME,
|
$VIMRUNTIME,
|
||||||
$VIM/vimfiles/after,
|
$VIM/vimfiles/after,
|
||||||
home:vimfiles/after"
|
home:vimfiles/after"
|
||||||
PC: "$HOME/vimfiles,
|
MS-Windows: "$HOME/vimfiles,
|
||||||
$VIM/vimfiles,
|
$VIM/vimfiles,
|
||||||
$VIMRUNTIME,
|
$VIMRUNTIME,
|
||||||
$VIM/vimfiles/after,
|
$VIM/vimfiles/after,
|
||||||
@@ -6248,8 +6365,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
$VIM/vimfiles,
|
$VIM/vimfiles,
|
||||||
$VIMRUNTIME,
|
$VIMRUNTIME,
|
||||||
$VIM/vimfiles/after,
|
$VIM/vimfiles/after,
|
||||||
$BE_USER_SETTINGS/vim/after")
|
$BE_USER_SETTINGS/vim/after"
|
||||||
VMS: "sys$login:vimfiles,
|
VMS: "sys$login:vimfiles,
|
||||||
$VIM/vimfiles,
|
$VIM/vimfiles,
|
||||||
$VIMRUNTIME,
|
$VIMRUNTIME,
|
||||||
$VIM/vimfiles/after,
|
$VIM/vimfiles/after,
|
||||||
@@ -6484,6 +6601,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
global values for local options)
|
global values for local options)
|
||||||
options all options and mappings (also global values for local
|
options all options and mappings (also global values for local
|
||||||
options)
|
options)
|
||||||
|
skiprtp exclude 'runtimepath' and 'packpath' from the options
|
||||||
resize size of the Vim window: 'lines' and 'columns'
|
resize size of the Vim window: 'lines' and 'columns'
|
||||||
sesdir the directory in which the session file is located
|
sesdir the directory in which the session file is located
|
||||||
will become the current directory (useful with
|
will become the current directory (useful with
|
||||||
@@ -6544,23 +6662,25 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'shellcmdflag'* *'shcf'*
|
*'shellcmdflag'* *'shcf'*
|
||||||
'shellcmdflag' 'shcf' string (default: "-c";
|
'shellcmdflag' 'shcf' string (default: "-c";
|
||||||
Win32, when 'shell' does not contain "sh"
|
Win32, when 'shell' contains "powershell":
|
||||||
|
"-Command", or when it does not contain "sh"
|
||||||
somewhere: "/c")
|
somewhere: "/c")
|
||||||
global
|
global
|
||||||
Flag passed to the shell to execute "!" and ":!" commands; e.g.,
|
Flag passed to the shell to execute "!" and ":!" commands; e.g.,
|
||||||
"bash.exe -c ls" or "cmd.exe /c dir". For MS-Windows, the default is
|
"bash.exe -c ls", "powershell.exe -Command dir", or "cmd.exe /c dir".
|
||||||
set according to the value of 'shell', to reduce the need to set this
|
For MS-Windows, the default is set according to the value of 'shell',
|
||||||
option by the user.
|
to reduce the need to set this option by the user.
|
||||||
On Unix it can have more than one flag. Each white space separated
|
On Unix it can have more than one flag. Each white space separated
|
||||||
part is passed as an argument to the shell command.
|
part is passed as an argument to the shell command.
|
||||||
See |option-backslash| about including spaces and backslashes.
|
See |option-backslash| about including spaces and backslashes.
|
||||||
Also see |dos-shell| for MS-Windows.
|
Also see |dos-shell| and |dos-powershell| for MS-Windows.
|
||||||
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.
|
||||||
|
|
||||||
*'shellpipe'* *'sp'*
|
*'shellpipe'* *'sp'*
|
||||||
'shellpipe' 'sp' string (default ">", ">%s 2>&1", "| tee", "|& tee" or
|
'shellpipe' 'sp' string (default ">", ">%s 2>&1", "| tee", "|& tee"
|
||||||
"2>&1| tee")
|
"2>&1| tee", or
|
||||||
|
"2>&1 | Out-File -Encoding default")
|
||||||
global
|
global
|
||||||
{not available when compiled without the |+quickfix|
|
{not available when compiled without the |+quickfix|
|
||||||
feature}
|
feature}
|
||||||
@@ -6570,16 +6690,19 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The name of the temporary file can be represented by "%s" if necessary
|
The name of the temporary file can be represented by "%s" if necessary
|
||||||
(the file name is appended automatically if no %s appears in the value
|
(the file name is appended automatically if no %s appears in the value
|
||||||
of this option).
|
of this option).
|
||||||
For the Amiga the default is ">". For MS-Windows the default is
|
For the Amiga the default is ">". For MS-Windows using powershell the
|
||||||
">%s 2>&1". The output is directly saved in a file and not echoed to
|
default is "2>&1 | Out-File -Encoding default", otherwise the default
|
||||||
the screen.
|
is ">%s 2>&1". The output is directly saved in a file and not echoed
|
||||||
|
to the screen.
|
||||||
For Unix the default is "| tee". The stdout of the compiler is saved
|
For Unix the default is "| tee". The stdout of the compiler is saved
|
||||||
in a file and echoed to the screen. If the 'shell' option is "csh" or
|
in a file and echoed to the screen. If the 'shell' option is "csh" or
|
||||||
"tcsh" after initializations, the default becomes "|& tee". If the
|
"tcsh" after initializations, the default becomes "|& tee". If the
|
||||||
'shell' option is "sh", "ksh", "mksh", "pdksh", "zsh", "zsh-beta",
|
'shell' option is "sh", "ksh", "mksh", "pdksh", "zsh", "zsh-beta",
|
||||||
"bash" or "fish" the default becomes "2>&1| tee". This means that
|
"bash", "fish", "ash" or "dash" the default becomes "2>&1| tee". This
|
||||||
stderr is also included. Before using the 'shell' option a path is
|
means that stderr is also included. Before using the 'shell' option a
|
||||||
removed, thus "/bin/sh" uses "sh".
|
path is removed, thus "/bin/sh" uses "sh".
|
||||||
|
For Unix and MS-Windows, when the 'shell' option is "pwsh" the default
|
||||||
|
becomes ">%s 2>&1" and the output is not echoed to the screen.
|
||||||
The initialization of this option is done after reading the ".vimrc"
|
The initialization of this option is done after reading the ".vimrc"
|
||||||
and the other initializations, so that when the 'shell' option is set
|
and the other initializations, so that when the 'shell' option is set
|
||||||
there, the 'shellpipe' option changes automatically, unless it was
|
there, the 'shellpipe' option changes automatically, unless it was
|
||||||
@@ -6595,8 +6718,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
*'shellquote'* *'shq'*
|
*'shellquote'* *'shq'*
|
||||||
'shellquote' 'shq' string (default: ""; Win32, when 'shell'
|
'shellquote' 'shq' string (default: "")
|
||||||
contains "sh" somewhere: "\"")
|
|
||||||
global
|
global
|
||||||
Quoting character(s), put around the command passed to the shell, for
|
Quoting character(s), put around the command passed to the shell, for
|
||||||
the "!" and ":!" commands. The redirection is kept outside of the
|
the "!" and ":!" commands. The redirection is kept outside of the
|
||||||
@@ -6604,14 +6726,13 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
probably not useful to set both options.
|
probably not useful to set both options.
|
||||||
This is an empty string by default. Only known to be useful for
|
This is an empty string by default. Only known to be useful for
|
||||||
third-party shells on MS-Windows-like systems, such as the MKS Korn
|
third-party shells on MS-Windows-like systems, such as the MKS Korn
|
||||||
Shell or bash, where it should be "\"". The default is adjusted
|
Shell or bash, where it should be "\"". See |dos-shell|.
|
||||||
according the value of 'shell', to reduce the need to set this option
|
|
||||||
by the user. See |dos-shell|.
|
|
||||||
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.
|
||||||
|
|
||||||
*'shellredir'* *'srr'*
|
*'shellredir'* *'srr'*
|
||||||
'shellredir' 'srr' string (default ">", ">&" or ">%s 2>&1")
|
'shellredir' 'srr' string (default ">", ">&", ">%s 2>&1", or
|
||||||
|
"2>&1 | Out-File -Encoding default")
|
||||||
global
|
global
|
||||||
String to be used to put the output of a filter command in a temporary
|
String to be used to put the output of a filter command in a temporary
|
||||||
file. See also |:!|. See |option-backslash| about including spaces
|
file. See also |:!|. See |option-backslash| about including spaces
|
||||||
@@ -6622,10 +6743,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The default is ">". For Unix, if the 'shell' option is "csh" or
|
The default is ">". For Unix, if the 'shell' option is "csh" or
|
||||||
"tcsh" during initializations, the default becomes ">&". If the
|
"tcsh" during initializations, the default becomes ">&". If the
|
||||||
'shell' option is "sh", "ksh", "mksh", "pdksh", "zsh", "zsh-beta",
|
'shell' option is "sh", "ksh", "mksh", "pdksh", "zsh", "zsh-beta",
|
||||||
"bash" or "fish", the default becomes ">%s 2>&1". This means that
|
"bash", "fish", or "pwsh", the default becomes ">%s 2>&1". This means
|
||||||
stderr is also included. For Win32, the Unix checks are done and
|
that stderr is also included. For Win32, the Unix checks are done and
|
||||||
additionally "cmd" is checked for, which makes the default ">%s 2>&1".
|
additionally "cmd" is checked for, which makes the default ">%s 2>&1",
|
||||||
Also, the same names with ".exe" appended are checked for.
|
and "powershell" is checked for which makes the default
|
||||||
|
"2>&1 | Out-File -Encoding default" (see |dos-powershell|). Also, the
|
||||||
|
same names with ".exe" appended are checked for.
|
||||||
The initialization of this option is done after reading the ".vimrc"
|
The initialization of this option is done after reading the ".vimrc"
|
||||||
and the other initializations, so that when the 'shell' option is set
|
and the other initializations, so that when the 'shell' option is set
|
||||||
there, the 'shellredir' option changes automatically unless it was
|
there, the 'shellredir' option changes automatically unless it was
|
||||||
@@ -6640,9 +6763,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
global
|
global
|
||||||
{only for MS-Windows}
|
{only for MS-Windows}
|
||||||
When set, a forward slash is used when expanding file names. This is
|
When set, a forward slash is used when expanding file names. This is
|
||||||
useful when a Unix-like shell is used instead of cmd.exe. Backward
|
useful when a Unix-like shell is used instead of cmd.exe, pwsh.exe, or
|
||||||
slashes can still be typed, but they are changed to forward slashes by
|
powershell.exe. Backward slashes can still be typed, but they are
|
||||||
Vim.
|
changed to forward slashes by Vim.
|
||||||
Note that setting or resetting this option has no effect for some
|
Note that setting or resetting this option has no effect for some
|
||||||
existing file names, thus this option needs to be set before opening
|
existing file names, thus this option needs to be set before opening
|
||||||
any file for best results. This might change in the future.
|
any file for best results. This might change in the future.
|
||||||
@@ -6696,6 +6819,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'shellxquote'* *'sxq'*
|
*'shellxquote'* *'sxq'*
|
||||||
'shellxquote' 'sxq' string (default: "";
|
'shellxquote' 'sxq' string (default: "";
|
||||||
for Win32, when 'shell' is cmd.exe: "("
|
for Win32, when 'shell' is cmd.exe: "("
|
||||||
|
for Win32, when 'shell' is
|
||||||
|
powershell.exe: "\""
|
||||||
for Win32, when 'shell' contains "sh"
|
for Win32, when 'shell' contains "sh"
|
||||||
somewhere: "\""
|
somewhere: "\""
|
||||||
for Unix, when using system(): "\"")
|
for Unix, when using system(): "\"")
|
||||||
@@ -6708,11 +6833,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
then ')"' is appended.
|
then ')"' is appended.
|
||||||
When the value is '(' then also see 'shellxescape'.
|
When the value is '(' then also see 'shellxescape'.
|
||||||
This is an empty string by default on most systems, but is known to be
|
This is an empty string by default on most systems, but is known to be
|
||||||
useful for on Win32 version, either for cmd.exe which automatically
|
useful for on Win32 version, either for cmd.exe, powershell.exe, or
|
||||||
strips off the first and last quote on a command, or 3rd-party shells
|
pwsh.exe which automatically strips off the first and last quote on a
|
||||||
such as the MKS Korn Shell or bash, where it should be "\"". The
|
command, or 3rd-party shells such as the MKS Korn Shell or bash, where
|
||||||
default is adjusted according the value of 'shell', to reduce the need
|
it should be "\"". The default is adjusted according the value of
|
||||||
to set this option by the user. See |dos-shell|.
|
'shell', to reduce the need to set this option by the user. See
|
||||||
|
|dos-shell|.
|
||||||
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.
|
||||||
|
|
||||||
@@ -7097,6 +7223,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
If the name "cjk" is included East Asian characters are excluded from
|
If the name "cjk" is included East Asian characters are excluded from
|
||||||
spell checking. This is useful when editing text that also has Asian
|
spell checking. This is useful when editing text that also has Asian
|
||||||
words.
|
words.
|
||||||
|
Note that the "medical" dictionary does not exist, it is just an
|
||||||
|
example of a longer name.
|
||||||
*E757*
|
*E757*
|
||||||
As a special case the name of a .spl file can be given as-is. The
|
As a special case the name of a .spl file can be given as-is. The
|
||||||
first "_xx" in the name is removed and used as the region name
|
first "_xx" in the name is removed and used as the region name
|
||||||
@@ -7310,6 +7438,18 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Note that there is no '%' before the closing '}'. The
|
Note that there is no '%' before the closing '}'. The
|
||||||
expression cannot contain a '}' character, call a function to
|
expression cannot contain a '}' character, call a function to
|
||||||
work around that. See |stl-%{| below.
|
work around that. See |stl-%{| below.
|
||||||
|
{% - This is almost same as { except the result of the expression is
|
||||||
|
re-evaluated as a statusline format string. Thus if the
|
||||||
|
return value of expr contains % items they will get expanded.
|
||||||
|
The expression can contain the } character, the end of
|
||||||
|
expression is denoted by %}.
|
||||||
|
For example: >
|
||||||
|
func! Stl_filename() abort
|
||||||
|
return "%t"
|
||||||
|
endfunc
|
||||||
|
< `stl=%{Stl_filename()}` results in `"%t"`
|
||||||
|
`stl=%{%Stl_filename()%}` results in `"Name of current file"`
|
||||||
|
%} - End of `{%` expression
|
||||||
( - Start of item group. Can be used for setting the width and
|
( - Start of item group. Can be used for setting the width and
|
||||||
alignment of a section. Must be followed by %) somewhere.
|
alignment of a section. Must be followed by %) somewhere.
|
||||||
) - End of item group. No width fields allowed.
|
) - End of item group. No width fields allowed.
|
||||||
@@ -7453,6 +7593,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'switchbuf' 'swb' string (default "")
|
'switchbuf' 'swb' string (default "")
|
||||||
global
|
global
|
||||||
This option controls the behavior when switching between buffers.
|
This option controls the behavior when switching between buffers.
|
||||||
|
Mostly for |quickfix| commands some values are also used for other
|
||||||
|
commands, as mentioned below.
|
||||||
Possible values (comma separated list):
|
Possible values (comma separated list):
|
||||||
useopen If included, jump to the first open window that
|
useopen If included, jump to the first open window that
|
||||||
contains the specified buffer (if there is one).
|
contains the specified buffer (if there is one).
|
||||||
@@ -7650,7 +7792,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
This option specifies a function to be used to perform tag searches.
|
This option specifies a function to be used to perform tag searches.
|
||||||
The function gets the tag pattern and should return a List of matching
|
The function gets the tag pattern and should return a List of matching
|
||||||
tags. See |tag-function| for an explanation of how to write the
|
tags. See |tag-function| for an explanation of how to write the
|
||||||
function and an example.
|
function and an example. The value can be the name of a function, a
|
||||||
|
|lambda| or a |Funcref|. See |option-value-function| for more
|
||||||
|
information.
|
||||||
|
|
||||||
*'taglength'* *'tl'*
|
*'taglength'* *'tl'*
|
||||||
'taglength' 'tl' number (default 0)
|
'taglength' 'tl' number (default 0)
|
||||||
@@ -7813,6 +7957,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Number of scrollback lines to keep. When going over this limit the
|
Number of scrollback lines to keep. When going over this limit the
|
||||||
first 10% of the scrollback lines are deleted. This is just to reduce
|
first 10% of the scrollback lines are deleted. This is just to reduce
|
||||||
the memory usage. See |Terminal-Normal|.
|
the memory usage. See |Terminal-Normal|.
|
||||||
|
Also used as a limit for text sent to the terminal in one write,
|
||||||
|
multiplied by the number of columns times 3 (average number of bytes
|
||||||
|
per cell).
|
||||||
|
|
||||||
*'termwinsize'* *'tws'*
|
*'termwinsize'* *'tws'*
|
||||||
'termwinsize' 'tws' string (default "")
|
'termwinsize' 'tws' string (default "")
|
||||||
@@ -7903,25 +8050,30 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'thesaurus' 'tsr' string (default "")
|
'thesaurus' 'tsr' string (default "")
|
||||||
global or local to buffer |global-local|
|
global or local to buffer |global-local|
|
||||||
List of file names, separated by commas, that are used to lookup words
|
List of file names, separated by commas, that are used to lookup words
|
||||||
for thesaurus completion commands |i_CTRL-X_CTRL-T|.
|
for thesaurus completion commands |i_CTRL-X_CTRL-T|. See
|
||||||
|
|compl-thesaurus|.
|
||||||
|
|
||||||
Each line in the file should contain words with similar meaning,
|
This option is not used if 'thesaurusfunc' is set, either for the
|
||||||
separated by non-keyword characters (white space is preferred).
|
buffer or globally.
|
||||||
Maximum line length is 510 bytes.
|
|
||||||
|
|
||||||
An English word list was added to this github issue:
|
|
||||||
https://github.com/vim/vim/issues/629#issuecomment-443293282
|
|
||||||
Unpack thesaurus_pkg.zip, put the thesaurus.txt file somewhere, e.g.
|
|
||||||
~/.vim/thesaurus/english.txt, and the 'thesaurus' option to this file
|
|
||||||
name.
|
|
||||||
|
|
||||||
To include a comma in a file name precede it with a backslash. Spaces
|
To include a comma in a file name precede it with a backslash. Spaces
|
||||||
after a comma are ignored, otherwise spaces are included in the file
|
after a comma are ignored, otherwise spaces are included in the file
|
||||||
name. See |option-backslash| about using backslashes.
|
name. See |option-backslash| about using backslashes. The use of
|
||||||
The use of |:set+=| and |:set-=| is preferred when adding or removing
|
|:set+=| and |:set-=| is preferred when adding or removing directories
|
||||||
directories from the list. This avoids problems when a future version
|
from the list. This avoids problems when a future version uses
|
||||||
uses another default.
|
another default. Backticks cannot be used in this option for security
|
||||||
Backticks cannot be used in this option for security reasons.
|
reasons.
|
||||||
|
|
||||||
|
*'thesaurusfunc'* *tsrfu'*
|
||||||
|
'thesaurusfunc' 'tsrfu' string (default: empty)
|
||||||
|
global or local to buffer |global-local|
|
||||||
|
{not available when compiled without the |+eval|
|
||||||
|
feature}
|
||||||
|
This option specifies a function to be used for thesaurus completion
|
||||||
|
with CTRL-X CTRL-T. |i_CTRL-X_CTRL-T| See |compl-thesaurusfunc|.
|
||||||
|
|
||||||
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
|
security reasons.
|
||||||
|
|
||||||
*'tildeop'* *'top'* *'notildeop'* *'notop'*
|
*'tildeop'* *'top'* *'notildeop'* *'notop'*
|
||||||
'tildeop' 'top' boolean (default off)
|
'tildeop' 'top' boolean (default off)
|
||||||
@@ -8566,12 +8718,16 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'virtualedit'* *'ve'*
|
*'virtualedit'* *'ve'*
|
||||||
'virtualedit' 've' string (default "")
|
'virtualedit' 've' string (default "")
|
||||||
global
|
global or local to window |global-local|
|
||||||
A comma separated list of these words:
|
A comma separated list of these words:
|
||||||
block Allow virtual editing in Visual block mode.
|
block Allow virtual editing in Visual block mode.
|
||||||
insert Allow virtual editing in Insert mode.
|
insert Allow virtual editing in Insert mode.
|
||||||
all Allow virtual editing in all modes.
|
all Allow virtual editing in all modes.
|
||||||
onemore Allow the cursor to move just past the end of the line
|
onemore Allow the cursor to move just past the end of the line
|
||||||
|
none When used as the local value, do not allow virtual
|
||||||
|
editing even when the global value is set. When used
|
||||||
|
as the global value, "none" is the same as "".
|
||||||
|
NONE Alternative spelling of "none".
|
||||||
|
|
||||||
Virtual editing means that the cursor can be positioned where there is
|
Virtual editing means that the cursor can be positioned where there is
|
||||||
no actual character. This can be halfway into a tab or beyond the end
|
no actual character. This can be halfway into a tab or beyond the end
|
||||||
@@ -8588,6 +8744,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The `g$` command will move to the end of the screen line.
|
The `g$` command will move to the end of the screen line.
|
||||||
It doesn't make sense to combine "all" with "onemore", but you will
|
It doesn't make sense to combine "all" with "onemore", but you will
|
||||||
not get a warning for it.
|
not get a warning for it.
|
||||||
|
When combined with other words, "none" is ignored.
|
||||||
NOTE: This option is set to "" when 'compatible' is set.
|
NOTE: This option is set to "" when 'compatible' is set.
|
||||||
|
|
||||||
*'visualbell'* *'vb'* *'novisualbell'* *'novb'* *beep*
|
*'visualbell'* *'vb'* *'novisualbell'* *'novb'* *beep*
|
||||||
@@ -8671,8 +8828,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
More info here: |cmdline-completion|.
|
More info here: |cmdline-completion|.
|
||||||
The character is not recognized when used inside a macro. See
|
The character is not recognized when used inside a macro. See
|
||||||
'wildcharm' for that.
|
'wildcharm' for that.
|
||||||
|
Some keys will not work, such as CTRL-C, <CR> and Enter.
|
||||||
Although 'wc' is a number option, you can set it to a special key: >
|
Although 'wc' is a number option, you can set it to a special key: >
|
||||||
:set wc=<Esc>
|
:set wc=<Tab>
|
||||||
< NOTE: This option is set to the Vi default value when 'compatible' is
|
< NOTE: This option is set to the Vi default value when 'compatible' is
|
||||||
set and to the Vim default value when 'compatible' is reset.
|
set and to the Vim default value when 'compatible' is reset.
|
||||||
|
|
||||||
@@ -8763,23 +8921,31 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
part specifies what to do for each consecutive use of 'wildchar'. The
|
part specifies what to do for each consecutive use of 'wildchar'. The
|
||||||
first part specifies the behavior for the first use of 'wildchar',
|
first part specifies the behavior for the first use of 'wildchar',
|
||||||
The second part for the second use, etc.
|
The second part for the second use, etc.
|
||||||
These are the possible values for each part:
|
|
||||||
|
Each part consists of a colon separated list consisting of the
|
||||||
|
following possible values:
|
||||||
"" Complete only the first match.
|
"" Complete only the first match.
|
||||||
"full" Complete the next full match. After the last match,
|
"full" Complete the next full match. After the last match,
|
||||||
the original string is used and then the first match
|
the original string is used and then the first match
|
||||||
again.
|
again. Will also start 'wildmenu' if it is enabled.
|
||||||
"longest" Complete till longest common string. If this doesn't
|
"longest" Complete till longest common string. If this doesn't
|
||||||
result in a longer string, use the next part.
|
result in a longer string, use the next part.
|
||||||
"longest:full" Like "longest", but also start 'wildmenu' if it is
|
|
||||||
enabled.
|
|
||||||
"list" When more than one match, list all matches.
|
"list" When more than one match, list all matches.
|
||||||
|
"lastused" When completing buffer names and more than one buffer
|
||||||
|
matches, sort buffers by time last used (other than
|
||||||
|
the current buffer).
|
||||||
|
When there is only a single match, it is fully completed in all cases.
|
||||||
|
|
||||||
|
Examples of useful colon-separated values:
|
||||||
|
"longest:full" Like "longest", but also start 'wildmenu' if it is
|
||||||
|
enabled. Will not complete to the next full match.
|
||||||
"list:full" When more than one match, list all matches and
|
"list:full" When more than one match, list all matches and
|
||||||
complete first match.
|
complete first match.
|
||||||
"list:longest" When more than one match, list all matches and
|
"list:longest" When more than one match, list all matches and
|
||||||
complete till longest common string.
|
complete till longest common string.
|
||||||
"list:lastused" When more than one buffer matches, sort buffers
|
"list:lastused" When more than one buffer matches, list all matches
|
||||||
by time last used (other than the current buffer).
|
and sort buffers by time last used (other than the
|
||||||
When there is only a single match, it is fully completed in all cases.
|
current buffer).
|
||||||
|
|
||||||
Examples: >
|
Examples: >
|
||||||
:set wildmode=full
|
:set wildmode=full
|
||||||
@@ -8838,15 +9004,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'window'* *'wi'*
|
*'window'* *'wi'*
|
||||||
'window' 'wi' number (default screen height - 1)
|
'window' 'wi' number (default screen height - 1)
|
||||||
global
|
global
|
||||||
Window height. Do not confuse this with the height of the Vim window,
|
Window height used for |CTRL-F| and |CTRL-B| when there is only one
|
||||||
use 'lines' for that.
|
window and the value is smaller than 'lines' minus one. The screen
|
||||||
Used for |CTRL-F| and |CTRL-B| when there is only one window and the
|
will scroll 'window' minus two lines, with a minimum of one.
|
||||||
value is smaller than 'lines' minus one. The screen will scroll
|
|
||||||
'window' minus two lines, with a minimum of one.
|
|
||||||
When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll
|
When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll
|
||||||
in a much smarter way, taking care of wrapping lines.
|
in a much smarter way, taking care of wrapping lines.
|
||||||
When resizing the Vim window, the value is smaller than 1 or more than
|
When resizing the Vim window, the value is smaller than 1 or more than
|
||||||
or equal to 'lines' it will be set to 'lines' minus 1.
|
or equal to 'lines' it will be set to 'lines' minus 1.
|
||||||
|
Note: Do not confuse this with the height of the Vim window, use
|
||||||
|
'lines' for that.
|
||||||
|
|
||||||
*'winheight'* *'wh'* *E591*
|
*'winheight'* *'wh'* *E591*
|
||||||
'winheight' 'wh' number (default 1)
|
'winheight' 'wh' number (default 1)
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ versions of Vim. Also see |os_win32.txt| and |os_msdos.txt|.
|
|||||||
7. Interrupting |dos-CTRL-Break|
|
7. Interrupting |dos-CTRL-Break|
|
||||||
8. Temp files |dos-temp-files|
|
8. Temp files |dos-temp-files|
|
||||||
9. Shell option default |dos-shell|
|
9. Shell option default |dos-shell|
|
||||||
|
10. PowerShell |dos-powershell|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. File locations *dos-locations*
|
1. File locations *dos-locations*
|
||||||
@@ -297,8 +298,86 @@ For Win32 as:
|
|||||||
<shell> -c "command name >file"
|
<shell> -c "command name >file"
|
||||||
For DOS 32 bit, DJGPP does this internally somehow.
|
For DOS 32 bit, DJGPP does this internally somehow.
|
||||||
|
|
||||||
When starting up, Vim checks for the presence of "sh" anywhere in the 'shell'
|
When starting up, if Vim does not recognise a standard Windows shell it checks
|
||||||
option. If it is present, Vim sets the 'shellcmdflag' and 'shellquote' or
|
for the presence of "sh" anywhere in the 'shell' option. If it is present,
|
||||||
'shellxquote' options will be set as described above.
|
Vim sets the 'shellcmdflag' and 'shellquote' or 'shellxquote' options will be
|
||||||
|
set as described above.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
10. PowerShell *dos-powershell* *dos-pwsh*
|
||||||
|
|
||||||
|
Vim supports PowerShell Desktop and PowerShell Core. PowerShell Desktop is
|
||||||
|
the version of PowerShell that is installed with Windows, while PowerShell
|
||||||
|
Core is a separate downloadable version that works cross-platform. To see
|
||||||
|
which version you are using then enter the following in a PowerShell prompt -
|
||||||
|
$PSVersionTable.PSEdition
|
||||||
|
|
||||||
|
If 'shell' includes "powershell" in the filename at startup then VIM sets
|
||||||
|
'shellcmdflag', 'shellxquote', 'shellpipe', and 'shellredir' options to the
|
||||||
|
following values:
|
||||||
|
|
||||||
|
'shellcmdflag' -Command
|
||||||
|
'shellxquote' "
|
||||||
|
'shellpipe' 2>&1 | Out-File -Encoding default
|
||||||
|
'shellredir' 2>&1 | Out-File -Encoding default
|
||||||
|
|
||||||
|
If 'shell' includes "pwsh" in the filename at startup then VIM sets
|
||||||
|
'shellcmdflag', 'shellxquote', 'shellpipe', and 'shellredir' options to the
|
||||||
|
following values:
|
||||||
|
|
||||||
|
'shellcmdflag' -c
|
||||||
|
'shellxquote' "
|
||||||
|
'shellpipe' >%s 2>&1
|
||||||
|
'shellredir' >%s 2>&1
|
||||||
|
|
||||||
|
If you find that PowerShell commands are taking a long time to run then try
|
||||||
|
with "-NoProfile" at the beginning of the 'shellcmdflag'. Note this will
|
||||||
|
prevent any PowerShell environment setup by the profile from taking place.
|
||||||
|
|
||||||
|
If you have problems running PowerShell scripts through the 'shell' then try
|
||||||
|
with "-ExecutionPolicy RemoteSigned -Command" at the beginning of
|
||||||
|
'shellcmdflag'. See online Windows documentation for more information on
|
||||||
|
PowerShell Execution Policy settings.
|
||||||
|
|
||||||
|
See |option-backslash| about including spaces in 'shellcmdflag' when using
|
||||||
|
multiple flags.
|
||||||
|
|
||||||
|
The 'shellpipe' and 'shellredir' option values re-encode the UTF-16le output
|
||||||
|
from PowerShell Desktop to your currently configured console codepage. The
|
||||||
|
output can be forced into a different encoding by changing "default" to one of
|
||||||
|
the following:
|
||||||
|
|
||||||
|
unicode - UTF-16le (default output from PowerShell 5.1)
|
||||||
|
bigendianunicode - UTF-16
|
||||||
|
utf8 - UTF-8
|
||||||
|
utf7 - UTF-7 (no BOM)
|
||||||
|
utf32 - UTF-32
|
||||||
|
ascii - 7-bit ASCII character set
|
||||||
|
default - System's active code page (typically ANSI)
|
||||||
|
oem - System's current OEM code page
|
||||||
|
|
||||||
|
Note The abovce multi-byte Unicode encodings include a leading BOM unless
|
||||||
|
otherwise indicated.
|
||||||
|
|
||||||
|
By default PowerShell Core's output is UTF-8 encoded without a BOM. If you
|
||||||
|
want to force the output of PowerShell Core into a different encoding then set
|
||||||
|
'shellredir' and 'shellpipe' to "2>&1 | Out-File -Encoding encoding" where
|
||||||
|
encoding is one of the following:
|
||||||
|
|
||||||
|
ascii - 7-bit ASCII character set
|
||||||
|
bigendianunicode - UTF-16be
|
||||||
|
bigendianutf32 - UTF-32be
|
||||||
|
oem - System's current OEM code page
|
||||||
|
unicode - UTF-16le
|
||||||
|
utf7 - UTF-7
|
||||||
|
utf8 - UTF-8
|
||||||
|
utf8BOM - UTF-8, with BOM
|
||||||
|
utf8NoBOM - UTF-8, no BOM (default output from PowerShell Core)
|
||||||
|
utf32 - UTF-32
|
||||||
|
|
||||||
|
Since PowerShell Core 6.2, the Encoding parameter also supports specifying a
|
||||||
|
numeric ID of a registered code page (-Encoding 1251) or string names of
|
||||||
|
registered code pages (-Encoding "windows-1251"). The .NET documentation for
|
||||||
|
Encoding.CodePage has more information
|
||||||
|
|
||||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
|||||||
@@ -194,9 +194,8 @@ $VIM/macros/swapmous.vim for an example. |gui-mouse-mapping|
|
|||||||
|
|
||||||
11. Color names *haiku-colors*
|
11. Color names *haiku-colors*
|
||||||
|
|
||||||
Vim has a number of color names built-in. Additional names are read from the
|
Vim has a number of color names built-in. Additional names can be defined in
|
||||||
file $VIMRUNTIME/rgb.txt, if present. This file is basically the color
|
|v:colornames|. See |:colorscheme| for details.
|
||||||
database from X. Names used from this file are cached for efficiency.
|
|
||||||
|
|
||||||
|
|
||||||
12. GUI Toolbar Images *haiku-toolbar-images*
|
12. GUI Toolbar Images *haiku-toolbar-images*
|
||||||
|
|||||||
@@ -767,12 +767,12 @@ GNU_TOOLS.ZIP package downloadable from http://www.polarhome.com/vim/
|
|||||||
|
|
||||||
Version 8.2
|
Version 8.2
|
||||||
- make all changes needed for clean compile build of v8.2 on VMS on all platforms
|
- make all changes needed for clean compile build of v8.2 on VMS on all platforms
|
||||||
- fix the call mkdir bug (vicente_polo@yahoo.es)
|
- fix the call mkdir bug (vicente_polo@yahoo.es)
|
||||||
- test on VSI OpenVMS Alpha and Itanium platforms
|
- test on VSI OpenVMS Alpha and Itanium platforms
|
||||||
- added LUA support
|
- added LUA support
|
||||||
- added XPM support - Motif GUI with toolbar on all platforms
|
- added XPM support - Motif GUI with toolbar on all platforms
|
||||||
- XPM v3.4.11 libraries for IA64, AXP and VAX are added
|
- XPM v3.4.11 libraries for IA64, AXP and VAX are added
|
||||||
- start integrating the new test scripts
|
- start integrating the new test scripts
|
||||||
|
|
||||||
Version 8.1
|
Version 8.1
|
||||||
- make necessary changes to build v8.1 on VMS
|
- make necessary changes to build v8.1 on VMS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_win32.txt* For Vim version 8.2. Last change: 2017 Mar 21
|
*os_win32.txt* For Vim version 8.2. Last change: 2021 Apr 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by George Reilly
|
VIM REFERENCE MANUAL by George Reilly
|
||||||
@@ -18,7 +18,8 @@ The 32 bit version also runs on 64 bit MS-Windows systems.
|
|||||||
4. Using the mouse |win32-mouse|
|
4. Using the mouse |win32-mouse|
|
||||||
5. Running under Windows 95 |win32-win95|
|
5. Running under Windows 95 |win32-win95|
|
||||||
6. Running under Windows 3.1 |win32-win3.1|
|
6. Running under Windows 3.1 |win32-win3.1|
|
||||||
7. Win32 mini FAQ |win32-faq|
|
7. Installation package |win32-installer|
|
||||||
|
8. Win32 mini FAQ |win32-faq|
|
||||||
|
|
||||||
Additionally, there are a number of common Win32 and DOS items:
|
Additionally, there are a number of common Win32 and DOS items:
|
||||||
File locations |dos-locations|
|
File locations |dos-locations|
|
||||||
@@ -30,6 +31,7 @@ File formats |dos-file-formats|
|
|||||||
Interrupting |dos-CTRL-Break|
|
Interrupting |dos-CTRL-Break|
|
||||||
Temp files |dos-temp-files|
|
Temp files |dos-temp-files|
|
||||||
Shell option default |dos-shell|
|
Shell option default |dos-shell|
|
||||||
|
PowerShell defaults |dos-powershell|
|
||||||
|
|
||||||
Win32 GUI |gui-w32|
|
Win32 GUI |gui-w32|
|
||||||
|
|
||||||
@@ -83,7 +85,7 @@ executable() returns 1 the executable can actually be executed.
|
|||||||
|
|
||||||
Command line arguments *win32-cmdargs*
|
Command line arguments *win32-cmdargs*
|
||||||
|
|
||||||
Analysis of a command line into parameters is not standardised in MS Windows.
|
Analysis of a command line into parameters is not standardised in MS-Windows.
|
||||||
Vim and gvim used to use different logic to parse it (before 7.4.432), and the
|
Vim and gvim used to use different logic to parse it (before 7.4.432), and the
|
||||||
logic was also depended on what it was compiled with. Now Vim and gvim both
|
logic was also depended on what it was compiled with. Now Vim and gvim both
|
||||||
use the CommandLineToArgvW() Win32 API, so they behave in the same way.
|
use the CommandLineToArgvW() Win32 API, so they behave in the same way.
|
||||||
@@ -174,7 +176,29 @@ There was a special version of gvim that runs under Windows 3.1 and 3.11.
|
|||||||
Support was removed in patch 7.4.1364.
|
Support was removed in patch 7.4.1364.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
7. Win32 mini FAQ *win32-faq*
|
7. Installation package *win32-installer*
|
||||||
|
|
||||||
|
A simple installer for windows is available at http://www.vim.org/download.php
|
||||||
|
(stable version) and nightly builds are also available at
|
||||||
|
https://github.com/vim/vim-win32-installer/releases/
|
||||||
|
|
||||||
|
The nightly builds include 32bit and 64bit builds, have most features enabled
|
||||||
|
and usually also contain an extra cryptographic signed installer, so Windows
|
||||||
|
will not complain.
|
||||||
|
|
||||||
|
To use the installer, simply run the exe file. The following switches are
|
||||||
|
also supported: >
|
||||||
|
|
||||||
|
gvim_<version>.exe /S -> silent install without any dialogues
|
||||||
|
gvim_<version>.exe /D=C:\vim -> Install into directory c:\vim
|
||||||
|
-> /D must be the last argument
|
||||||
|
gvim_<version>.exe /S /D=c:\vim -> silent install into c:\vim
|
||||||
|
<
|
||||||
|
The default installation directory can alternatively be given by setting the
|
||||||
|
$VIM environment variable.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
8. Win32 mini FAQ *win32-faq*
|
||||||
|
|
||||||
Q. How do I change the font?
|
Q. How do I change the font?
|
||||||
A. In the GUI version, you can use the 'guifont' option. Example: >
|
A. In the GUI version, you can use the 'guifont' option. Example: >
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pattern.txt* For Vim version 8.2. Last change: 2021 Jan 08
|
*pattern.txt* For Vim version 8.2. Last change: 2021 Jul 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -19,6 +19,7 @@ explanations are in chapter 27 |usr_27.txt|.
|
|||||||
8. Composing characters |patterns-composing|
|
8. Composing characters |patterns-composing|
|
||||||
9. Compare with Perl patterns |perl-patterns|
|
9. Compare with Perl patterns |perl-patterns|
|
||||||
10. Highlighting matches |match-highlight|
|
10. Highlighting matches |match-highlight|
|
||||||
|
11. Fuzzy matching |fuzzy-match|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Search commands *search-commands*
|
1. Search commands *search-commands*
|
||||||
@@ -229,7 +230,7 @@ This is like executing two search commands after each other, except that:
|
|||||||
*last-pattern*
|
*last-pattern*
|
||||||
The last used pattern and offset are remembered. They can be used to repeat
|
The last used pattern and offset are remembered. They can be used to repeat
|
||||||
the search, possibly in another direction or with another count. Note that
|
the search, possibly in another direction or with another count. Note that
|
||||||
two patterns are remembered: One for 'normal' search commands and one for the
|
two patterns are remembered: One for "normal" search commands and one for the
|
||||||
substitute command ":s". Each time an empty pattern is given, the previously
|
substitute command ":s". Each time an empty pattern is given, the previously
|
||||||
used pattern is used. However, if there is no previous search command, a
|
used pattern is used. However, if there is no previous search command, a
|
||||||
previous substitute pattern is used, if possible.
|
previous substitute pattern is used, if possible.
|
||||||
@@ -928,13 +929,20 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
\%23l Matches in a specific line.
|
\%23l Matches in a specific line.
|
||||||
\%<23l Matches above a specific line (lower line number).
|
\%<23l Matches above a specific line (lower line number).
|
||||||
\%>23l Matches below a specific line (higher line number).
|
\%>23l Matches below a specific line (higher line number).
|
||||||
These three can be used to match specific lines in a buffer. The "23"
|
\%.l Matches at the cursor line.
|
||||||
|
\%<.l Matches above the cursor line.
|
||||||
|
\%>.l Matches below the cursor line.
|
||||||
|
These six can be used to match specific lines in a buffer. The "23"
|
||||||
can be any line number. The first line is 1.
|
can be any line number. The first line is 1.
|
||||||
WARNING: When inserting or deleting lines Vim does not automatically
|
WARNING: When inserting or deleting lines Vim does not automatically
|
||||||
update the matches. This means Syntax highlighting quickly becomes
|
update the matches. This means Syntax highlighting quickly becomes
|
||||||
wrong.
|
wrong. Also when referring to the cursor position (".") and
|
||||||
|
the cursor moves the display isn't updated for this change. An update
|
||||||
|
is done when using the |CTRL-L| command (the whole screen is updated).
|
||||||
Example, to highlight the line where the cursor currently is: >
|
Example, to highlight the line where the cursor currently is: >
|
||||||
:exe '/\%' . line(".") . 'l.*'
|
:exe '/\%' . line(".") . 'l'
|
||||||
|
< Alternatively use: >
|
||||||
|
/\%.l
|
||||||
< When 'hlsearch' is set and you move the cursor around and make changes
|
< When 'hlsearch' is set and you move the cursor around and make changes
|
||||||
this will clearly show when the match is updated or not.
|
this will clearly show when the match is updated or not.
|
||||||
|
|
||||||
@@ -942,15 +950,22 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
\%23c Matches in a specific column.
|
\%23c Matches in a specific column.
|
||||||
\%<23c Matches before a specific column.
|
\%<23c Matches before a specific column.
|
||||||
\%>23c Matches after a specific column.
|
\%>23c Matches after a specific column.
|
||||||
These three can be used to match specific columns in a buffer or
|
\%.c Matches at the cursor column.
|
||||||
string. The "23" can be any column number. The first column is 1.
|
\%<.c Matches before the cursor column.
|
||||||
Actually, the column is the byte number (thus it's not exactly right
|
\%>.c Matches after the cursor column.
|
||||||
for multibyte characters).
|
These six can be used to match specific columns in a buffer or string.
|
||||||
|
The "23" can be any column number. The first column is 1. Actually,
|
||||||
|
the column is the byte number (thus it's not exactly right for
|
||||||
|
multibyte characters).
|
||||||
WARNING: When inserting or deleting text Vim does not automatically
|
WARNING: When inserting or deleting text Vim does not automatically
|
||||||
update the matches. This means Syntax highlighting quickly becomes
|
update the matches. This means Syntax highlighting quickly becomes
|
||||||
wrong.
|
wrong. Also when referring to the cursor position (".") and
|
||||||
|
the cursor moves the display isn't updated for this change. An update
|
||||||
|
is done when using the |CTRL-L| command (the whole screen is updated).
|
||||||
Example, to highlight the column where the cursor currently is: >
|
Example, to highlight the column where the cursor currently is: >
|
||||||
:exe '/\%' . col(".") . 'c'
|
:exe '/\%' . col(".") . 'c'
|
||||||
|
< Alternatively use: >
|
||||||
|
/\%.c
|
||||||
< When 'hlsearch' is set and you move the cursor around and make changes
|
< When 'hlsearch' is set and you move the cursor around and make changes
|
||||||
this will clearly show when the match is updated or not.
|
this will clearly show when the match is updated or not.
|
||||||
Example for matching a single byte in column 44: >
|
Example for matching a single byte in column 44: >
|
||||||
@@ -961,8 +976,11 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
\%23v Matches in a specific virtual column.
|
\%23v Matches in a specific virtual column.
|
||||||
\%<23v Matches before a specific virtual column.
|
\%<23v Matches before a specific virtual column.
|
||||||
\%>23v Matches after a specific virtual column.
|
\%>23v Matches after a specific virtual column.
|
||||||
These three can be used to match specific virtual columns in a buffer
|
\%.v Matches at the current virtual column.
|
||||||
or string. When not matching with a buffer in a window, the option
|
\%<.v Matches before the current virtual column.
|
||||||
|
\%>.v Matches after the current virtual column.
|
||||||
|
These six can be used to match specific virtual columns in a buffer or
|
||||||
|
string. When not matching with a buffer in a window, the option
|
||||||
values of the current window are used (e.g., 'tabstop').
|
values of the current window are used (e.g., 'tabstop').
|
||||||
The "23" can be any column number. The first column is 1.
|
The "23" can be any column number. The first column is 1.
|
||||||
Note that some virtual column positions will never match, because they
|
Note that some virtual column positions will never match, because they
|
||||||
@@ -970,13 +988,18 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
one screen character.
|
one screen character.
|
||||||
WARNING: When inserting or deleting text Vim does not automatically
|
WARNING: When inserting or deleting text Vim does not automatically
|
||||||
update highlighted matches. This means Syntax highlighting quickly
|
update highlighted matches. This means Syntax highlighting quickly
|
||||||
becomes wrong.
|
becomes wrong. Also when referring to the cursor position (".") and
|
||||||
|
the cursor moves the display isn't updated for this change. An update
|
||||||
|
is done when using the |CTRL-L| command (the whole screen is updated).
|
||||||
Example, to highlight all the characters after virtual column 72: >
|
Example, to highlight all the characters after virtual column 72: >
|
||||||
/\%>72v.*
|
/\%>72v.*
|
||||||
< When 'hlsearch' is set and you move the cursor around and make changes
|
< When 'hlsearch' is set and you move the cursor around and make changes
|
||||||
this will clearly show when the match is updated or not.
|
this will clearly show when the match is updated or not.
|
||||||
To match the text up to column 17: >
|
To match the text up to column 17: >
|
||||||
/^.*\%17v
|
/^.*\%17v
|
||||||
|
< To match all characters after the current virtual column (where the
|
||||||
|
cursor is): >
|
||||||
|
/\%>.v.*
|
||||||
< Column 17 is not included, because this is a |/zero-width| match. To
|
< Column 17 is not included, because this is a |/zero-width| match. To
|
||||||
include the column use: >
|
include the column use: >
|
||||||
/^.*\%17v.
|
/^.*\%17v.
|
||||||
@@ -988,7 +1011,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
/.*\%17v
|
/.*\%17v
|
||||||
< Column 17 is highlighted by 'hlsearch' because there is another match
|
< Column 17 is highlighted by 'hlsearch' because there is another match
|
||||||
where ".*" matches zero characters.
|
where ".*" matches zero characters.
|
||||||
<
|
|
||||||
|
|
||||||
Character classes:
|
Character classes:
|
||||||
\i identifier character (see 'isident' option) */\i*
|
\i identifier character (see 'isident' option) */\i*
|
||||||
@@ -1216,7 +1239,7 @@ x A single character, with no special meaning, matches itself
|
|||||||
|
|
||||||
\%d123 Matches the character specified with a decimal number. Must be
|
\%d123 Matches the character specified with a decimal number. Must be
|
||||||
followed by a non-digit.
|
followed by a non-digit.
|
||||||
\%o40 Matches the character specified with an octal number up to 0377.
|
\%o40 Matches the character specified with an octal number up to 0o377.
|
||||||
Numbers below 0o40 must be followed by a non-octal digit or a
|
Numbers below 0o40 must be followed by a non-octal digit or a
|
||||||
non-digit.
|
non-digit.
|
||||||
\%x2a Matches the character specified with up to two hexadecimal characters.
|
\%x2a Matches the character specified with up to two hexadecimal characters.
|
||||||
@@ -1431,5 +1454,39 @@ Finally, these constructs are unique to Perl:
|
|||||||
are suggested to use ":match" for manual matching and
|
are suggested to use ":match" for manual matching and
|
||||||
":2match" for another plugin.
|
":2match" for another plugin.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
11. Fuzzy matching *fuzzy-match*
|
||||||
|
|
||||||
|
Fuzzy matching refers to matching strings using a non-exact search string.
|
||||||
|
Fuzzy matching will match a string, if all the characters in the search string
|
||||||
|
are present anywhere in the string in the same order. Case is ignored. In a
|
||||||
|
matched string, other characters can be present between two consecutive
|
||||||
|
characters in the search string. If the search string has multiple words, then
|
||||||
|
each word is matched separately. So the words in the search string can be
|
||||||
|
present in any order in a string.
|
||||||
|
|
||||||
|
Fuzzy matching assigns a score for each matched string based on the following
|
||||||
|
criteria:
|
||||||
|
- The number of sequentially matching characters.
|
||||||
|
- The number of characters (distance) between two consecutive matching
|
||||||
|
characters.
|
||||||
|
- Matches at the beginning of a word
|
||||||
|
- Matches at a camel case character (e.g. Case in CamelCase)
|
||||||
|
- Matches after a path separator or a hyphen.
|
||||||
|
- The number of unmatched characters in a string.
|
||||||
|
The matching string with the highest score is returned first.
|
||||||
|
|
||||||
|
For example, when you search for the "get pat" string using fuzzy matching, it
|
||||||
|
will match the strings "GetPattern", "PatternGet", "getPattern", "patGetter",
|
||||||
|
"getSomePattern", "MatchpatternGet" etc.
|
||||||
|
|
||||||
|
The functions |matchfuzzy()| and |matchfuzzypos()| can be used to fuzzy search
|
||||||
|
a string in a List of strings. The matchfuzzy() function returns a List of
|
||||||
|
matching strings. The matchfuzzypos() functions returns the List of matches,
|
||||||
|
the matching positions and the fuzzy match scores.
|
||||||
|
|
||||||
|
The "f" flag of `:vimgrep` enables fuzzy matching.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_netrw.txt* For Vim version 8.2. Last change: 2020 Sep 19
|
*pi_netrw.txt* For Vim version 8.2. Last change: 2021 Aug 16
|
||||||
|
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
NETRW REFERENCE MANUAL by Charles E. Campbell
|
NETRW REFERENCE MANUAL by Charles E. Campbell
|
||||||
@@ -54,6 +54,7 @@ Copyright: Copyright (C) 2017 Charles E Campbell *netrw-copyright*
|
|||||||
Browsing With A Horizontally Split Window...........|netrw-o|
|
Browsing With A Horizontally Split Window...........|netrw-o|
|
||||||
Browsing With A New Tab.............................|netrw-t|
|
Browsing With A New Tab.............................|netrw-t|
|
||||||
Browsing With A Vertically Split Window.............|netrw-v|
|
Browsing With A Vertically Split Window.............|netrw-v|
|
||||||
|
Change File Permission..............................|netrw-gp|
|
||||||
Change Listing Style.(thin wide long tree)..........|netrw-i|
|
Change Listing Style.(thin wide long tree)..........|netrw-i|
|
||||||
Changing To A Bookmarked Directory..................|netrw-gb|
|
Changing To A Bookmarked Directory..................|netrw-gb|
|
||||||
Changing To A Predecessor Directory.................|netrw-u|
|
Changing To A Predecessor Directory.................|netrw-u|
|
||||||
@@ -1095,6 +1096,7 @@ QUICK REFERENCE: MAPS *netrw-browse-maps* {{{2
|
|||||||
gf Force treatment as file |netrw-gf|
|
gf Force treatment as file |netrw-gf|
|
||||||
gh Quick hide/unhide of dot-files |netrw-gh|
|
gh Quick hide/unhide of dot-files |netrw-gh|
|
||||||
gn Make top of tree the directory below the cursor |netrw-gn|
|
gn Make top of tree the directory below the cursor |netrw-gn|
|
||||||
|
gp Change local-only file permissions |netrw-gp|
|
||||||
i Cycle between thin, long, wide, and tree listings |netrw-i|
|
i Cycle between thin, long, wide, and tree listings |netrw-i|
|
||||||
I Toggle the displaying of the banner |netrw-I|
|
I Toggle the displaying of the banner |netrw-I|
|
||||||
mb Bookmark current directory |netrw-mb|
|
mb Bookmark current directory |netrw-mb|
|
||||||
@@ -1510,6 +1512,8 @@ Netrw determines which special handler by the following method:
|
|||||||
If g:netrw_browsex_viewer == '-', then netrwFileHandlers#Invoke() will be
|
If g:netrw_browsex_viewer == '-', then netrwFileHandlers#Invoke() will be
|
||||||
used instead (see |netrw_filehandler|).
|
used instead (see |netrw_filehandler|).
|
||||||
|
|
||||||
|
If the viewer you wish to use does not support handling of a remote URL
|
||||||
|
directory, set |g:netrw_browsex_support_remote| to 0.
|
||||||
* for Windows 32 or 64, the URL and FileProtocolHandler dlls are used.
|
* for Windows 32 or 64, the URL and FileProtocolHandler dlls are used.
|
||||||
* for Gnome (with gnome-open): gnome-open is used.
|
* for Gnome (with gnome-open): gnome-open is used.
|
||||||
* for KDE (with kfmclient) : kfmclient is used
|
* for KDE (with kfmclient) : kfmclient is used
|
||||||
@@ -2104,8 +2108,8 @@ the two directories the same, use the "cd" map (type cd). That map will
|
|||||||
set Vim's notion of the current directory to netrw's current browsing
|
set Vim's notion of the current directory to netrw's current browsing
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
|netrw-cd|: This map's name was changed from "c" to cd (see |netrw-cd|).
|
|netrw-cd| : This map's name was changed from "c" to cd (see |netrw-cd|).
|
||||||
This change was done to allow for |netrw-cb| and |netrw-cB| maps.
|
This change was done to allow for |netrw-cb| and |netrw-cB| maps.
|
||||||
|
|
||||||
Associated setting variable: |g:netrw_keepdir|
|
Associated setting variable: |g:netrw_keepdir|
|
||||||
|
|
||||||
@@ -2607,13 +2611,29 @@ your browsing preferences. (see also: |netrw-settings|)
|
|||||||
a script/function to handle the given
|
a script/function to handle the given
|
||||||
extension. (see |netrw_filehandler|).
|
extension. (see |netrw_filehandler|).
|
||||||
|
|
||||||
|
*g:netrw_browsex_support_remote*
|
||||||
|
specify if the specified viewer supports a
|
||||||
|
remote URL. (see |netrw-handler|).
|
||||||
|
|
||||||
*g:netrw_chgperm* Unix/Linux: "chmod PERM FILENAME"
|
*g:netrw_chgperm* Unix/Linux: "chmod PERM FILENAME"
|
||||||
Windows: "cacls FILENAME /e /p PERM"
|
Windows: "cacls FILENAME /e /p PERM"
|
||||||
Used to change access permission for a file.
|
Used to change access permission for a file.
|
||||||
|
|
||||||
|
*g:netrw_clipboard* =1
|
||||||
|
By default, netrw will attempt to insure that
|
||||||
|
the clipboard's values will remain unchanged.
|
||||||
|
However, some users report that they have
|
||||||
|
speed problems with this; consequently, this
|
||||||
|
option, when set to zero, lets such users
|
||||||
|
prevent netrw from saving and restoring the
|
||||||
|
clipboard (the latter is done only as needed).
|
||||||
|
That means that if the clipboard is changed
|
||||||
|
(inadvertently) by normal netrw operation that
|
||||||
|
it will not be restored to its prior state.
|
||||||
|
|
||||||
*g:netrw_compress* ="gzip"
|
*g:netrw_compress* ="gzip"
|
||||||
Will compress marked files with this
|
Will compress marked files with this
|
||||||
command
|
command
|
||||||
|
|
||||||
*g:Netrw_corehandler* Allows one to specify something additional
|
*g:Netrw_corehandler* Allows one to specify something additional
|
||||||
to do when handling <core> files via netrw's
|
to do when handling <core> files via netrw's
|
||||||
@@ -2639,12 +2659,23 @@ your browsing preferences. (see also: |netrw-settings|)
|
|||||||
=2 cul u-cuc cul u-cuc
|
=2 cul u-cuc cul u-cuc
|
||||||
=3 cul u-cuc cul cuc
|
=3 cul u-cuc cul cuc
|
||||||
=4 cul cuc cul cuc
|
=4 cul cuc cul cuc
|
||||||
|
=5 U-cul U-cuc U-cul U-cuc
|
||||||
|
=6 U-cul U-cuc cul U-cuc
|
||||||
|
=7 cul U-cuc cul U-cuc
|
||||||
|
=8 cul U-cuc cul cuc
|
||||||
|
|
||||||
Where
|
Where
|
||||||
u-cul : user's |'cursorline'| setting used
|
u-cul : user's |'cursorline'| initial setting used
|
||||||
u-cuc : user's |'cursorcolumn'| setting used
|
u-cuc : user's |'cursorcolumn'| initial setting used
|
||||||
cul : |'cursorline'| locally set
|
U-cul : user's |'cursorline'| current setting used
|
||||||
cuc : |'cursorcolumn'| locally set
|
U-cuc : user's |'cursorcolumn'| current setting used
|
||||||
|
cul : |'cursorline'| will be locally set
|
||||||
|
cuc : |'cursorcolumn'| will be locally set
|
||||||
|
|
||||||
|
The "initial setting" means the values of
|
||||||
|
the |'cuc'| and |'cul'| settings in effect when
|
||||||
|
netrw last saw |g:netrw_cursor| >= 5 or when
|
||||||
|
netrw was initially run.
|
||||||
|
|
||||||
*g:netrw_decompress* = { ".gz" : "gunzip" ,
|
*g:netrw_decompress* = { ".gz" : "gunzip" ,
|
||||||
".bz2" : "bunzip2" ,
|
".bz2" : "bunzip2" ,
|
||||||
@@ -2654,7 +2685,7 @@ your browsing preferences. (see also: |netrw-settings|)
|
|||||||
decompression programs.
|
decompression programs.
|
||||||
|
|
||||||
*g:netrw_dirhistmax* =10: controls maximum quantity of past
|
*g:netrw_dirhistmax* =10: controls maximum quantity of past
|
||||||
history. May be zero to supppress
|
history. May be zero to suppress
|
||||||
history.
|
history.
|
||||||
(related: |netrw-qb| |netrw-u| |netrw-U|)
|
(related: |netrw-qb| |netrw-u| |netrw-U|)
|
||||||
|
|
||||||
@@ -3142,6 +3173,9 @@ To open a new file in netrw's current directory, press "%". This map
|
|||||||
will query the user for a new filename; an empty file by that name will
|
will query the user for a new filename; an empty file by that name will
|
||||||
be placed in the netrw's current directory (ie. b:netrw_curdir).
|
be placed in the netrw's current directory (ie. b:netrw_curdir).
|
||||||
|
|
||||||
|
If Lexplore (|netrw-:Lexplore|) is in use, the new file will be generated
|
||||||
|
in the |g:netrw_chgwin| window.
|
||||||
|
|
||||||
Related topics: |netrw-d|
|
Related topics: |netrw-d|
|
||||||
|
|
||||||
|
|
||||||
@@ -3877,6 +3911,32 @@ netrw:
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
12. History *netrw-history* {{{1
|
12. History *netrw-history* {{{1
|
||||||
|
|
||||||
|
v171: Oct 09, 2020 * included code in s:NetrwOptionsSafe()
|
||||||
|
to allow |'bh'| to be set to delete when
|
||||||
|
rather than hide when g:netrw_fastbrowse
|
||||||
|
was zero.
|
||||||
|
* Installed |g:netrw_clipboard| setting
|
||||||
|
* Installed option bypass for |'guioptions'|
|
||||||
|
a/A settings
|
||||||
|
* Changed popup_beval() to |popup_atcursor|()
|
||||||
|
in netrw#ErrorMsg (lacygoill). Apparently
|
||||||
|
popup_beval doesn't reliably close the
|
||||||
|
popup when the mouse is moved.
|
||||||
|
* VimEnter() now using win_execute to examine
|
||||||
|
buffers for an attempt to open a directory.
|
||||||
|
Avoids issues with popups/terminal from
|
||||||
|
command line. (lacygoill)
|
||||||
|
Jun 28, 2021 * (zeertzjq) provided a patch for use of
|
||||||
|
xmap,xno instead of vmap,vno in
|
||||||
|
netrwPlugin.vim. Avoids entanglement with
|
||||||
|
select mode.
|
||||||
|
Jul 14, 2021 * Fixed problem addressed by tst976; opening
|
||||||
|
a file using tree mode, going up a
|
||||||
|
directory, and opening a file there was
|
||||||
|
opening the file in the wrong directory.
|
||||||
|
Jul 28, 2021 * (Ingo Karkat) provided a patch fixing an
|
||||||
|
E488 error with netrwPlugin.vim
|
||||||
|
(occurred for vim versions < 8.02)
|
||||||
v170: Mar 11, 2020 * (reported by Reiner Herrmann) netrw+tree
|
v170: Mar 11, 2020 * (reported by Reiner Herrmann) netrw+tree
|
||||||
would not hide with the ^\..* pattern
|
would not hide with the ^\..* pattern
|
||||||
correctly.
|
correctly.
|
||||||
@@ -3893,7 +3953,7 @@ netrw:
|
|||||||
Jun 07, 2020 * (reported by Jo Totland) repeatedly invoking
|
Jun 07, 2020 * (reported by Jo Totland) repeatedly invoking
|
||||||
:Lexplore and quitting it left unused
|
:Lexplore and quitting it left unused
|
||||||
hidden buffers. Netrw will now set netrw
|
hidden buffers. Netrw will now set netrw
|
||||||
buffers created by :Lexplore to |bh|=wipe.
|
buffers created by :Lexplore to |'bh'|=wipe.
|
||||||
v169: Dec 20, 2019 * (reported by amkarthik) that netrw's x
|
v169: Dec 20, 2019 * (reported by amkarthik) that netrw's x
|
||||||
(|netrw-x|) would throw an error when
|
(|netrw-x|) would throw an error when
|
||||||
attempting to open a local directory.
|
attempting to open a local directory.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_zip.txt* For Vim version 8.2. Last change: 2020 Jan 07
|
*pi_zip.txt* For Vim version 8.2. Last change: 2021 Nov 08
|
||||||
|
|
||||||
+====================+
|
+====================+
|
||||||
| Zip File Interface |
|
| Zip File Interface |
|
||||||
@@ -102,6 +102,9 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
|
|||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. History *zip-history* {{{1
|
4. History *zip-history* {{{1
|
||||||
|
v32 Oct 22, 2021 * to avoid an issue with a vim 8.2 patch, zipfile: has
|
||||||
|
been changed to zipfile:// . This often shows up
|
||||||
|
as zipfile:/// with zipped files that are root-based.
|
||||||
v29 Apr 02, 2017 * (Klartext) reported that an encrypted zip file could
|
v29 Apr 02, 2017 * (Klartext) reported that an encrypted zip file could
|
||||||
opened but the swapfile held unencrypted contents.
|
opened but the swapfile held unencrypted contents.
|
||||||
The solution is to edit the contents of a zip file
|
The solution is to edit the contents of a zip file
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*popup.txt* For Vim version 8.2. Last change: 2020 Nov 07
|
*popup.txt* For Vim version 8.2. Last change: 2021 Aug 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -260,6 +260,7 @@ popup_close({id} [, {result}]) *popup_close()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetPopup()->popup_close()
|
GetPopup()->popup_close()
|
||||||
|
|
||||||
|
|
||||||
popup_create({what}, {options}) *popup_create()*
|
popup_create({what}, {options}) *popup_create()*
|
||||||
Open a popup window showing {what}, which is either:
|
Open a popup window showing {what}, which is either:
|
||||||
- a buffer number
|
- a buffer number
|
||||||
@@ -284,6 +285,7 @@ popup_create({what}, {options}) *popup_create()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetText()->popup_create({})
|
GetText()->popup_create({})
|
||||||
|
|
||||||
|
|
||||||
popup_dialog({what}, {options}) *popup_dialog()*
|
popup_dialog({what}, {options}) *popup_dialog()*
|
||||||
Just like |popup_create()| but with these default options: >
|
Just like |popup_create()| but with these default options: >
|
||||||
call popup_create({what}, #{
|
call popup_create({what}, #{
|
||||||
@@ -307,6 +309,7 @@ popup_dialog({what}, {options}) *popup_dialog()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetText()->popup_dialog({})
|
GetText()->popup_dialog({})
|
||||||
|
|
||||||
|
|
||||||
popup_filter_menu({id}, {key}) *popup_filter_menu()*
|
popup_filter_menu({id}, {key}) *popup_filter_menu()*
|
||||||
Filter that can be used for a popup. These keys can be used:
|
Filter that can be used for a popup. These keys can be used:
|
||||||
j <Down> <C-N> select item below
|
j <Down> <C-N> select item below
|
||||||
@@ -386,6 +389,7 @@ popup_getoptions({id}) *popup_getoptions()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetPopup()->popup_getoptions()
|
GetPopup()->popup_getoptions()
|
||||||
|
|
||||||
|
|
||||||
popup_getpos({id}) *popup_getpos()*
|
popup_getpos({id}) *popup_getpos()*
|
||||||
Return the position and size of popup {id}. Returns a Dict
|
Return the position and size of popup {id}. Returns a Dict
|
||||||
with these entries:
|
with these entries:
|
||||||
@@ -414,6 +418,7 @@ popup_getpos({id}) *popup_getpos()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetPopup()->popup_getpos()
|
GetPopup()->popup_getpos()
|
||||||
|
|
||||||
|
|
||||||
popup_hide({id}) *popup_hide()*
|
popup_hide({id}) *popup_hide()*
|
||||||
If {id} is a displayed popup, hide it now. If the popup has a
|
If {id} is a displayed popup, hide it now. If the popup has a
|
||||||
filter it will not be invoked for so long as the popup is
|
filter it will not be invoked for so long as the popup is
|
||||||
@@ -425,6 +430,7 @@ popup_hide({id}) *popup_hide()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetPopup()->popup_hide()
|
GetPopup()->popup_hide()
|
||||||
|
|
||||||
|
|
||||||
popup_list() *popup_list()*
|
popup_list() *popup_list()*
|
||||||
Return a List with the |window-ID| of all existing popups.
|
Return a List with the |window-ID| of all existing popups.
|
||||||
|
|
||||||
@@ -468,6 +474,7 @@ popup_menu({what}, {options}) *popup_menu()*
|
|||||||
< Can also be used as a |method|: >
|
< Can also be used as a |method|: >
|
||||||
GetChoices()->popup_menu({})
|
GetChoices()->popup_menu({})
|
||||||
|
|
||||||
|
|
||||||
popup_move({id}, {options}) *popup_move()*
|
popup_move({id}, {options}) *popup_move()*
|
||||||
Move popup {id} to the position specified with {options}.
|
Move popup {id} to the position specified with {options}.
|
||||||
{options} may contain the items from |popup_create()| that
|
{options} may contain the items from |popup_create()| that
|
||||||
@@ -486,6 +493,7 @@ popup_move({id}, {options}) *popup_move()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetPopup()->popup_move(options)
|
GetPopup()->popup_move(options)
|
||||||
|
|
||||||
|
|
||||||
popup_notification({what}, {options}) *popup_notification()*
|
popup_notification({what}, {options}) *popup_notification()*
|
||||||
Show the {what} for 3 seconds at the top of the Vim window.
|
Show the {what} for 3 seconds at the top of the Vim window.
|
||||||
This works like: >
|
This works like: >
|
||||||
@@ -515,12 +523,6 @@ popup_notification({what}, {options}) *popup_notification()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetText()->popup_notification({})
|
GetText()->popup_notification({})
|
||||||
|
|
||||||
popup_show({id}) *popup_show()*
|
|
||||||
If {id} is a hidden popup, show it now.
|
|
||||||
For {id} see `popup_hide()`.
|
|
||||||
If {id} is the info popup it will be positioned next to the
|
|
||||||
current popup menu item.
|
|
||||||
|
|
||||||
|
|
||||||
popup_setoptions({id}, {options}) *popup_setoptions()*
|
popup_setoptions({id}, {options}) *popup_setoptions()*
|
||||||
Override options in popup {id} with entries in {options}.
|
Override options in popup {id} with entries in {options}.
|
||||||
@@ -557,6 +559,7 @@ popup_setoptions({id}, {options}) *popup_setoptions()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetPopup()->popup_setoptions(options)
|
GetPopup()->popup_setoptions(options)
|
||||||
|
|
||||||
|
|
||||||
popup_settext({id}, {text}) *popup_settext()*
|
popup_settext({id}, {text}) *popup_settext()*
|
||||||
Set the text of the buffer in popup win {id}. {text} is the
|
Set the text of the buffer in popup win {id}. {text} is the
|
||||||
same as supplied to |popup_create()|, except that a buffer
|
same as supplied to |popup_create()|, except that a buffer
|
||||||
@@ -567,6 +570,14 @@ popup_settext({id}, {text}) *popup_settext()*
|
|||||||
Can also be used as a |method|: >
|
Can also be used as a |method|: >
|
||||||
GetPopup()->popup_settext('hello')
|
GetPopup()->popup_settext('hello')
|
||||||
|
|
||||||
|
|
||||||
|
popup_show({id}) *popup_show()*
|
||||||
|
If {id} is a hidden popup, show it now.
|
||||||
|
For {id} see `popup_hide()`.
|
||||||
|
If {id} is the info popup it will be positioned next to the
|
||||||
|
current popup menu item.
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Usage *popup-usage*
|
3. Usage *popup-usage*
|
||||||
|
|
||||||
@@ -620,7 +631,8 @@ The second argument of |popup_create()| is a dictionary with options:
|
|||||||
property moves. Use an empty string to remove. See
|
property moves. Use an empty string to remove. See
|
||||||
|popup-textprop-pos|.
|
|popup-textprop-pos|.
|
||||||
textpropwin What window to search for the text property. When
|
textpropwin What window to search for the text property. When
|
||||||
omitted or invalid the current window is used.
|
omitted or invalid the current window is used. Used
|
||||||
|
when "textprop" is present.
|
||||||
textpropid Used to identify the text property when "textprop" is
|
textpropid Used to identify the text property when "textprop" is
|
||||||
present. Use zero to reset.
|
present. Use zero to reset.
|
||||||
fixed When FALSE (the default), and:
|
fixed When FALSE (the default), and:
|
||||||
@@ -692,8 +704,8 @@ The second argument of |popup_create()| is a dictionary with options:
|
|||||||
the left.
|
the left.
|
||||||
border List with numbers, defining the border thickness
|
border List with numbers, defining the border thickness
|
||||||
above/right/below/left of the popup (similar to CSS).
|
above/right/below/left of the popup (similar to CSS).
|
||||||
Only values of zero and non-zero are recognized.
|
Only values of zero and non-zero are currently
|
||||||
An empty list uses a border all around.
|
recognized. An empty list uses a border all around.
|
||||||
borderhighlight List of highlight group names to use for the border.
|
borderhighlight List of highlight group names to use for the border.
|
||||||
When one entry it is used for all borders, otherwise
|
When one entry it is used for all borders, otherwise
|
||||||
the highlight for the top/right/bottom/left border.
|
the highlight for the top/right/bottom/left border.
|
||||||
@@ -741,10 +753,10 @@ The second argument of |popup_create()| is a dictionary with options:
|
|||||||
line or to another window.
|
line or to another window.
|
||||||
mousemoved Like "moved" but referring to the mouse pointer
|
mousemoved Like "moved" but referring to the mouse pointer
|
||||||
position
|
position
|
||||||
cursorline non-zero: Highlight the cursor line. Also scrolls the
|
cursorline TRUE: Highlight the cursor line. Also scrolls the
|
||||||
text to show this line (only works properly
|
text to show this line (only works properly
|
||||||
when 'wrap' is off).
|
when 'wrap' is off).
|
||||||
zero: Do not highlight the cursor line.
|
zero: Do not highlight the cursor line.
|
||||||
Default is zero, except for |popup_menu()|.
|
Default is zero, except for |popup_menu()|.
|
||||||
filter A callback that can filter typed characters, see
|
filter A callback that can filter typed characters, see
|
||||||
|popup-filter|.
|
|popup-filter|.
|
||||||
@@ -903,6 +915,8 @@ Some recommended key actions:
|
|||||||
cursor keys select another entry
|
cursor keys select another entry
|
||||||
Tab accept current suggestion
|
Tab accept current suggestion
|
||||||
|
|
||||||
|
When CTRL-C is pressed the popup is closed, the filter will not be invoked.
|
||||||
|
|
||||||
A mouse click arrives as <LeftMouse>. The coordinates can be obtained with
|
A mouse click arrives as <LeftMouse>. The coordinates can be obtained with
|
||||||
|getmousepos()|.
|
|getmousepos()|.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*print.txt* For Vim version 8.2. Last change: 2020 Aug 15
|
*print.txt* For Vim version 8.2. Last change: 2021 Oct 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -717,7 +717,7 @@ There are a couple of points to bear in mind:
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
8. Formfeed Characters *printing-formfeed*
|
8. Formfeed Characters *printing-formfeed*
|
||||||
|
|
||||||
By default Vim does not do any special processing of |formfeed| control
|
By default Vim does not do any special processing of formfeed control
|
||||||
characters. Setting the 'printoptions' formfeed item will make Vim recognize
|
characters. Setting the 'printoptions' formfeed item will make Vim recognize
|
||||||
formfeed characters and continue printing the current line at the beginning
|
formfeed characters and continue printing the current line at the beginning
|
||||||
of the first line on a new page. The use of formfeed characters provides
|
of the first line on a new page. The use of formfeed characters provides
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*quickfix.txt* For Vim version 8.2. Last change: 2020 May 31
|
*quickfix.txt* For Vim version 8.2. Last change: 2021 May 22
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -1008,13 +1008,11 @@ commands can be combined to create a NewGrep command: >
|
|||||||
5.1 using Vim's internal grep
|
5.1 using Vim's internal grep
|
||||||
|
|
||||||
*:vim* *:vimgrep* *E682* *E683*
|
*:vim* *:vimgrep* *E682* *E683*
|
||||||
:vim[grep][!] /{pattern}/[g][j] {file} ...
|
:vim[grep][!] /{pattern}/[g][j][f] {file} ...
|
||||||
Search for {pattern} in the files {file} ... and set
|
Search for {pattern} in the files {file} ... and set
|
||||||
the error list to the matches. Files matching
|
the error list to the matches. Files matching
|
||||||
'wildignore' are ignored; files in 'suffixes' are
|
'wildignore' are ignored; files in 'suffixes' are
|
||||||
searched last.
|
searched last.
|
||||||
Without the 'g' flag each line is added only once.
|
|
||||||
With 'g' every match is added.
|
|
||||||
|
|
||||||
{pattern} is a Vim search pattern. Instead of
|
{pattern} is a Vim search pattern. Instead of
|
||||||
enclosing it in / any non-ID character (see
|
enclosing it in / any non-ID character (see
|
||||||
@@ -1025,6 +1023,28 @@ commands can be combined to create a NewGrep command: >
|
|||||||
'smartcase' is not used.
|
'smartcase' is not used.
|
||||||
If {pattern} is empty (e.g. // is specified), the last
|
If {pattern} is empty (e.g. // is specified), the last
|
||||||
used search pattern is used. |last-pattern|
|
used search pattern is used. |last-pattern|
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
'g' Without the 'g' flag each line is added only
|
||||||
|
once. With 'g' every match is added.
|
||||||
|
|
||||||
|
'j' Without the 'j' flag Vim jumps to the first
|
||||||
|
match. With 'j' only the quickfix list is
|
||||||
|
updated. With the [!] any changes in the current
|
||||||
|
buffer are abandoned.
|
||||||
|
|
||||||
|
'f' When the 'f' flag is specified, fuzzy string
|
||||||
|
matching is used to find matching lines. In this
|
||||||
|
case, {pattern} is treated as a literal string
|
||||||
|
instead of a regular expression. See
|
||||||
|
|fuzzy-match| for more information about fuzzy
|
||||||
|
matching strings.
|
||||||
|
|
||||||
|
|QuickFixCmdPre| and |QuickFixCmdPost| are triggered.
|
||||||
|
A file that is opened for matching may use a buffer
|
||||||
|
number, but it is reused if possible to avoid
|
||||||
|
consuming buffer numbers.
|
||||||
|
|
||||||
:{count}vim[grep] ...
|
:{count}vim[grep] ...
|
||||||
When a number is put before the command this is used
|
When a number is put before the command this is used
|
||||||
as the maximum number of matches to find. Use
|
as the maximum number of matches to find. Use
|
||||||
@@ -1032,11 +1052,6 @@ commands can be combined to create a NewGrep command: >
|
|||||||
Useful if you only want to check if there is a match
|
Useful if you only want to check if there is a match
|
||||||
and quit quickly when it's found.
|
and quit quickly when it's found.
|
||||||
|
|
||||||
Without the 'j' flag Vim jumps to the first match.
|
|
||||||
With 'j' only the quickfix list is updated.
|
|
||||||
With the [!] any changes in the current buffer are
|
|
||||||
abandoned.
|
|
||||||
|
|
||||||
Every second or so the searched file name is displayed
|
Every second or so the searched file name is displayed
|
||||||
to give you an idea of the progress made.
|
to give you an idea of the progress made.
|
||||||
Examples: >
|
Examples: >
|
||||||
@@ -1053,20 +1068,20 @@ commands can be combined to create a NewGrep command: >
|
|||||||
:vimgrep Error *.c
|
:vimgrep Error *.c
|
||||||
<
|
<
|
||||||
*:lv* *:lvimgrep*
|
*:lv* *:lvimgrep*
|
||||||
:lv[imgrep][!] /{pattern}/[g][j] {file} ...
|
:lv[imgrep][!] /{pattern}/[g][j][f] {file} ...
|
||||||
:lv[imgrep][!] {pattern} {file} ...
|
:lv[imgrep][!] {pattern} {file} ...
|
||||||
Same as ":vimgrep", except the location list for the
|
Same as ":vimgrep", except the location list for the
|
||||||
current window is used instead of the quickfix list.
|
current window is used instead of the quickfix list.
|
||||||
|
|
||||||
*:vimgrepa* *:vimgrepadd*
|
*:vimgrepa* *:vimgrepadd*
|
||||||
:vimgrepa[dd][!] /{pattern}/[g][j] {file} ...
|
:vimgrepa[dd][!] /{pattern}/[g][j][f] {file} ...
|
||||||
:vimgrepa[dd][!] {pattern} {file} ...
|
:vimgrepa[dd][!] {pattern} {file} ...
|
||||||
Just like ":vimgrep", but instead of making a new list
|
Just like ":vimgrep", but instead of making a new list
|
||||||
of errors the matches are appended to the current
|
of errors the matches are appended to the current
|
||||||
list.
|
list.
|
||||||
|
|
||||||
*:lvimgrepa* *:lvimgrepadd*
|
*:lvimgrepa* *:lvimgrepadd*
|
||||||
:lvimgrepa[dd][!] /{pattern}/[g][j] {file} ...
|
:lvimgrepa[dd][!] /{pattern}/[g][j][f] {file} ...
|
||||||
:lvimgrepa[dd][!] {pattern} {file} ...
|
:lvimgrepa[dd][!] {pattern} {file} ...
|
||||||
Same as ":vimgrepadd", except the location list for
|
Same as ":vimgrepadd", except the location list for
|
||||||
the current window is used instead of the quickfix
|
the current window is used instead of the quickfix
|
||||||
@@ -1371,7 +1386,8 @@ Basic items
|
|||||||
%o module name (finds a string)
|
%o module name (finds a string)
|
||||||
%l line number (finds a number)
|
%l line number (finds a number)
|
||||||
%c column number (finds a number representing character
|
%c column number (finds a number representing character
|
||||||
column of the error, (1 <tab> == 1 character column))
|
column of the error, byte index, a <tab> is 1
|
||||||
|
character column)
|
||||||
%v virtual column number (finds a number representing
|
%v virtual column number (finds a number representing
|
||||||
screen column of the error (1 <tab> == 8 screen
|
screen column of the error (1 <tab> == 8 screen
|
||||||
columns))
|
columns))
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user