mirror of
https://github.com/zoriya/vim.git
synced 2025-12-13 02:36:16 +00:00
Compare commits
543 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10561fe0a3 | ||
|
|
2abad54ced | ||
|
|
2f01889055 | ||
|
|
00e4556338 | ||
|
|
b1c9198afb | ||
|
|
03998f606a | ||
|
|
7c63fbc46e | ||
|
|
0b39464f69 | ||
|
|
4d6cd291ce | ||
|
|
825ccf4039 | ||
|
|
d4a8c98ef6 | ||
|
|
259f26ac2d | ||
|
|
78ddc06bdd | ||
|
|
8776889b5b | ||
|
|
0b565e5da5 | ||
|
|
1af6a4b891 | ||
|
|
027df2a7d9 | ||
|
|
9cfc7d885c | ||
|
|
eb3dc87f01 | ||
|
|
620020eb1d | ||
|
|
5e3423d192 | ||
|
|
25782a7ff4 | ||
|
|
2290b1f8aa | ||
|
|
518bc174ed | ||
|
|
889fe2c2b9 | ||
|
|
137374fd65 | ||
|
|
8b62e31003 | ||
|
|
05c4a471d2 | ||
|
|
12365ce49f | ||
|
|
e65fffd9b4 | ||
|
|
b2ed680ba7 | ||
|
|
7db25fed5d | ||
|
|
52ecaaa63d | ||
|
|
dd1d7be4e6 | ||
|
|
73dd1bd54e | ||
|
|
54c6bafa16 | ||
|
|
ee62f9fa74 | ||
|
|
2bc799579d | ||
|
|
cd8fb449d6 | ||
|
|
8c3169c58e | ||
|
|
3f1a53c434 | ||
|
|
b0f42ba60d | ||
|
|
ff3be4fe1e | ||
|
|
0cb8ac71ae | ||
|
|
a10ae5e323 | ||
|
|
38623c8512 | ||
|
|
7a2b0e55e9 | ||
|
|
72cf47a279 | ||
|
|
56bc8e299c | ||
|
|
b946482190 | ||
|
|
9289df5ca9 | ||
|
|
69e056915c | ||
|
|
39de952577 | ||
|
|
18cebf4417 | ||
|
|
655a82a8d3 | ||
|
|
9b50f36e40 | ||
|
|
402c83921e | ||
|
|
f25329cb94 | ||
|
|
778df2a3cb | ||
|
|
85eee130f4 | ||
|
|
7ce551f317 | ||
|
|
5aa9896b2e | ||
|
|
6eddadff13 | ||
|
|
231a2db1b3 | ||
|
|
b0b98d5230 | ||
|
|
b833c1ef7b | ||
|
|
248be5c5de | ||
|
|
c3e81694fc | ||
|
|
9894e394b2 | ||
|
|
c136af29c0 | ||
|
|
606cb8b08e | ||
|
|
dddab90d22 | ||
|
|
e2c8d83926 | ||
|
|
b2ac14c0b5 | ||
|
|
8a938af6dd | ||
|
|
bc7845da93 | ||
|
|
c5cd88554f | ||
|
|
d76ce85266 | ||
|
|
a796d46f29 | ||
|
|
15142e27aa | ||
|
|
77bfd756a0 | ||
|
|
35e802e713 | ||
|
|
b07bbb0d29 | ||
|
|
60a68362aa | ||
|
|
0e9d1ae321 | ||
|
|
850d427f07 | ||
|
|
13d3b05ed2 | ||
|
|
c36651b4b9 | ||
|
|
29ce409bfc | ||
|
|
50182fa84e | ||
|
|
65a5464985 | ||
|
|
9b25af3620 | ||
|
|
451fc7b954 | ||
|
|
9d34d90210 | ||
|
|
c3c3e69896 | ||
|
|
db0eedec16 | ||
|
|
856905bd83 | ||
|
|
46a53dfc29 | ||
|
|
b255b90503 | ||
|
|
4e9d443a25 | ||
|
|
4994373c5d | ||
|
|
09d1d51df5 | ||
|
|
24a2d7264f | ||
|
|
b691de05f6 | ||
|
|
73658317ba | ||
|
|
f1f2f837bc | ||
|
|
2225ebb486 | ||
|
|
1c17ffa461 | ||
|
|
a2aa8a2b22 | ||
|
|
4e601e3c82 | ||
|
|
3b9474b4ad | ||
|
|
6537c421bb | ||
|
|
a4baf5b325 | ||
|
|
ebe74b7367 | ||
|
|
a69b39511d | ||
|
|
2060892028 | ||
|
|
9980b37a80 | ||
|
|
6d150f783d | ||
|
|
e1fc51558d | ||
|
|
259a90f7ce | ||
|
|
405dadb63e | ||
|
|
7dda86f2ff | ||
|
|
6176697203 | ||
|
|
5d69da462f | ||
|
|
02e802b2da | ||
|
|
226400830b | ||
|
|
285e335869 | ||
|
|
f98a39ca57 | ||
|
|
bad0ce7b26 | ||
|
|
a997b45c7e | ||
|
|
e87edf3b85 | ||
|
|
561f8a5a46 | ||
|
|
ea3ece405a | ||
|
|
1feab2b9cc | ||
|
|
353eeeaca2 | ||
|
|
df2c774ded | ||
|
|
32c67ba733 | ||
|
|
06965b838f | ||
|
|
f3a411783c | ||
|
|
498c2562e1 | ||
|
|
a7eef3d87f | ||
|
|
802bfb1463 | ||
|
|
e1a32310d5 | ||
|
|
6c672194cd | ||
|
|
3cba73423e | ||
|
|
ac3e830065 | ||
|
|
8c94a54905 | ||
|
|
6e72cd0d72 | ||
|
|
b3623a382a | ||
|
|
8c041b6b95 | ||
|
|
a42d363bac | ||
|
|
2a43230ce3 | ||
|
|
2e324950b8 | ||
|
|
78a16b0f2a | ||
|
|
98da6ecab9 | ||
|
|
b59118d501 | ||
|
|
5bab555c2f | ||
|
|
b8e22a053b | ||
|
|
527dec3f94 | ||
|
|
ee5b94a8ec | ||
|
|
cccd62d435 | ||
|
|
56f9955044 | ||
|
|
9ce4213b03 | ||
|
|
1ed00330bc | ||
|
|
769e9d21ac | ||
|
|
d60e0a1d20 | ||
|
|
6995c0a7a9 | ||
|
|
b377457e69 | ||
|
|
1acdb3f301 | ||
|
|
3a21d9c7bb | ||
|
|
164268d4cf | ||
|
|
8dd1761e69 | ||
|
|
29f9ed20b4 | ||
|
|
6f4700233f | ||
|
|
d6b4f2dd76 | ||
|
|
d088240b96 | ||
|
|
f59c6e8cee | ||
|
|
07b46af645 | ||
|
|
0424958bde | ||
|
|
8c87a2b1fe | ||
|
|
e80757c154 | ||
|
|
756ef113d1 | ||
|
|
672afb9f66 | ||
|
|
e333e79f9b | ||
|
|
ea39176baa | ||
|
|
4ac2e8d8e6 | ||
|
|
8200829141 | ||
|
|
77557a7ae6 | ||
|
|
4791015e6f | ||
|
|
72532d354e | ||
|
|
22efba47de | ||
|
|
b6ed74fef8 | ||
|
|
e1bb879f49 | ||
|
|
c4b533e1e9 | ||
|
|
3680bab7e7 | ||
|
|
51ad4eaa22 | ||
|
|
d5359b24ce | ||
|
|
9a993e3c09 | ||
|
|
3aa67fb453 | ||
|
|
86676c949f | ||
|
|
4a69634b1b | ||
|
|
878c96d5b9 | ||
|
|
333b80acf3 | ||
|
|
1f8495cf48 | ||
|
|
79cf7c0d45 | ||
|
|
9af9778209 | ||
|
|
8b31a6ff7a | ||
|
|
25a6e8a769 | ||
|
|
f3ba14ffd3 | ||
|
|
ab943431d8 | ||
|
|
7b24ce08fe | ||
|
|
1834d37396 | ||
|
|
f06b0b6c8f | ||
|
|
0751f51a5b | ||
|
|
0c72fe4ed8 | ||
|
|
cd43effeca | ||
|
|
1b2f61e732 | ||
|
|
2a77d21f78 | ||
|
|
4368d5ce8a | ||
|
|
086eb87695 | ||
|
|
cf67a509e9 | ||
|
|
2de50f8762 | ||
|
|
15a1c3fdc1 | ||
|
|
8fbaeb195d | ||
|
|
65873846e0 | ||
|
|
b5b49a3b43 | ||
|
|
e7499ddc33 | ||
|
|
897e63c4c0 | ||
|
|
45d2a64f96 | ||
|
|
16d7eced1a | ||
|
|
75b0a888e4 | ||
|
|
8c64a36e40 | ||
|
|
47015b80a0 | ||
|
|
948a796bfe | ||
|
|
295ac5ab5e | ||
|
|
62b7f6a139 | ||
|
|
0bd052ba12 | ||
|
|
7735dafb58 | ||
|
|
b571c63d48 | ||
|
|
29dfa5af3c | ||
|
|
5a3a49ed59 | ||
|
|
3e8d385347 | ||
|
|
6ed86ad170 | ||
|
|
6185903e3d | ||
|
|
e26e0d2b83 | ||
|
|
81c3c89a28 | ||
|
|
ecadf4377f | ||
|
|
42f652f733 | ||
|
|
f05fa37822 | ||
|
|
52acb110ac | ||
|
|
98ef233e14 | ||
|
|
9ef2a30e6f | ||
|
|
a2150ac016 | ||
|
|
1dd98334d6 | ||
|
|
af23bad0fd | ||
|
|
4ac31eeff0 | ||
|
|
135682517b | ||
|
|
43cb626214 | ||
|
|
62dd452d02 | ||
|
|
228de1dfd2 | ||
|
|
012eb66293 | ||
|
|
a903472cfa | ||
|
|
f118d4847e | ||
|
|
625f0c1eb7 | ||
|
|
ff1e879577 | ||
|
|
f708ac592f | ||
|
|
3e4b84d0b5 | ||
|
|
c48369c3fc | ||
|
|
e87303af32 | ||
|
|
b852c3e64d | ||
|
|
12a96de430 | ||
|
|
435acdb88c | ||
|
|
25cdd9c33b | ||
|
|
b5b7562475 | ||
|
|
4d8bac8bf5 | ||
|
|
20586cb4f4 | ||
|
|
1a84024037 | ||
|
|
d7db27bafd | ||
|
|
52f18a112a | ||
|
|
3324d0a864 | ||
|
|
201dc67db5 | ||
|
|
ebf142a1ed | ||
|
|
f536bf6d45 | ||
|
|
fc6f16b57c | ||
|
|
157d813be4 | ||
|
|
3b3a9a5609 | ||
|
|
946acdac5b | ||
|
|
df0d24b627 | ||
|
|
69f5a3011d | ||
|
|
e780848150 | ||
|
|
16896a1019 | ||
|
|
63e82db6fc | ||
|
|
987723e084 | ||
|
|
89894aa671 | ||
|
|
362dc33835 | ||
|
|
40d77b0ec1 | ||
|
|
29a2c08d79 | ||
|
|
28ada699c1 | ||
|
|
24fe475894 | ||
|
|
6e35a11490 | ||
|
|
8a3bb56230 | ||
|
|
107279c17b | ||
|
|
f2bd8ef2b4 | ||
|
|
3f54fd319f | ||
|
|
71137fed4d | ||
|
|
069dafc1de | ||
|
|
3767b61ad9 | ||
|
|
658a154cbf | ||
|
|
aef8c3da2b | ||
|
|
c71807db9c | ||
|
|
590ec878a5 | ||
|
|
77780b66f4 | ||
|
|
0726870326 | ||
|
|
5f73ef8d20 | ||
|
|
8195247054 | ||
|
|
988615f26f | ||
|
|
792f0e3659 | ||
|
|
5d7ead3bc8 | ||
|
|
3ad8772ef0 | ||
|
|
75542ec9f6 | ||
|
|
9c474b2773 | ||
|
|
c8bcfe7efd | ||
|
|
8226ac6b59 | ||
|
|
22f1d0e35e | ||
|
|
d4fc577e60 | ||
|
|
33ef5bb0e4 | ||
|
|
9271d058c9 | ||
|
|
36f923014a | ||
|
|
2b10bcbfc1 | ||
|
|
6bb2cdfe60 | ||
|
|
bb008dd323 | ||
|
|
085346f5a1 | ||
|
|
791010e648 | ||
|
|
6acadda8d6 | ||
|
|
b7ea7cb8e4 | ||
|
|
674e482d13 | ||
|
|
cc0f2be880 | ||
|
|
cafafb381a | ||
|
|
19eb6658ec | ||
|
|
3049418f3d | ||
|
|
81226e0310 | ||
|
|
3cc9f7440d | ||
|
|
da65058a9c | ||
|
|
7a76092a51 | ||
|
|
9c8816bd30 | ||
|
|
d96ff16511 | ||
|
|
4287ed33dd | ||
|
|
73cddfd559 | ||
|
|
181ca99e16 | ||
|
|
341a64c9ca | ||
|
|
2be5733152 | ||
|
|
bc197195b0 | ||
|
|
b3292fa2d3 | ||
|
|
ab5e7c3deb | ||
|
|
07ad816525 | ||
|
|
4867974137 | ||
|
|
e4db7aedab | ||
|
|
3198870137 | ||
|
|
b48e96f61c | ||
|
|
294959528e | ||
|
|
5a656864a0 | ||
|
|
bfbea567d8 | ||
|
|
c19e1d1ba5 | ||
|
|
c6f9f739d3 | ||
|
|
c33ecb2915 | ||
|
|
cdd09aa51a | ||
|
|
71a43c0137 | ||
|
|
a0221df149 | ||
|
|
0549a1e184 | ||
|
|
4b7e7bed6c | ||
|
|
a7e18d237f | ||
|
|
4f50588ba3 | ||
|
|
d23a823669 | ||
|
|
42443c7d7f | ||
|
|
5a09343719 | ||
|
|
9b56a57cda | ||
|
|
b301f6b950 | ||
|
|
a8f04aa275 | ||
|
|
2993ac5fce | ||
|
|
7254067ee9 | ||
|
|
5459129af2 | ||
|
|
0d20737732 | ||
|
|
8846ac5aed | ||
|
|
82846a00ac | ||
|
|
9e33efd152 | ||
|
|
a15ef4588c | ||
|
|
9d32276b52 | ||
|
|
02ae9b4a93 | ||
|
|
1567558b20 | ||
|
|
0562532c2e | ||
|
|
bc0e9adae9 | ||
|
|
dff72ba445 | ||
|
|
d317b38a4d | ||
|
|
acda04f5c6 | ||
|
|
f12519dec8 | ||
|
|
dd08b6a32b | ||
|
|
511ffdd65d | ||
|
|
5d4247402b | ||
|
|
28944fecff | ||
|
|
2c7b906afb | ||
|
|
2374faae11 | ||
|
|
191f18bad0 | ||
|
|
fef4ddd5eb | ||
|
|
06b77ef69f | ||
|
|
4bc0bed536 | ||
|
|
8a37b03289 | ||
|
|
ec48a9c589 | ||
|
|
f4aba797cb | ||
|
|
15833239a4 | ||
|
|
b5cb65ba2b | ||
|
|
b7407d3fc9 | ||
|
|
ddb349369d | ||
|
|
8fd2ffc530 | ||
|
|
8dce6c54c8 | ||
|
|
4bfa8af141 | ||
|
|
42b23fad1d | ||
|
|
218101442e | ||
|
|
d4a282f7a5 | ||
|
|
94073167e3 | ||
|
|
1dd45fb4f3 | ||
|
|
a338adcf22 | ||
|
|
37badc898b | ||
|
|
cada78975e | ||
|
|
6f361c9912 | ||
|
|
153b704e20 | ||
|
|
ec0557f08b | ||
|
|
059fd01021 | ||
|
|
a172b63ab8 | ||
|
|
ce46d934af | ||
|
|
b50773c6df | ||
|
|
1274d33493 | ||
|
|
0479e910c4 | ||
|
|
d6d304298a | ||
|
|
40962ec9c0 | ||
|
|
84b242c369 | ||
|
|
501383236d | ||
|
|
d7823d5b7c | ||
|
|
95dbcbea6d | ||
|
|
2ec364e94d | ||
|
|
0cbcd949e1 | ||
|
|
4aad53c369 | ||
|
|
ede35bbbd0 | ||
|
|
200ea8ffaa | ||
|
|
de04654ddc | ||
|
|
9e3dfc6501 | ||
|
|
2095148277 | ||
|
|
df980db69b | ||
|
|
a47ebdbd22 | ||
|
|
fabaf753e2 | ||
|
|
45a0000d5c | ||
|
|
e6640ad44e | ||
|
|
3c09722600 | ||
|
|
b73fa629d6 | ||
|
|
ae6f865125 | ||
|
|
1bd999f982 | ||
|
|
8ada6aa929 | ||
|
|
4ce46c2a6b | ||
|
|
14a4deb064 | ||
|
|
aaf6e43b7a | ||
|
|
1223744849 | ||
|
|
2efb323e87 | ||
|
|
338e47fdfd | ||
|
|
132f75255e | ||
|
|
a0ca7d002d | ||
|
|
4af031dbc8 | ||
|
|
b254af312d | ||
|
|
c9e649ae81 | ||
|
|
606d45ccd8 | ||
|
|
4fb921e388 | ||
|
|
9bca805ec4 | ||
|
|
cb89c98c26 | ||
|
|
f0b03c4e98 | ||
|
|
8ee2d36e21 | ||
|
|
ee219b0e9f | ||
|
|
9e1d399e63 | ||
|
|
890dd05492 | ||
|
|
a1d5c154db | ||
|
|
200d0e36bc | ||
|
|
7e1652c63c | ||
|
|
6621605eb9 | ||
|
|
8b42328cef | ||
|
|
b29d328eb4 | ||
|
|
4697399e8c | ||
|
|
7f88b65f6c | ||
|
|
a6d4849c71 | ||
|
|
fae8ed1fc8 | ||
|
|
a703aaee4d | ||
|
|
8e6a31df81 | ||
|
|
59eb016dff | ||
|
|
74240d3feb | ||
|
|
35c5e8155d | ||
|
|
f405c8fe85 | ||
|
|
620ca2da37 | ||
|
|
05684310a5 | ||
|
|
e4b78e2a42 | ||
|
|
3388d33457 | ||
|
|
6e65d594aa | ||
|
|
23c1b2b018 | ||
|
|
415a6939a4 | ||
|
|
5fe6bdf858 | ||
|
|
3767c6e9ee | ||
|
|
ac112f01a6 | ||
|
|
feeb4d0901 | ||
|
|
1eca6f13d6 | ||
|
|
92467d3351 | ||
|
|
ce6179c799 | ||
|
|
461fe50fea | ||
|
|
1ad022a9b8 | ||
|
|
24820691e6 | ||
|
|
22044dc317 | ||
|
|
af903e5d49 | ||
|
|
a7c54cfcf8 | ||
|
|
97ce419201 | ||
|
|
76bb7196f5 | ||
|
|
2f0584910c | ||
|
|
46359e198f | ||
|
|
8b9e20afb0 | ||
|
|
1a2ab991a6 | ||
|
|
c5aa55db7e | ||
|
|
a45ff6caba | ||
|
|
3660a10c73 | ||
|
|
1ed2276fd5 | ||
|
|
f38c86eb6b | ||
|
|
bdb8139098 | ||
|
|
1355aad2b9 | ||
|
|
17471e84a7 | ||
|
|
c8c75796a6 | ||
|
|
e0aa23f7e3 | ||
|
|
a3571ebef5 | ||
|
|
c41838aa01 | ||
|
|
2877d334ad | ||
|
|
d7ccc4d81d | ||
|
|
fb1db0e355 | ||
|
|
be5d998d0e | ||
|
|
281c93e714 | ||
|
|
83799a7b74 | ||
|
|
819edbe078 | ||
|
|
50d43153a7 | ||
|
|
6315a9ae92 | ||
|
|
291a9d15ed | ||
|
|
3167c3e701 | ||
|
|
2c997d7603 | ||
|
|
93a32e2ec4 |
4
.lgtm.yml
Normal file
4
.lgtm.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Format of this file: https://lgtm.com/help/lgtm/lgtm.yml-configuration-file
|
||||||
|
path_classifiers:
|
||||||
|
documentation:
|
||||||
|
- runtime/tutor/tutor*
|
||||||
@@ -108,7 +108,7 @@ script:
|
|||||||
- if [ -n "$err" ]; then exit 1; fi
|
- if [ -n "$err" ]; then exit 1; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b $SRCDIR -x .xs -e ${SRCDIR}/xxd -e ${SRCDIR}/if_perl.c --encodings utf-8 latin-1 EUC-KR; fi
|
- if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b ${SRCDIR} -x .xs -e ${SRCDIR}/xxd -e ${SRCDIR}/if_perl.c --encodings utf-8 latin-1 EUC-KR; fi
|
||||||
- if [ "$COVERAGE" = "yes" ]; then cd $SRCDIR && bash <(curl -s https://codecov.io/bash) ; fi
|
- if [ "$COVERAGE" = "yes" ]; then cd ${SRCDIR} && bash <(curl -s https://codecov.io/bash) ; fi
|
||||||
|
|
||||||
# vim:set sts=2 sw=2 tw=0 et:
|
# vim:set sts=2 sw=2 tw=0 et:
|
||||||
|
|||||||
8
Filelist
8
Filelist
@@ -4,6 +4,7 @@
|
|||||||
# source files for all source archives
|
# source files for all source archives
|
||||||
SRC_ALL = \
|
SRC_ALL = \
|
||||||
.hgignore \
|
.hgignore \
|
||||||
|
.lgtm.yml \
|
||||||
.travis.yml \
|
.travis.yml \
|
||||||
appveyor.yml \
|
appveyor.yml \
|
||||||
src/appveyor.bat \
|
src/appveyor.bat \
|
||||||
@@ -110,6 +111,7 @@ SRC_ALL = \
|
|||||||
src/testdir/sautest/autoload/*.vim \
|
src/testdir/sautest/autoload/*.vim \
|
||||||
src/testdir/runtest.vim \
|
src/testdir/runtest.vim \
|
||||||
src/testdir/shared.vim \
|
src/testdir/shared.vim \
|
||||||
|
src/testdir/screendump.vim \
|
||||||
src/testdir/view_util.vim \
|
src/testdir/view_util.vim \
|
||||||
src/testdir/setup.vim \
|
src/testdir/setup.vim \
|
||||||
src/testdir/gui_init.vim \
|
src/testdir/gui_init.vim \
|
||||||
@@ -119,7 +121,6 @@ SRC_ALL = \
|
|||||||
src/testdir/test[0-9]*a.ok \
|
src/testdir/test[0-9]*a.ok \
|
||||||
src/testdir/test_[a-z]*.ok \
|
src/testdir/test_[a-z]*.ok \
|
||||||
src/testdir/test49.vim \
|
src/testdir/test49.vim \
|
||||||
src/testdir/test60.vim \
|
|
||||||
src/testdir/test83-tags? \
|
src/testdir/test83-tags? \
|
||||||
src/testdir/test77a.com \
|
src/testdir/test77a.com \
|
||||||
src/testdir/test_*.vim \
|
src/testdir/test_*.vim \
|
||||||
@@ -135,10 +136,11 @@ SRC_ALL = \
|
|||||||
src/testdir/pyxfile/*.py \
|
src/testdir/pyxfile/*.py \
|
||||||
src/testdir/bench*.in \
|
src/testdir/bench*.in \
|
||||||
src/testdir/bench*.vim \
|
src/testdir/bench*.vim \
|
||||||
|
src/testdir/dumps/*.dump \
|
||||||
src/testdir/samples/*.txt \
|
src/testdir/samples/*.txt \
|
||||||
src/testdir/samples/test000 \
|
src/testdir/samples/test000 \
|
||||||
src/testdir/if_ver*.vim \
|
src/testdir/if_ver*.vim \
|
||||||
src/testdir/xterm_ramp.vim \
|
src/testdir/color_ramp.vim \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
src/proto/arabic.pro \
|
src/proto/arabic.pro \
|
||||||
src/proto/beval.pro \
|
src/proto/beval.pro \
|
||||||
@@ -585,6 +587,7 @@ RT_ALL = \
|
|||||||
runtime/doc/*.txt \
|
runtime/doc/*.txt \
|
||||||
runtime/doc/Makefile \
|
runtime/doc/Makefile \
|
||||||
runtime/doc/doctags.c \
|
runtime/doc/doctags.c \
|
||||||
|
runtime/doc/test_urls.vim \
|
||||||
runtime/doc/vim.1 \
|
runtime/doc/vim.1 \
|
||||||
runtime/doc/evim.1 \
|
runtime/doc/evim.1 \
|
||||||
runtime/doc/vimdiff.1 \
|
runtime/doc/vimdiff.1 \
|
||||||
@@ -666,6 +669,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/tools/*.vim \
|
||||||
runtime/compiler/*.vim \
|
runtime/compiler/*.vim \
|
||||||
runtime/compiler/README.txt \
|
runtime/compiler/README.txt \
|
||||||
runtime/indent/*.vim \
|
runtime/indent/*.vim \
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -68,7 +68,7 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
|||||||
# Before creating an archive first delete all backup files, *.orig, etc.
|
# Before creating an archive first delete all backup files, *.orig, etc.
|
||||||
|
|
||||||
MAJOR = 8
|
MAJOR = 8
|
||||||
MINOR = 0
|
MINOR = 1
|
||||||
|
|
||||||
# CHECKLIST for creating a new version:
|
# CHECKLIST for creating a new version:
|
||||||
#
|
#
|
||||||
@@ -131,7 +131,7 @@ MINOR = 0
|
|||||||
# - > make dossrc
|
# - > make dossrc
|
||||||
# > make dosrt
|
# > make dosrt
|
||||||
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
|
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
|
||||||
# This creates the directory vim/vim80 and puts all files in there.
|
# This creates the directory vim/vim81 and puts all files in there.
|
||||||
# Win32 console version build:
|
# Win32 console version build:
|
||||||
# - See src/INSTALLpc.txt for installing the compiler and SDK.
|
# - See src/INSTALLpc.txt for installing the compiler and SDK.
|
||||||
# - Set environment for Visual C++ 2015:
|
# - Set environment for Visual C++ 2015:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
`README.md` for version 8.0 of Vim: Vi IMproved.
|
`README.md` for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
[](https://travis-ci.org/vim/vim)
|
[](https://travis-ci.org/vim/vim)
|
||||||
[](https://codecov.io/gh/vim/vim?branch=master)
|
[](https://codecov.io/gh/vim/vim?branch=master)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README.txt for version 8.0 of Vim: Vi IMproved.
|
README.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
|
|
||||||
WHAT IS VIM?
|
WHAT IS VIM?
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ Vim Vi IMproved. A clone of the UNIX text editor Vi. Very useful
|
|||||||
messages, shows current file name in window title, on-line
|
messages, shows current file name in window title, on-line
|
||||||
help, rectangular cut/paste, etc., etc., etc...
|
help, rectangular cut/paste, etc., etc., etc...
|
||||||
|
|
||||||
Version 8.0. Also runs under UNIX, MS-Windows, Mac, etc.
|
Version 8.1. Also runs under UNIX, MS-Windows, Mac, etc.
|
||||||
vim80rt.tgz contains the documentation and syntax files.
|
vim81rt.tgz contains the documentation and syntax files.
|
||||||
vim80bin.tgz contains the binaries.
|
vim81bin.tgz contains the binaries.
|
||||||
vim80src.tgz contains the sources.
|
vim81src.tgz contains the sources.
|
||||||
Author: Bram Moolenaar et al.
|
Author: Bram Moolenaar et al.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_ami.txt for version 8.0 of Vim: Vi IMproved.
|
README_ami.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Amiga systems.
|
This file explains the installation of Vim on Amiga systems.
|
||||||
See README.txt for general information about Vim.
|
See README.txt for general information about Vim.
|
||||||
@@ -16,8 +16,8 @@ easily upgrade to a new version. For example:
|
|||||||
You would then unpack the archives like this:
|
You would then unpack the archives like this:
|
||||||
|
|
||||||
cd dh0:editors
|
cd dh0:editors
|
||||||
tar xf t:vim80bin.tar
|
tar xf t:vim81bin.tar
|
||||||
tar xf t:vim80rt.tar
|
tar xf t:vim81rt.tar
|
||||||
|
|
||||||
Set the $VIM environment variable to point to the top directory of your Vim
|
Set the $VIM environment variable to point to the top directory of your Vim
|
||||||
files. For the above example:
|
files. For the above example:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
README_amibin.txt for version 8.0 of Vim: Vi IMproved.
|
README_amibin.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
These files are in the runtime archive (vim80rt.tgz).
|
These files are in the runtime archive (vim81rt.tgz).
|
||||||
|
|
||||||
|
|
||||||
The Amiga "bin" archive contains the Vim executable for the Amiga. It was
|
The Amiga "bin" archive contains the Vim executable for the Amiga. It was
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
README_amisrc.txt for version 8.0 of Vim: Vi IMproved.
|
README_amisrc.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
These files are in the runtime archive (vim80rt.tgz).
|
These files are in the runtime archive (vim81rt.tgz).
|
||||||
|
|
||||||
|
|
||||||
The Amiga source archive contains the files needed to compile Vim on the
|
The Amiga source archive contains the files needed to compile Vim on the
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
README_bindos.txt for version 8.0 of Vim: Vi IMproved.
|
README_bindos.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||||
These files are in the runtime archive (vim80rt.zip).
|
These files are in the runtime archive (vim81rt.zip).
|
||||||
|
|
||||||
|
|
||||||
There are several binary distributions of Vim for the PC. You would normally
|
There are several binary distributions of Vim for the PC. You would normally
|
||||||
pick only one of them, but it's also possible to install several.
|
pick only one of them, but it's also possible to install several.
|
||||||
These ones are available (the version number may differ):
|
These ones are available (the version number may differ):
|
||||||
vim80w32.zip Windows 95/98/NT/etc. console version
|
vim81w32.zip Windows 95/98/NT/etc. console version
|
||||||
gvim80.zip Windows 95/98/NT/etc. GUI version
|
gvim81.zip Windows 95/98/NT/etc. GUI version
|
||||||
gvim80ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
gvim81ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
||||||
|
|
||||||
You MUST also get the runtime archive (vim80rt.zip).
|
You MUST also get the runtime archive (vim81rt.zip).
|
||||||
The sources are also available (vim80src.zip).
|
The sources are also available (vim81src.zip).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_dos.txt for version 8.0 of Vim: Vi IMproved.
|
README_dos.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
@@ -41,19 +41,19 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
located. Check the $VIM setting to see where it points to:
|
located. Check the $VIM setting to see where it points to:
|
||||||
set VIM
|
set VIM
|
||||||
For example, if you have
|
For example, if you have
|
||||||
C:\vim\vim80
|
C:\vim\vim81
|
||||||
do
|
do
|
||||||
cd C:\
|
cd C:\
|
||||||
Binary and runtime Vim archives are normally unpacked in the same location,
|
Binary and runtime Vim archives are normally unpacked in the same location,
|
||||||
on top of each other.
|
on top of each other.
|
||||||
|
|
||||||
2. Unpack the zip archives. This will create a new directory "vim\vim80",
|
2. Unpack the zip archives. This will create a new directory "vim\vim81",
|
||||||
in which all the distributed Vim files are placed. Since the directory
|
in which all the distributed Vim files are placed. Since the directory
|
||||||
name includes the version number, it is unlikely that you overwrite
|
name includes the version number, it is unlikely that you overwrite
|
||||||
existing files.
|
existing files.
|
||||||
Examples:
|
Examples:
|
||||||
pkunzip -d gvim80.zip
|
pkunzip -d gvim81.zip
|
||||||
unzip vim80w32.zip
|
unzip vim81w32.zip
|
||||||
|
|
||||||
You need to unpack the runtime archive and at least one of the binary
|
You need to unpack the runtime archive and at least one of the binary
|
||||||
archives. When using more than one binary version, be careful not to
|
archives. When using more than one binary version, be careful not to
|
||||||
@@ -69,7 +69,7 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
archive and follow the instructions in the documentation.
|
archive and follow the instructions in the documentation.
|
||||||
|
|
||||||
3. Change to the new directory:
|
3. Change to the new directory:
|
||||||
cd vim\vim80
|
cd vim\vim81
|
||||||
Run the "install.exe" program. It will ask you a number of questions about
|
Run the "install.exe" program. It will ask you a number of questions about
|
||||||
how you would like to have your Vim setup. Among these are:
|
how you would like to have your Vim setup. Among these are:
|
||||||
- You can tell it to write a "_vimrc" file with your preferences in the
|
- You can tell it to write a "_vimrc" file with your preferences in the
|
||||||
@@ -80,8 +80,8 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
console or in a shell. You can select one of the directories in your
|
console or in a shell. You can select one of the directories in your
|
||||||
$PATH. If you skip this, you can add Vim to the search path manually:
|
$PATH. If you skip this, you can add Vim to the search path manually:
|
||||||
The simplest is to add a line to your autoexec.bat. Examples:
|
The simplest is to add a line to your autoexec.bat. Examples:
|
||||||
set path=%path%;C:\vim\vim80
|
set path=%path%;C:\vim\vim81
|
||||||
set path=%path%;D:\editors\vim\vim80
|
set path=%path%;D:\editors\vim\vim81
|
||||||
- Create entries for Vim on the desktop and in the Start menu.
|
- Create entries for Vim on the desktop and in the Start menu.
|
||||||
|
|
||||||
That's it!
|
That's it!
|
||||||
@@ -93,8 +93,8 @@ Remarks:
|
|||||||
won't show a menubar. Then you need to set the $VIM environment variable to
|
won't show a menubar. Then you need to set the $VIM environment variable to
|
||||||
point to the top directory of your Vim files. Example:
|
point to the top directory of your Vim files. Example:
|
||||||
set VIM=C:\editors\vim
|
set VIM=C:\editors\vim
|
||||||
Vim version 8.0 will look for your vimrc file in $VIM, and for the runtime
|
Vim version 8.1 will look for your vimrc file in $VIM, and for the runtime
|
||||||
files in $VIM/vim80. See ":help $VIM" for more information.
|
files in $VIM/vim81. See ":help $VIM" for more information.
|
||||||
|
|
||||||
- To avoid confusion between distributed files of different versions and your
|
- To avoid confusion between distributed files of different versions and your
|
||||||
own modified vim scripts, it is recommended to use this directory layout:
|
own modified vim scripts, it is recommended to use this directory layout:
|
||||||
@@ -105,14 +105,14 @@ Remarks:
|
|||||||
C:\vim\vimfiles\ftplugin\*.vim Filetype plugins
|
C:\vim\vimfiles\ftplugin\*.vim Filetype plugins
|
||||||
C:\vim\... Other files you made.
|
C:\vim\... Other files you made.
|
||||||
Distributed files:
|
Distributed files:
|
||||||
C:\vim\vim80\vim.exe The Vim version 8.0 executable.
|
C:\vim\vim81\vim.exe The Vim version 8.1 executable.
|
||||||
C:\vim\vim80\doc\*.txt The version 8.0 documentation files.
|
C:\vim\vim81\doc\*.txt The version 8.1 documentation files.
|
||||||
C:\vim\vim80\bugreport.vim A Vim version 8.0 script.
|
C:\vim\vim81\bugreport.vim A Vim version 8.1 script.
|
||||||
C:\vim\vim80\... Other version 8.0 distributed files.
|
C:\vim\vim81\... Other version 8.1 distributed files.
|
||||||
In this case the $VIM environment variable would be set like this:
|
In this case the $VIM environment variable would be set like this:
|
||||||
set VIM=C:\vim
|
set VIM=C:\vim
|
||||||
Then $VIMRUNTIME will automatically be set to "$VIM\vim80". Don't add
|
Then $VIMRUNTIME will automatically be set to "$VIM\vim81". Don't add
|
||||||
"vim80" to $VIM, that won't work.
|
"vim81" to $VIM, that won't work.
|
||||||
|
|
||||||
- You can put your Vim executable anywhere else. If the executable is not
|
- You can put your Vim executable anywhere else. If the executable is not
|
||||||
with the other Vim files, you should set $VIM. The simplest is to add a line
|
with the other Vim files, you should set $VIM. The simplest is to add a line
|
||||||
@@ -136,8 +136,8 @@ Remarks:
|
|||||||
Select Properties.
|
Select Properties.
|
||||||
5. In the Program tab, change the "Cmdline" to add "/c" and the name of the
|
5. In the Program tab, change the "Cmdline" to add "/c" and the name of the
|
||||||
Vim executable. Examples:
|
Vim executable. Examples:
|
||||||
C:\command.com /c C:\vim\vim80\vim.exe
|
C:\command.com /c C:\vim\vim81\vim.exe
|
||||||
C:\command.com /c D:\editors\vim\vim80\vim.exe
|
C:\command.com /c D:\editors\vim\vim81\vim.exe
|
||||||
6. Select the font, window size, etc. that you like. If this isn't
|
6. Select the font, window size, etc. that you like. If this isn't
|
||||||
possible, select "Advanced" in the Program tab, and deselect "MS-DOS
|
possible, select "Advanced" in the Program tab, and deselect "MS-DOS
|
||||||
mode".
|
mode".
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_extra.txt for version 8.0 of Vim: Vi IMproved.
|
README_extra.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
These extra files of Vim are for special purposes. This README explains what
|
These extra files of Vim are for special purposes. This README explains what
|
||||||
the files are for. For general information about Vim, see the "README.txt"
|
the files are for. For general information about Vim, see the "README.txt"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_mac.txt for version 8.0 of Vim: Vi IMproved.
|
README_mac.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Macintosh systems.
|
This file explains the installation of Vim on Macintosh systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_ole.txt for version 8.0 of Vim: Vi IMproved.
|
README_ole.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains gvim.exe with OLE interface and VisVim.
|
This archive contains gvim.exe with OLE interface and VisVim.
|
||||||
This version of gvim.exe can also load a number of interface dynamically (you
|
This version of gvim.exe can also load a number of interface dynamically (you
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_os2.txt for version 8.0 of Vim: Vi IMproved.
|
README_os2.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file used to explain the installation of Vim on OS/2 systems.
|
This file used to explain the installation of Vim on OS/2 systems.
|
||||||
However, support for OS/2 has been removed in patch 7.4.1008.
|
However, support for OS/2 has been removed in patch 7.4.1008.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_zOS.txt for version 8.0 of Vim: Vi IMproved.
|
README_zOS.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
README_src.txt for version 8.0 of Vim: Vi IMproved.
|
README_src.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
The source archive contains the files needed to compile Vim on Unix systems.
|
The source archive contains the files needed to compile Vim on Unix systems.
|
||||||
It is packed for Unix systems (NL line separator).
|
It is packed for Unix systems (NL line separator).
|
||||||
|
|
||||||
For more information, see the README.txt file that comes with the runtime
|
For more information, see the README.txt file that comes with the runtime
|
||||||
archive (vim-8.0-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
archive (vim-8.1-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
||||||
archive too!
|
archive too!
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
README_srcdos.txt for version 8.0 of Vim: Vi IMproved.
|
README_srcdos.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||||
These files are in the runtime archive (vim80rt.zip).
|
These files are in the runtime archive (vim81rt.zip).
|
||||||
|
|
||||||
|
|
||||||
The DOS source archive contains the files needed to compile Vim on MS-DOS or
|
The DOS source archive contains the files needed to compile Vim on MS-DOS or
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_unix.txt for version 8.0 of Vim: Vi IMproved.
|
README_unix.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Unix systems.
|
This file explains the installation of Vim on Unix systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_vms.txt for version 8.0 of Vim: Vi IMproved.
|
README_vms.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on VMS systems.
|
This file explains the installation of Vim on VMS systems.
|
||||||
See "README.txt" in the runtime archive for information about Vim.
|
See "README.txt" in the runtime archive for information about Vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_w32s.txt for version 8.0 of Vim: Vi IMproved.
|
README_w32s.txt for version 8.1 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains the gvim.exe that was specifically compiled for use in
|
This archive contains the gvim.exe that was specifically compiled for use in
|
||||||
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ matrix:
|
|||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
|
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
|
||||||
|
- 'set INCLUDE=%INCLUDE%C:\Program Files (x86)\Windows Kits\8.1\Include\um'
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- src/appveyor.bat
|
- src/appveyor.bat
|
||||||
|
|||||||
@@ -89,6 +89,11 @@ Page instfiles
|
|||||||
UninstPage uninstConfirm
|
UninstPage uninstConfirm
|
||||||
UninstPage instfiles
|
UninstPage instfiles
|
||||||
|
|
||||||
|
# Reserve files
|
||||||
|
# Needed for showing the _vimrc setting page faster.
|
||||||
|
ReserveFile /plugin InstallOptions.dll
|
||||||
|
ReserveFile vimrc.ini
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
@@ -262,6 +267,9 @@ Section "Vim executables and runtime files"
|
|||||||
SetOutPath $0\pack\dist\opt\swapmouse\plugin
|
SetOutPath $0\pack\dist\opt\swapmouse\plugin
|
||||||
File ${VIMRT}\pack\dist\opt\swapmouse\plugin\*.*
|
File ${VIMRT}\pack\dist\opt\swapmouse\plugin\*.*
|
||||||
|
|
||||||
|
SetOutPath $0\pack\dist\opt\termdebug\plugin
|
||||||
|
File ${VIMRT}\pack\dist\opt\termdebug\plugin\*.*
|
||||||
|
|
||||||
SetOutPath $0\plugin
|
SetOutPath $0\plugin
|
||||||
File ${VIMRT}\plugin\*.*
|
File ${VIMRT}\plugin\*.*
|
||||||
|
|
||||||
@@ -475,15 +483,13 @@ Function SetCustom
|
|||||||
# Display the InstallOptions dialog
|
# Display the InstallOptions dialog
|
||||||
|
|
||||||
# Check if a _vimrc should be created
|
# Check if a _vimrc should be created
|
||||||
SectionGetFlags ${sec_vimrc_id} $0
|
SectionGetFlags ${sec_vimrc_id} $3
|
||||||
IntOp $0 $0 & 1
|
IntOp $3 $3 & 1
|
||||||
StrCmp $0 "1" +2 0
|
StrCmp $3 "1" +2 0
|
||||||
Abort
|
Abort
|
||||||
|
|
||||||
Push $3
|
|
||||||
InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
|
InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
|
||||||
Pop $3
|
Pop $3
|
||||||
Pop $3
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function ValidateCustom
|
Function ValidateCustom
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
!ifndef __GVIM_VER__NSH__
|
!ifndef __GVIM_VER__NSH__
|
||||||
!define __GVIM_VER__NSH__
|
!define __GVIM_VER__NSH__
|
||||||
!define VER_MAJOR 8
|
!define VER_MAJOR 8
|
||||||
!define VER_MINOR 0
|
!define VER_MINOR 1
|
||||||
!endif
|
!endif
|
||||||
|
|||||||
8
runtime/autoload/dist/ft.vim
vendored
8
runtime/autoload/dist/ft.vim
vendored
@@ -1,7 +1,7 @@
|
|||||||
" Vim functions for file type detection
|
" Vim functions for file type detection
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2017 Nov 11
|
" Last Change: 2017 Dec 05
|
||||||
|
|
||||||
" These functions are moved here from runtime/filetype.vim to make startup
|
" These functions are moved here from runtime/filetype.vim to make startup
|
||||||
" faster.
|
" faster.
|
||||||
@@ -618,7 +618,11 @@ func dist#ft#FTperl()
|
|||||||
setf perl
|
setf perl
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
if search('^use\s\s*\k', 'nc', 30)
|
let save_cursor = getpos('.')
|
||||||
|
call cursor(1,1)
|
||||||
|
let has_use = search('^use\s\s*\k', 'c', 30)
|
||||||
|
call setpos('.', save_cursor)
|
||||||
|
if has_use
|
||||||
setf perl
|
setf perl
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
" netrwSettings.vim: makes netrw settings simpler
|
" netrwSettings.vim: makes netrw settings simpler
|
||||||
" Date: Nov 09, 2016
|
" Date: Dec 30, 2014
|
||||||
" Maintainer: Charles E Campbell <drchipNOSPAM at campbellfamily dot biz>
|
" Maintainer: Charles E Campbell <drchipNOSPAM at campbellfamily dot biz>
|
||||||
" Version: 16
|
" Version: 15
|
||||||
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
if exists("g:loaded_netrwSettings") || &cp
|
if exists("g:loaded_netrwSettings") || &cp
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_netrwSettings = "v16"
|
let g:loaded_netrwSettings = "v15"
|
||||||
if v:version < 700
|
if v:version < 700
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
||||||
@@ -154,13 +154,9 @@ fun! netrwSettings#NetrwSettings()
|
|||||||
put = 'let g:netrw_list_hide = '.g:netrw_list_hide
|
put = 'let g:netrw_list_hide = '.g:netrw_list_hide
|
||||||
put = 'let g:netrw_liststyle = '.g:netrw_liststyle
|
put = 'let g:netrw_liststyle = '.g:netrw_liststyle
|
||||||
put = 'let g:netrw_localcopycmd = '.g:netrw_localcopycmd
|
put = 'let g:netrw_localcopycmd = '.g:netrw_localcopycmd
|
||||||
put = 'let g:netrw_localcopycmdopt = '.g:netrw_localcopycmdopt
|
|
||||||
put = 'let g:netrw_localmkdir = '.g:netrw_localmkdir
|
put = 'let g:netrw_localmkdir = '.g:netrw_localmkdir
|
||||||
put = 'let g:netrw_localmkdiropt = '.g:netrw_localmkdiropt
|
|
||||||
put = 'let g:netrw_localmovecmd = '.g:netrw_localmovecmd
|
put = 'let g:netrw_localmovecmd = '.g:netrw_localmovecmd
|
||||||
put = 'let g:netrw_localmovecmdopt = '.g:netrw_localmovecmdopt
|
|
||||||
put = 'let g:netrw_localrmdir = '.g:netrw_localrmdir
|
put = 'let g:netrw_localrmdir = '.g:netrw_localrmdir
|
||||||
put = 'let g:netrw_localrmdiropt = '.g:netrw_localrmdiropt
|
|
||||||
put = 'let g:netrw_maxfilenamelen = '.g:netrw_maxfilenamelen
|
put = 'let g:netrw_maxfilenamelen = '.g:netrw_maxfilenamelen
|
||||||
put = 'let g:netrw_menu = '.g:netrw_menu
|
put = 'let g:netrw_menu = '.g:netrw_menu
|
||||||
put = 'let g:netrw_mousemaps = '.g:netrw_mousemaps
|
put = 'let g:netrw_mousemaps = '.g:netrw_mousemaps
|
||||||
|
|||||||
112
runtime/autoload/xmlformat.vim
Normal file
112
runtime/autoload/xmlformat.vim
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
" Vim plugin for formatting XML
|
||||||
|
" Last Change: Thu, 15 Jan 2015 21:26:55 +0100
|
||||||
|
" Version: 0.1
|
||||||
|
" Author: Christian Brabandt <cb@256bit.org>
|
||||||
|
" Script: http://www.vim.org/scripts/script.php?script_id=
|
||||||
|
" License: VIM License
|
||||||
|
" GetLatestVimScripts: ???? 18 :AutoInstall: xmlformat.vim
|
||||||
|
" Documentation: see :h xmlformat.txt (TODO!)
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" Load Once: {{{1
|
||||||
|
if exists("g:loaded_xmlformat") || &cp
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_xmlformat = 1
|
||||||
|
let s:keepcpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" Main function: Format the input {{{1
|
||||||
|
func! xmlformat#Format()
|
||||||
|
" only allow reformatting through the gq command
|
||||||
|
" (e.g. Vim is in normal mode)
|
||||||
|
if mode() != 'n'
|
||||||
|
" do not fall back to internal formatting
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
|
let sw = shiftwidth()
|
||||||
|
let prev = prevnonblank(v:lnum-1)
|
||||||
|
let s:indent = indent(prev)/sw
|
||||||
|
let result = []
|
||||||
|
let lastitem = prev ? getline(prev) : ''
|
||||||
|
let is_xml_decl = 0
|
||||||
|
" split on `<`, but don't split on very first opening <
|
||||||
|
for item in split(getline(v:lnum), '.\@<=[>]\zs')
|
||||||
|
if s:EndTag(item)
|
||||||
|
let s:indent = s:DecreaseIndent()
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
elseif s:EmptyTag(lastitem)
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
elseif s:StartTag(lastitem) && s:IsTag(item)
|
||||||
|
let s:indent += 1
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
else
|
||||||
|
if !s:IsTag(item)
|
||||||
|
" Simply split on '<'
|
||||||
|
let t=split(item, '.<\@=\zs')
|
||||||
|
let s:indent+=1
|
||||||
|
call add(result, s:Indent(t[0]))
|
||||||
|
let s:indent = s:DecreaseIndent()
|
||||||
|
call add(result, s:Indent(t[1]))
|
||||||
|
else
|
||||||
|
call add(result, s:Indent(item))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
let lastitem = item
|
||||||
|
endfor
|
||||||
|
|
||||||
|
if !empty(result)
|
||||||
|
exe v:lnum. ",". (v:lnum + v:count - 1). 'd'
|
||||||
|
call append(v:lnum - 1, result)
|
||||||
|
" Might need to remove the last line, if it became empty because of the
|
||||||
|
" append() call
|
||||||
|
let last = v:lnum + len(result)
|
||||||
|
if getline(last) is ''
|
||||||
|
exe last. 'd'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" do not run internal formatter!
|
||||||
|
return 0
|
||||||
|
endfunc
|
||||||
|
" Check if given tag is XML Declaration header {{{1
|
||||||
|
func! s:IsXMLDecl(tag)
|
||||||
|
return a:tag =~? '^\s*<?xml\s\?\%(version="[^"]*"\)\?\s\?\%(encoding="[^"]*"\)\? ?>\s*$'
|
||||||
|
endfunc
|
||||||
|
" Return tag indented by current level {{{1
|
||||||
|
func! s:Indent(item)
|
||||||
|
return repeat(' ', shiftwidth()*s:indent). s:Trim(a:item)
|
||||||
|
endfu
|
||||||
|
" Return item trimmed from leading whitespace {{{1
|
||||||
|
func! s:Trim(item)
|
||||||
|
if exists('*trim')
|
||||||
|
return trim(a:item)
|
||||||
|
else
|
||||||
|
return matchstr(a:item, '\S\+.*')
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
" Check if tag is a new opening tag <tag> {{{1
|
||||||
|
func! s:StartTag(tag)
|
||||||
|
return a:tag =~? '^\s*<[^/?]'
|
||||||
|
endfunc
|
||||||
|
" Remove one level of indentation {{{1
|
||||||
|
func! s:DecreaseIndent()
|
||||||
|
return (s:indent > 0 ? s:indent - 1 : 0)
|
||||||
|
endfunc
|
||||||
|
" Check if tag is a closing tag </tag> {{{1
|
||||||
|
func! s:EndTag(tag)
|
||||||
|
return a:tag =~? '^\s*</'
|
||||||
|
endfunc
|
||||||
|
" Check that the tag is actually a tag and not {{{1
|
||||||
|
" something like "foobar</foobar>"
|
||||||
|
func! s:IsTag(tag)
|
||||||
|
return s:Trim(a:tag)[0] == '<'
|
||||||
|
endfunc
|
||||||
|
" Check if tag is empty <tag/> {{{1
|
||||||
|
func! s:EmptyTag(tag)
|
||||||
|
return a:tag =~ '/>\s*$'
|
||||||
|
endfunc
|
||||||
|
" Restoration And Modelines: {{{1
|
||||||
|
let &cpo= s:keepcpo
|
||||||
|
unlet s:keepcpo
|
||||||
|
" Modeline {{{1
|
||||||
|
" vim: fdm=marker fdl=0 ts=2 et sw=0 sts=-1
|
||||||
@@ -42,7 +42,16 @@ this autocmd might be useful:
|
|||||||
Replace "blue_sky" with the name of the colorscheme.
|
Replace "blue_sky" with the name of the colorscheme.
|
||||||
|
|
||||||
In case you want to tweak a colorscheme after it was loaded, check out the
|
In case you want to tweak a colorscheme after it was loaded, check out the
|
||||||
ColorScheme autocmd event.
|
ColorScheme autocommand event.
|
||||||
|
|
||||||
|
To clean up just before loading another colorscheme, use the ColorSchemePre
|
||||||
|
autocommand event. For example:
|
||||||
|
let g:term_ansi_colors = ...
|
||||||
|
augroup MyColorscheme
|
||||||
|
au!
|
||||||
|
au ColorSchemePre * unlet g:term_ansi_colors
|
||||||
|
au ColorSchemePre * au! MyColorscheme
|
||||||
|
augroup END
|
||||||
|
|
||||||
To customize a colorscheme use another name, e.g. "~/.vim/colors/mine.vim",
|
To customize a colorscheme use another name, e.g. "~/.vim/colors/mine.vim",
|
||||||
and use `:runtime` to load the original colorscheme:
|
and use `:runtime` to load the original colorscheme:
|
||||||
@@ -64,6 +73,8 @@ Search for "highlight_init".
|
|||||||
If you think you have a color scheme that is good enough to be used by others,
|
If you think you have a color scheme that is good enough to be used by others,
|
||||||
please check the following items:
|
please check the following items:
|
||||||
|
|
||||||
|
- Source the $VIMRUNTIME/colors/tools/check_colors.vim script to check for
|
||||||
|
common mistakes.
|
||||||
- Does it work in a color terminal as well as in the GUI?
|
- Does it work in a color terminal as well as in the GUI?
|
||||||
- Is "g:colors_name" set to a meaningful value? In case of doubt you can do
|
- Is "g:colors_name" set to a meaningful value? In case of doubt you can do
|
||||||
it this way:
|
it this way:
|
||||||
|
|||||||
136
runtime/colors/tools/check_colors.vim
Normal file
136
runtime/colors/tools/check_colors.vim
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
" This script tests a color scheme for some errors. Load the scheme and source
|
||||||
|
" this script. e.g. :e colors/desert.vim | :so test_colors.vim
|
||||||
|
" Will output possible errors.
|
||||||
|
|
||||||
|
let s:save_cpo= &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
func! Test_check_colors()
|
||||||
|
call cursor(1,1)
|
||||||
|
let err={}
|
||||||
|
|
||||||
|
" 1) Check g:colors_name is existing
|
||||||
|
if !search('\<\%(g:\)\?colors_name\>', 'cnW')
|
||||||
|
let err['colors_name'] = 'g:colors_name not set'
|
||||||
|
else
|
||||||
|
let err['colors_name'] = 'OK'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 2) Check for some well-defined highlighting groups
|
||||||
|
" Some items, check several groups, e.g. Diff, Spell
|
||||||
|
let hi_groups = ['ColorColumn', 'Diff', 'ErrorMsg', 'Folded',
|
||||||
|
\ 'FoldColumn', 'IncSearch', 'LineNr', 'ModeMsg', 'MoreMsg', 'NonText',
|
||||||
|
\ 'Normal', 'Pmenu', 'Todo', 'Search', 'Spell', 'StatusLine', 'TabLine',
|
||||||
|
\ 'Title', 'Visual', 'WarningMsg', 'WildMenu']
|
||||||
|
let groups={}
|
||||||
|
for group in hi_groups
|
||||||
|
if search('\c@suppress\s\+'.group, 'cnW')
|
||||||
|
" skip check, if the script contains a line like
|
||||||
|
" @suppress Visual:
|
||||||
|
let groups[group] = 'Ignoring '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
if !search('hi\%[ghlight] \+'.group, 'cnW')
|
||||||
|
let groups[group] = 'No highlight definition for '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
if !search('hi\%[ghlight] \+'.group. '.*fg=', 'cnW')
|
||||||
|
let groups[group] = 'Missing foreground color for '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
if search('hi\%[ghlight] \+'.group. '.*guibg=', 'cnW') &&
|
||||||
|
\ !search('hi\%[ghlight] \+'.group. '.*ctermbg=', 'cnW')
|
||||||
|
let groups[group] = 'Missing bg terminal color for '.group
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
call search('hi\%[ghlight] \+'.group, 'cW')
|
||||||
|
" only check in the current line
|
||||||
|
if !search('guifg', 'cnW', line('.')) || !search('ctermfg', 'cnW', line('.'))
|
||||||
|
" do not check for background colors, they could be intentionally left out
|
||||||
|
let groups[group] = 'Missing fg definition for '.group
|
||||||
|
endif
|
||||||
|
call cursor(1,1)
|
||||||
|
endfor
|
||||||
|
let err['highlight'] = groups
|
||||||
|
|
||||||
|
" 3) Check, that it does not set background highlighting
|
||||||
|
" Doesn't ':hi Normal ctermfg=253 ctermfg=233' also set the background sometimes?
|
||||||
|
let bg_set='\(set\?\|setl\(ocal\)\?\) .*\(background\|bg\)=\(dark\|light\)'
|
||||||
|
let bg_let='let \%([&]\%([lg]:\)\?\)\%(background\|bg\)\s*=\s*\([''"]\?\)\w\+\1'
|
||||||
|
let bg_pat='\%('.bg_set. '\|'.bg_let.'\)'
|
||||||
|
let line=search(bg_pat, 'cnW')
|
||||||
|
if search(bg_pat, 'cnW')
|
||||||
|
exe line
|
||||||
|
if search('hi \U\w\+\s\+\S', 'cbnW')
|
||||||
|
let err['background'] = 'Should not set background option after :hi statement'
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let err['background'] = 'OK'
|
||||||
|
endif
|
||||||
|
call cursor(1,1)
|
||||||
|
|
||||||
|
" 4) Check, that t_Co is checked
|
||||||
|
let pat = '[&]t_Co\s*[<>=]=\?\s*\d\+'
|
||||||
|
if !search(pat, 'ncW')
|
||||||
|
let err['t_Co'] = 'Does not check terminal for capable colors'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 5) Initializes correctly, e.g. should have a section like
|
||||||
|
" hi clear
|
||||||
|
" if exists("syntax_on")
|
||||||
|
" syntax reset
|
||||||
|
" endif
|
||||||
|
let pat='hi\%[ghlight]\s*clear\n\s*if\s*exists(\([''"]\)syntax_on\1)\n\s*syn\%[tax]\s*reset\n\s*endif'
|
||||||
|
if !search(pat, 'cnW')
|
||||||
|
let err['init'] = 'No initialization'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 6) Does not use :syn on
|
||||||
|
if search('syn\%[tax]\s\+on', 'cnW')
|
||||||
|
let err['background'] = 'Should not issue :syn on'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 7) Does not define filetype specfic groups like vimCommand, htmlTag,
|
||||||
|
let hi_groups = ['vim', 'html', 'python', 'sh', 'ruby']
|
||||||
|
for group in hi_groups
|
||||||
|
let pat='\Chi\%[ghlight]\s*\zs'.group.'\w\+\>'
|
||||||
|
if search(pat, 'cnW')
|
||||||
|
let line = search(pat, 'cW')
|
||||||
|
let err['filetype'] = get(err, 'filetype', 'Should not define: ') . matchstr(getline('.'), pat). ' '
|
||||||
|
endif
|
||||||
|
call cursor(1,1)
|
||||||
|
endfor
|
||||||
|
let g:err = err
|
||||||
|
|
||||||
|
" print Result
|
||||||
|
call Result(err)
|
||||||
|
endfu
|
||||||
|
|
||||||
|
fu! Result(err)
|
||||||
|
let do_roups = 0
|
||||||
|
echohl Title|echomsg "---------------"|echohl Normal
|
||||||
|
for key in sort(keys(a:err))
|
||||||
|
if key is# 'highlight'
|
||||||
|
let do_groups = 1
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
if a:err[key] !~ 'OK'
|
||||||
|
echohl Title
|
||||||
|
endif
|
||||||
|
echomsg printf("%15s: %s", key, a:err[key])
|
||||||
|
echohl Normal
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
echohl Title|echomsg "---------------"|echohl Normal
|
||||||
|
if do_groups
|
||||||
|
echohl Title | echomsg "Groups" | echohl Normal
|
||||||
|
for v1 in sort(keys(a:err['highlight']))
|
||||||
|
echomsg printf("%25s: %s", v1, a:err['highlight'][v1])
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
endfu
|
||||||
|
|
||||||
|
call Test_check_colors()
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
@@ -375,6 +375,10 @@ tags.ref tags.html: tags
|
|||||||
perlhtml: tags $(DOCS)
|
perlhtml: tags $(DOCS)
|
||||||
./vim2html.pl tags $(DOCS)
|
./vim2html.pl tags $(DOCS)
|
||||||
|
|
||||||
|
# Check URLs in the help with "curl".
|
||||||
|
test_urls:
|
||||||
|
vim -S test_urls.vim
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm doctags *.html tags.ref
|
-rm doctags *.html tags.ref
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*arabic.txt* For Vim version 8.0. Last change: 2010 Nov 13
|
*arabic.txt* For Vim version 8.1. Last change: 2010 Nov 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*autocmd.txt* For Vim version 8.0. Last change: 2017 Nov 05
|
*autocmd.txt* For Vim version 8.1. Last change: 2018 May 03
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -21,7 +21,6 @@ For a basic explanation, see section |40.3| in the user manual.
|
|||||||
11. Disabling autocommands |autocmd-disable|
|
11. Disabling autocommands |autocmd-disable|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
{Vi does not have any of these commands}
|
||||||
{only when the |+autocmd| feature has not been disabled at compile time}
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Introduction *autocmd-intro*
|
1. Introduction *autocmd-intro*
|
||||||
@@ -33,7 +32,7 @@ files matching *.c. You can also use autocommands to implement advanced
|
|||||||
features, such as editing compressed files (see |gzip-example|). The usual
|
features, such as editing compressed files (see |gzip-example|). The usual
|
||||||
place to put autocommands is in your .vimrc or .exrc file.
|
place to put autocommands is in your .vimrc or .exrc file.
|
||||||
|
|
||||||
*E203* *E204* *E143* *E855* *E937*
|
*E203* *E204* *E143* *E855* *E937* *E952*
|
||||||
WARNING: Using autocommands is very powerful, and may lead to unexpected side
|
WARNING: Using autocommands is very powerful, and may lead to unexpected side
|
||||||
effects. Be careful not to destroy your text.
|
effects. Be careful not to destroy your text.
|
||||||
- It's a good idea to do some testing on an expendable copy of a file first.
|
- It's a good idea to do some testing on an expendable copy of a file first.
|
||||||
@@ -57,6 +56,8 @@ effects. Be careful not to destroy your text.
|
|||||||
Add {cmd} to the list of commands that Vim will
|
Add {cmd} to the list of commands that Vim will
|
||||||
execute automatically on {event} for a file matching
|
execute automatically on {event} for a file matching
|
||||||
{pat} |autocmd-patterns|.
|
{pat} |autocmd-patterns|.
|
||||||
|
Note: A quote character is seen as argument to the
|
||||||
|
:autocmd and won't start a comment.
|
||||||
Vim always adds the {cmd} after existing autocommands,
|
Vim always adds the {cmd} after existing autocommands,
|
||||||
so that the autocommands execute in the order in which
|
so that the autocommands execute in the order in which
|
||||||
they were given. See |autocmd-nested| for [nested].
|
they were given. See |autocmd-nested| for [nested].
|
||||||
@@ -92,7 +93,8 @@ will appear twice. To avoid this, define your autocommands in a group, so
|
|||||||
that you can easily clear them: >
|
that you can easily clear them: >
|
||||||
|
|
||||||
augroup vimrc
|
augroup vimrc
|
||||||
autocmd! " Remove all vimrc autocommands
|
" Remove all vimrc autocommands
|
||||||
|
autocmd!
|
||||||
au BufNewFile,BufRead *.html so <sfile>:h/html.vim
|
au BufNewFile,BufRead *.html so <sfile>:h/html.vim
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
@@ -146,6 +148,8 @@ prompt. When one command outputs two messages this can happen anyway.
|
|||||||
plugins, syntax highlighting, etc.
|
plugins, syntax highlighting, etc.
|
||||||
|
|
||||||
:au[tocmd]! [group] Remove ALL autocommands.
|
:au[tocmd]! [group] Remove ALL autocommands.
|
||||||
|
Note: a quote will be seen as argument to the :autocmd
|
||||||
|
and won't start a comment.
|
||||||
Warning: You should normally not do this without a
|
Warning: You should normally not do this without a
|
||||||
group, it breaks plugins, syntax highlighting, etc.
|
group, it breaks plugins, syntax highlighting, etc.
|
||||||
|
|
||||||
@@ -258,6 +262,7 @@ Name triggered by ~
|
|||||||
|BufCreate| just after adding a buffer to the buffer list
|
|BufCreate| just after adding a buffer to the buffer list
|
||||||
|BufDelete| before deleting a buffer from the buffer list
|
|BufDelete| before deleting a buffer from the buffer list
|
||||||
|BufWipeout| before completely deleting a buffer
|
|BufWipeout| before completely deleting a buffer
|
||||||
|
|TerminalOpen| after a terminal buffer was created
|
||||||
|
|
||||||
|BufFilePre| before changing the name of the current buffer
|
|BufFilePre| before changing the name of the current buffer
|
||||||
|BufFilePost| after changing the name of the current buffer
|
|BufFilePost| after changing the name of the current buffer
|
||||||
@@ -286,7 +291,8 @@ Name triggered by ~
|
|||||||
|GUIFailed| after starting the GUI failed
|
|GUIFailed| after starting the GUI failed
|
||||||
|TermResponse| after the terminal response to |t_RV| is received
|
|TermResponse| after the terminal response to |t_RV| is received
|
||||||
|
|
||||||
|QuitPre| when using `:quit`, before deciding whether to quit
|
|QuitPre| when using `:quit`, before deciding whether to exit
|
||||||
|
|ExitPre| when using a command that may make Vim exit
|
||||||
|VimLeavePre| before exiting Vim, before writing the viminfo file
|
|VimLeavePre| before exiting Vim, before writing the viminfo file
|
||||||
|VimLeave| before exiting Vim, after writing the viminfo file
|
|VimLeave| before exiting Vim, after writing the viminfo file
|
||||||
|
|
||||||
@@ -295,6 +301,8 @@ Name triggered by ~
|
|||||||
|FileChangedShellPost| After handling a file changed since editing started
|
|FileChangedShellPost| After handling a file changed since editing started
|
||||||
|FileChangedRO| before making the first change to a read-only file
|
|FileChangedRO| before making the first change to a read-only file
|
||||||
|
|
||||||
|
|DirChanged| after the working directory has changed
|
||||||
|
|
||||||
|ShellCmdPost| after executing a shell command
|
|ShellCmdPost| after executing a shell command
|
||||||
|ShellFilterPost| after filtering with a shell command
|
|ShellFilterPost| after filtering with a shell command
|
||||||
|
|
||||||
@@ -322,6 +330,10 @@ Name triggered by ~
|
|||||||
|CmdwinEnter| after entering the command-line window
|
|CmdwinEnter| after entering the command-line window
|
||||||
|CmdwinLeave| before leaving the command-line window
|
|CmdwinLeave| before leaving the command-line window
|
||||||
|
|
||||||
|
|CmdlineChanged| after a change was made to the command-line text
|
||||||
|
|CmdlineEnter| after the cursor moves to the command line
|
||||||
|
|CmdlineLeave| before the cursor leaves the command line
|
||||||
|
|
||||||
|InsertEnter| starting Insert mode
|
|InsertEnter| starting Insert mode
|
||||||
|InsertChange| when typing <Insert> while in Insert or Replace mode
|
|InsertChange| when typing <Insert> while in Insert or Replace mode
|
||||||
|InsertLeave| when leaving Insert mode
|
|InsertLeave| when leaving Insert mode
|
||||||
@@ -330,7 +342,12 @@ Name triggered by ~
|
|||||||
|
|
||||||
|TextChanged| after a change was made to the text in Normal mode
|
|TextChanged| after a change was made to the text in Normal mode
|
||||||
|TextChangedI| after a change was made to the text in Insert mode
|
|TextChangedI| after a change was made to the text in Insert mode
|
||||||
|
when popup menu is not visible
|
||||||
|
|TextChangedP| after a change was made to the text in Insert mode
|
||||||
|
when popup menu visible
|
||||||
|
|TextYankPost| after text is yanked or deleted
|
||||||
|
|
||||||
|
|ColorSchemePre| before loading a color scheme
|
||||||
|ColorScheme| after loading a color scheme
|
|ColorScheme| after loading a color scheme
|
||||||
|
|
||||||
|RemoteReply| a reply from a server Vim was received
|
|RemoteReply| a reply from a server Vim was received
|
||||||
@@ -452,6 +469,9 @@ BufWinEnter After a buffer is displayed in a window. This
|
|||||||
existing buffer. But it does happen for a
|
existing buffer. But it does happen for a
|
||||||
":split" with the name of the current buffer,
|
":split" with the name of the current buffer,
|
||||||
since it reloads that buffer.
|
since it reloads that buffer.
|
||||||
|
Does not happen for a terminal window, because
|
||||||
|
it starts in Terminal-Job mode and Normal mode
|
||||||
|
commands won't work. Use |TerminalOpen| instead.
|
||||||
*BufWinLeave*
|
*BufWinLeave*
|
||||||
BufWinLeave Before a buffer is removed from a window.
|
BufWinLeave Before a buffer is removed from a window.
|
||||||
Not when it's still visible in another window.
|
Not when it's still visible in another window.
|
||||||
@@ -499,6 +519,13 @@ CmdUndefined When a user command is used but it isn't
|
|||||||
command is defined. An alternative is to
|
command is defined. An alternative is to
|
||||||
always define the user command and have it
|
always define the user command and have it
|
||||||
invoke an autoloaded function. See |autoload|.
|
invoke an autoloaded function. See |autoload|.
|
||||||
|
*CmdlineChanged*
|
||||||
|
CmdlineChanged After a change was made to the text in the
|
||||||
|
command line. Be careful not to mess up
|
||||||
|
the command line, it may cause Vim to lock up.
|
||||||
|
<afile> is set to a single character,
|
||||||
|
indicating the type of command-line.
|
||||||
|
|cmdwin-char|
|
||||||
*CmdlineEnter*
|
*CmdlineEnter*
|
||||||
CmdlineEnter After moving the cursor to the command line,
|
CmdlineEnter After moving the cursor to the command line,
|
||||||
where the user can type a command or search
|
where the user can type a command or search
|
||||||
@@ -539,6 +566,10 @@ ColorScheme After loading a color scheme. |:colorscheme|
|
|||||||
set, and <amatch> for the new colorscheme
|
set, and <amatch> for the new colorscheme
|
||||||
name.
|
name.
|
||||||
|
|
||||||
|
*ColorSchemePre*
|
||||||
|
ColorSchemePre Before loading a color scheme. |:colorscheme|
|
||||||
|
Useful to setup removing things added by a
|
||||||
|
color scheme, before another one is loaded.
|
||||||
|
|
||||||
*CompleteDone*
|
*CompleteDone*
|
||||||
CompleteDone After Insert mode completion is done. Either
|
CompleteDone After Insert mode completion is done. Either
|
||||||
@@ -625,6 +656,21 @@ FileChangedRO Before making the first change to a read-only
|
|||||||
*E881*
|
*E881*
|
||||||
If the number of lines changes saving for undo
|
If the number of lines changes saving for undo
|
||||||
may fail and the change will be aborted.
|
may fail and the change will be aborted.
|
||||||
|
*DirChanged*
|
||||||
|
DirChanged The working directory has changed in response
|
||||||
|
to the |:cd| or |:lcd| commands, or as a
|
||||||
|
result of the 'autochdir' option.
|
||||||
|
The pattern can be:
|
||||||
|
"window" to trigger on `:lcd
|
||||||
|
"global" to trigger on `:cd`
|
||||||
|
"auto" to trigger on 'autochdir'.
|
||||||
|
"drop" to trigger on editing a file
|
||||||
|
<afile> is set to the new directory name.
|
||||||
|
*ExitPre*
|
||||||
|
ExitPre When using `:quit`, `:wq` in a way it makes
|
||||||
|
Vim exit, or using `:qall`, just after
|
||||||
|
|QuitPre|. Can be used to close any
|
||||||
|
non-essential window.
|
||||||
*FileChangedShell*
|
*FileChangedShell*
|
||||||
FileChangedShell When Vim notices that the modification time of
|
FileChangedShell When Vim notices that the modification time of
|
||||||
a file has changed since editing started.
|
a file has changed since editing started.
|
||||||
@@ -762,7 +808,7 @@ InsertCharPre When a character is typed in Insert mode,
|
|||||||
inserted literally.
|
inserted literally.
|
||||||
It is not allowed to change the text |textlock|.
|
It is not allowed to change the text |textlock|.
|
||||||
The event is not triggered when 'paste' is
|
The event is not triggered when 'paste' is
|
||||||
set.
|
set. {only with the +eval feature}
|
||||||
*InsertEnter*
|
*InsertEnter*
|
||||||
InsertEnter Just before starting Insert mode. Also for
|
InsertEnter Just before starting Insert mode. Also for
|
||||||
Replace mode and Virtual Replace mode. The
|
Replace mode and Virtual Replace mode. The
|
||||||
@@ -840,6 +886,7 @@ QuitPre When using `:quit`, `:wq` or `:qall`, before
|
|||||||
or quits Vim. Can be used to close any
|
or quits Vim. Can be used to close any
|
||||||
non-essential window if the current window is
|
non-essential window if the current window is
|
||||||
the last ordinary window.
|
the last ordinary window.
|
||||||
|
Also see |ExitPre|.
|
||||||
*RemoteReply*
|
*RemoteReply*
|
||||||
RemoteReply When a reply from a Vim that functions as
|
RemoteReply When a reply from a Vim that functions as
|
||||||
server was received |server2client()|. The
|
server was received |server2client()|. The
|
||||||
@@ -908,6 +955,7 @@ SwapExists Detected an existing swap file when starting
|
|||||||
It is not allowed to change to another buffer,
|
It is not allowed to change to another buffer,
|
||||||
change a buffer name or change directory
|
change a buffer name or change directory
|
||||||
here.
|
here.
|
||||||
|
{only available with the +eval feature}
|
||||||
*Syntax*
|
*Syntax*
|
||||||
Syntax When the 'syntax' option has been set. The
|
Syntax When the 'syntax' option has been set. The
|
||||||
pattern is matched against the syntax name.
|
pattern is matched against the syntax name.
|
||||||
@@ -934,6 +982,11 @@ TermChanged After the value of 'term' has changed. Useful
|
|||||||
for re-loading the syntax file to update the
|
for re-loading the syntax file to update the
|
||||||
colors, fonts and other terminal-dependent
|
colors, fonts and other terminal-dependent
|
||||||
settings. Executed for all loaded buffers.
|
settings. Executed for all loaded buffers.
|
||||||
|
*TerminalOpen*
|
||||||
|
TerminalOpen Just after a terminal buffer was created, with
|
||||||
|
`:terminal` or |term_start()|. This event is
|
||||||
|
triggered even if the buffer is created
|
||||||
|
without a window, with the ++hidden option.
|
||||||
*TermResponse*
|
*TermResponse*
|
||||||
TermResponse After the response to |t_RV| is received from
|
TermResponse After the response to |t_RV| is received from
|
||||||
the terminal. The value of |v:termresponse|
|
the terminal. The value of |v:termresponse|
|
||||||
@@ -956,10 +1009,39 @@ TextChangedI After a change was made to the text in the
|
|||||||
current buffer in Insert mode.
|
current buffer in Insert mode.
|
||||||
Not triggered when the popup menu is visible.
|
Not triggered when the popup menu is visible.
|
||||||
Otherwise the same as TextChanged.
|
Otherwise the same as TextChanged.
|
||||||
|
*TextChangedP*
|
||||||
|
TextChangedP After a change was made to the text in the
|
||||||
|
current buffer in Insert mode, only when the
|
||||||
|
popup menu is visible. Otherwise the same as
|
||||||
|
TextChanged.
|
||||||
|
*TextYankPost*
|
||||||
|
TextYankPost After text has been yanked or deleted in the
|
||||||
|
current buffer. The following values of
|
||||||
|
|v:event| can be used to determine the operation
|
||||||
|
that triggered this autocmd:
|
||||||
|
operator The operation performed.
|
||||||
|
regcontents Text that was stored in the
|
||||||
|
register, as a list of lines,
|
||||||
|
like with: >
|
||||||
|
getreg(r, 1, 1)
|
||||||
|
< regname Name of the |register| or
|
||||||
|
empty string for the unnamed
|
||||||
|
register.
|
||||||
|
regtype Type of the register, see
|
||||||
|
|getregtype()|.
|
||||||
|
Not triggered when |quote_| is used nor when
|
||||||
|
called recursively.
|
||||||
|
It is not allowed to change the buffer text,
|
||||||
|
see |textlock|.
|
||||||
|
{only when compiled with the +eval feature}
|
||||||
*User*
|
*User*
|
||||||
User Never executed automatically. To be used for
|
User Never executed automatically. To be used for
|
||||||
autocommands that are only executed with
|
autocommands that are only executed with
|
||||||
":doautocmd".
|
":doautocmd".
|
||||||
|
Note that when `:doautocmd User MyEvent` is
|
||||||
|
used while there are no matching autocommands,
|
||||||
|
you will get an error. If you don't want
|
||||||
|
that, define a dummy autocommand yourself.
|
||||||
*UserGettingBored*
|
*UserGettingBored*
|
||||||
UserGettingBored When the user presses the same key 42 times.
|
UserGettingBored When the user presses the same key 42 times.
|
||||||
Just kidding! :-)
|
Just kidding! :-)
|
||||||
@@ -1004,9 +1086,10 @@ WinEnter After entering another window. Not done for
|
|||||||
If the window is for another buffer, Vim
|
If the window is for another buffer, Vim
|
||||||
executes the BufEnter autocommands after the
|
executes the BufEnter autocommands after the
|
||||||
WinEnter autocommands.
|
WinEnter autocommands.
|
||||||
Note: When using ":split fname" the WinEnter
|
Note: For split and tabpage commands the
|
||||||
event is triggered after the split but before
|
WinEnter event is triggered after the split
|
||||||
the file "fname" is loaded.
|
or tab command but before the file is loaded.
|
||||||
|
|
||||||
*WinLeave*
|
*WinLeave*
|
||||||
WinLeave Before leaving a window. If the window to be
|
WinLeave Before leaving a window. If the window to be
|
||||||
entered next is for a different buffer, Vim
|
entered next is for a different buffer, Vim
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*change.txt* For Vim version 8.0. Last change: 2017 Feb 12
|
*change.txt* For Vim version 8.1. Last change: 2018 May 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -110,7 +110,7 @@ is an error when 'cpoptions' includes the 'E' flag.
|
|||||||
J Join [count] lines, with a minimum of two lines.
|
J Join [count] lines, with a minimum of two lines.
|
||||||
Remove the indent and insert up to two spaces (see
|
Remove the indent and insert up to two spaces (see
|
||||||
below). Fails when on the last line of the buffer.
|
below). Fails when on the last line of the buffer.
|
||||||
If [count] is too big it is reduce to the number of
|
If [count] is too big it is reduced to the number of
|
||||||
lines available.
|
lines available.
|
||||||
|
|
||||||
*v_J*
|
*v_J*
|
||||||
@@ -533,6 +533,7 @@ If the 'shiftround' option is on, the indent is rounded to a multiple of
|
|||||||
If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' contains
|
If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' contains
|
||||||
'#' with a zero value, shift right does not affect lines starting with '#'
|
'#' with a zero value, shift right does not affect lines starting with '#'
|
||||||
(these are supposed to be C preprocessor lines that must stay in column 1).
|
(these are supposed to be C preprocessor lines that must stay in column 1).
|
||||||
|
This can be changed with the 'cino' option, see |cino-#|.
|
||||||
|
|
||||||
When the 'expandtab' option is off (this is the default) Vim uses <Tab>s as
|
When the 'expandtab' option is off (this is the default) Vim uses <Tab>s as
|
||||||
much as possible to make the indent. You can use ">><<" to replace an indent
|
much as possible to make the indent. You can use ">><<" to replace an indent
|
||||||
@@ -1444,6 +1445,55 @@ to the name of an external program for Vim to use for text formatting. The
|
|||||||
'textwidth' and other options have no effect on formatting by an external
|
'textwidth' and other options have no effect on formatting by an external
|
||||||
program.
|
program.
|
||||||
|
|
||||||
|
*format-formatexpr*
|
||||||
|
The 'formatexpr' option can be set to a Vim Script function that performs
|
||||||
|
reformatting of the buffer. This should usually happen in an |ftplugin|,
|
||||||
|
since formatting is highly dependent on the type of file. It makes
|
||||||
|
sense to use an |autoload| script, so the corresponding script is only loaded
|
||||||
|
when actually needed and the script should be called <filetype>format.vim.
|
||||||
|
|
||||||
|
For example, the XML filetype plugin distributed with Vim in the $VIMRUNTIME
|
||||||
|
directory, sets the 'formatexpr' option to: >
|
||||||
|
|
||||||
|
setlocal formatexpr=xmlformat#Format()
|
||||||
|
|
||||||
|
That means, you will find the corresponding script, defining the
|
||||||
|
xmlformat#Format() function, in the directory:
|
||||||
|
`$VIMRUNTIME/autoload/xmlformat.vim`
|
||||||
|
|
||||||
|
Here is an example script that removes trailing whitespace from the selected
|
||||||
|
text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
|
||||||
|
|
||||||
|
func! format#Format()
|
||||||
|
" only reformat on explicit gq command
|
||||||
|
if mode() != 'n'
|
||||||
|
" fall back to Vims internal reformatting
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
let lines = getline(v:lnum, v:lnum + v:count - 1)
|
||||||
|
call map(lines, {key, val -> substitute(val, '\s\+$', '', 'g')})
|
||||||
|
call setline('.', lines)
|
||||||
|
|
||||||
|
" do not run internal formatter!
|
||||||
|
return 0
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
You can then enable the formatting by executing: >
|
||||||
|
setlocal formatexpr=format#Format()
|
||||||
|
>
|
||||||
|
Note: this function explicitly returns non-zero when called from insert mode
|
||||||
|
(which basically means, text is inserted beyond the 'textwidth' limit). This
|
||||||
|
causes Vim to fall back to reformat the text by using the internal formatter.
|
||||||
|
|
||||||
|
However, if the |gq| command is used to reformat the text, the function
|
||||||
|
will receive the selected lines, trim trailing whitespace from those lines and
|
||||||
|
put them back in place. If you are going to split single lines into multiple
|
||||||
|
lines, be careful not to overwrite anything.
|
||||||
|
|
||||||
|
If you want to allow reformatting of text from insert or replace mode, one has
|
||||||
|
to be very careful, because the function might be called recursively. For
|
||||||
|
debugging it helps to set the 'debug' option.
|
||||||
|
|
||||||
*right-justify*
|
*right-justify*
|
||||||
There is no command in Vim to right justify text. You can do it with
|
There is no command in Vim to right justify text. You can do it with
|
||||||
an external command, like "par" (e.g.: "!}par" to format until the end of the
|
an external command, like "par" (e.g.: "!}par" to format until the end of the
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*channel.txt* For Vim version 8.0. Last change: 2017 Aug 11
|
*channel.txt* For Vim version 8.1. Last change: 2018 Apr 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -55,7 +55,7 @@ JS JavaScript style JSON-like encoding |js_encode()|
|
|||||||
Common combination are:
|
Common combination are:
|
||||||
- Using a job connected through pipes in NL mode. E.g., to run a style
|
- Using a job connected through pipes in NL mode. E.g., to run a style
|
||||||
checker and receive errors and warnings.
|
checker and receive errors and warnings.
|
||||||
- Using a deamon, connecting over a socket in JSON mode. E.g. to lookup
|
- Using a daemon, connecting over a socket in JSON mode. E.g. to lookup
|
||||||
cross-references in a database.
|
cross-references in a database.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 8.0. Last change: 2017 Oct 19
|
*cmdline.txt* For Vim version 8.1. Last change: 2018 May 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -175,12 +175,14 @@ CTRL-R CTRL-F *c_CTRL-R_CTRL-F* *c_<C-R>_<C-F>*
|
|||||||
CTRL-R CTRL-P *c_CTRL-R_CTRL-P* *c_<C-R>_<C-P>*
|
CTRL-R CTRL-P *c_CTRL-R_CTRL-P* *c_<C-R>_<C-P>*
|
||||||
CTRL-R CTRL-W *c_CTRL-R_CTRL-W* *c_<C-R>_<C-W>*
|
CTRL-R CTRL-W *c_CTRL-R_CTRL-W* *c_<C-R>_<C-W>*
|
||||||
CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
|
CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
|
||||||
|
CTRL-R CTRL-L *c_CTRL-R_CTRL-L* *c_<C-R>_<C-L>*
|
||||||
Insert the object under the cursor:
|
Insert the object under the cursor:
|
||||||
CTRL-F the Filename under the cursor
|
CTRL-F the Filename under the cursor
|
||||||
CTRL-P the Filename under the cursor, expanded with
|
CTRL-P the Filename under the cursor, expanded with
|
||||||
'path' as in |gf|
|
'path' as in |gf|
|
||||||
CTRL-W the Word under the cursor
|
CTRL-W the Word under the cursor
|
||||||
CTRL-A the WORD under the cursor; see |WORD|
|
CTRL-A the WORD under the cursor; see |WORD|
|
||||||
|
CTRL-L the line under the cursor
|
||||||
|
|
||||||
When 'incsearch' is set the cursor position at the end of the
|
When 'incsearch' is set the cursor position at the end of the
|
||||||
currently displayed match is used. With CTRL-W the part of
|
currently displayed match is used. With CTRL-W the part of
|
||||||
@@ -192,8 +194,8 @@ CTRL-R CTRL-A *c_CTRL-R_CTRL-A* *c_<C-R>_<C-A>*
|
|||||||
|
|
||||||
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
||||||
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
||||||
CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A}
|
CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
||||||
CTRL-R CTRL-O {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A}
|
CTRL-R CTRL-O {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
||||||
Insert register or object under the cursor. Works like
|
Insert register or object under the cursor. Works like
|
||||||
|c_CTRL-R| but inserts the text literally. For example, if
|
|c_CTRL-R| but inserts the text literally. For example, if
|
||||||
register a contains "xy^Hz" (where ^H is a backspace),
|
register a contains "xy^Hz" (where ^H is a backspace),
|
||||||
@@ -410,14 +412,17 @@ CTRL-D List names that match the pattern in front of the cursor.
|
|||||||
match is inserted. After the last match, the first is used
|
match is inserted. After the last match, the first is used
|
||||||
again (wrap around).
|
again (wrap around).
|
||||||
The behavior can be changed with the 'wildmode' option.
|
The behavior can be changed with the 'wildmode' option.
|
||||||
|
*c_<S-Tab>*
|
||||||
|
<S-Tab> Like 'wildchar' or <Tab>, but begin with the last match and
|
||||||
|
then go to the previous match.
|
||||||
|
<S-Tab> does not work everywhere.
|
||||||
*c_CTRL-N*
|
*c_CTRL-N*
|
||||||
CTRL-N After using 'wildchar' which got multiple matches, go to next
|
CTRL-N After using 'wildchar' which got multiple matches, go to next
|
||||||
match. Otherwise recall more recent command-line from history.
|
match. Otherwise recall more recent command-line from history.
|
||||||
<S-Tab> *c_CTRL-P* *c_<S-Tab>*
|
*c_CTRL-P*
|
||||||
CTRL-P After using 'wildchar' which got multiple matches, go to
|
CTRL-P After using 'wildchar' which got multiple matches, go to
|
||||||
previous match. Otherwise recall older command-line from
|
previous match. Otherwise recall older command-line from
|
||||||
history. <S-Tab> only works with the GUI, on the Amiga and
|
history.
|
||||||
with MS-DOS.
|
|
||||||
*c_CTRL-A*
|
*c_CTRL-A*
|
||||||
CTRL-A All names that match the pattern in front of the cursor are
|
CTRL-A All names that match the pattern in front of the cursor are
|
||||||
inserted.
|
inserted.
|
||||||
@@ -453,6 +458,10 @@ a previous version <Esc> was used). In the pattern standard wildcards '*' and
|
|||||||
'?' are accepted when matching file names. '*' matches any string, '?'
|
'?' are accepted when matching file names. '*' matches any string, '?'
|
||||||
matches exactly one character.
|
matches exactly one character.
|
||||||
|
|
||||||
|
When repeating 'wildchar' or CTRL-N you cycle through the matches, eventually
|
||||||
|
ending up back to what was typed. If the first match is not what you wanted,
|
||||||
|
you can use <S-Tab> or CTRL-P to go straight back to what you typed.
|
||||||
|
|
||||||
The 'wildignorecase' option can be set to ignore case in filenames.
|
The 'wildignorecase' option can be set to ignore case in filenames.
|
||||||
|
|
||||||
The 'wildmenu' option can be set to show the matches just above the command
|
The 'wildmenu' option can be set to show the matches just above the command
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*debug.txt* For Vim version 8.0. Last change: 2017 Jul 15
|
*debug.txt* For Vim version 8.1. Last change: 2017 Jul 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*debugger.txt* For Vim version 8.0. Last change: 2017 Nov 21
|
*debugger.txt* For Vim version 8.1. Last change: 2017 Nov 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur
|
VIM REFERENCE MANUAL by Gordon Prieur
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*develop.txt* For Vim version 8.0. Last change: 2017 Jul 31
|
*develop.txt* For Vim version 8.1. Last change: 2018 May 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -18,7 +18,8 @@ See the file README.txt in the "src" directory for an overview of the source
|
|||||||
code.
|
code.
|
||||||
|
|
||||||
Vim is open source software. Everybody is encouraged to contribute to help
|
Vim is open source software. Everybody is encouraged to contribute to help
|
||||||
improving Vim. For sending patches a context diff "diff -c" is preferred.
|
improving Vim. For sending patches a unified diff "diff -u" is preferred.
|
||||||
|
You can create a pull request on github, but it's not required.
|
||||||
Also see http://vim.wikia.com/wiki/How_to_make_and_submit_a_patch.
|
Also see http://vim.wikia.com/wiki/How_to_make_and_submit_a_patch.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
@@ -182,12 +183,43 @@ The basic steps to make changes to the code:
|
|||||||
include the diff. Or create a pull request on github.
|
include the diff. Or create a pull request on github.
|
||||||
|
|
||||||
|
|
||||||
C COMPILER *style-compiler*
|
C COMPILER *style-compiler* *ANSI-C* *C89* *C99*
|
||||||
|
|
||||||
The minimal C compiler version supported is C89, also known as ANSI C.
|
The minimal C compiler version supported is C89, also known as ANSI C.
|
||||||
Later standards don't add much and C89 is the widest supported.
|
Later standards, such as C99, are not widely supported, or at least not 100%
|
||||||
|
supported. Therefore we use only some of the C99 features and disallow some
|
||||||
|
(at least for now).
|
||||||
|
|
||||||
One restriction that this implies: no // comments, only /* comments */.
|
Please don't make changes everywhere to use the C99 features, it causes merge
|
||||||
|
problems for existing patches. Only use them for new and changed code.
|
||||||
|
|
||||||
|
Comments ~
|
||||||
|
|
||||||
|
Traditionally Vim uses /* comments */. We intend to keep it that way,
|
||||||
|
especially for file and function headers. For new code or lines of code that
|
||||||
|
change, it is allowed to use // comments. Especially when it comes after
|
||||||
|
code:
|
||||||
|
int some_var; // single line comment useful here
|
||||||
|
|
||||||
|
Enums ~
|
||||||
|
|
||||||
|
The last item in an enum may have a trailing comma. C89 didn't allow this.
|
||||||
|
|
||||||
|
Types ~
|
||||||
|
|
||||||
|
"long long" is allowed and can be expected to be 64 bits. Use %lld in printf
|
||||||
|
formats. Also "long long unsigned" with %llu.
|
||||||
|
|
||||||
|
Not to be used ~
|
||||||
|
|
||||||
|
These C99 features are not to be used, because not enough compilers support
|
||||||
|
them:
|
||||||
|
- Declaration after Statements (MSVC 2012 does not support it). All
|
||||||
|
declarations need to be at the start of the block.
|
||||||
|
- Variable length arrays (even in C11 this is an optional feature).
|
||||||
|
- _Bool and _Complex types.
|
||||||
|
- "inline" (it's hardly ever needed, let the optimizer do its work)
|
||||||
|
- flexible array members: Not supported by HP-UX C compiler (John Marriott)
|
||||||
|
|
||||||
|
|
||||||
USE OF COMMON FUNCTIONS *style-functions*
|
USE OF COMMON FUNCTIONS *style-functions*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*diff.txt* For Vim version 8.0. Last change: 2017 Oct 03
|
*diff.txt* For Vim version 8.1. Last change: 2017 Oct 03
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*digraph.txt* For Vim version 8.0. Last change: 2016 Nov 04
|
*digraph.txt* For Vim version 8.1. Last change: 2016 Nov 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 8.0. Last change: 2017 Nov 16
|
*editing.txt* For Vim version 8.1. Last change: 2018 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -424,6 +424,15 @@ On Unix and a few other systems you can also use backticks for the file name
|
|||||||
argument, for example: >
|
argument, for example: >
|
||||||
:next `find . -name ver\\*.c -print`
|
:next `find . -name ver\\*.c -print`
|
||||||
:view `ls -t *.patch \| head -n1`
|
:view `ls -t *.patch \| head -n1`
|
||||||
|
Vim will run the command in backticks using the 'shell' and use the standard
|
||||||
|
output as argument for the given Vim command (error messages from the shell
|
||||||
|
command will be discarded).
|
||||||
|
To see what shell command Vim is running, set the 'verbose' option to 4. When
|
||||||
|
the shell command returns a non-zero exit code, an error message will be
|
||||||
|
displayed and the Vim command will be aborted. To avoid this make the shell
|
||||||
|
always return zero like so: >
|
||||||
|
:next `find . -name ver\\*.c -print \|\| true`
|
||||||
|
|
||||||
The backslashes before the star are required to prevent the shell from
|
The backslashes before the star are required to prevent the shell from
|
||||||
expanding "ver*.c" prior to execution of the find program. The backslash
|
expanding "ver*.c" prior to execution of the find program. The backslash
|
||||||
before the shell pipe symbol "|" prevents Vim from parsing it as command
|
before the shell pipe symbol "|" prevents Vim from parsing it as command
|
||||||
@@ -650,8 +659,7 @@ list of the current window.
|
|||||||
There is no check for duplicates, it is possible to
|
There is no check for duplicates, it is possible to
|
||||||
add a file to the argument list twice.
|
add a file to the argument list twice.
|
||||||
The currently edited file is not changed.
|
The currently edited file is not changed.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
Note: you can also use this method: >
|
Note: you can also use this method: >
|
||||||
:args ## x
|
:args ## x
|
||||||
< This will add the "x" item and sort the new list.
|
< This will add the "x" item and sort the new list.
|
||||||
@@ -665,8 +673,7 @@ list of the current window.
|
|||||||
when it's deleted from the argument list.
|
when it's deleted from the argument list.
|
||||||
Example: >
|
Example: >
|
||||||
:argdel *.obj
|
:argdel *.obj
|
||||||
< {not in Vi} {not available when compiled without the
|
< {not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[range]argd[elete] Delete the {range} files from the argument list.
|
:[range]argd[elete] Delete the {range} files from the argument list.
|
||||||
Example: >
|
Example: >
|
||||||
@@ -681,8 +688,7 @@ list of the current window.
|
|||||||
< Removes all the files from the arglist.
|
< Removes all the files from the arglist.
|
||||||
When the last number in the range is too high, up to
|
When the last number in the range is too high, up to
|
||||||
the last argument is deleted.
|
the last argument is deleted.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
*:argu* *:argument*
|
*:argu* *:argument*
|
||||||
:[count]argu[ment] [count] [++opt] [+cmd]
|
:[count]argu[ment] [count] [++opt] [+cmd]
|
||||||
@@ -691,16 +697,14 @@ list of the current window.
|
|||||||
when changes have been made and Vim does not want to
|
when changes have been made and Vim does not want to
|
||||||
|abandon| the current buffer.
|
|abandon| the current buffer.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[count]argu[ment]! [count] [++opt] [+cmd]
|
:[count]argu[ment]! [count] [++opt] [+cmd]
|
||||||
Edit file [count] in the argument list, discard any
|
Edit file [count] in the argument list, discard any
|
||||||
changes to the current buffer. When [count] is
|
changes to the current buffer. When [count] is
|
||||||
omitted the current entry is used.
|
omitted the current entry is used.
|
||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
|
|
||||||
:[count]n[ext] [++opt] [+cmd] *:n* *:ne* *:next* *E165* *E163*
|
:[count]n[ext] [++opt] [+cmd] *:n* *:ne* *:next* *E165* *E163*
|
||||||
Edit [count] next file. This fails when changes have
|
Edit [count] next file. This fails when changes have
|
||||||
@@ -823,7 +827,6 @@ fourth file in the argument list. This happens when you do ":e file".
|
|||||||
LOCAL ARGUMENT LIST
|
LOCAL ARGUMENT LIST
|
||||||
|
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+windows| or |+listcmds| features}
|
|
||||||
|
|
||||||
*:arglocal*
|
*:arglocal*
|
||||||
:argl[ocal] Make a local copy of the global argument list.
|
:argl[ocal] Make a local copy of the global argument list.
|
||||||
@@ -875,8 +878,7 @@ USING THE ARGUMENT LIST
|
|||||||
autocommand event is disabled by adding it to
|
autocommand event is disabled by adding it to
|
||||||
'eventignore'. This considerably speeds up editing
|
'eventignore'. This considerably speeds up editing
|
||||||
each file.
|
each file.
|
||||||
{not in Vi} {not available when compiled without the
|
{not in Vi}
|
||||||
|+listcmds| feature}
|
|
||||||
Also see |:windo|, |:tabdo|, |:bufdo|, |:cdo|, |:ldo|,
|
Also see |:windo|, |:tabdo|, |:bufdo|, |:cdo|, |:ldo|,
|
||||||
|:cfdo| and |:lfdo|
|
|:cfdo| and |:lfdo|
|
||||||
|
|
||||||
@@ -1202,7 +1204,8 @@ MULTIPLE WINDOWS AND BUFFERS *window-exit*
|
|||||||
:wqa[ll]! [++opt]
|
:wqa[ll]! [++opt]
|
||||||
:xa[ll]! Write all changed buffers, even the ones that are readonly,
|
:xa[ll]! Write all changed buffers, even the ones that are readonly,
|
||||||
and exit Vim. If there are buffers without a file name or
|
and exit Vim. If there are buffers without a file name or
|
||||||
which cannot be written for another reason, Vim will not quit.
|
which cannot be written for another reason, or there is a
|
||||||
|
terminal with a running job, Vim will not quit.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*eval.txt* For Vim version 8.0. Last change: 2017 Nov 19
|
*eval.txt* For Vim version 8.1. Last change: 2018 May 17
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -1246,8 +1246,8 @@ The arguments are optional. Example: >
|
|||||||
*closure*
|
*closure*
|
||||||
Lambda expressions can access outer scope variables and arguments. This is
|
Lambda expressions can access outer scope variables and arguments. This is
|
||||||
often called a closure. Example where "i" and "a:arg" are used in a lambda
|
often called a closure. Example where "i" and "a:arg" are used in a lambda
|
||||||
while they exist in the function scope. They remain valid even after the
|
while they already exist in the function scope. They remain valid even after
|
||||||
function returns: >
|
the function returns: >
|
||||||
:function Foo(arg)
|
:function Foo(arg)
|
||||||
: let i = 3
|
: let i = 3
|
||||||
: return {x -> x + i - a:arg}
|
: return {x -> x + i - a:arg}
|
||||||
@@ -1256,7 +1256,10 @@ function returns: >
|
|||||||
:echo Bar(6)
|
:echo Bar(6)
|
||||||
< 5
|
< 5
|
||||||
|
|
||||||
See also |:func-closure|. Lambda and closure support can be checked with: >
|
Note that the variables must exist in the outer scope before the lamba is
|
||||||
|
defined for this to work. See also |:func-closure|.
|
||||||
|
|
||||||
|
Lambda and closure support can be checked with: >
|
||||||
if has('lambda')
|
if has('lambda')
|
||||||
|
|
||||||
Examples for using a lambda expression with |sort()|, |map()| and |filter()|: >
|
Examples for using a lambda expression with |sort()|, |map()| and |filter()|: >
|
||||||
@@ -1545,15 +1548,23 @@ v:errmsg Last given error message. It's allowed to set this variable.
|
|||||||
: ... handle error
|
: ... handle error
|
||||||
< "errmsg" also works, for backwards compatibility.
|
< "errmsg" also works, for backwards compatibility.
|
||||||
|
|
||||||
*v:errors* *errors-variable*
|
*v:errors* *errors-variable* *assert-return*
|
||||||
v:errors Errors found by assert functions, such as |assert_true()|.
|
v:errors Errors found by assert functions, such as |assert_true()|.
|
||||||
This is a list of strings.
|
This is a list of strings.
|
||||||
The assert functions append an item when an assert fails.
|
The assert functions append an item when an assert fails.
|
||||||
|
The return value indicates this: a one is returned if an item
|
||||||
|
was added to v:errors, otherwise zero is returned.
|
||||||
To remove old results make it empty: >
|
To remove old results make it empty: >
|
||||||
:let v:errors = []
|
:let v:errors = []
|
||||||
< If v:errors is set to anything but a list it is made an empty
|
< If v:errors is set to anything but a list it is made an empty
|
||||||
list by the assert function.
|
list by the assert function.
|
||||||
|
|
||||||
|
*v:event* *event-variable*
|
||||||
|
v:event Dictionary containing information about the current
|
||||||
|
|autocommand|. The dictionary is emptied when the |autocommand|
|
||||||
|
finishes, please refer to |dict-identity| for how to get an
|
||||||
|
independent copy of it.
|
||||||
|
|
||||||
*v:exception* *exception-variable*
|
*v:exception* *exception-variable*
|
||||||
v:exception The value of the exception most recently caught and not
|
v:exception The value of the exception most recently caught and not
|
||||||
finished. See also |v:throwpoint| and |throw-variables|.
|
finished. See also |v:throwpoint| and |throw-variables|.
|
||||||
@@ -2011,27 +2022,30 @@ argidx() Number current index in the argument list
|
|||||||
arglistid([{winnr} [, {tabnr}]]) Number argument list id
|
arglistid([{winnr} [, {tabnr}]]) Number argument list id
|
||||||
argv({nr}) String {nr} entry of the argument list
|
argv({nr}) String {nr} entry of the argument list
|
||||||
argv() List the argument list
|
argv() List the argument list
|
||||||
|
assert_beeps({cmd}) Number assert {cmd} causes a beep
|
||||||
assert_equal({exp}, {act} [, {msg}])
|
assert_equal({exp}, {act} [, {msg}])
|
||||||
none assert {exp} is equal to {act}
|
Number assert {exp} is equal to {act}
|
||||||
|
assert_equalfile({fname-one}, {fname-two})
|
||||||
|
Number assert file contents is equal
|
||||||
assert_exception({error} [, {msg}])
|
assert_exception({error} [, {msg}])
|
||||||
none assert {error} is in v:exception
|
Number assert {error} is in v:exception
|
||||||
assert_fails({cmd} [, {error}]) none assert {cmd} fails
|
assert_fails({cmd} [, {error}]) Number assert {cmd} fails
|
||||||
assert_false({actual} [, {msg}])
|
assert_false({actual} [, {msg}])
|
||||||
none assert {actual} is false
|
Number assert {actual} is false
|
||||||
assert_inrange({lower}, {upper}, {actual} [, {msg}])
|
assert_inrange({lower}, {upper}, {actual} [, {msg}])
|
||||||
none assert {actual} is inside the range
|
Number assert {actual} is inside the range
|
||||||
assert_match({pat}, {text} [, {msg}])
|
assert_match({pat}, {text} [, {msg}])
|
||||||
none assert {pat} matches {text}
|
Number assert {pat} matches {text}
|
||||||
assert_notequal({exp}, {act} [, {msg}])
|
assert_notequal({exp}, {act} [, {msg}])
|
||||||
none assert {exp} is not equal {act}
|
Number assert {exp} is not equal {act}
|
||||||
assert_notmatch({pat}, {text} [, {msg}])
|
assert_notmatch({pat}, {text} [, {msg}])
|
||||||
none assert {pat} not matches {text}
|
Number assert {pat} not matches {text}
|
||||||
assert_report({msg}) none report a test failure
|
assert_report({msg}) Number report a test failure
|
||||||
assert_true({actual} [, {msg}]) none assert {actual} is true
|
assert_true({actual} [, {msg}]) Number assert {actual} is true
|
||||||
asin({expr}) Float arc sine of {expr}
|
asin({expr}) Float arc sine of {expr}
|
||||||
atan({expr}) Float arc tangent of {expr}
|
atan({expr}) Float arc tangent of {expr}
|
||||||
atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
|
atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
|
||||||
balloon_show({msg}) none show {msg} inside the balloon
|
balloon_show({expr}) none show {expr} inside the balloon
|
||||||
balloon_split({msg}) List split {msg} as used for a balloon
|
balloon_split({msg}) List split {msg} as used for a balloon
|
||||||
browse({save}, {title}, {initdir}, {default})
|
browse({save}, {title}, {initdir}, {default})
|
||||||
String put up a file requester
|
String put up a file requester
|
||||||
@@ -2145,6 +2159,7 @@ getbufline({expr}, {lnum} [, {end}])
|
|||||||
List lines {lnum} to {end} of buffer {expr}
|
List lines {lnum} to {end} of buffer {expr}
|
||||||
getbufvar({expr}, {varname} [, {def}])
|
getbufvar({expr}, {varname} [, {def}])
|
||||||
any variable {varname} in buffer {expr}
|
any variable {varname} in buffer {expr}
|
||||||
|
getchangelist({expr}) List list of change list items
|
||||||
getchar([expr]) Number get one character from the user
|
getchar([expr]) Number get one character from the user
|
||||||
getcharmod() Number modifiers for the last typed character
|
getcharmod() Number modifiers for the last typed character
|
||||||
getcharsearch() Dict last character search
|
getcharsearch() Dict last character search
|
||||||
@@ -2161,6 +2176,8 @@ getfperm({fname}) String file permissions of file {fname}
|
|||||||
getfsize({fname}) Number size in bytes of file {fname}
|
getfsize({fname}) Number size in bytes of file {fname}
|
||||||
getftime({fname}) Number last modification time of file
|
getftime({fname}) Number last modification time of file
|
||||||
getftype({fname}) String description of type of file {fname}
|
getftype({fname}) String description of type of file {fname}
|
||||||
|
getjumplist([{winnr} [, {tabnr}]])
|
||||||
|
List list of jump list items
|
||||||
getline({lnum}) String line {lnum} of current buffer
|
getline({lnum}) String line {lnum} of current buffer
|
||||||
getline({lnum}, {end}) List lines {lnum} to {end} of current buffer
|
getline({lnum}, {end}) List lines {lnum} to {end} of current buffer
|
||||||
getloclist({nr} [, {what}]) List list of location list items
|
getloclist({nr} [, {what}]) List list of location list items
|
||||||
@@ -2177,8 +2194,9 @@ gettabvar({nr}, {varname} [, {def}])
|
|||||||
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
|
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
|
||||||
any {name} in {winnr} in tab page {tabnr}
|
any {name} in {winnr} in tab page {tabnr}
|
||||||
getwininfo([{winid}]) List list of windows
|
getwininfo([{winid}]) List list of windows
|
||||||
getwinposx() Number X coord in pixels of GUI Vim window
|
getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window
|
||||||
getwinposy() Number Y coord in pixels of GUI Vim window
|
getwinposx() Number X coord in pixels of the Vim window
|
||||||
|
getwinposy() Number Y coord in pixels of the Vim window
|
||||||
getwinvar({nr}, {varname} [, {def}])
|
getwinvar({nr}, {varname} [, {def}])
|
||||||
any variable {varname} in window {nr}
|
any variable {varname} in window {nr}
|
||||||
glob({expr} [, {nosuf} [, {list} [, {alllinks}]]])
|
glob({expr} [, {nosuf} [, {list} [, {alllinks}]]])
|
||||||
@@ -2218,7 +2236,7 @@ islocked({expr}) Number |TRUE| if {expr} is locked
|
|||||||
isnan({expr}) Number |TRUE| if {expr} is NaN
|
isnan({expr}) Number |TRUE| if {expr} is NaN
|
||||||
items({dict}) List key-value pairs in {dict}
|
items({dict}) List key-value pairs in {dict}
|
||||||
job_getchannel({job}) Channel get the channel handle for {job}
|
job_getchannel({job}) Channel get the channel handle for {job}
|
||||||
job_info({job}) Dict get information about {job}
|
job_info([{job}]) Dict get information about {job}
|
||||||
job_setoptions({job}, {options}) none set options for {job}
|
job_setoptions({job}, {options}) none set options for {job}
|
||||||
job_start({command} [, {options}])
|
job_start({command} [, {options}])
|
||||||
Job start a job
|
Job start a job
|
||||||
@@ -2398,7 +2416,14 @@ tagfiles() List tags files used
|
|||||||
tan({expr}) Float tangent of {expr}
|
tan({expr}) Float tangent of {expr}
|
||||||
tanh({expr}) Float hyperbolic tangent of {expr}
|
tanh({expr}) Float hyperbolic tangent of {expr}
|
||||||
tempname() String name for a temporary file
|
tempname() String name for a temporary file
|
||||||
|
term_dumpdiff({filename}, {filename} [, {options}])
|
||||||
|
Number display difference between two dumps
|
||||||
|
term_dumpload({filename} [, {options}])
|
||||||
|
Number displaying a screen dump
|
||||||
|
term_dumpwrite({buf}, {filename} [, {options}])
|
||||||
|
none dump terminal window contents
|
||||||
term_getaltscreen({buf}) Number get the alternate screen flag
|
term_getaltscreen({buf}) Number get the alternate screen flag
|
||||||
|
term_getansicolors({buf}) List get ANSI palette in GUI color mode
|
||||||
term_getattr({attr}, {what}) Number get the value of attribute {what}
|
term_getattr({attr}, {what}) Number get the value of attribute {what}
|
||||||
term_getcursor({buf}) List get the cursor position of a terminal
|
term_getcursor({buf}) List get the cursor position of a terminal
|
||||||
term_getjob({buf}) Job get the job associated with a terminal
|
term_getjob({buf}) Job get the job associated with a terminal
|
||||||
@@ -2411,6 +2436,12 @@ term_gettty({buf}, [{input}]) String get the tty name of a terminal
|
|||||||
term_list() List get the list of terminal buffers
|
term_list() List get the list of terminal buffers
|
||||||
term_scrape({buf}, {row}) List get row of a terminal screen
|
term_scrape({buf}, {row}) List get row of a terminal screen
|
||||||
term_sendkeys({buf}, {keys}) none send keystrokes to a terminal
|
term_sendkeys({buf}, {keys}) none send keystrokes to a terminal
|
||||||
|
term_setansicolors({buf}, {colors})
|
||||||
|
none set ANSI palette in GUI color mode
|
||||||
|
term_setkill({buf}, {how}) none set signal to stop job in terminal
|
||||||
|
term_setrestore({buf}, {command}) none set command to restore terminal
|
||||||
|
term_setsize({buf}, {rows}, {cols})
|
||||||
|
none set the size of a terminal
|
||||||
term_start({cmd}, {options}) Job open a terminal window and run a job
|
term_start({cmd}, {options}) Job open a terminal window and run a job
|
||||||
term_wait({buf} [, {time}]) Number wait for screen to be updated
|
term_wait({buf} [, {time}]) Number wait for screen to be updated
|
||||||
test_alloc_fail({id}, {countdown}, {repeat})
|
test_alloc_fail({id}, {countdown}, {repeat})
|
||||||
@@ -2437,6 +2468,7 @@ tolower({expr}) String the String {expr} switched to lowercase
|
|||||||
toupper({expr}) String the String {expr} switched to uppercase
|
toupper({expr}) String the String {expr} switched to uppercase
|
||||||
tr({src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
|
tr({src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
|
||||||
to chars in {tostr}
|
to chars in {tostr}
|
||||||
|
trim({text}[, {mask}]) String trim characters in {mask} from {text}
|
||||||
trunc({expr}) Float truncate Float {expr}
|
trunc({expr}) Float truncate Float {expr}
|
||||||
type({name}) Number type of variable {name}
|
type({name}) Number type of variable {name}
|
||||||
undofile({name}) String undo file name for {name}
|
undofile({name}) String undo file name for {name}
|
||||||
@@ -2452,6 +2484,7 @@ win_getid([{win} [, {tab}]]) Number get window ID for {win} in {tab}
|
|||||||
win_gotoid({expr}) Number go to window with ID {expr}
|
win_gotoid({expr}) Number go to window with ID {expr}
|
||||||
win_id2tabwin({expr}) List get tab and window nr from window ID
|
win_id2tabwin({expr}) List get tab and window nr from window ID
|
||||||
win_id2win({expr}) Number get window nr from window ID
|
win_id2win({expr}) Number get window nr from window ID
|
||||||
|
win_screenpos({nr}) List get screen position of window {nr}
|
||||||
winbufnr({nr}) Number buffer number of window {nr}
|
winbufnr({nr}) Number buffer number of window {nr}
|
||||||
wincol() Number window column of the cursor
|
wincol() Number window column of the cursor
|
||||||
winheight({nr}) Number height of window {nr}
|
winheight({nr}) Number height of window {nr}
|
||||||
@@ -2557,10 +2590,16 @@ argv([{nr}]) The result is the {nr}th file in the argument list of the
|
|||||||
< Without the {nr} argument a |List| with the whole |arglist| is
|
< Without the {nr} argument a |List| with the whole |arglist| is
|
||||||
returned.
|
returned.
|
||||||
|
|
||||||
|
assert_beeps({cmd}) *assert_beeps()*
|
||||||
|
Run {cmd} and add an error message to |v:errors| if it does
|
||||||
|
NOT produce a beep or visual bell.
|
||||||
|
Also see |assert_fails()| and |assert-return|.
|
||||||
|
|
||||||
*assert_equal()*
|
*assert_equal()*
|
||||||
assert_equal({expected}, {actual} [, {msg}])
|
assert_equal({expected}, {actual} [, {msg}])
|
||||||
When {expected} and {actual} are not equal an error message is
|
When {expected} and {actual} are not equal an error message is
|
||||||
added to |v:errors|.
|
added to |v:errors| and 1 is returned. Otherwise zero is
|
||||||
|
returned |assert-return|.
|
||||||
There is no automatic conversion, the String "4" is different
|
There is no automatic conversion, the String "4" is different
|
||||||
from the Number 4. And the number 4 is different from the
|
from the Number 4. And the number 4 is different from the
|
||||||
Float 4.0. The value of 'ignorecase' is not used here, case
|
Float 4.0. The value of 'ignorecase' is not used here, case
|
||||||
@@ -2572,9 +2611,18 @@ assert_equal({expected}, {actual} [, {msg}])
|
|||||||
< Will result in a string to be added to |v:errors|:
|
< Will result in a string to be added to |v:errors|:
|
||||||
test.vim line 12: Expected 'foo' but got 'bar' ~
|
test.vim line 12: Expected 'foo' but got 'bar' ~
|
||||||
|
|
||||||
|
*assert_equalfile()*
|
||||||
|
assert_equalfile({fname-one}, {fname-two})
|
||||||
|
When the files {fname-one} and {fname-two} do not contain
|
||||||
|
exactly the same text an error message is added to |v:errors|.
|
||||||
|
Also see |assert-return|.
|
||||||
|
When {fname-one} or {fname-two} does not exist the error will
|
||||||
|
mention that.
|
||||||
|
Mainly useful with |terminal-diff|.
|
||||||
|
|
||||||
assert_exception({error} [, {msg}]) *assert_exception()*
|
assert_exception({error} [, {msg}]) *assert_exception()*
|
||||||
When v:exception does not contain the string {error} an error
|
When v:exception does not contain the string {error} an error
|
||||||
message is added to |v:errors|.
|
message is added to |v:errors|. Also see |assert-return|.
|
||||||
This can be used to assert that a command throws an exception.
|
This can be used to assert that a command throws an exception.
|
||||||
Using the error number, followed by a colon, avoids problems
|
Using the error number, followed by a colon, avoids problems
|
||||||
with translations: >
|
with translations: >
|
||||||
@@ -2587,12 +2635,15 @@ assert_exception({error} [, {msg}]) *assert_exception()*
|
|||||||
|
|
||||||
assert_fails({cmd} [, {error}]) *assert_fails()*
|
assert_fails({cmd} [, {error}]) *assert_fails()*
|
||||||
Run {cmd} and add an error message to |v:errors| if it does
|
Run {cmd} and add an error message to |v:errors| if it does
|
||||||
NOT produce an error.
|
NOT produce an error. Also see |assert-return|.
|
||||||
When {error} is given it must match in |v:errmsg|.
|
When {error} is given it must match in |v:errmsg|.
|
||||||
|
Note that beeping is not considered an error, and some failing
|
||||||
|
commands only beep. Use |assert_beeps()| for those.
|
||||||
|
|
||||||
assert_false({actual} [, {msg}]) *assert_false()*
|
assert_false({actual} [, {msg}]) *assert_false()*
|
||||||
When {actual} is not false an error message is added to
|
When {actual} is not false an error message is added to
|
||||||
|v:errors|, like with |assert_equal()|.
|
|v:errors|, like with |assert_equal()|.
|
||||||
|
Also see |assert-return|.
|
||||||
A value is false when it is zero. When {actual} is not a
|
A value is false when it is zero. When {actual} is not a
|
||||||
number the assert fails.
|
number the assert fails.
|
||||||
When {msg} is omitted an error in the form
|
When {msg} is omitted an error in the form
|
||||||
@@ -2601,7 +2652,7 @@ assert_false({actual} [, {msg}]) *assert_false()*
|
|||||||
assert_inrange({lower}, {upper}, {actual} [, {msg}]) *assert_inrange()*
|
assert_inrange({lower}, {upper}, {actual} [, {msg}]) *assert_inrange()*
|
||||||
This asserts number values. When {actual} is lower than
|
This asserts number values. When {actual} is lower than
|
||||||
{lower} or higher than {upper} an error message is added to
|
{lower} or higher than {upper} an error message is added to
|
||||||
|v:errors|.
|
|v:errors|. Also see |assert-return|.
|
||||||
When {msg} is omitted an error in the form
|
When {msg} is omitted an error in the form
|
||||||
"Expected range {lower} - {upper}, but got {actual}" is
|
"Expected range {lower} - {upper}, but got {actual}" is
|
||||||
produced.
|
produced.
|
||||||
@@ -2609,7 +2660,7 @@ assert_inrange({lower}, {upper}, {actual} [, {msg}]) *assert_inrange()*
|
|||||||
*assert_match()*
|
*assert_match()*
|
||||||
assert_match({pattern}, {actual} [, {msg}])
|
assert_match({pattern}, {actual} [, {msg}])
|
||||||
When {pattern} does not match {actual} an error message is
|
When {pattern} does not match {actual} an error message is
|
||||||
added to |v:errors|.
|
added to |v:errors|. Also see |assert-return|.
|
||||||
|
|
||||||
{pattern} is used as with |=~|: The matching is always done
|
{pattern} is used as with |=~|: The matching is always done
|
||||||
like 'magic' was set and 'cpoptions' is empty, no matter what
|
like 'magic' was set and 'cpoptions' is empty, no matter what
|
||||||
@@ -2630,18 +2681,22 @@ assert_match({pattern}, {actual} [, {msg}])
|
|||||||
assert_notequal({expected}, {actual} [, {msg}])
|
assert_notequal({expected}, {actual} [, {msg}])
|
||||||
The opposite of `assert_equal()`: add an error message to
|
The opposite of `assert_equal()`: add an error message to
|
||||||
|v:errors| when {expected} and {actual} are equal.
|
|v:errors| when {expected} and {actual} are equal.
|
||||||
|
Also see |assert-return|.
|
||||||
|
|
||||||
*assert_notmatch()*
|
*assert_notmatch()*
|
||||||
assert_notmatch({pattern}, {actual} [, {msg}])
|
assert_notmatch({pattern}, {actual} [, {msg}])
|
||||||
The opposite of `assert_match()`: add an error message to
|
The opposite of `assert_match()`: add an error message to
|
||||||
|v:errors| when {pattern} matches {actual}.
|
|v:errors| when {pattern} matches {actual}.
|
||||||
|
Also see |assert-return|.
|
||||||
|
|
||||||
assert_report({msg}) *assert_report()*
|
assert_report({msg}) *assert_report()*
|
||||||
Report a test failure directly, using {msg}.
|
Report a test failure directly, using {msg}.
|
||||||
|
Always returns one.
|
||||||
|
|
||||||
assert_true({actual} [, {msg}]) *assert_true()*
|
assert_true({actual} [, {msg}]) *assert_true()*
|
||||||
When {actual} is not true an error message is added to
|
When {actual} is not true an error message is added to
|
||||||
|v:errors|, like with |assert_equal()|.
|
|v:errors|, like with |assert_equal()|.
|
||||||
|
Also see |assert-return|.
|
||||||
A value is TRUE when it is a non-zero number. When {actual}
|
A value is TRUE when it is a non-zero number. When {actual}
|
||||||
is not a number the assert fails.
|
is not a number the assert fails.
|
||||||
When {msg} is omitted an error in the form "Expected True but
|
When {msg} is omitted an error in the form "Expected True but
|
||||||
@@ -3055,12 +3110,16 @@ ch_open({address} [, {options}]) *ch_open()*
|
|||||||
ch_read({handle} [, {options}]) *ch_read()*
|
ch_read({handle} [, {options}]) *ch_read()*
|
||||||
Read from {handle} and return the received message.
|
Read from {handle} and return the received message.
|
||||||
{handle} can be a Channel or a Job that has a Channel.
|
{handle} can be a Channel or a Job that has a Channel.
|
||||||
|
For a NL channel this waits for a NL to arrive, except when
|
||||||
|
there is nothing more to read (channel was closed).
|
||||||
See |channel-more|.
|
See |channel-more|.
|
||||||
{only available when compiled with the |+channel| feature}
|
{only available when compiled with the |+channel| feature}
|
||||||
|
|
||||||
ch_readraw({handle} [, {options}]) *ch_readraw()*
|
ch_readraw({handle} [, {options}]) *ch_readraw()*
|
||||||
Like ch_read() but for a JS and JSON channel does not decode
|
Like ch_read() but for a JS and JSON channel does not decode
|
||||||
the message. See |channel-more|.
|
the message. For a NL channel it does not block waiting for
|
||||||
|
the NL to arrive, but otherwise works like ch_read().
|
||||||
|
See |channel-more|.
|
||||||
{only available when compiled with the |+channel| feature}
|
{only available when compiled with the |+channel| feature}
|
||||||
|
|
||||||
ch_sendexpr({handle}, {expr} [, {options}]) *ch_sendexpr()*
|
ch_sendexpr({handle}, {expr} [, {options}]) *ch_sendexpr()*
|
||||||
@@ -3126,8 +3185,8 @@ char2nr({expr} [, {utf8}]) *char2nr()*
|
|||||||
char2nr("ABC") returns 65
|
char2nr("ABC") returns 65
|
||||||
< When {utf8} is omitted or zero, the current 'encoding' is used.
|
< When {utf8} is omitted or zero, the current 'encoding' is used.
|
||||||
Example for "utf-8": >
|
Example for "utf-8": >
|
||||||
char2nr("<EFBFBD>") returns 225
|
char2nr("á") returns 225
|
||||||
char2nr("<EFBFBD>"[0]) returns 195
|
char2nr("á"[0]) returns 195
|
||||||
< With {utf8} set to 1, always treat as utf-8 characters.
|
< With {utf8} set to 1, always treat as utf-8 characters.
|
||||||
A combining character is a separate character.
|
A combining character is a separate character.
|
||||||
|nr2char()| does the opposite.
|
|nr2char()| does the opposite.
|
||||||
@@ -3325,8 +3384,8 @@ count({comp}, {expr} [, {ic} [, {start}]]) *count()*
|
|||||||
When {ic} is given and it's |TRUE| then case is ignored.
|
When {ic} is given and it's |TRUE| then case is ignored.
|
||||||
|
|
||||||
When {comp} is a string then the number of not overlapping
|
When {comp} is a string then the number of not overlapping
|
||||||
occurrences of {expr} is returned.
|
occurrences of {expr} is returned. Zero is returned when
|
||||||
|
{expr} is an empty string.
|
||||||
|
|
||||||
*cscope_connection()*
|
*cscope_connection()*
|
||||||
cscope_connection([{num} , {dbpath} [, {prepend}]])
|
cscope_connection([{num} , {dbpath} [, {prepend}]])
|
||||||
@@ -4168,6 +4227,7 @@ getbufinfo([{dict}])
|
|||||||
be specified in {dict}:
|
be specified in {dict}:
|
||||||
buflisted include only listed buffers.
|
buflisted include only listed buffers.
|
||||||
bufloaded include only loaded buffers.
|
bufloaded include only loaded buffers.
|
||||||
|
bufmodified include only modified buffers.
|
||||||
|
|
||||||
Otherwise, {expr} specifies a particular buffer to return
|
Otherwise, {expr} specifies a particular buffer to return
|
||||||
information for. For the use of {expr}, see |bufname()|
|
information for. For the use of {expr}, see |bufname()|
|
||||||
@@ -4254,6 +4314,22 @@ getbufvar({expr}, {varname} [, {def}]) *getbufvar()*
|
|||||||
:let bufmodified = getbufvar(1, "&mod")
|
:let bufmodified = getbufvar(1, "&mod")
|
||||||
:echo "todo myvar = " . getbufvar("todo", "myvar")
|
:echo "todo myvar = " . getbufvar("todo", "myvar")
|
||||||
<
|
<
|
||||||
|
getchangelist({expr}) *getchangelist()*
|
||||||
|
Returns the |changelist| for the buffer {expr}. For the use
|
||||||
|
of {expr}, see |bufname()| above. If buffer {expr} doesn't
|
||||||
|
exist, an empty list is returned.
|
||||||
|
|
||||||
|
The returned list contains two entries: a list with the change
|
||||||
|
locations and the current position in the list. Each
|
||||||
|
entry in the change list is a dictionary with the following
|
||||||
|
entries:
|
||||||
|
col column number
|
||||||
|
coladd column offset for 'virtualedit'
|
||||||
|
lnum line number
|
||||||
|
If buffer {expr} is the current buffer, then the current
|
||||||
|
position refers to the position in the list. For other
|
||||||
|
buffers, it is set to the length of the list.
|
||||||
|
|
||||||
getchar([expr]) *getchar()*
|
getchar([expr]) *getchar()*
|
||||||
Get a single character from the user or input stream.
|
Get a single character from the user or input stream.
|
||||||
If [expr] is omitted, wait until a character is available.
|
If [expr] is omitted, wait until a character is available.
|
||||||
@@ -4405,6 +4481,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
|||||||
specifies what for. The following completion types are
|
specifies what for. The following completion types are
|
||||||
supported:
|
supported:
|
||||||
|
|
||||||
|
arglist file names in argument list
|
||||||
augroup autocmd groups
|
augroup autocmd groups
|
||||||
buffer buffer names
|
buffer buffer names
|
||||||
behave :behave suboptions
|
behave :behave suboptions
|
||||||
@@ -4470,10 +4547,13 @@ getcwd([{winnr} [, {tabnr}]])
|
|||||||
Without arguments, for the current window.
|
Without arguments, for the current window.
|
||||||
|
|
||||||
With {winnr} return the local current directory of this window
|
With {winnr} return the local current directory of this window
|
||||||
in the current tab page.
|
in the current tab page. {winnr} can be the window number or
|
||||||
|
the |window-ID|.
|
||||||
|
If {winnr} is -1 return the name of the global working
|
||||||
|
directory. See also |haslocaldir()|.
|
||||||
|
|
||||||
With {winnr} and {tabnr} return the local current directory of
|
With {winnr} and {tabnr} return the local current directory of
|
||||||
the window in the specified tab page.
|
the window in the specified tab page.
|
||||||
{winnr} can be the window number or the |window-ID|.
|
|
||||||
Return an empty string if the arguments are invalid.
|
Return an empty string if the arguments are invalid.
|
||||||
|
|
||||||
getfsize({fname}) *getfsize()*
|
getfsize({fname}) *getfsize()*
|
||||||
@@ -4543,6 +4623,25 @@ getftype({fname}) *getftype()*
|
|||||||
"file" are returned. On MS-Windows a symbolic link to a
|
"file" are returned. On MS-Windows a symbolic link to a
|
||||||
directory returns "dir" instead of "link".
|
directory returns "dir" instead of "link".
|
||||||
|
|
||||||
|
getjumplist([{winnr} [, {tabnr}]]) *getjumplist()*
|
||||||
|
Returns the |jumplist| for the specified window.
|
||||||
|
|
||||||
|
Without arguments use the current window.
|
||||||
|
With {winnr} only use this window in the current tab page.
|
||||||
|
{winnr} can also be a |window-ID|.
|
||||||
|
With {winnr} and {tabnr} use the window in the specified tab
|
||||||
|
page.
|
||||||
|
|
||||||
|
The returned list contains two entries: a list with the jump
|
||||||
|
locations and the last used jump position number in the list.
|
||||||
|
Each entry in the jump location list is a dictionary with
|
||||||
|
the following entries:
|
||||||
|
bufnr buffer number
|
||||||
|
col column number
|
||||||
|
coladd column offset for 'virtualedit'
|
||||||
|
filename filename if available
|
||||||
|
lnum line number
|
||||||
|
|
||||||
*getline()*
|
*getline()*
|
||||||
getline({lnum} [, {end}])
|
getline({lnum} [, {end}])
|
||||||
Without {end} the result is a String, which is line {lnum}
|
Without {end} the result is a String, which is line {lnum}
|
||||||
@@ -4636,6 +4735,7 @@ getqflist([{what}]) *getqflist()*
|
|||||||
list item is a dictionary with these entries:
|
list item is a dictionary with these entries:
|
||||||
bufnr number of buffer that has the file name, use
|
bufnr number of buffer that has the file name, use
|
||||||
bufname() to get the name
|
bufname() to get the name
|
||||||
|
module module name
|
||||||
lnum line number in the buffer (first line is 1)
|
lnum line number in the buffer (first line is 1)
|
||||||
col column number (first column is 1)
|
col column number (first column is 1)
|
||||||
vcol |TRUE|: "col" is visual column
|
vcol |TRUE|: "col" is visual column
|
||||||
@@ -4660,27 +4760,30 @@ getqflist([{what}]) *getqflist()*
|
|||||||
If the optional {what} dictionary argument is supplied, then
|
If the optional {what} dictionary argument is supplied, then
|
||||||
returns only the items listed in {what} as a dictionary. The
|
returns only the items listed in {what} as a dictionary. The
|
||||||
following string items are supported in {what}:
|
following string items are supported in {what}:
|
||||||
context get the context stored with |setqflist()|
|
changedtick get the total number of changes made
|
||||||
|
to the list |quickfix-changedtick|
|
||||||
|
context get the |quickfix-context|
|
||||||
efm errorformat to use when parsing "lines". If
|
efm errorformat to use when parsing "lines". If
|
||||||
not present, then the 'erroformat' option
|
not present, then the 'errorformat' option
|
||||||
value is used.
|
value is used.
|
||||||
id get information for the quickfix list with
|
id get information for the quickfix list with
|
||||||
|quickfix-ID|; zero means the id for the
|
|quickfix-ID|; zero means the id for the
|
||||||
current list or the list specifed by "nr"
|
current list or the list specified by "nr"
|
||||||
idx index of the current entry in the list
|
idx index of the current entry in the list
|
||||||
items quickfix list entries
|
items quickfix list entries
|
||||||
lines use 'errorformat' to extract items from a list
|
lines parse a list of lines using 'efm' and return
|
||||||
of lines and return the resulting entries.
|
the resulting entries. Only a |List| type is
|
||||||
Only a |List| type is accepted. The current
|
accepted. The current quickfix list is not
|
||||||
quickfix list is not modified.
|
modified. See |quickfix-parse|.
|
||||||
nr get information for this quickfix list; zero
|
nr get information for this quickfix list; zero
|
||||||
means the current quickfix list and "$" means
|
means the current quickfix list and "$" means
|
||||||
the last quickfix list
|
the last quickfix list
|
||||||
size number of entries in the quickfix list
|
size number of entries in the quickfix list
|
||||||
title get the list title
|
title get the list title |quickfix-title|
|
||||||
winid get the |window-ID| (if opened)
|
winid get the quickfix |window-ID|
|
||||||
all all of the above quickfix properties
|
all all of the above quickfix properties
|
||||||
Non-string items in {what} are ignored.
|
Non-string items in {what} are ignored. To get the value of a
|
||||||
|
particular item, set it to zero.
|
||||||
If "nr" is not present then the current quickfix list is used.
|
If "nr" is not present then the current quickfix list is used.
|
||||||
If both "nr" and a non-zero "id" are specified, then the list
|
If both "nr" and a non-zero "id" are specified, then the list
|
||||||
specified by "id" is used.
|
specified by "id" is used.
|
||||||
@@ -4690,25 +4793,30 @@ getqflist([{what}]) *getqflist()*
|
|||||||
When "lines" is specified, all the other items except "efm"
|
When "lines" is specified, all the other items except "efm"
|
||||||
are ignored. The returned dictionary contains the entry
|
are ignored. The returned dictionary contains the entry
|
||||||
"items" with the list of entries.
|
"items" with the list of entries.
|
||||||
In case of error processing {what}, an empty dictionary is
|
|
||||||
returned.
|
|
||||||
|
|
||||||
The returned dictionary contains the following entries:
|
The returned dictionary contains the following entries:
|
||||||
context context information stored with |setqflist()|
|
changedtick total number of changes made to the
|
||||||
id quickfix list ID |quickfix-ID|
|
list |quickfix-changedtick|
|
||||||
idx index of the current entry in the list
|
context quickfix list context. See |quickfix-context|
|
||||||
items quickfix list entries
|
If not present, set to "".
|
||||||
nr quickfix list number
|
id quickfix list ID |quickfix-ID|. If not
|
||||||
size number of entries in the quickfix list
|
present, set to 0.
|
||||||
title quickfix list title text
|
idx index of the current entry in the list. If not
|
||||||
winid quickfix |window-ID| (if opened)
|
present, set to 0.
|
||||||
|
items quickfix list entries. If not present, set to
|
||||||
|
an empty list.
|
||||||
|
nr quickfix list number. If not present, set to 0
|
||||||
|
size number of entries in the quickfix list. If not
|
||||||
|
present, set to 0.
|
||||||
|
title quickfix list title text. If not present, set
|
||||||
|
to "".
|
||||||
|
winid quickfix |window-ID|. If not present, set to 0
|
||||||
|
|
||||||
Examples: >
|
Examples (See also |getqflist-examples|): >
|
||||||
:echo getqflist({'all': 1})
|
:echo getqflist({'all': 1})
|
||||||
:echo getqflist({'nr': 2, 'title': 1})
|
:echo getqflist({'nr': 2, 'title': 1})
|
||||||
:echo getqflist({'lines' : ["F1:10:L10"]})
|
:echo getqflist({'lines' : ["F1:10:L10"]})
|
||||||
<
|
<
|
||||||
|
|
||||||
getreg([{regname} [, 1 [, {list}]]]) *getreg()*
|
getreg([{regname} [, 1 [, {list}]]]) *getreg()*
|
||||||
The result is a String, which is the contents of register
|
The result is a String, which is the contents of register
|
||||||
{regname}. Example: >
|
{regname}. Example: >
|
||||||
@@ -4786,17 +4894,37 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
|
|||||||
Examples: >
|
Examples: >
|
||||||
:let list_is_on = gettabwinvar(1, 2, '&list')
|
:let list_is_on = gettabwinvar(1, 2, '&list')
|
||||||
:echo "myvar = " . gettabwinvar(3, 1, 'myvar')
|
:echo "myvar = " . gettabwinvar(3, 1, 'myvar')
|
||||||
|
<
|
||||||
|
getwinpos([{timeout}]) *getwinpos()*
|
||||||
|
The result is a list with two numbers, the result of
|
||||||
|
getwinposx() and getwinposy() combined:
|
||||||
|
[x-pos, y-pos]
|
||||||
|
{timeout} can be used to specify how long to wait in msec for
|
||||||
|
a response from the terminal. When omitted 100 msec is used.
|
||||||
|
Use a longer time for a remote terminal.
|
||||||
|
When using a value less than 10 and no response is received
|
||||||
|
within that time, a previously reported position is returned,
|
||||||
|
if available. This can be used to poll for the position and
|
||||||
|
do some work in the mean time: >
|
||||||
|
while 1
|
||||||
|
let res = getwinpos(1)
|
||||||
|
if res[0] >= 0
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
" Do some work here
|
||||||
|
endwhile
|
||||||
<
|
<
|
||||||
*getwinposx()*
|
*getwinposx()*
|
||||||
getwinposx() The result is a Number, which is the X coordinate in pixels of
|
getwinposx() The result is a Number, which is the X coordinate in pixels of
|
||||||
the left hand side of the GUI Vim window. Also works for an
|
the left hand side of the GUI Vim window. Also works for an
|
||||||
xterm.
|
xterm (uses a timeout of 100 msec).
|
||||||
The result will be -1 if the information is not available.
|
The result will be -1 if the information is not available.
|
||||||
The value can be used with `:winpos`.
|
The value can be used with `:winpos`.
|
||||||
|
|
||||||
*getwinposy()*
|
*getwinposy()*
|
||||||
getwinposy() The result is a Number, which is the Y coordinate in pixels of
|
getwinposy() The result is a Number, which is the Y coordinate in pixels of
|
||||||
the top of the GUI Vim window. Also works for an xterm.
|
the top of the GUI Vim window. Also works for an xterm (uses
|
||||||
|
a timeout of 100 msec).
|
||||||
The result will be -1 if the information is not available.
|
The result will be -1 if the information is not available.
|
||||||
The value can be used with `:winpos`.
|
The value can be used with `:winpos`.
|
||||||
|
|
||||||
@@ -5271,10 +5399,11 @@ job_getchannel({job}) *job_getchannel()*
|
|||||||
<
|
<
|
||||||
{only available when compiled with the |+job| feature}
|
{only available when compiled with the |+job| feature}
|
||||||
|
|
||||||
job_info({job}) *job_info()*
|
job_info([{job}]) *job_info()*
|
||||||
Returns a Dictionary with information about {job}:
|
Returns a Dictionary with information about {job}:
|
||||||
"status" what |job_status()| returns
|
"status" what |job_status()| returns
|
||||||
"channel" what |job_getchannel()| returns
|
"channel" what |job_getchannel()| returns
|
||||||
|
"cmd" List of command arguments used to start the job
|
||||||
"process" process ID
|
"process" process ID
|
||||||
"tty_in" terminal input name, empty when none
|
"tty_in" terminal input name, empty when none
|
||||||
"tty_out" terminal output name, empty when none
|
"tty_out" terminal output name, empty when none
|
||||||
@@ -5282,6 +5411,8 @@ job_info({job}) *job_info()*
|
|||||||
"exit_cb" function to be called on exit
|
"exit_cb" function to be called on exit
|
||||||
"stoponexit" |job-stoponexit|
|
"stoponexit" |job-stoponexit|
|
||||||
|
|
||||||
|
Without any arguments, returns a List with all Job objects.
|
||||||
|
|
||||||
job_setoptions({job}, {options}) *job_setoptions()*
|
job_setoptions({job}, {options}) *job_setoptions()*
|
||||||
Change options for {job}. Supported are:
|
Change options for {job}. Supported are:
|
||||||
"stoponexit" |job-stoponexit|
|
"stoponexit" |job-stoponexit|
|
||||||
@@ -5910,8 +6041,6 @@ matchaddpos({group}, {pos} [, {priority} [, {id} [, {dict}]]])
|
|||||||
< Matches added by |matchaddpos()| are returned by
|
< Matches added by |matchaddpos()| are returned by
|
||||||
|getmatches()| with an entry "pos1", "pos2", etc., with the
|
|getmatches()| with an entry "pos1", "pos2", etc., with the
|
||||||
value a list like the {pos} item.
|
value a list like the {pos} item.
|
||||||
These matches cannot be set via |setmatches()|, however they
|
|
||||||
can still be deleted by |clearmatches()|.
|
|
||||||
|
|
||||||
matcharg({nr}) *matcharg()*
|
matcharg({nr}) *matcharg()*
|
||||||
Selects the {nr} match item, as set with a |:match|,
|
Selects the {nr} match item, as set with a |:match|,
|
||||||
@@ -6021,6 +6150,8 @@ mkdir({name} [, {path} [, {prot}]])
|
|||||||
Example: >
|
Example: >
|
||||||
:call mkdir($HOME . "/tmp/foo/bar", "p", 0700)
|
:call mkdir($HOME . "/tmp/foo/bar", "p", 0700)
|
||||||
< This function is not available in the |sandbox|.
|
< This function is not available in the |sandbox|.
|
||||||
|
There is no error if the directory already exists and the "p"
|
||||||
|
flag is passed (since patch 8.0.1708).
|
||||||
Not available on all systems. To check use: >
|
Not available on all systems. To check use: >
|
||||||
:if exists("*mkdir")
|
:if exists("*mkdir")
|
||||||
<
|
<
|
||||||
@@ -6475,7 +6606,7 @@ remote_expr({server}, {string} [, {idvar} [, {timeout}]])
|
|||||||
between (not at the end), like with join(expr, "\n").
|
between (not at the end), like with join(expr, "\n").
|
||||||
If {idvar} is present and not empty, it is taken as the name
|
If {idvar} is present and not empty, it is taken as the name
|
||||||
of a variable and a {serverid} for later use with
|
of a variable and a {serverid} for later use with
|
||||||
remote_read() is stored there.
|
|remote_read()| is stored there.
|
||||||
If {timeout} is given the read times out after this many
|
If {timeout} is given the read times out after this many
|
||||||
seconds. Otherwise a timeout of 600 seconds is used.
|
seconds. Otherwise a timeout of 600 seconds is used.
|
||||||
See also |clientserver| |RemoteReply|.
|
See also |clientserver| |RemoteReply|.
|
||||||
@@ -7089,6 +7220,8 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
|
|||||||
buffer
|
buffer
|
||||||
filename name of a file; only used when "bufnr" is not
|
filename name of a file; only used when "bufnr" is not
|
||||||
present or it is invalid.
|
present or it is invalid.
|
||||||
|
module name of a module; if given it will be used in
|
||||||
|
quickfix error window instead of the filename.
|
||||||
lnum line number in the file
|
lnum line number in the file
|
||||||
pattern search pattern used to locate the error
|
pattern search pattern used to locate the error
|
||||||
col column number
|
col column number
|
||||||
@@ -7137,7 +7270,7 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
|
|||||||
only the items listed in {what} are set. The first {list}
|
only the items listed in {what} are set. The first {list}
|
||||||
argument is ignored. The following items can be specified in
|
argument is ignored. The following items can be specified in
|
||||||
{what}:
|
{what}:
|
||||||
context any Vim type can be stored as a context
|
context quickfix list context. See |quickfix-context|
|
||||||
efm errorformat to use when parsing text from
|
efm errorformat to use when parsing text from
|
||||||
"lines". If this is not present, then the
|
"lines". If this is not present, then the
|
||||||
'errorformat' option value is used.
|
'errorformat' option value is used.
|
||||||
@@ -7159,10 +7292,10 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
|
|||||||
list is modified, "id" should be used instead of "nr" to
|
list is modified, "id" should be used instead of "nr" to
|
||||||
specify the list.
|
specify the list.
|
||||||
|
|
||||||
Examples: >
|
Examples (See also |setqflist-examples|): >
|
||||||
:call setqflist([], 'r', {'title': 'My search'})
|
:call setqflist([], 'r', {'title': 'My search'})
|
||||||
:call setqflist([], 'r', {'nr': 2, 'title': 'Errors'})
|
:call setqflist([], 'r', {'nr': 2, 'title': 'Errors'})
|
||||||
:call setqflist([], 'a', {'id':myid, 'lines':["F1:10:L10"]})
|
:call setqflist([], 'a', {'id':qfid, 'lines':["F1:10:L10"]})
|
||||||
<
|
<
|
||||||
Returns zero for success, -1 for failure.
|
Returns zero for success, -1 for failure.
|
||||||
|
|
||||||
@@ -7695,8 +7828,9 @@ submatch({nr} [, {list}]) *submatch()* *E935*
|
|||||||
When substitute() is used recursively only the submatches in
|
When substitute() is used recursively only the submatches in
|
||||||
the current (deepest) call can be obtained.
|
the current (deepest) call can be obtained.
|
||||||
|
|
||||||
Example: >
|
Examples: >
|
||||||
:s/\d\+/\=submatch(0) + 1/
|
:s/\d\+/\=submatch(0) + 1/
|
||||||
|
:echo substitute(text, '\d\+', '\=submatch(0) + 1', '')
|
||||||
< This finds the first number in the line and adds one to it.
|
< This finds the first number in the line and adds one to it.
|
||||||
A line break is included as a newline character.
|
A line break is included as a newline character.
|
||||||
|
|
||||||
@@ -8038,12 +8172,88 @@ tempname() *tempname()* *temp-file-name*
|
|||||||
For MS-Windows forward slashes are used when the 'shellslash'
|
For MS-Windows forward slashes are used when the 'shellslash'
|
||||||
option is set or when 'shellcmdflag' starts with '-'.
|
option is set or when 'shellcmdflag' starts with '-'.
|
||||||
|
|
||||||
|
*term_dumpdiff()*
|
||||||
|
term_dumpdiff({filename}, {filename} [, {options}])
|
||||||
|
Open a new window displaying the difference between the two
|
||||||
|
files. The files must have been created with
|
||||||
|
|term_dumpwrite()|.
|
||||||
|
Returns the buffer number or zero when the diff fails.
|
||||||
|
Also see |terminal-diff|.
|
||||||
|
NOTE: this does not work with double-width characters yet.
|
||||||
|
|
||||||
|
The top part of the buffer contains the contents of the first
|
||||||
|
file, the bottom part of the buffer contains the contents of
|
||||||
|
the second file. The middle part shows the differences.
|
||||||
|
The parts are separated by a line of dashes.
|
||||||
|
|
||||||
|
If the {options} argument is present, it must be a Dict with
|
||||||
|
these possible members:
|
||||||
|
"term_name" name to use for the buffer name, instead
|
||||||
|
of the first file name.
|
||||||
|
"term_rows" vertical size to use for the terminal,
|
||||||
|
instead of using 'termwinsize'
|
||||||
|
"term_cols" horizontal size to use for the terminal,
|
||||||
|
instead of using 'termwinsize'
|
||||||
|
"vertical" split the window vertically
|
||||||
|
"curwin" use the current window, do not split the
|
||||||
|
window; fails if the current buffer
|
||||||
|
cannot be |abandon|ed
|
||||||
|
"norestore" do not add the terminal window to a
|
||||||
|
session file
|
||||||
|
|
||||||
|
Each character in the middle part indicates a difference. If
|
||||||
|
there are multiple differences only the first in this list is
|
||||||
|
used:
|
||||||
|
X different character
|
||||||
|
w different width
|
||||||
|
f different foreground color
|
||||||
|
b different background color
|
||||||
|
a different attribute
|
||||||
|
+ missing position in first file
|
||||||
|
- missing position in second file
|
||||||
|
|
||||||
|
Using the "s" key the top and bottom parts are swapped. This
|
||||||
|
makes it easy to spot a difference.
|
||||||
|
|
||||||
|
*term_dumpload()*
|
||||||
|
term_dumpload({filename} [, {options}])
|
||||||
|
Open a new window displaying the contents of {filename}
|
||||||
|
The file must have been created with |term_dumpwrite()|.
|
||||||
|
Returns the buffer number or zero when it fails.
|
||||||
|
Also see |terminal-diff|.
|
||||||
|
|
||||||
|
For {options} see |term_dumpdiff()|.
|
||||||
|
|
||||||
|
*term_dumpwrite()*
|
||||||
|
term_dumpwrite({buf}, {filename} [, {options}])
|
||||||
|
Dump the contents of the terminal screen of {buf} in the file
|
||||||
|
{filename}. This uses a format that can be used with
|
||||||
|
|term_dumpload()| and |term_dumpdiff()|.
|
||||||
|
If {filename} already exists an error is given. *E953*
|
||||||
|
Also see |terminal-diff|.
|
||||||
|
|
||||||
|
{options} is a dictionary with these optional entries:
|
||||||
|
"rows" maximum number of rows to dump
|
||||||
|
"columns" maximum number of columns to dump
|
||||||
|
|
||||||
term_getaltscreen({buf}) *term_getaltscreen()*
|
term_getaltscreen({buf}) *term_getaltscreen()*
|
||||||
Returns 1 if the terminal of {buf} is using the alternate
|
Returns 1 if the terminal of {buf} is using the alternate
|
||||||
screen.
|
screen.
|
||||||
{buf} is used as with |term_getsize()|.
|
{buf} is used as with |term_getsize()|.
|
||||||
{only available when compiled with the |+terminal| feature}
|
{only available when compiled with the |+terminal| feature}
|
||||||
|
|
||||||
|
term_getansicolors({buf}) *term_getansicolors()*
|
||||||
|
Get the ANSI color palette in use by terminal {buf}.
|
||||||
|
Returns a List of length 16 where each element is a String
|
||||||
|
representing a color in hexadecimal "#rrggbb" format.
|
||||||
|
Also see |term_setansicolors()| and |g:terminal_ansi_colors|.
|
||||||
|
If neither was used returns the default colors.
|
||||||
|
|
||||||
|
{buf} is used as with |term_getsize()|. If the buffer does not
|
||||||
|
exist or is not a terminal window, an empty list is returned.
|
||||||
|
{only available when compiled with the |+terminal| feature and
|
||||||
|
with GUI enabled and/or the |+termguicolors| feature}
|
||||||
|
|
||||||
term_getattr({attr}, {what}) *term_getattr()*
|
term_getattr({attr}, {what}) *term_getattr()*
|
||||||
Given {attr}, a value returned by term_scrape() in the "attr"
|
Given {attr}, a value returned by term_scrape() in the "attr"
|
||||||
item, return whether {what} is on. {what} can be one of:
|
item, return whether {what} is on. {what} can be one of:
|
||||||
@@ -8088,6 +8298,8 @@ term_getline({buf}, {row}) *term_getline()*
|
|||||||
The first line has {row} one. When {row} is "." the cursor
|
The first line has {row} one. When {row} is "." the cursor
|
||||||
line is used. When {row} is invalid an empty string is
|
line is used. When {row} is invalid an empty string is
|
||||||
returned.
|
returned.
|
||||||
|
|
||||||
|
To get attributes of each character use |term_scrape()|.
|
||||||
{only available when compiled with the |+terminal| feature}
|
{only available when compiled with the |+terminal| feature}
|
||||||
|
|
||||||
term_getscrolled({buf}) *term_getscrolled()*
|
term_getscrolled({buf}) *term_getscrolled()*
|
||||||
@@ -8173,8 +8385,68 @@ term_sendkeys({buf}, {keys}) *term_sendkeys()*
|
|||||||
means the character CTRL-X.
|
means the character CTRL-X.
|
||||||
{only available when compiled with the |+terminal| feature}
|
{only available when compiled with the |+terminal| feature}
|
||||||
|
|
||||||
term_setsize({buf}, {expr}) *term_setsize()*
|
term_setansicolors({buf}, {colors}) *term_setansicolors()*
|
||||||
Not implemented yet.
|
Set the ANSI color palette used by terminal {buf}.
|
||||||
|
{colors} must be a List of 16 valid color names or hexadecimal
|
||||||
|
color codes, like those accepted by |highlight-guifg|.
|
||||||
|
Also see |term_getansicolors()| and |g:terminal_ansi_colors|.
|
||||||
|
|
||||||
|
The colors normally are:
|
||||||
|
0 black
|
||||||
|
1 dark red
|
||||||
|
2 dark green
|
||||||
|
3 brown
|
||||||
|
4 dark blue
|
||||||
|
5 dark magenta
|
||||||
|
6 dark cyan
|
||||||
|
7 light grey
|
||||||
|
8 dark grey
|
||||||
|
9 red
|
||||||
|
10 green
|
||||||
|
11 yellow
|
||||||
|
12 blue
|
||||||
|
13 magenta
|
||||||
|
14 cyan
|
||||||
|
15 white
|
||||||
|
|
||||||
|
These colors are used in the GUI and in the terminal when
|
||||||
|
'termguicolors' is set. When not using GUI colors (GUI mode
|
||||||
|
or 'termguicolors'), the terminal window always uses the 16
|
||||||
|
ANSI colors of the underlying terminal.
|
||||||
|
{only available when compiled with the |+terminal| feature and
|
||||||
|
with GUI enabled and/or the |+termguicolors| feature}
|
||||||
|
|
||||||
|
term_setkill({buf}, {how}) *term_setkill()*
|
||||||
|
When exiting Vim or trying to close the terminal window in
|
||||||
|
another way, {how} defines whether the job in the terminal can
|
||||||
|
be stopped.
|
||||||
|
When {how} is empty (the default), the job will not be
|
||||||
|
stopped, trying to exit will result in |E947|.
|
||||||
|
Otherwise, {how} specifies what signal to send to the job.
|
||||||
|
See |job_stop()| for the values.
|
||||||
|
|
||||||
|
After sending the signal Vim will wait for up to a second to
|
||||||
|
check that the job actually stopped.
|
||||||
|
|
||||||
|
term_setrestore({buf}, {command}) *term_setrestore()*
|
||||||
|
Set the command to write in a session file to restore the job
|
||||||
|
in this terminal. The line written in the session file is: >
|
||||||
|
terminal ++curwin ++cols=%d ++rows=%d {command}
|
||||||
|
< Make sure to escape the command properly.
|
||||||
|
|
||||||
|
Use an empty {command} to run 'shell'.
|
||||||
|
Use "NONE" to not restore this window.
|
||||||
|
{only available when compiled with the |+terminal| feature}
|
||||||
|
|
||||||
|
term_setsize({buf}, {rows}, {cols}) *term_setsize()* *E955*
|
||||||
|
Set the size of terminal {buf}. The size of the window
|
||||||
|
containing the terminal will also be adjusted, if possible.
|
||||||
|
If {rows} or {cols} is zero or negative, that dimension is not
|
||||||
|
changed.
|
||||||
|
|
||||||
|
{buf} must be the buffer number of a terminal window. Use an
|
||||||
|
empty string for the current buffer. If the buffer does not
|
||||||
|
exist or is not a terminal window, an error is given.
|
||||||
{only available when compiled with the |+terminal| feature}
|
{only available when compiled with the |+terminal| feature}
|
||||||
|
|
||||||
term_start({cmd}, {options}) *term_start()*
|
term_start({cmd}, {options}) *term_start()*
|
||||||
@@ -8208,14 +8480,18 @@ term_start({cmd}, {options}) *term_start()*
|
|||||||
"term_name" name to use for the buffer name, instead
|
"term_name" name to use for the buffer name, instead
|
||||||
of the command name.
|
of the command name.
|
||||||
"term_rows" vertical size to use for the terminal,
|
"term_rows" vertical size to use for the terminal,
|
||||||
instead of using 'termsize'
|
instead of using 'termwinsize'
|
||||||
"term_cols" horizontal size to use for the terminal,
|
"term_cols" horizontal size to use for the terminal,
|
||||||
instead of using 'termsize'
|
instead of using 'termwinsize'
|
||||||
"vertical" split the window vertically
|
"vertical" split the window vertically
|
||||||
"curwin" use the current window, do not split the
|
"curwin" use the current window, do not split the
|
||||||
window; fails if the current buffer
|
window; fails if the current buffer
|
||||||
cannot be |abandon|ed
|
cannot be |abandon|ed
|
||||||
"hidden" do not open a window
|
"hidden" do not open a window
|
||||||
|
"norestore" do not add the terminal window to a
|
||||||
|
session file
|
||||||
|
"term_kill" what to do when trying to close the
|
||||||
|
terminal window, see |term_setkill()|
|
||||||
"term_finish" What to do when the job is finished:
|
"term_finish" What to do when the job is finished:
|
||||||
"close": close any windows
|
"close": close any windows
|
||||||
"open": open window if needed
|
"open": open window if needed
|
||||||
@@ -8231,6 +8507,9 @@ term_start({cmd}, {options}) *term_start()*
|
|||||||
CTRL-D is used on MS-Windows. For Python
|
CTRL-D is used on MS-Windows. For Python
|
||||||
use CTRL-Z or "exit()". For a shell use
|
use CTRL-Z or "exit()". For a shell use
|
||||||
"exit". A CR is always added.
|
"exit". A CR is always added.
|
||||||
|
"ansi_colors" A list of 16 color names or hex codes
|
||||||
|
defining the ANSI palette used in GUI
|
||||||
|
color modes. See |g:terminal_ansi_colors|.
|
||||||
|
|
||||||
{only available when compiled with the |+terminal| feature}
|
{only available when compiled with the |+terminal| feature}
|
||||||
|
|
||||||
@@ -8429,6 +8708,22 @@ tr({src}, {fromstr}, {tostr}) *tr()*
|
|||||||
echo tr("<blob>", "<>", "{}")
|
echo tr("<blob>", "<>", "{}")
|
||||||
< returns "{blob}"
|
< returns "{blob}"
|
||||||
|
|
||||||
|
trim({text}[, {mask}]) *trim()*
|
||||||
|
Return {text} as a String where any character in {mask} is
|
||||||
|
removed from the beginning and end of {text}.
|
||||||
|
If {mask} is not given, {mask} is all characters up to 0x20,
|
||||||
|
which includes Tab, space, NL and CR, plus the non-breaking
|
||||||
|
space character 0xa0.
|
||||||
|
This code deals with multibyte characters properly.
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
echo trim(" some text ")
|
||||||
|
< returns "some text" >
|
||||||
|
echo trim(" \r\t\t\r RESERVE \t\n\x0B\xA0") . "_TAIL"
|
||||||
|
< returns "RESERVE_TAIL" >
|
||||||
|
echo trim("rm<Xrm<>X>rrm", "rm<>")
|
||||||
|
< returns "Xrm<>X" (characters in the middle are not removed)
|
||||||
|
|
||||||
trunc({expr}) *trunc()*
|
trunc({expr}) *trunc()*
|
||||||
Return the largest integral value with magnitude less than or
|
Return the largest integral value with magnitude less than or
|
||||||
equal to {expr} as a |Float| (truncate towards zero).
|
equal to {expr} as a |Float| (truncate towards zero).
|
||||||
@@ -8632,6 +8927,14 @@ win_id2win({expr}) *win_id2win()*
|
|||||||
Return the window number of window with ID {expr}.
|
Return the window number of window with ID {expr}.
|
||||||
Return 0 if the window cannot be found in the current tabpage.
|
Return 0 if the window cannot be found in the current tabpage.
|
||||||
|
|
||||||
|
win_screenpos({nr}) *win_screenpos()*
|
||||||
|
Return the screen position of window {nr} as a list with two
|
||||||
|
numbers: [row, col]. The first window always has position
|
||||||
|
[1, 1].
|
||||||
|
{nr} can be the window number or the |window-ID|.
|
||||||
|
Return [0, 0] if the window cannot be found in the current
|
||||||
|
tabpage.
|
||||||
|
|
||||||
*winbufnr()*
|
*winbufnr()*
|
||||||
winbufnr({nr}) The result is a Number, which is the number of the buffer
|
winbufnr({nr}) The result is a Number, which is the number of the buffer
|
||||||
associated with window {nr}. {nr} can be the window number or
|
associated with window {nr}. {nr} can be the window number or
|
||||||
@@ -8783,8 +9086,8 @@ writefile({list}, {fname} [, {flags}])
|
|||||||
the file. This flushes the file to disk, if possible. This
|
the file. This flushes the file to disk, if possible. This
|
||||||
takes more time but avoids losing the file if the system
|
takes more time but avoids losing the file if the system
|
||||||
crashes.
|
crashes.
|
||||||
When {flags} does not contain "S" or "s" then fsync is called
|
When {flags} does not contain "S" or "s" then fsync() is
|
||||||
if the 'fsync' option is set.
|
called if the 'fsync' option is set.
|
||||||
When {flags} contains "S" then fsync() is not called, even
|
When {flags} contains "S" then fsync() is not called, even
|
||||||
when 'fsync' is set.
|
when 'fsync' is set.
|
||||||
|
|
||||||
@@ -8818,22 +9121,16 @@ There are four types of features:
|
|||||||
Example: >
|
Example: >
|
||||||
:if has("gui_running")
|
:if has("gui_running")
|
||||||
< *has-patch*
|
< *has-patch*
|
||||||
3. Included patches. The "patch123" feature means that patch 123 has been
|
3. Beyond a certain version or at a certain version and including a specific
|
||||||
included. Note that this form does not check the version of Vim, you need
|
patch. The "patch-7.4.248" feature means that the Vim version is 7.5 or
|
||||||
to inspect |v:version| for that.
|
later, or it is version 7.4 and patch 248 was included. Example: >
|
||||||
Example (checking version 6.2.148 or later): >
|
|
||||||
:if v:version > 602 || v:version == 602 && has("patch148")
|
|
||||||
< Note that it's possible for patch 147 to be omitted even though 148 is
|
|
||||||
included.
|
|
||||||
|
|
||||||
4. Beyond a certain version or at a certain version and including a specific
|
|
||||||
patch. The "patch-7.4.237" feature means that the Vim version is 7.5 or
|
|
||||||
later, or it is version 7.4 and patch 237 was included.
|
|
||||||
Note that this only works for patch 7.4.237 and later, before that you
|
|
||||||
need to use the example above that checks v:version. Example: >
|
|
||||||
:if has("patch-7.4.248")
|
:if has("patch-7.4.248")
|
||||||
< Note that it's possible for patch 147 to be omitted even though 148 is
|
< Note that it's possible for patch 248 to be omitted even though 249 is
|
||||||
included.
|
included. Only happens when cherry-picking patches.
|
||||||
|
Note that this form only works for patch 7.4.237 and later, before that
|
||||||
|
you need to check for the patch and the v:version. Example (checking
|
||||||
|
version 6.2.148 or later): >
|
||||||
|
:if v:version > 602 || (v:version == 602 && has("patch148"))
|
||||||
|
|
||||||
Hint: To find out if Vim supports backslashes in a file name (MS-Windows),
|
Hint: To find out if Vim supports backslashes in a file name (MS-Windows),
|
||||||
use: `if exists('+shellslash')`
|
use: `if exists('+shellslash')`
|
||||||
@@ -8952,8 +9249,12 @@ persistent_undo Compiled with support for persistent undo history.
|
|||||||
postscript Compiled with PostScript file printing.
|
postscript Compiled with PostScript file printing.
|
||||||
printer Compiled with |:hardcopy| support.
|
printer Compiled with |:hardcopy| support.
|
||||||
profile Compiled with |:profile| support.
|
profile Compiled with |:profile| support.
|
||||||
python Compiled with Python 2.x interface. |has-python|
|
python Python 2.x interface available. |has-python|
|
||||||
python3 Compiled with Python 3.x interface. |has-python|
|
python_compiled Compiled with Python 2.x interface. |has-python|
|
||||||
|
python_dynamic Python 2.x interface is dynamically loaded. |has-python|
|
||||||
|
python3 Python 3.x interface available. |has-python|
|
||||||
|
python3_compiled Compiled with Python 3.x interface. |has-python|
|
||||||
|
python3_dynamic Python 3.x interface is dynamically loaded. |has-python|
|
||||||
pythonx Compiled with |python_x| interface. |has-pythonx|
|
pythonx Compiled with |python_x| interface. |has-pythonx|
|
||||||
qnx QNX version of Vim.
|
qnx QNX version of Vim.
|
||||||
quickfix Compiled with |quickfix| support.
|
quickfix Compiled with |quickfix| support.
|
||||||
@@ -8995,6 +9296,8 @@ ttyout output is a terminal (tty)
|
|||||||
unix Unix version of Vim. *+unix*
|
unix Unix version of Vim. *+unix*
|
||||||
unnamedplus Compiled with support for "unnamedplus" in 'clipboard'
|
unnamedplus Compiled with support for "unnamedplus" in 'clipboard'
|
||||||
user_commands User-defined commands.
|
user_commands User-defined commands.
|
||||||
|
vcon Win32: Virtual console support is working, can use
|
||||||
|
'termguicolors'. Also see |+vtp|.
|
||||||
vertsplit Compiled with vertically split windows |:vsplit|.
|
vertsplit Compiled with vertically split windows |:vsplit|.
|
||||||
vim_starting True while initial source'ing takes place. |startup|
|
vim_starting True while initial source'ing takes place. |startup|
|
||||||
*vim_starting*
|
*vim_starting*
|
||||||
@@ -9005,6 +9308,8 @@ visualextra Compiled with extra Visual mode commands.
|
|||||||
|blockwise-operators|.
|
|blockwise-operators|.
|
||||||
vms VMS version of Vim.
|
vms VMS version of Vim.
|
||||||
vreplace Compiled with |gR| and |gr| commands.
|
vreplace Compiled with |gR| and |gr| commands.
|
||||||
|
vtp Compiled for vcon support |+vtp| (check vcon to find
|
||||||
|
out if it works in the current console).
|
||||||
wildignore Compiled with 'wildignore' option.
|
wildignore Compiled with 'wildignore' option.
|
||||||
wildmenu Compiled with 'wildmenu' option.
|
wildmenu Compiled with 'wildmenu' option.
|
||||||
win32 Win32 version of Vim (MS-Windows 95 and later, 32 or
|
win32 Win32 version of Vim (MS-Windows 95 and later, 32 or
|
||||||
@@ -9243,8 +9548,7 @@ may be larger.
|
|||||||
It is also possible to define a function without any arguments. You must
|
It is also possible to define a function without any arguments. You must
|
||||||
still supply the () then.
|
still supply the () then.
|
||||||
|
|
||||||
It is allowed to define another function inside a function
|
It is allowed to define another function inside a function body.
|
||||||
body.
|
|
||||||
|
|
||||||
*local-variables*
|
*local-variables*
|
||||||
Inside a function local variables can be used. These will disappear when the
|
Inside a function local variables can be used. These will disappear when the
|
||||||
@@ -9627,6 +9931,14 @@ This does NOT work: >
|
|||||||
variables are automatically deleted when the function
|
variables are automatically deleted when the function
|
||||||
ends.
|
ends.
|
||||||
|
|
||||||
|
:unl[et] ${env-name} ... *:unlet-environment* *:unlet-$*
|
||||||
|
Remove environment variable {env-name}.
|
||||||
|
Can mix {name} and ${env-name} in one :unlet command.
|
||||||
|
No error message is given for a non-existing
|
||||||
|
variable, also without !.
|
||||||
|
If the system does not support deleting an environment
|
||||||
|
variable, it is made emtpy.
|
||||||
|
|
||||||
:lockv[ar][!] [depth] {name} ... *:lockvar* *:lockv*
|
:lockv[ar][!] [depth] {name} ... *:lockvar* *:lockv*
|
||||||
Lock the internal variable {name}. Locking means that
|
Lock the internal variable {name}. Locking means that
|
||||||
it can no longer be changed (until it is unlocked).
|
it can no longer be changed (until it is unlocked).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*farsi.txt* For Vim version 8.0. Last change: 2015 Aug 29
|
*farsi.txt* For Vim version 8.1. Last change: 2015 Aug 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 8.0. Last change: 2017 Oct 10
|
*filetype.txt* For Vim version 8.1. Last change: 2018 Apr 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -319,6 +319,10 @@ then Vim will load all plugins in these directories and below:
|
|||||||
|
|
||||||
Note that the last one is the value of $VIMRUNTIME which has been expanded.
|
Note that the last one is the value of $VIMRUNTIME which has been expanded.
|
||||||
|
|
||||||
|
Note that when using a plugin manager or |packages| many directories will be
|
||||||
|
added to 'runtimepath'. These plugins earch require their own directory,
|
||||||
|
don't put them directly in ~/.vim/plugin.
|
||||||
|
|
||||||
What if it looks like your plugin is not being loaded? You can find out what
|
What if it looks like your plugin is not being loaded? You can find out what
|
||||||
happens when Vim starts up by using the |-V| argument: >
|
happens when Vim starts up by using the |-V| argument: >
|
||||||
|
|
||||||
@@ -602,51 +606,17 @@ MANPAGER *manpager.vim*
|
|||||||
The :Man command allows you to turn Vim into a manpager (that syntax highlights
|
The :Man command allows you to turn Vim into a manpager (that syntax highlights
|
||||||
manpages and follows linked manpages on hitting CTRL-]).
|
manpages and follows linked manpages on hitting CTRL-]).
|
||||||
|
|
||||||
Tested on:
|
|
||||||
|
|
||||||
- Linux
|
|
||||||
- Mac OS
|
|
||||||
- FreeBSD
|
|
||||||
- OpenBSD
|
|
||||||
- Cygwin
|
|
||||||
- Win 10 under Bash
|
|
||||||
|
|
||||||
Untested:
|
|
||||||
|
|
||||||
- Amiga OS
|
|
||||||
- BeOS
|
|
||||||
- OS/2
|
|
||||||
|
|
||||||
If man sets the $MAN_PN environment variable, like man-db, the most common
|
|
||||||
implementation on Linux, then the "env MAN_PN=1 " part below should NOT be
|
|
||||||
set, that is, the "env MAN_PN=1" should be omitted! Otherwise, the Vim
|
|
||||||
manpager does not correctly recognize manpages whose title contains a capital
|
|
||||||
letter. See the discussion on
|
|
||||||
|
|
||||||
https://groups.google.com/forum/#!topic/vim_dev/pWZmt_7GkxI
|
|
||||||
|
|
||||||
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
|
For bash,zsh,ksh or dash, add to the config file (.bashrc,.zshrc, ...)
|
||||||
|
|
||||||
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
|
export MANPAGER="vim -M +MANPAGER -"
|
||||||
|
|
||||||
For (t)csh, add to the config file
|
For (t)csh, add to the config file
|
||||||
|
|
||||||
setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
|
setenv MANPAGER "vim -M +MANPAGER -"
|
||||||
|
|
||||||
For fish, add to the config file
|
For fish, add to the config file
|
||||||
|
|
||||||
set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
|
set -x MANPAGER "vim -M +MANPAGER -"
|
||||||
|
|
||||||
On OpenBSD:
|
|
||||||
|
|
||||||
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER"
|
|
||||||
|
|
||||||
If you experience still issues on manpages whose titles do not contain capital
|
|
||||||
letters, then try adding MANPATH=${MANPATH} after MAN_PN=1. If your manpages do
|
|
||||||
not show up localized, then try adding, LANGUAGE=${LANG} after MAN_PN=1. See
|
|
||||||
|
|
||||||
https://github.com/vim/vim/issues/1002
|
|
||||||
|
|
||||||
|
|
||||||
PDF *ft-pdf-plugin*
|
PDF *ft-pdf-plugin*
|
||||||
|
|
||||||
@@ -706,4 +676,23 @@ You can change the default by defining the variable g:tex_flavor to the format
|
|||||||
Currently no other formats are recognized.
|
Currently no other formats are recognized.
|
||||||
|
|
||||||
|
|
||||||
|
VIM *ft-vim-plugin*
|
||||||
|
|
||||||
|
The Vim filetype plugin defines mappings to move to the start and end of
|
||||||
|
functions with [[ and ]]. Move around comments with ]" and [".
|
||||||
|
|
||||||
|
The mappings can be disabled with: >
|
||||||
|
let g:no_vim_maps = 1
|
||||||
|
|
||||||
|
|
||||||
|
ZIMBU *ft-zimbu-plugin*
|
||||||
|
|
||||||
|
The Zimbu filetype plugin defines mappings to move to the start and end of
|
||||||
|
functions with [[ and ]].
|
||||||
|
|
||||||
|
The mappings can be disabled with: >
|
||||||
|
let g:no_zimbu_maps = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*fold.txt* For Vim version 8.0. Last change: 2017 Mar 18
|
*fold.txt* For Vim version 8.1. Last change: 2017 Mar 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*ft_ada.txt* For Vim version 8.0. Last change: 2010 Jul 20
|
*ft_ada.txt* For Vim version 8.1. Last change: 2010 Jul 20
|
||||||
|
|
||||||
|
|
||||||
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*ft_sql.txt* For Vim version 8.0. Last change: 2013 May 15
|
*ft_sql.txt* For Vim version 8.1. Last change: 2013 May 15
|
||||||
|
|
||||||
by David Fishburn
|
by David Fishburn
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui.txt* For Vim version 8.0. Last change: 2017 Nov 09
|
*gui.txt* For Vim version 8.1. Last change: 2018 Mar 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -134,7 +134,7 @@ task bar with the 'guiheadroom' option.
|
|||||||
:winp[os]
|
:winp[os]
|
||||||
Display current position of the top left corner of the GUI vim
|
Display current position of the top left corner of the GUI vim
|
||||||
window in pixels. Does not work in all versions.
|
window in pixels. Does not work in all versions.
|
||||||
Also see |getwinposx()| and |getwinposy()|.
|
Also see |getwinpos()|, |getwinposx()| and |getwinposy()|.
|
||||||
|
|
||||||
:winp[os] {X} {Y} *E466*
|
:winp[os] {X} {Y} *E466*
|
||||||
Put the GUI vim window at the given {X} and {Y} coordinates.
|
Put the GUI vim window at the given {X} and {Y} coordinates.
|
||||||
@@ -992,10 +992,14 @@ it behaves in a strange way.
|
|||||||
:popu[p] {name} Popup the menu {name}. The menu named must
|
:popu[p] {name} Popup the menu {name}. The menu named must
|
||||||
have at least one subentry, but need not
|
have at least one subentry, but need not
|
||||||
appear on the menu-bar (see |hidden-menus|).
|
appear on the menu-bar (see |hidden-menus|).
|
||||||
{only available for Win32 and GTK GUI}
|
{only available for Win32 and GTK GUI or in
|
||||||
|
the terminal when compiled with +insert_expand}
|
||||||
|
|
||||||
:popu[p]! {name} Like above, but use the position of the mouse
|
:popu[p]! {name} Like above, but use the position of the mouse
|
||||||
pointer instead of the cursor.
|
pointer instead of the cursor.
|
||||||
|
In the terminal this is the last known
|
||||||
|
position, which is usually at the last click
|
||||||
|
or release (mouse movement is irrelevalt).
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
:popup File
|
:popup File
|
||||||
@@ -1006,6 +1010,10 @@ pointer if ! was used). >
|
|||||||
:popup ]Toolbar
|
:popup ]Toolbar
|
||||||
This creates a popup menu that doesn't exist on the main menu-bar.
|
This creates a popup menu that doesn't exist on the main menu-bar.
|
||||||
|
|
||||||
|
Note that in the GUI the :popup command will return immediately, before a
|
||||||
|
selection has been made. In the terminal the commands waits for the user to
|
||||||
|
make a selection.
|
||||||
|
|
||||||
Note that a menu that starts with ']' will not be displayed.
|
Note that a menu that starts with ']' will not be displayed.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui_w32.txt* For Vim version 8.0. Last change: 2017 Oct 27
|
*gui_w32.txt* For Vim version 8.1. Last change: 2017 Oct 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui_x11.txt* For Vim version 8.0. Last change: 2017 Jul 28
|
*gui_x11.txt* For Vim version 8.1. Last change: 2018 May 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -53,6 +53,9 @@ When using "gvim -f" and then ":gui", Vim will run in the foreground. The
|
|||||||
":gui -b".
|
":gui -b".
|
||||||
|
|
||||||
"gvim --nofork" does the same as "gvim -f".
|
"gvim --nofork" does the same as "gvim -f".
|
||||||
|
|
||||||
|
When there are running jobs Vim will not fork, because the processes would no
|
||||||
|
longer be child processes.
|
||||||
*E851* *E852*
|
*E851* *E852*
|
||||||
When starting the GUI fails Vim will try to continue running in the terminal.
|
When starting the GUI fails Vim will try to continue running in the terminal.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*hangulin.txt* For Vim version 8.0. Last change: 2015 Nov 24
|
*hangulin.txt* For Vim version 8.1. Last change: 2015 Nov 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*hebrew.txt* For Vim version 8.0. Last change: 2007 Jun 14
|
*hebrew.txt* For Vim version 8.1. Last change: 2007 Jun 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*help.txt* For Vim version 8.0. Last change: 2017 Oct 28
|
*help.txt* For Vim version 8.1. Last change: 2017 Oct 28
|
||||||
|
|
||||||
VIM - main help file
|
VIM - main help file
|
||||||
k
|
k
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*helphelp.txt* For Vim version 8.0. Last change: 2017 Mar 19
|
*helphelp.txt* For Vim version 8.1. Last change: 2017 Mar 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*howto.txt* For Vim version 8.0. Last change: 2006 Apr 02
|
*howto.txt* For Vim version 8.1. Last change: 2006 Apr 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_cscop.txt* For Vim version 8.0. Last change: 2017 Jun 14
|
*if_cscop.txt* For Vim version 8.1. Last change: 2018 Jan 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Andy Kahn
|
VIM REFERENCE MANUAL by Andy Kahn
|
||||||
@@ -468,36 +468,18 @@ license or OS distribution), then you can download it for free from:
|
|||||||
http://cscope.sourceforge.net/
|
http://cscope.sourceforge.net/
|
||||||
This is released by SCO under the BSD license.
|
This is released by SCO under the BSD license.
|
||||||
|
|
||||||
If you want a newer version of cscope, you will probably have to buy it.
|
|
||||||
According to the (old) nvi documentation:
|
|
||||||
|
|
||||||
You can buy version 13.3 source with an unrestricted license
|
|
||||||
for $400 from AT&T Software Solutions by calling +1-800-462-8146.
|
|
||||||
|
|
||||||
Also you can download cscope 13.x and mlcscope 14.x (multi-lingual cscope
|
|
||||||
which supports C, C++, Java, lex, yacc, breakpoint listing, Ingres, and SDL)
|
|
||||||
from World-Wide Exptools Open Source packages page:
|
|
||||||
http://www.bell-labs.com/project/wwexptools/packages.html
|
|
||||||
|
|
||||||
In Solaris 2.x, if you have the C compiler license, you will also have
|
In Solaris 2.x, if you have the C compiler license, you will also have
|
||||||
cscope. Both are usually located under /opt/SUNWspro/bin
|
cscope. Both are usually located under /opt/SUNWspro/bin
|
||||||
|
|
||||||
SGI developers can also get it. Search for Cscope on this page:
|
|
||||||
http://freeware.sgi.com/index-by-alpha.html
|
|
||||||
https://toolbox.sgi.com/toolbox/utilities/cscope/
|
|
||||||
The second one is for those who have a password for the SGI toolbox.
|
|
||||||
|
|
||||||
There is source to an older version of a cscope clone (called "cs") available
|
There is source to an older version of a cscope clone (called "cs") available
|
||||||
on the net. Due to various reasons, this is not supported with Vim.
|
on the net. Due to various reasons, this is not supported with Vim.
|
||||||
|
|
||||||
The cscope interface/support for Vim was originally written by
|
The cscope interface/support for Vim was originally written by
|
||||||
Andy Kahn <ackahn@netapp.com>. The original structure (as well as a tiny
|
Andy Kahn <ackahn@netapp.com>. The original structure (as well as a tiny
|
||||||
bit of code) was adapted from the cscope interface in nvi. Please report
|
bit of code) was adapted from the cscope interface in nvi.
|
||||||
any problems, suggestions, patches, et al., you have for the usage of
|
|
||||||
cscope within Vim to him.
|
|
||||||
*cscope-win32*
|
*cscope-win32*
|
||||||
For a cscope version for Win32 see:
|
For a cscope version for Win32 see (seems abandoned):
|
||||||
http://code.google.com/p/cscope-win32/
|
https://code.google.com/archive/p/cscope-win32/
|
||||||
|
|
||||||
Win32 support was added by Sergey Khorev <sergey.khorev@gmail.com>. Contact
|
Win32 support was added by Sergey Khorev <sergey.khorev@gmail.com>. Contact
|
||||||
him if you have Win32-specific issues.
|
him if you have Win32-specific issues.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_lua.txt* For Vim version 8.0. Last change: 2015 Oct 16
|
*if_lua.txt* For Vim version 8.1. Last change: 2015 Oct 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Luis Carvalho
|
VIM REFERENCE MANUAL by Luis Carvalho
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_mzsch.txt* For Vim version 8.0. Last change: 2017 Oct 08
|
*if_mzsch.txt* For Vim version 8.1. Last change: 2017 Oct 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sergey Khorev
|
VIM REFERENCE MANUAL by Sergey Khorev
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_ole.txt* For Vim version 8.0. Last change: 2008 Aug 16
|
*if_ole.txt* For Vim version 8.1. Last change: 2008 Aug 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_perl.txt* For Vim version 8.0. Last change: 2015 Oct 16
|
*if_perl.txt* For Vim version 8.1. Last change: 2017 Nov 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sven Verdoolaege
|
VIM REFERENCE MANUAL by Sven Verdoolaege
|
||||||
@@ -112,7 +112,7 @@ possible.
|
|||||||
Here is an overview of the functions that are available to Perl: >
|
Here is an overview of the functions that are available to Perl: >
|
||||||
|
|
||||||
:perl VIM::Msg("Text") # displays a message
|
:perl VIM::Msg("Text") # displays a message
|
||||||
:perl VIM::Msg("Error", "ErrorMsg") # displays an error message
|
:perl VIM::Msg("Wrong!", "ErrorMsg") # displays an error message
|
||||||
:perl VIM::Msg("remark", "Comment") # displays a highlighted message
|
:perl VIM::Msg("remark", "Comment") # displays a highlighted message
|
||||||
:perl VIM::SetOption("ai") # sets a vim option
|
:perl VIM::SetOption("ai") # sets a vim option
|
||||||
:perl $nbuf = VIM::Buffers() # returns the number of buffers
|
:perl $nbuf = VIM::Buffers() # returns the number of buffers
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_pyth.txt* For Vim version 8.0. Last change: 2017 Nov 09
|
*if_pyth.txt* For Vim version 8.1. Last change: 2018 Jan 30
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@@ -736,8 +736,8 @@ or 'pythonthreedll' option can be also used to specify the Python DLL.
|
|||||||
|
|
||||||
The name of the DLL should match the Python version Vim was compiled with.
|
The name of the DLL should match the Python version Vim was compiled with.
|
||||||
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
|
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
|
||||||
That is the default value for 'pythondll'. For Python 3 it is python35.dll
|
That is the default value for 'pythondll'. For Python 3 it is python36.dll
|
||||||
(Python 3.5). To know for sure edit "gvim.exe" and search for
|
(Python 3.6). To know for sure edit "gvim.exe" and search for
|
||||||
"python\d*.dll\c".
|
"python\d*.dll\c".
|
||||||
|
|
||||||
|
|
||||||
@@ -809,7 +809,8 @@ Raising SystemExit exception in python isn't endorsed way to quit vim, use: >
|
|||||||
You can test what Python version is available with: >
|
You can test what Python version is available with: >
|
||||||
if has('python')
|
if has('python')
|
||||||
echo 'there is Python 2.x'
|
echo 'there is Python 2.x'
|
||||||
elseif has('python3')
|
endif
|
||||||
|
if has('python3')
|
||||||
echo 'there is Python 3.x'
|
echo 'there is Python 3.x'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -818,6 +819,24 @@ dynamically, these has() calls will try to load them. If only one can be
|
|||||||
loaded at a time, just checking if Python 2 or 3 are available will prevent
|
loaded at a time, just checking if Python 2 or 3 are available will prevent
|
||||||
the other one from being available.
|
the other one from being available.
|
||||||
|
|
||||||
|
To avoid loading the dynamic library, only check if Vim was compiled with
|
||||||
|
python support: >
|
||||||
|
if has('python_compiled')
|
||||||
|
echo 'compiled with Python 2.x support'
|
||||||
|
if has('python_dynamic')
|
||||||
|
echo 'Python 2.x dynamically loaded'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
if has('python3_compiled')
|
||||||
|
echo 'compiled with Python 3.x support'
|
||||||
|
if has('python3_dynamic')
|
||||||
|
echo 'Python 3.x dynamically loaded'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
This also tells you whether Python is dynamically loaded, which will fail if
|
||||||
|
the runtime library cannot be found.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
11. Python X *python_x* *pythonx*
|
11. Python X *python_x* *pythonx*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_ruby.txt* For Vim version 8.0. Last change: 2016 Sep 01
|
*if_ruby.txt* For Vim version 8.1. Last change: 2018 Mar 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Shugo Maeda
|
VIM REFERENCE MANUAL by Shugo Maeda
|
||||||
@@ -221,6 +221,9 @@ for sure edit "gvim.exe" and search for "ruby\d*.dll\c".
|
|||||||
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
|
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
|
||||||
some tricks. See the src/INSTALLpc.txt for detail.
|
some tricks. See the src/INSTALLpc.txt for detail.
|
||||||
|
|
||||||
|
If Vim is built with RubyInstaller 2.4 or later, you may also need to add
|
||||||
|
"C:\Ruby<version>\bin\ruby_builtin_dlls" to the PATH environment variable.
|
||||||
|
|
||||||
|
|
||||||
Unix ~
|
Unix ~
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_sniff.txt* For Vim version 8.0. Last change: 2016 Feb 27
|
*if_sniff.txt* For Vim version 8.1. Last change: 2016 Feb 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL
|
VIM REFERENCE MANUAL
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_tcl.txt* For Vim version 8.0. Last change: 2016 Jan 01
|
*if_tcl.txt* For Vim version 8.1. Last change: 2016 Jan 01
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ingo Wilken
|
VIM REFERENCE MANUAL by Ingo Wilken
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*indent.txt* For Vim version 8.0. Last change: 2014 Dec 06
|
*indent.txt* For Vim version 8.1. Last change: 2018 Apr 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -414,10 +414,10 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
*cino-(*
|
*cino-(*
|
||||||
(N When in unclosed parentheses, indent N characters from the line
|
(N When in unclosed parentheses, indent N characters from the line
|
||||||
with the unclosed parentheses. Add a 'shiftwidth' for every
|
with the unclosed parentheses. Add a 'shiftwidth' for every
|
||||||
unclosed parentheses. When N is 0 or the unclosed parentheses
|
extra unclosed parentheses. When N is 0 or the unclosed
|
||||||
is the first non-white character in its line, line up with the
|
parentheses is the first non-white character in its line, line
|
||||||
next non-white character after the unclosed parentheses.
|
up with the next non-white character after the unclosed
|
||||||
(default 'shiftwidth' * 2).
|
parentheses. (default 'shiftwidth' * 2).
|
||||||
|
|
||||||
cino= cino=(0 >
|
cino= cino=(0 >
|
||||||
if (c1 && (c2 || if (c1 && (c2 ||
|
if (c1 && (c2 || if (c1 && (c2 ||
|
||||||
@@ -428,7 +428,8 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
{ {
|
{ {
|
||||||
<
|
<
|
||||||
*cino-u*
|
*cino-u*
|
||||||
uN Same as (N, but for one level deeper. (default 'shiftwidth').
|
uN Same as (N, but for one nesting level deeper.
|
||||||
|
(default 'shiftwidth').
|
||||||
|
|
||||||
cino= cino=u2 >
|
cino= cino=u2 >
|
||||||
if (c123456789 if (c123456789
|
if (c123456789 if (c123456789
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 8.0. Last change: 2017 Aug 02
|
*index.txt* For Vim version 8.1. Last change: 2018 Apr 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -959,7 +959,7 @@ tag command note action in Visual mode ~
|
|||||||
|v_i{| i{ same as iB
|
|v_i{| i{ same as iB
|
||||||
|v_i}| i} same as iB
|
|v_i}| i} same as iB
|
||||||
|v_o| o move cursor to other corner of area
|
|v_o| o move cursor to other corner of area
|
||||||
|v_r| r 2 delete highlighted area and start insert
|
|v_r| r 2 replace highlighted area with a character
|
||||||
|v_s| s 2 delete highlighted area and start insert
|
|v_s| s 2 delete highlighted area and start insert
|
||||||
|v_u| u 2 make highlighted area lowercase
|
|v_u| u 2 make highlighted area lowercase
|
||||||
|v_v| v make Visual mode characterwise or stop
|
|v_v| v make Visual mode characterwise or stop
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*insert.txt* For Vim version 8.0. Last change: 2017 May 30
|
*insert.txt* For Vim version 8.1. Last change: 2018 Feb 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -1103,6 +1103,8 @@ items:
|
|||||||
item with the same word is already present.
|
item with the same word is already present.
|
||||||
empty when non-zero this match will be added even when it is
|
empty when non-zero this match will be added even when it is
|
||||||
an empty string
|
an empty string
|
||||||
|
user_data custom data which is associated with the item and
|
||||||
|
available in |v:completed_item|
|
||||||
|
|
||||||
All of these except "icase", "dup" and "empty" must be a string. If an item
|
All of these except "icase", "dup" and "empty" must be a string. If an item
|
||||||
does not meet these requirements then an error message is given and further
|
does not meet these requirements then an error message is given and further
|
||||||
@@ -1196,6 +1198,8 @@ The menu is used when:
|
|||||||
|
|
||||||
The 'pumheight' option can be used to set a maximum height. The default is to
|
The 'pumheight' option can be used to set a maximum height. The default is to
|
||||||
use all space available.
|
use all space available.
|
||||||
|
The 'pumwidth' option can be used to set a minimum width. The default is 15
|
||||||
|
characters.
|
||||||
|
|
||||||
There are three states:
|
There are three states:
|
||||||
1. A complete match has been inserted, e.g., after using CTRL-N or CTRL-P.
|
1. A complete match has been inserted, e.g., after using CTRL-N or CTRL-P.
|
||||||
@@ -1296,7 +1300,8 @@ it here: http://ctags.sourceforge.net/ Version 5.6 or later is recommended.
|
|||||||
For version 5.5.4 you should add a patch that adds the "typename:" field:
|
For version 5.5.4 you should add a patch that adds the "typename:" field:
|
||||||
ftp://ftp.vim.org/pub/vim/unstable/patches/ctags-5.5.4.patch
|
ftp://ftp.vim.org/pub/vim/unstable/patches/ctags-5.5.4.patch
|
||||||
A compiled .exe for MS-Windows can be found at:
|
A compiled .exe for MS-Windows can be found at:
|
||||||
http://georgevreilly.com/vim/ctags.html
|
http://ctags.sourceforge.net/
|
||||||
|
https://github.com/universal-ctags/ctags-win32
|
||||||
|
|
||||||
If you want to complete system functions you can do something like this. Use
|
If you want to complete system functions you can do something like this. Use
|
||||||
ctags to generate a tags file for all the system header files: >
|
ctags to generate a tags file for all the system header files: >
|
||||||
@@ -1529,9 +1534,9 @@ groups are included by default with the PHP: phpEnvVar, phpIntVar,
|
|||||||
phpFunctions.
|
phpFunctions.
|
||||||
|
|
||||||
If you wish non-filetype syntax items to also be included, you can use a
|
If you wish non-filetype syntax items to also be included, you can use a
|
||||||
regular expression syntax (added in version 13.0 of autoload\syntaxcomplete.vim)
|
regular expression syntax (added in version 13.0 of
|
||||||
to add items. Looking at the output from ":syntax list" while editing a PHP file
|
autoload\syntaxcomplete.vim) to add items. Looking at the output from
|
||||||
I can see some of these entries: >
|
":syntax list" while editing a PHP file I can see some of these entries: >
|
||||||
htmlArg,htmlTag,htmlTagName,javaScriptStatement,javaScriptGlobalObjects
|
htmlArg,htmlTag,htmlTagName,javaScriptStatement,javaScriptGlobalObjects
|
||||||
|
|
||||||
To pick up any JavaScript and HTML keyword syntax groups while editing a PHP
|
To pick up any JavaScript and HTML keyword syntax groups while editing a PHP
|
||||||
@@ -1578,15 +1583,15 @@ SQL file (:e syntax.sql) you can use the ":syntax list" command to see the
|
|||||||
various groups and syntax items. For example: >
|
various groups and syntax items. For example: >
|
||||||
syntax list
|
syntax list
|
||||||
|
|
||||||
Yields data similar to this: >
|
Yields data similar to this:
|
||||||
sqlOperator xxx some prior all like and any escape exists in is not
|
sqlOperator xxx some prior all like and any escape exists in is not ~
|
||||||
or intersect minus between distinct
|
or intersect minus between distinct ~
|
||||||
links to Operator
|
links to Operator ~
|
||||||
sqlType xxx varbit varchar nvarchar bigint int uniqueidentifier
|
sqlType xxx varbit varchar nvarchar bigint int uniqueidentifier ~
|
||||||
date money long tinyint unsigned xml text smalldate
|
date money long tinyint unsigned xml text smalldate ~
|
||||||
double datetime nchar smallint numeric time bit char
|
double datetime nchar smallint numeric time bit char ~
|
||||||
varbinary binary smallmoney
|
varbinary binary smallmoney ~
|
||||||
image float integer timestamp real decimal
|
image float integer timestamp real decimal ~
|
||||||
|
|
||||||
There are two syntax groups listed here: sqlOperator and sqlType. To retrieve
|
There are two syntax groups listed here: sqlOperator and sqlType. To retrieve
|
||||||
a List of syntax items you can call OmniSyntaxList a number of different
|
a List of syntax items you can call OmniSyntaxList a number of different
|
||||||
@@ -1607,7 +1612,6 @@ From within a plugin, you would typically assign the output to a List: >
|
|||||||
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SQL *ft-sql-omni*
|
SQL *ft-sql-omni*
|
||||||
|
|
||||||
Completion for the SQL language includes statements, functions, keywords.
|
Completion for the SQL language includes statements, functions, keywords.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*intro.txt* For Vim version 8.0. Last change: 2017 Sep 04
|
*intro.txt* For Vim version 8.1. Last change: 2018 Jan 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -138,7 +138,7 @@ There are two ways to report bugs, both work:
|
|||||||
see the message. If you don't want that, e.g. because it is a security
|
see the message. If you don't want that, e.g. because it is a security
|
||||||
issue, send it to <bugs@vim.org>, this only goes to the Vim maintainer
|
issue, send it to <bugs@vim.org>, this only goes to the Vim maintainer
|
||||||
(that's Bram).
|
(that's Bram).
|
||||||
2. Open issue on GitHub: https://github.com/vim/vim/issues
|
2. Open an issue on GitHub: https://github.com/vim/vim/issues
|
||||||
The text will be forwarded to the vim-dev maillist.
|
The text will be forwarded to the vim-dev maillist.
|
||||||
|
|
||||||
Please be brief; all the time that is spent on answering mail is subtracted
|
Please be brief; all the time that is spent on answering mail is subtracted
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 8.0. Last change: 2017 Sep 23
|
*map.txt* For Vim version 8.1. Last change: 2018 May 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -542,9 +542,9 @@ scenario: >
|
|||||||
:imap <M-C> foo
|
:imap <M-C> foo
|
||||||
:set encoding=utf-8
|
:set encoding=utf-8
|
||||||
The mapping for <M-C> is defined with the latin1 encoding, resulting in a 0xc3
|
The mapping for <M-C> is defined with the latin1 encoding, resulting in a 0xc3
|
||||||
byte. If you type the character <EFBFBD> (0xe1 <M-a>) in UTF-8 encoding this is the
|
byte. If you type the character á (0xe1 <M-a>) in UTF-8 encoding this is the
|
||||||
two bytes 0xc3 0xa1. You don't want the 0xc3 byte to be mapped then or
|
two bytes 0xc3 0xa1. You don't want the 0xc3 byte to be mapped then or
|
||||||
otherwise it would be impossible to type the <EFBFBD> character.
|
otherwise it would be impossible to type the á character.
|
||||||
|
|
||||||
*<Leader>* *mapleader*
|
*<Leader>* *mapleader*
|
||||||
To define a mapping which uses the "mapleader" variable, the special string
|
To define a mapping which uses the "mapleader" variable, the special string
|
||||||
@@ -917,7 +917,9 @@ an additional rule:
|
|||||||
full-id In front of the match is a non-keyword character, or this is where
|
full-id In front of the match is a non-keyword character, or this is where
|
||||||
the line or insertion starts. Exception: When the abbreviation is
|
the line or insertion starts. Exception: When the abbreviation is
|
||||||
only one character, it is not recognized if there is a non-keyword
|
only one character, it is not recognized if there is a non-keyword
|
||||||
character in front of it, other than a space or a tab.
|
character in front of it, other than a space or a tab. However, for
|
||||||
|
the command line "'<,'>" (or any other marks) is ignored, as if the
|
||||||
|
command line starts after it.
|
||||||
|
|
||||||
end-id In front of the match is a keyword character, or a space or a tab,
|
end-id In front of the match is a keyword character, or a space or a tab,
|
||||||
or this is where the line or insertion starts.
|
or this is where the line or insertion starts.
|
||||||
@@ -1272,6 +1274,7 @@ By default, the arguments of user defined commands do not undergo completion.
|
|||||||
However, by specifying one or the other of the following attributes, argument
|
However, by specifying one or the other of the following attributes, argument
|
||||||
completion can be enabled:
|
completion can be enabled:
|
||||||
|
|
||||||
|
-complete=arglist file names in argument list
|
||||||
-complete=augroup autocmd groups
|
-complete=augroup autocmd groups
|
||||||
-complete=buffer buffer names
|
-complete=buffer buffer names
|
||||||
-complete=behave :behave suboptions
|
-complete=behave :behave suboptions
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*mbyte.txt* For Vim version 8.0. Last change: 2016 Jul 21
|
*mbyte.txt* For Vim version 8.1. Last change: 2018 Jan 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
@@ -26,8 +26,9 @@ For changing the language of messages and menus see |mlang.txt|.
|
|||||||
7. Input on X11 |mbyte-XIM|
|
7. Input on X11 |mbyte-XIM|
|
||||||
8. Input on MS-Windows |mbyte-IME|
|
8. Input on MS-Windows |mbyte-IME|
|
||||||
9. Input with a keymap |mbyte-keymap|
|
9. Input with a keymap |mbyte-keymap|
|
||||||
10. Using UTF-8 |mbyte-utf8|
|
10. Input with imactivatefunc() |mbyte-func|
|
||||||
11. Overview of options |mbyte-options|
|
11. Using UTF-8 |mbyte-utf8|
|
||||||
|
12. Overview of options |mbyte-options|
|
||||||
|
|
||||||
NOTE: This file contains UTF-8 characters. These may show up as strange
|
NOTE: This file contains UTF-8 characters. These may show up as strange
|
||||||
characters or boxes when using another encoding.
|
characters or boxes when using another encoding.
|
||||||
@@ -1254,7 +1255,35 @@ Combining forms:
|
|||||||
ﭏ 0xfb4f Xal alef-lamed
|
ﭏ 0xfb4f Xal alef-lamed
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
10. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
|
10. Input with imactivatefunc() *mbyte-func*
|
||||||
|
|
||||||
|
Vim has the 'imactivatefunc' and 'imstatusfunc' options. These are useful to
|
||||||
|
activate/deactivate the input method from Vim in any way, also with an external
|
||||||
|
command. For example, fcitx provide fcitx-remote command: >
|
||||||
|
|
||||||
|
set iminsert=2
|
||||||
|
set imsearch=2
|
||||||
|
set imcmdline
|
||||||
|
|
||||||
|
set imactivatefunc=ImActivate
|
||||||
|
function! ImActivate(active)
|
||||||
|
if a:active
|
||||||
|
call system('fcitx-remote -o')
|
||||||
|
else
|
||||||
|
call system('fcitx-remote -c')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
set imstatusfunc=ImStatus
|
||||||
|
function! ImStatus()
|
||||||
|
return system('fcitx-remote')[0] is# '2'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
Using this script, you can activate/deactivate XIM via Vim even when it is not
|
||||||
|
compiled with |+xim|.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
11. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
|
||||||
*Unicode* *unicode*
|
*Unicode* *unicode*
|
||||||
The Unicode character set was designed to include all characters from other
|
The Unicode character set was designed to include all characters from other
|
||||||
character sets. Therefore it is possible to write text in any language using
|
character sets. Therefore it is possible to write text in any language using
|
||||||
@@ -1402,7 +1431,7 @@ not everybody is able to type a composing character.
|
|||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
11. Overview of options *mbyte-options*
|
12. Overview of options *mbyte-options*
|
||||||
|
|
||||||
These options are relevant for editing multi-byte files. Check the help in
|
These options are relevant for editing multi-byte files. Check the help in
|
||||||
options.txt for detailed information.
|
options.txt for detailed information.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*message.txt* For Vim version 8.0. Last change: 2017 Oct 14
|
*message.txt* For Vim version 8.1. Last change: 2018 Feb 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -76,7 +76,7 @@ See `:messages` above.
|
|||||||
LIST OF MESSAGES
|
LIST OF MESSAGES
|
||||||
*E222* *E228* *E232* *E256* *E293* *E298* *E304* *E317*
|
*E222* *E228* *E232* *E256* *E293* *E298* *E304* *E317*
|
||||||
*E318* *E356* *E438* *E439* *E440* *E316* *E320* *E322*
|
*E318* *E356* *E438* *E439* *E440* *E316* *E320* *E322*
|
||||||
*E323* *E341* *E473* *E570* *E685* >
|
*E323* *E341* *E473* *E570* *E685* *E950* >
|
||||||
Add to read buffer
|
Add to read buffer
|
||||||
makemap: Illegal mode
|
makemap: Illegal mode
|
||||||
Cannot create BalloonEval with both message and callback
|
Cannot create BalloonEval with both message and callback
|
||||||
@@ -97,6 +97,7 @@ LIST OF MESSAGES
|
|||||||
Internal error
|
Internal error
|
||||||
Internal error: {function}
|
Internal error: {function}
|
||||||
fatal error in cs_manage_matches
|
fatal error in cs_manage_matches
|
||||||
|
Invalid count for del_bytes(): {N}
|
||||||
|
|
||||||
This is an internal error. If you can reproduce it, please send in a bug
|
This is an internal error. If you can reproduce it, please send in a bug
|
||||||
report. |bugs|
|
report. |bugs|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*mlang.txt* For Vim version 8.0. Last change: 2017 Mar 04
|
*mlang.txt* For Vim version 8.1. Last change: 2018 May 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -190,8 +190,8 @@ you can do it without restarting Vim: >
|
|||||||
:source $VIMRUNTIME/menu.vim
|
:source $VIMRUNTIME/menu.vim
|
||||||
|
|
||||||
Each part of a menu path is translated separately. The result is that when
|
Each part of a menu path is translated separately. The result is that when
|
||||||
"Help" is translated to "Hilfe" and "Overview" to "<EFBFBD>berblick" then
|
"Help" is translated to "Hilfe" and "Overview" to "Überblick" then
|
||||||
"Help.Overview" will be translated to "Hilfe.<EFBFBD>berblick".
|
"Help.Overview" will be translated to "Hilfe.Überblick".
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Scripts *multilang-scripts*
|
3. Scripts *multilang-scripts*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*motion.txt* For Vim version 8.0. Last change: 2017 Oct 15
|
*motion.txt* For Vim version 8.1. Last change: 2017 Oct 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*netbeans.txt* For Vim version 8.0. Last change: 2016 Jul 15
|
*netbeans.txt* For Vim version 8.1. Last change: 2016 Jul 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 8.0. Last change: 2017 Nov 18
|
*options.txt* For Vim version 8.1. Last change: 2018 May 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -402,8 +402,8 @@ Setting the filetype
|
|||||||
used to set the option value in, unless this is a help
|
used to set the option value in, unless this is a help
|
||||||
window, in which case the window below help window is
|
window, in which case the window below help window is
|
||||||
used (skipping the option-window).
|
used (skipping the option-window).
|
||||||
{not available when compiled without the |+eval| or
|
{not available when compiled without the |+eval|
|
||||||
|+autocmd| features}
|
feature}
|
||||||
|
|
||||||
*$HOME*
|
*$HOME*
|
||||||
Using "~" is like using "$HOME", but it is only recognized at the start of an
|
Using "~" is like using "$HOME", but it is only recognized at the start of an
|
||||||
@@ -1087,7 +1087,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
< Use 'backupdir' to put the backup in a different directory.
|
< Use 'backupdir' to put the backup in a different directory.
|
||||||
|
|
||||||
*'backupskip'* *'bsk'*
|
*'backupskip'* *'bsk'*
|
||||||
'backupskip' 'bsk' string (default: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*")
|
'backupskip' 'bsk' string (default: "$TMPDIR/*,$TMP/*,$TEMP/*"
|
||||||
|
Unix: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*"
|
||||||
|
Mac: "/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*")
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+wildignore|
|
{not available when compiled without the |+wildignore|
|
||||||
@@ -1385,8 +1387,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
written
|
written
|
||||||
nowrite buffer which will not be written
|
nowrite buffer which will not be written
|
||||||
acwrite buffer which will always be written with BufWriteCmd
|
acwrite buffer which will always be written with BufWriteCmd
|
||||||
autocommands. {not available when compiled without the
|
autocommands.
|
||||||
|+autocmd| feature}
|
|
||||||
quickfix quickfix buffer, contains list of errors |:cwindow|
|
quickfix quickfix buffer, contains list of errors |:cwindow|
|
||||||
or list of locations |:lwindow|
|
or list of locations |:lwindow|
|
||||||
help help buffer (you are not supposed to set this
|
help help buffer (you are not supposed to set this
|
||||||
@@ -1808,7 +1809,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'copyindent' + off don't copy indent structure
|
'copyindent' + off don't copy indent structure
|
||||||
'cpoptions' & (all flags) Vi-compatible flags
|
'cpoptions' & (all flags) Vi-compatible flags
|
||||||
'cscopepathcomp'+ 0 don't show directories in tags list
|
'cscopepathcomp'+ 0 don't show directories in tags list
|
||||||
'cscoperelative'+ off
|
'cscoperelative'+ off don't use basename of path as prefix
|
||||||
'cscopetag' + off don't use cscope for ":tag"
|
'cscopetag' + off don't use cscope for ":tag"
|
||||||
'cscopetagorder'+ 0 see |cscopetagorder|
|
'cscopetagorder'+ 0 see |cscopetagorder|
|
||||||
'cscopeverbose' + off see |cscopeverbose|
|
'cscopeverbose' + off see |cscopeverbose|
|
||||||
@@ -2116,7 +2117,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*cpo-E*
|
*cpo-E*
|
||||||
E It is an error when using "y", "d", "c", "g~", "gu" or
|
E It is an error when using "y", "d", "c", "g~", "gu" or
|
||||||
"gU" on an Empty region. The operators only work when
|
"gU" on an Empty region. The operators only work when
|
||||||
at least one character is to be operate on. Example:
|
at least one character is to be operated on. Example:
|
||||||
This makes "y0" fail in the first column.
|
This makes "y0" fail in the first column.
|
||||||
*cpo-f*
|
*cpo-f*
|
||||||
f When included, a ":read" command with a file name
|
f When included, a ":read" command with a file name
|
||||||
@@ -2466,8 +2467,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'cursorbind' 'crb' boolean (default off)
|
'cursorbind' 'crb' boolean (default off)
|
||||||
local to window
|
local to window
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+cursorbind|
|
|
||||||
feature}
|
|
||||||
When this option is set, as the cursor in the current
|
When this option is set, as the cursor in the current
|
||||||
window moves other cursorbound windows (windows that also have
|
window moves other cursorbound windows (windows that also have
|
||||||
this option set) move their cursors to the corresponding line and
|
this option set) move their cursors to the corresponding line and
|
||||||
@@ -2562,8 +2561,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
contain a list of words. This can be one word per line, or several
|
contain a list of words. This can be one word per line, or several
|
||||||
words per line, separated by non-keyword characters (white space is
|
words per line, separated by non-keyword characters (white space is
|
||||||
preferred). Maximum line length is 510 bytes.
|
preferred). Maximum line length is 510 bytes.
|
||||||
When this option is empty, or an entry "spell" is present, spell
|
|
||||||
checking is enabled the currently active spelling is used. |spell|
|
When this option is empty or an entry "spell" is present, and spell
|
||||||
|
checking is enabled, words in the word lists for the currently active
|
||||||
|
'spelllang' are used. See |spell|.
|
||||||
|
|
||||||
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.
|
||||||
@@ -2634,6 +2636,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
vertical Start diff mode with vertical splits (unless
|
vertical Start diff mode with vertical splits (unless
|
||||||
explicitly specified otherwise).
|
explicitly specified otherwise).
|
||||||
|
|
||||||
|
hiddenoff Do not use diff mode for a buffer when it
|
||||||
|
becomes hidden.
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
@@ -2915,8 +2920,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'eventignore' 'ei' string (default "")
|
'eventignore' 'ei' string (default "")
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+autocmd|
|
|
||||||
feature}
|
|
||||||
A list of autocommand event names, which are to be ignored.
|
A list of autocommand event names, which are to be ignored.
|
||||||
When set to "all" or when "all" is one of the items, all autocommand
|
When set to "all" or when "all" is one of the items, all autocommand
|
||||||
events are ignored, autocommands will not be executed.
|
events are ignored, autocommands will not be executed.
|
||||||
@@ -3165,8 +3168,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'filetype' 'ft' string (default: "")
|
'filetype' 'ft' string (default: "")
|
||||||
local to buffer
|
local to buffer
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+autocmd|
|
|
||||||
feature}
|
|
||||||
When this option is set, the FileType autocommand event is triggered.
|
When this option is set, the FileType autocommand event is triggered.
|
||||||
All autocommands that match with the value of this option will be
|
All autocommands that match with the value of this option will be
|
||||||
executed. Thus the value of 'filetype' is used in place of the file
|
executed. Thus the value of 'filetype' is used in place of the file
|
||||||
@@ -3849,7 +3850,14 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
To avoid problems with flags that are added in the future, use the
|
To avoid problems with flags that are added in the future, use the
|
||||||
"+=" and "-=" feature of ":set" |add-option-flags|.
|
"+=" and "-=" feature of ":set" |add-option-flags|.
|
||||||
|
|
||||||
Valid letters are as follows:
|
Valid characters are as follows:
|
||||||
|
*'go-!'*
|
||||||
|
'!' External commands are executed in a terminal window. Without
|
||||||
|
this flag the MS-Windows GUI will open a console window to
|
||||||
|
execute the command. The Unix GUI will simulate a dumb
|
||||||
|
terminal to list the command output.
|
||||||
|
The terminal window will be positioned at the bottom, and grow
|
||||||
|
upwards as needed.
|
||||||
*guioptions_a* *'go-a'*
|
*guioptions_a* *'go-a'*
|
||||||
'a' Autoselect: If present, then whenever VISUAL mode is started,
|
'a' Autoselect: If present, then whenever VISUAL mode is started,
|
||||||
or the Visual area extended, Vim tries to become the owner of
|
or the Visual area extended, Vim tries to become the owner of
|
||||||
@@ -4256,10 +4264,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'imactivatefunc' 'imaf' string (default "")
|
'imactivatefunc' 'imaf' string (default "")
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only available when compiled with |+xim| and
|
{only available when compiled with |+mbyte|}
|
||||||
|+GUI_GTK|}
|
|
||||||
This option specifies a function that will be called to
|
This option specifies a function that will be called to
|
||||||
activate/inactivate Input Method.
|
activate or deactivate the Input Method.
|
||||||
|
It is not used in the GUI.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
function ImActivateFunc(active)
|
function ImActivateFunc(active)
|
||||||
@@ -4308,8 +4316,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'imcmdline' 'imc' boolean (default off)
|
'imcmdline' 'imc' boolean (default off)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only available when compiled with the |+xim|,
|
{only available when compiled with |+mbyte|}
|
||||||
|+multi_byte_ime| or |global-ime| features}
|
|
||||||
When set the Input Method is always on when starting to edit a command
|
When set the Input Method is always on when starting to edit a command
|
||||||
line, unless entering a search pattern (see 'imsearch' for that).
|
line, unless entering a search pattern (see 'imsearch' for that).
|
||||||
Setting this option is useful when your input method allows entering
|
Setting this option is useful when your input method allows entering
|
||||||
@@ -4320,8 +4327,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'imdisable' 'imd' boolean (default off, on for some systems (SGI))
|
'imdisable' 'imd' boolean (default off, on for some systems (SGI))
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only available when compiled with the |+xim|,
|
{only available when compiled with |+mbyte|}
|
||||||
|+multi_byte_ime| or |global-ime| features}
|
|
||||||
When set the Input Method is never used. This is useful to disable
|
When set the Input Method is never used. This is useful to disable
|
||||||
the IM when it doesn't work properly.
|
the IM when it doesn't work properly.
|
||||||
Currently this option is on by default for SGI/IRIX machines. This
|
Currently this option is on by default for SGI/IRIX machines. This
|
||||||
@@ -4336,8 +4342,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
0 :lmap is off and IM is off
|
0 :lmap is off and IM is off
|
||||||
1 :lmap is ON and IM is off
|
1 :lmap is ON and IM is off
|
||||||
2 :lmap is off and IM is ON
|
2 :lmap is off and IM is ON
|
||||||
2 is available only when compiled with the |+multi_byte_ime|, |+xim|
|
|
||||||
or |global-ime|.
|
|
||||||
To always reset the option to zero when leaving Insert mode with <Esc>
|
To always reset the option to zero when leaving Insert mode with <Esc>
|
||||||
this can be used: >
|
this can be used: >
|
||||||
:inoremap <ESC> <ESC>:set iminsert=0<CR>
|
:inoremap <ESC> <ESC>:set iminsert=0<CR>
|
||||||
@@ -4350,6 +4354,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The value 0 may not work correctly with Athena and Motif with some XIM
|
The value 0 may not work correctly with Athena and Motif with some XIM
|
||||||
methods. Use 'imdisable' to disable XIM then.
|
methods. Use 'imdisable' to disable XIM then.
|
||||||
|
|
||||||
|
You can set 'imactivatefunc' and 'imstatusfunc' to handle IME/XIM
|
||||||
|
via external command if vim is not compiled with the |+xim|,
|
||||||
|
|+multi_byte_ime| or |global-ime|.
|
||||||
|
|
||||||
*'imsearch'* *'ims'*
|
*'imsearch'* *'ims'*
|
||||||
'imsearch' 'ims' number (default -1)
|
'imsearch' 'ims' number (default -1)
|
||||||
local to buffer
|
local to buffer
|
||||||
@@ -4372,10 +4380,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'imstatusfunc' 'imsf' string (default "")
|
'imstatusfunc' 'imsf' string (default "")
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{only available when compiled with |+xim| and
|
{only available when compiled with |+mbyte|}
|
||||||
|+GUI_GTK|}
|
|
||||||
This option specifies a function that is called to obtain the status
|
This option specifies a function that is called to obtain the status
|
||||||
of Input Method. It must return a positive number when IME is active.
|
of Input Method. It must return a positive number when IME is active.
|
||||||
|
It is not used in the GUI.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
function ImStatusFunc()
|
function ImStatusFunc()
|
||||||
@@ -4464,8 +4472,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
match may not be found. This is to avoid that Vim hangs while you
|
match may not be found. This is to avoid that Vim hangs while you
|
||||||
are typing the pattern.
|
are typing the pattern.
|
||||||
The highlighting can be set with the 'i' flag in 'highlight'.
|
The highlighting can be set with the 'i' flag in 'highlight'.
|
||||||
When 'hlsearch' is on, all matched strings are highlighted too while typing
|
When 'hlsearch' is on, all matched strings are highlighted too while
|
||||||
a search command. See also: 'hlsearch'.
|
typing a search command. See also: 'hlsearch'.
|
||||||
If you don't want turn 'hlsearch' on, but want to highlight all matches
|
If you don't want turn 'hlsearch' on, but want to highlight all matches
|
||||||
while searching, you can turn on and off 'hlsearch' with autocmd.
|
while searching, you can turn on and off 'hlsearch' with autocmd.
|
||||||
Example: >
|
Example: >
|
||||||
@@ -5200,8 +5208,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
{not in Vi}
|
{not in Vi}
|
||||||
Maximum amount of memory (in Kbyte) to use for one buffer. When this
|
Maximum amount of memory (in Kbyte) to use for one buffer. When this
|
||||||
limit is reached allocating extra memory for a buffer will cause
|
limit is reached allocating extra memory for a buffer will cause
|
||||||
other memory to be freed. The maximum usable value is about 2000000.
|
other memory to be freed.
|
||||||
Use this to work without a limit. Also see 'maxmemtot'.
|
The maximum usable value is about 2000000. Use this to work without a
|
||||||
|
limit.
|
||||||
|
The value is ignored when 'swapfile' is off.
|
||||||
|
Also see 'maxmemtot'.
|
||||||
|
|
||||||
*'maxmempattern'* *'mmp'*
|
*'maxmempattern'* *'mmp'*
|
||||||
'maxmempattern' 'mmp' number (default 1000)
|
'maxmempattern' 'mmp' number (default 1000)
|
||||||
@@ -5230,6 +5241,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
need more than 2 Gbyte for text editing? Keep in mind that text is
|
need more than 2 Gbyte for text editing? Keep in mind that text is
|
||||||
stored in the swap file, one can edit files > 2 Gbyte anyway. We do
|
stored in the swap file, one can edit files > 2 Gbyte anyway. We do
|
||||||
need the memory to store undo info.
|
need the memory to store undo info.
|
||||||
|
Buffers with 'swapfile' off still count to the total amount of memory
|
||||||
|
used.
|
||||||
Also see 'maxmem'.
|
Also see 'maxmem'.
|
||||||
|
|
||||||
*'menuitems'* *'mis'*
|
*'menuitems'* *'mis'*
|
||||||
@@ -5326,6 +5339,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
an explanation.
|
an explanation.
|
||||||
When 'buftype' is "nowrite" or "nofile" this option may be set, but
|
When 'buftype' is "nowrite" or "nofile" this option may be set, but
|
||||||
will be ignored.
|
will be ignored.
|
||||||
|
Note that the text may actually be the same, e.g. 'modified' is set
|
||||||
|
when using "rA" on an "A".
|
||||||
|
|
||||||
*'more'* *'nomore'*
|
*'more'* *'nomore'*
|
||||||
'more' boolean (Vim default: on, Vi default: off)
|
'more' boolean (Vim default: on, Vi default: off)
|
||||||
@@ -5414,6 +5429,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
In the "popup" model the right mouse button produces a pop-up menu.
|
In the "popup" model the right mouse button produces a pop-up menu.
|
||||||
You need to define this first, see |popup-menu|.
|
You need to define this first, see |popup-menu|.
|
||||||
|
In a terminal the popup menu works if Vim is compiled with the
|
||||||
|
|+insert_expand| option.
|
||||||
|
|
||||||
Note that you can further refine the meaning of buttons with mappings.
|
Note that you can further refine the meaning of buttons with mappings.
|
||||||
See |gui-mouse-mapping|. But mappings are NOT used for modeless
|
See |gui-mouse-mapping|. But mappings are NOT used for modeless
|
||||||
@@ -5746,11 +5763,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
copy of the original file will be kept. The name of the copy is the
|
copy of the original file will be kept. The name of the copy is the
|
||||||
name of the original file with the string in the 'patchmode' option
|
name of the original file with the string in the 'patchmode' option
|
||||||
appended. This option should start with a dot. Use a string like
|
appended. This option should start with a dot. Use a string like
|
||||||
".org". 'backupdir' must not be empty for this to work (Detail: The
|
".orig" or ".org". 'backupdir' must not be empty for this to work
|
||||||
backup file is renamed to the patchmode file after the new file has
|
(Detail: The backup file is renamed to the patchmode file after the
|
||||||
been successfully written, that's why it must be possible to write a
|
new file has been successfully written, that's why it must be possible
|
||||||
backup file). If there was no file to be backed up, an empty file is
|
to write a backup file). If there was no file to be backed up, an
|
||||||
created.
|
empty file is created.
|
||||||
When the 'backupskip' pattern matches, a patchmode file is not made.
|
When the 'backupskip' pattern matches, a patchmode file is not made.
|
||||||
Using 'patchmode' for compressed files appends the extension at the
|
Using 'patchmode' for compressed files appends the extension at the
|
||||||
end (e.g., "file.gz.orig"), thus the resulting name isn't always
|
end (e.g., "file.gz.orig"), thus the resulting name isn't always
|
||||||
@@ -5952,6 +5969,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Insert mode completion. When zero as much space as available is used.
|
Insert mode completion. When zero as much space as available is used.
|
||||||
|ins-completion-menu|.
|
|ins-completion-menu|.
|
||||||
|
|
||||||
|
*'pumwidth'* *'pw'*
|
||||||
|
'pumwidth' 'pw' number (default 15)
|
||||||
|
global
|
||||||
|
{not available when compiled without the
|
||||||
|
|+insert_expand| feature}
|
||||||
|
{not in Vi}
|
||||||
|
Determines the minimum width to use for the popup menu for Insert mode
|
||||||
|
completion. |ins-completion-menu|.
|
||||||
|
|
||||||
*'pythondll'*
|
*'pythondll'*
|
||||||
'pythondll' string (default depends on the build)
|
'pythondll' string (default depends on the build)
|
||||||
global
|
global
|
||||||
@@ -5962,6 +5988,20 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
DYNAMIC_PYTHON_DLL, which was specified at compile time.
|
DYNAMIC_PYTHON_DLL, which was specified at compile time.
|
||||||
Environment variables are expanded |:set_env|.
|
Environment variables are expanded |:set_env|.
|
||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
|
security reasons.
|
||||||
|
|
||||||
|
*'pythonhome'*
|
||||||
|
'pythonhome' string (default "")
|
||||||
|
global
|
||||||
|
{not in Vi}
|
||||||
|
{only available when compiled with the |+python/dyn|
|
||||||
|
feature}
|
||||||
|
Specifies the name of the Python 2.x home directory. When 'pythonhome'
|
||||||
|
and the PYTHONHOME environment variable are not set, PYTHON_HOME,
|
||||||
|
which was specified at compile time, will be used for the Python 2.x
|
||||||
|
home directory.
|
||||||
|
Environment variables are expanded |:set_env|.
|
||||||
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
*'pythonthreedll'*
|
*'pythonthreedll'*
|
||||||
@@ -5974,6 +6014,20 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
DYNAMIC_PYTHON3_DLL, which was specified at compile time.
|
DYNAMIC_PYTHON3_DLL, which was specified at compile time.
|
||||||
Environment variables are expanded |:set_env|.
|
Environment variables are expanded |:set_env|.
|
||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
|
security reasons.
|
||||||
|
|
||||||
|
*'pythonthreehome'*
|
||||||
|
'pythonthreehome' string (default "")
|
||||||
|
global
|
||||||
|
{not in Vi}
|
||||||
|
{only available when compiled with the |+python3/dyn|
|
||||||
|
feature}
|
||||||
|
Specifies the name of the Python 3 home directory. When
|
||||||
|
'pythonthreehome' and the PYTHONHOME environment variable are not set,
|
||||||
|
PYTHON3_HOME, which was specified at compile time, will be used for
|
||||||
|
the Python 3 home directory.
|
||||||
|
Environment variables are expanded |:set_env|.
|
||||||
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
*'pyxversion'* *'pyx'*
|
*'pyxversion'* *'pyx'*
|
||||||
@@ -6033,7 +6087,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
{only available when compiled with the |+reltime|
|
{only available when compiled with the |+reltime|
|
||||||
feature}
|
feature}
|
||||||
The time in milliseconds for redrawing the display. This applies to
|
The time in milliseconds for redrawing the display. This applies to
|
||||||
searching for patterns for 'hlsearch', |:match| highlighting an syntax
|
searching for patterns for 'hlsearch', |:match| highlighting and syntax
|
||||||
highlighting.
|
highlighting.
|
||||||
When redrawing takes more than this many milliseconds no further
|
When redrawing takes more than this many milliseconds no further
|
||||||
matches will be highlighted.
|
matches will be highlighted.
|
||||||
@@ -6119,9 +6173,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
geom pixelGeometry int 0 - 2 (see below)
|
geom pixelGeometry int 0 - 2 (see below)
|
||||||
renmode renderingMode int 0 - 6 (see below)
|
renmode renderingMode int 0 - 6 (see below)
|
||||||
taamode textAntialiasMode int 0 - 3 (see below)
|
taamode textAntialiasMode int 0 - 3 (see below)
|
||||||
|
scrlines Scroll Lines int (deprecated)
|
||||||
|
|
||||||
See this URL for detail:
|
See this URL for detail (except for scrlines):
|
||||||
http://msdn.microsoft.com/en-us/library/dd368190.aspx
|
https://msdn.microsoft.com/en-us/library/dd368190.aspx
|
||||||
|
|
||||||
For geom: structure of a device pixel.
|
For geom: structure of a device pixel.
|
||||||
0 - DWRITE_PIXEL_GEOMETRY_FLAT
|
0 - DWRITE_PIXEL_GEOMETRY_FLAT
|
||||||
@@ -6129,7 +6184,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
2 - DWRITE_PIXEL_GEOMETRY_BGR
|
2 - DWRITE_PIXEL_GEOMETRY_BGR
|
||||||
|
|
||||||
See this URL for detail:
|
See this URL for detail:
|
||||||
http://msdn.microsoft.com/en-us/library/dd368114.aspx
|
https://msdn.microsoft.com/en-us/library/dd368114.aspx
|
||||||
|
|
||||||
For renmode: method of rendering glyphs.
|
For renmode: method of rendering glyphs.
|
||||||
0 - DWRITE_RENDERING_MODE_DEFAULT
|
0 - DWRITE_RENDERING_MODE_DEFAULT
|
||||||
@@ -6141,7 +6196,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
6 - DWRITE_RENDERING_MODE_OUTLINE
|
6 - DWRITE_RENDERING_MODE_OUTLINE
|
||||||
|
|
||||||
See this URL for detail:
|
See this URL for detail:
|
||||||
http://msdn.microsoft.com/en-us/library/dd368118.aspx
|
https://msdn.microsoft.com/en-us/library/dd368118.aspx
|
||||||
|
|
||||||
For taamode: antialiasing mode used for drawing text.
|
For taamode: antialiasing mode used for drawing text.
|
||||||
0 - D2D1_TEXT_ANTIALIAS_MODE_DEFAULT
|
0 - D2D1_TEXT_ANTIALIAS_MODE_DEFAULT
|
||||||
@@ -6150,15 +6205,41 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
3 - D2D1_TEXT_ANTIALIAS_MODE_ALIASED
|
3 - D2D1_TEXT_ANTIALIAS_MODE_ALIASED
|
||||||
|
|
||||||
See this URL for detail:
|
See this URL for detail:
|
||||||
http://msdn.microsoft.com/en-us/library/dd368170.aspx
|
https://msdn.microsoft.com/en-us/library/dd368170.aspx
|
||||||
|
|
||||||
|
For scrlines:
|
||||||
|
This was used for optimizing scrolling behavior, however this
|
||||||
|
is now deprecated. If specified, it is simply ignored.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set gfn=Ricty_Diminished:h12:cSHIFTJIS
|
set gfn=Ricty_Diminished:h12
|
||||||
set rop=type:directx
|
set rop=type:directx
|
||||||
<
|
<
|
||||||
If select a raster font (Courier, Terminal or FixedSys) to
|
If select a raster font (Courier, Terminal or FixedSys which
|
||||||
'guifont', it fallbacks to be drawn by GDI automatically.
|
have ".fon" extension in file name) to 'guifont', it will be
|
||||||
|
drawn by GDI as a fallback.
|
||||||
|
|
||||||
|
NOTE: It is known that some fonts and options combination
|
||||||
|
causes trouble on drawing glyphs.
|
||||||
|
|
||||||
|
- 'renmode:5' and 'renmode:6' will not work with some
|
||||||
|
special made fonts (True-Type fonts which includes only
|
||||||
|
bitmap glyphs).
|
||||||
|
- 'taamode:3' will not work with some vector fonts.
|
||||||
|
|
||||||
|
NOTE: With this option, you can display colored emoji
|
||||||
|
(emoticon) in Windows 8.1 or later. To display colored emoji,
|
||||||
|
there are some conditions which you should notice.
|
||||||
|
|
||||||
|
- If your font includes non-colored emoji already, it will
|
||||||
|
be used.
|
||||||
|
- If your font doesn't have emoji, the system chooses an
|
||||||
|
alternative symbol font. On Windows 10, "Segoe UI Emoji"
|
||||||
|
will be used.
|
||||||
|
- When this alternative font didn't have fixed width glyph,
|
||||||
|
emoji might be rendered beyond the bounding box of drawing
|
||||||
|
cell.
|
||||||
|
|
||||||
Other render types are currently not supported.
|
Other render types are currently not supported.
|
||||||
|
|
||||||
@@ -6369,6 +6450,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
to find files which replace a distributed runtime files. You can put
|
to find files which replace a distributed runtime files. You can put
|
||||||
a directory after $VIMRUNTIME to find files which add to distributed
|
a directory after $VIMRUNTIME to find files which add to distributed
|
||||||
runtime files.
|
runtime files.
|
||||||
|
When Vim is started with |--clean| the home directory entries are not
|
||||||
|
included.
|
||||||
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.
|
||||||
|
|
||||||
@@ -6387,8 +6470,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'scrollbind' 'scb' boolean (default off)
|
'scrollbind' 'scb' boolean (default off)
|
||||||
local to window
|
local to window
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+scrollbind|
|
|
||||||
feature}
|
|
||||||
See also |scroll-binding|. When this option is set, the current
|
See also |scroll-binding|. When this option is set, the current
|
||||||
window scrolls as other scrollbind windows (windows that also have
|
window scrolls as other scrollbind windows (windows that also have
|
||||||
this option set) scroll. This option is useful for viewing the
|
this option set) scroll. This option is useful for viewing the
|
||||||
@@ -6426,8 +6507,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'scrollopt'* *'sbo'*
|
*'scrollopt'* *'sbo'*
|
||||||
'scrollopt' 'sbo' string (default "ver,jump")
|
'scrollopt' 'sbo' string (default "ver,jump")
|
||||||
global
|
global
|
||||||
{not available when compiled without the |+scrollbind|
|
|
||||||
feature}
|
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
This is a comma-separated list of words that specifies how
|
This is a comma-separated list of words that specifies how
|
||||||
'scrollbind' windows should behave. 'sbo' stands for ScrollBind
|
'scrollbind' windows should behave. 'sbo' stands for ScrollBind
|
||||||
@@ -6517,7 +6596,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
*'sessionoptions'* *'ssop'*
|
*'sessionoptions'* *'ssop'*
|
||||||
'sessionoptions' 'ssop' string (default: "blank,buffers,curdir,folds,
|
'sessionoptions' 'ssop' string (default: "blank,buffers,curdir,folds,
|
||||||
help,options,tabpages,winsize")
|
help,options,tabpages,winsize,terminal")
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the |+mksession|
|
{not available when compiled without the |+mksession|
|
||||||
@@ -6549,6 +6628,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
tabpages all tab pages; without this only the current tab page
|
tabpages all tab pages; without this only the current tab page
|
||||||
is restored, so that you can make a session for each
|
is restored, so that you can make a session for each
|
||||||
tab page separately
|
tab page separately
|
||||||
|
terminal include terminal windows where the command can be restored
|
||||||
unix with Unix end-of-line format (single <NL>), even when
|
unix with Unix end-of-line format (single <NL>), even when
|
||||||
on Windows or DOS
|
on Windows or DOS
|
||||||
winpos position of the whole Vim window
|
winpos position of the whole Vim window
|
||||||
@@ -6572,14 +6652,21 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
It is allowed to give an argument to the command, e.g. "csh -f".
|
It is allowed to give an argument to the command, e.g. "csh -f".
|
||||||
See |option-backslash| about including spaces and backslashes.
|
See |option-backslash| about including spaces and backslashes.
|
||||||
Environment variables are expanded |:set_env|.
|
Environment variables are expanded |:set_env|.
|
||||||
|
|
||||||
If the name of the shell contains a space, you might need to enclose
|
If the name of the shell contains a space, you might need to enclose
|
||||||
it in quotes. Example: >
|
it in quotes or escape the space. Example with quotes: >
|
||||||
:set shell=\"c:\program\ files\unix\sh.exe\"\ -f
|
:set shell=\"c:\program\ files\unix\sh.exe\"\ -f
|
||||||
< Note the backslash before each quote (to avoid starting a comment) and
|
< Note the backslash before each quote (to avoid starting a comment) and
|
||||||
each space (to avoid ending the option value). Also note that the
|
each space (to avoid ending the option value). Also note that the
|
||||||
"-f" is not inside the quotes, because it is not part of the command
|
"-f" is not inside the quotes, because it is not part of the command
|
||||||
name. And Vim automagically recognizes the backslashes that are path
|
name. Vim automagically recognizes the backslashes that are path
|
||||||
separators.
|
separators.
|
||||||
|
Example with escaped space (Vim will do this when initializing the
|
||||||
|
option from $SHELL): >
|
||||||
|
:set shell=/bin/with\\\ space/sh
|
||||||
|
< The resulting value of 'shell' is "/bin/with\ space/sh", two
|
||||||
|
backslashes are consumed by `:set`.
|
||||||
|
|
||||||
Under MS-Windows, when the executable ends in ".com" it must be
|
Under MS-Windows, when the executable ends in ".com" it must be
|
||||||
included. Thus setting the shell to "command.com" or "4dos.com"
|
included. Thus setting the shell to "command.com" or "4dos.com"
|
||||||
works, but "command" and "4dos" do not work for all commands (e.g.,
|
works, but "command" and "4dos" do not work for all commands (e.g.,
|
||||||
@@ -7337,7 +7424,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
W F Preview window flag, text is ",PRV".
|
W F Preview window flag, text is ",PRV".
|
||||||
y F Type of file in the buffer, e.g., "[vim]". See 'filetype'.
|
y F Type of file in the buffer, e.g., "[vim]". See 'filetype'.
|
||||||
Y F Type of file in the buffer, e.g., ",VIM". See 'filetype'.
|
Y F Type of file in the buffer, e.g., ",VIM". See 'filetype'.
|
||||||
{not available when compiled without |+autocmd| feature}
|
|
||||||
q S "[Quickfix List]", "[Location List]" or empty.
|
q S "[Quickfix List]", "[Location List]" or empty.
|
||||||
k S Value of "b:keymap_name" or 'keymap' when |:lmap| mappings are
|
k S Value of "b:keymap_name" or 'keymap' when |:lmap| mappings are
|
||||||
being used: "<keymap>"
|
being used: "<keymap>"
|
||||||
@@ -7361,7 +7447,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
a S Argument list status as in default title. ({current} of {max})
|
a S Argument list status as in default title. ({current} of {max})
|
||||||
Empty if the argument file count is zero or one.
|
Empty if the argument file count is zero or one.
|
||||||
{ NF Evaluate expression between '%{' and '}' and substitute result.
|
{ NF Evaluate expression between '%{' and '}' and substitute result.
|
||||||
Note that there is no '%' before the closing '}'.
|
Note that there is no '%' before the closing '}'. The
|
||||||
|
expression cannot contain a '}' character, call a function to
|
||||||
|
work around that.
|
||||||
( - 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.
|
||||||
@@ -7482,6 +7570,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Also see |swap-file| and |'swapsync'|.
|
Also see |swap-file| and |'swapsync'|.
|
||||||
If you want to open a new buffer without creating a swap file for it,
|
If you want to open a new buffer without creating a swap file for it,
|
||||||
use the |:noswapfile| modifier.
|
use the |:noswapfile| modifier.
|
||||||
|
See 'directory' for where the swap file is created.
|
||||||
|
|
||||||
This option is used together with 'bufhidden' and 'buftype' to
|
This option is used together with 'bufhidden' and 'buftype' to
|
||||||
specify special kinds of buffers. See |special-buffers|.
|
specify special kinds of buffers. See |special-buffers|.
|
||||||
@@ -7828,46 +7917,71 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
:set encoding=utf-8
|
:set encoding=utf-8
|
||||||
< You need to do this when your system has no locale support for UTF-8.
|
< You need to do this when your system has no locale support for UTF-8.
|
||||||
|
|
||||||
*'termguicolors'* *'tgc'*
|
*'termguicolors'* *'tgc'* *E954*
|
||||||
'termguicolors' 'tgc' boolean (default off)
|
'termguicolors' 'tgc' boolean (default off)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
{not available when compiled without the
|
{not available when compiled without the
|
||||||
|+termguicolors| feature}
|
|+termguicolors| feature}
|
||||||
When on, uses |highlight-guifg| and |highlight-guibg| attributes in
|
When on, uses |highlight-guifg| and |highlight-guibg| attributes in
|
||||||
the terminal (thus using 24-bit color). Requires a ISO-8613-3
|
the terminal (thus using 24-bit color).
|
||||||
compatible terminal.
|
|
||||||
If setting this option does not work (produces a colorless UI)
|
Requires a ISO-8613-3 compatible terminal. If setting this option
|
||||||
reading |xterm-true-color| might help.
|
does not work (produces a colorless UI) reading |xterm-true-color|
|
||||||
|
might help.
|
||||||
|
|
||||||
|
For Win32 console, Windows 10 version 1703 (Creators Update) or later
|
||||||
|
is required. Use this check to find out: >
|
||||||
|
if has('vcon')
|
||||||
|
< This requires Vim to be built with the |+vtp| feature.
|
||||||
|
|
||||||
Note that the "cterm" attributes are still used, not the "gui" ones.
|
Note that the "cterm" attributes are still used, not the "gui" ones.
|
||||||
NOTE: This option is reset when 'compatible' is set.
|
NOTE: This option is reset when 'compatible' is set.
|
||||||
|
|
||||||
*'termkey'* *'tk'*
|
*'termwinscroll'* *'twsl'*
|
||||||
'termkey' 'tk' string (default "")
|
'termwinscroll' 'twsl' number (default 10000)
|
||||||
|
local to buffer
|
||||||
|
{not in Vi}
|
||||||
|
{not available when compiled without the
|
||||||
|
|+terminal| feature}
|
||||||
|
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
|
||||||
|
the memory usage. See |Terminal-Normal|.
|
||||||
|
|
||||||
|
*'termwinkey'* *'twk'*
|
||||||
|
'termwinkey' 'twk' string (default "")
|
||||||
local to window
|
local to window
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
The key that starts a CTRL-W command in a terminal window. Other keys
|
The key that starts a CTRL-W command in a terminal window. Other keys
|
||||||
are sent to the job running in the window.
|
are sent to the job running in the window.
|
||||||
The <> notation can be used, e.g.: >
|
The <> notation can be used, e.g.: >
|
||||||
:set termkey=<C-L>
|
:set termwinkey=<C-L>
|
||||||
< The string must be one key stroke but can be multiple bytes.
|
< The string must be one key stroke but can be multiple bytes.
|
||||||
When not set CTRL-W is used, so that CTRL-W : gets you to the command
|
When not set CTRL-W is used, so that CTRL-W : gets you to the command
|
||||||
line. If 'termkey' is set to CTRL-L then CTRL-L : gets you to the
|
line. If 'termwinkey' is set to CTRL-L then CTRL-L : gets you to the
|
||||||
command line.
|
command line.
|
||||||
|
|
||||||
*'termsize'* *'tms'*
|
*'termwinsize'* *'tws'*
|
||||||
'termsize' 'tms' string (default "")
|
'termwinsize' 'tws' string (default "")
|
||||||
local to window
|
local to window
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
Size of the |terminal| window. Format: {rows}x{columns}.
|
Size of the |terminal| window. Format: {rows}x{columns} or
|
||||||
|
{rows}*{columns}.
|
||||||
- When empty the terminal gets the size from the window.
|
- When empty the terminal gets the size from the window.
|
||||||
- When set (e.g., "24x80") the terminal size is not adjusted to the
|
- When set with a "x" (e.g., "24x80") the terminal size is not
|
||||||
window size. If the window is smaller only the top-left part is
|
adjusted to the window size. If the window is smaller only the
|
||||||
displayed.
|
top-left part is displayed.
|
||||||
When rows is zero then use the height of the window.
|
- When set with a "*" (e.g., "10*50") the terminal size follows the
|
||||||
When columns is zero then use the width of the window.
|
window size, but will not be smaller than the specified rows and/or
|
||||||
For example: "30x0" uses 30 rows with the current window width.
|
columns.
|
||||||
Using "0x0" is the same as empty.
|
- When rows is zero then use the height of the window.
|
||||||
|
- When columns is zero then use the width of the window.
|
||||||
|
- Using "0x0" or "0*0" is the same as empty.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
"30x0" uses 30 rows and the current window width.
|
||||||
|
"20*0" uses at least 20 rows and the current window width.
|
||||||
|
"0*40" uses the current window height and at least 40 columns.
|
||||||
Note that the command running in the terminal window may still change
|
Note that the command running in the terminal window may still change
|
||||||
the size of the terminal. In that case the Vim window will be
|
the size of the terminal. In that case the Vim window will be
|
||||||
adjusted to that size, if possible.
|
adjusted to that size, if possible.
|
||||||
@@ -8232,7 +8346,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
number, more intelligent detection process runs.
|
number, more intelligent detection process runs.
|
||||||
The "xterm2" value will be set if the xterm version is reported to be
|
The "xterm2" value will be set if the xterm version is reported to be
|
||||||
from 95 to 276. The "sgr" value will be set if the xterm version is
|
from 95 to 276. The "sgr" value will be set if the xterm version is
|
||||||
277 or highter and when Vim detects Mac Terminal.app or Iterm2.
|
277 or higher and when Vim detects Mac Terminal.app or iTerm2.
|
||||||
If you do not want 'ttymouse' to be set to "xterm2" or "sgr"
|
If you do not want 'ttymouse' to be set to "xterm2" or "sgr"
|
||||||
automatically, set t_RV to an empty string: >
|
automatically, set t_RV to an empty string: >
|
||||||
:set t_RV=
|
:set t_RV=
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_390.txt* For Vim version 8.0. Last change: 2016 Feb 27
|
*os_390.txt* For Vim version 8.1. Last change: 2016 Feb 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ralf Schandl
|
VIM REFERENCE MANUAL by Ralf Schandl
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_amiga.txt* For Vim version 8.0. Last change: 2010 Aug 14
|
*os_amiga.txt* For Vim version 8.1. Last change: 2010 Aug 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_beos.txt* For Vim version 8.0. Last change: 2016 Mar 28
|
*os_beos.txt* For Vim version 8.1. Last change: 2016 Mar 28
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_dos.txt* For Vim version 8.0. Last change: 2006 Mar 30
|
*os_dos.txt* For Vim version 8.1. Last change: 2006 Mar 30
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_mac.txt* For Vim version 8.0. Last change: 2017 Apr 28
|
*os_mac.txt* For Vim version 8.1. Last change: 2018 Jan 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
@@ -165,7 +165,7 @@ and then run `make` to build Vim. The order of the options doesn't matter.
|
|||||||
|
|
||||||
To make sure at runtime whether or not the darwin feature is compiled in, you
|
To make sure at runtime whether or not the darwin feature is compiled in, you
|
||||||
can use `has('osxdarwin')` which returns 1 if the feature is compiled in; 0
|
can use `has('osxdarwin')` which returns 1 if the feature is compiled in; 0
|
||||||
otherwise. For backwards comptibility, you can still use `macunix` instead of
|
otherwise. For backward compatibility, you can still use `macunix` instead of
|
||||||
`osxdarwin`.
|
`osxdarwin`.
|
||||||
|
|
||||||
Notable use cases where `--disable-darwin` is turned out to be useful are:
|
Notable use cases where `--disable-darwin` is turned out to be useful are:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_mint.txt* For Vim version 8.0. Last change: 2005 Mar 29
|
*os_mint.txt* For Vim version 8.1. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Jens M. Felderhoff
|
VIM REFERENCE MANUAL by Jens M. Felderhoff
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_msdos.txt* For Vim version 8.0. Last change: 2016 Feb 26
|
*os_msdos.txt* For Vim version 8.1. Last change: 2016 Feb 26
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_os2.txt* For Vim version 8.0. Last change: 2015 Dec 31
|
*os_os2.txt* For Vim version 8.1. Last change: 2015 Dec 31
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Slootman
|
VIM REFERENCE MANUAL by Paul Slootman
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_qnx.txt* For Vim version 8.0. Last change: 2005 Mar 29
|
*os_qnx.txt* For Vim version 8.1. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Julian Kinraid
|
VIM REFERENCE MANUAL by Julian Kinraid
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_risc.txt* For Vim version 8.0. Last change: 2011 May 10
|
*os_risc.txt* For Vim version 8.1. Last change: 2011 May 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Thomas Leonard
|
VIM REFERENCE MANUAL by Thomas Leonard
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_unix.txt* For Vim version 8.0. Last change: 2005 Mar 29
|
*os_unix.txt* For Vim version 8.1. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_vms.txt* For Vim version 8.0. Last change: 2014 Aug 29
|
*os_vms.txt* For Vim version 8.1. Last change: 2018 May 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL
|
VIM REFERENCE MANUAL
|
||||||
@@ -702,13 +702,13 @@ In a cluster that contains nodes with different architectures like below:
|
|||||||
$show cluster
|
$show cluster
|
||||||
View of Cluster from system ID 11655 node: TOR 18-AUG-2008 11:58:31
|
View of Cluster from system ID 11655 node: TOR 18-AUG-2008 11:58:31
|
||||||
+---------------------------------+
|
+---------------------------------+
|
||||||
<EFBFBD> SYSTEMS <EFBFBD> MEMBERS <EFBFBD>
|
| SYSTEMS | MEMBERS |
|
||||||
+-----------------------+---------<EFBFBD>
|
+-----------------------+---------|
|
||||||
<EFBFBD> NODE <EFBFBD> SOFTWARE <EFBFBD> STATUS <EFBFBD>
|
| NODE | SOFTWARE | STATUS |
|
||||||
+--------+--------------+---------<EFBFBD>
|
+--------+--------------+---------|
|
||||||
<EFBFBD> TOR <EFBFBD> VMS V7.3-2 <EFBFBD> MEMBER <EFBFBD>
|
| TOR | VMS V7.3-2 | MEMBER |
|
||||||
<EFBFBD> TITAN2 <EFBFBD> VMS V8.3 <EFBFBD> MEMBER <EFBFBD>
|
| TITAN2 | VMS V8.3 | MEMBER |
|
||||||
<EFBFBD> ODIN <EFBFBD> VMS V7.3-2 <EFBFBD> MEMBER <EFBFBD>
|
| ODIN | VMS V7.3-2 | MEMBER |
|
||||||
+---------------------------------+
|
+---------------------------------+
|
||||||
|
|
||||||
It is convenient to have a common VIM directory but execute different
|
It is convenient to have a common VIM directory but execute different
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_win32.txt* For Vim version 8.0. Last change: 2017 Mar 21
|
*os_win32.txt* For Vim version 8.1. Last change: 2017 Mar 21
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by George Reilly
|
VIM REFERENCE MANUAL by George Reilly
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pattern.txt* For Vim version 8.0. Last change: 2017 Jun 05
|
*pattern.txt* For Vim version 8.1. Last change: 2018 Mar 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -905,7 +905,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
becomes invalid. Vim doesn't automatically update the matches.
|
becomes invalid. Vim doesn't automatically update the matches.
|
||||||
Similar to moving the cursor for "\%#" |/\%#|.
|
Similar to moving the cursor for "\%#" |/\%#|.
|
||||||
|
|
||||||
*/\%l* */\%>l* */\%<l*
|
*/\%l* */\%>l* */\%<l* *E951*
|
||||||
\%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).
|
||||||
@@ -1166,7 +1166,8 @@ x A single character, with no special meaning, matches itself
|
|||||||
- Matching with a collection can be slow, because each character in
|
- Matching with a collection can be slow, because each character in
|
||||||
the text has to be compared with each character in the collection.
|
the text has to be compared with each character in the collection.
|
||||||
Use one of the other atoms above when possible. Example: "\d" is
|
Use one of the other atoms above when possible. Example: "\d" is
|
||||||
much faster than "[0-9]" and matches the same characters.
|
much faster than "[0-9]" and matches the same characters. However,
|
||||||
|
the new |NFA| regexp engine deals with this better than the old one.
|
||||||
|
|
||||||
*/\%[]* *E69* *E70* *E369*
|
*/\%[]* *E69* *E70* *E369*
|
||||||
\%[] A sequence of optionally matched atoms. This always matches.
|
\%[] A sequence of optionally matched atoms. This always matches.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_getscript.txt* For Vim version 7.0. Last change: 2017 Aug 01
|
*pi_getscript.txt* For Vim version 8.1. Last change: 2017 Aug 01
|
||||||
>
|
>
|
||||||
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell
|
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell
|
||||||
<
|
<
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_gzip.txt* For Vim version 8.0. Last change: 2016 Nov 06
|
*pi_gzip.txt* For Vim version 8.1. Last change: 2016 Nov 06
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_netrw.txt* For Vim version 8.0. Last change: 2017 Nov 03
|
*pi_netrw.txt* For Vim version 8.1. Last change: 2017 Nov 03
|
||||||
|
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
NETRW REFERENCE MANUAL by Charles E. Campbell
|
NETRW REFERENCE MANUAL by Charles E. Campbell
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_paren.txt* For Vim version 8.0. Last change: 2013 May 08
|
*pi_paren.txt* For Vim version 8.1. Last change: 2013 May 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_spec.txt* For Vim version 8.0. Last change: 2006 Apr 24
|
*pi_spec.txt* For Vim version 8.1. Last change: 2006 Apr 24
|
||||||
|
|
||||||
by Gustavo Niemeyer ~
|
by Gustavo Niemeyer ~
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_tar.txt* For Vim version 8.0. Last change: 2013 Apr 17
|
*pi_tar.txt* For Vim version 8.1. Last change: 2013 Apr 17
|
||||||
|
|
||||||
+====================+
|
+====================+
|
||||||
| Tar File Interface |
|
| Tar File Interface |
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_vimball.txt* For Vim version 8.0. Last change: 2016 Apr 11
|
*pi_vimball.txt* For Vim version 8.1. Last change: 2016 Apr 11
|
||||||
|
|
||||||
----------------
|
----------------
|
||||||
Vimball Archiver
|
Vimball Archiver
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*pi_zip.txt* For Vim version 8.0. Last change: 2016 Sep 13
|
*pi_zip.txt* For Vim version 8.1. Last change: 2016 Sep 13
|
||||||
|
|
||||||
+====================+
|
+====================+
|
||||||
| Zip File Interface |
|
| Zip File Interface |
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*print.txt* For Vim version 8.0. Last change: 2010 Jul 20
|
*print.txt* For Vim version 8.1. Last change: 2010 Jul 20
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user