mirror of
https://github.com/zoriya/vim.git
synced 2025-12-14 11:16:16 +00:00
Compare commits
488 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b050c64186 | ||
|
|
c2401d62e0 | ||
|
|
ba2d44f338 | ||
|
|
b95186fd36 | ||
|
|
34b466edfe | ||
|
|
9fee7d4729 | ||
|
|
e88a5f3a2c | ||
|
|
dff54ac7e8 | ||
|
|
174a848b67 | ||
|
|
3678208477 | ||
|
|
c62a644eaf | ||
|
|
ace8d8ee2f | ||
|
|
438ee5bf60 | ||
|
|
272fb58236 | ||
|
|
cafaa8a950 | ||
|
|
d07c6e1e82 | ||
|
|
1e42f7ac16 | ||
|
|
ffa2220950 | ||
|
|
49b10273f0 | ||
|
|
49b6a57d19 | ||
|
|
9421bdc2cd | ||
|
|
4b60a6cdb3 | ||
|
|
2593e037c9 | ||
|
|
e874744e94 | ||
|
|
8f5610df73 | ||
|
|
0671de335f | ||
|
|
cc63c647ee | ||
|
|
efe06f4dd8 | ||
|
|
0f8de8dfb2 | ||
|
|
3f75e422be | ||
|
|
d6b8a5253b | ||
|
|
a939e43440 | ||
|
|
8e69b4a319 | ||
|
|
45d3b1454c | ||
|
|
815135e408 | ||
|
|
817a8801d7 | ||
|
|
8050efa07d | ||
|
|
e5878f4be9 | ||
|
|
03e228a623 | ||
|
|
fcea03ddd3 | ||
|
|
c1c023ecfc | ||
|
|
aa88732efd | ||
|
|
f5a2fd880a | ||
|
|
4c1e626103 | ||
|
|
84dbb62fca | ||
|
|
dce7c91de9 | ||
|
|
6bcbcc59be | ||
|
|
0958e0fbe7 | ||
|
|
f332a656c3 | ||
|
|
69c3500f96 | ||
|
|
332a2cadcd | ||
|
|
d9820538bd | ||
|
|
ba2d7ffc4b | ||
|
|
d5d015d457 | ||
|
|
18e5469b6e | ||
|
|
39766a7595 | ||
|
|
0b400087d0 | ||
|
|
9db1293317 | ||
|
|
92c2db8be6 | ||
|
|
0ffbbf9ea8 | ||
|
|
4cc95d1495 | ||
|
|
2b1b53f5d9 | ||
|
|
1180822670 | ||
|
|
b69a714bb7 | ||
|
|
2c019c8696 | ||
|
|
a951e35478 | ||
|
|
b133208080 | ||
|
|
4c7cb6b884 | ||
|
|
3eead7c227 | ||
|
|
0c6ccfdb62 | ||
|
|
35a7c681bc | ||
|
|
0b4db6b6e5 | ||
|
|
ceb84af027 | ||
|
|
8962fda1da | ||
|
|
386dcde30d | ||
|
|
7a18fdc8a4 | ||
|
|
033d8888e8 | ||
|
|
cca7413456 | ||
|
|
2ee95f7d13 | ||
|
|
134bf07ca0 | ||
|
|
f211884fa1 | ||
|
|
699c12076d | ||
|
|
18441ae2cd | ||
|
|
268b55b5fb | ||
|
|
ec11aef914 | ||
|
|
6848c8b561 | ||
|
|
baca7f705b | ||
|
|
595cad2ea1 | ||
|
|
00462ffb7d | ||
|
|
9952c102dd | ||
|
|
745c6eb29b | ||
|
|
917789fdf7 | ||
|
|
e6a2fa6573 | ||
|
|
dd40734800 | ||
|
|
95235e64d8 | ||
|
|
0300e465aa | ||
|
|
3b26239341 | ||
|
|
3b7ac49e26 | ||
|
|
7cba6c0636 | ||
|
|
bec9c20884 | ||
|
|
9be4481892 | ||
|
|
78c93e4b6a | ||
|
|
00b764aa41 | ||
|
|
f0d9e00537 | ||
|
|
966d71c852 | ||
|
|
65f04f67f1 | ||
|
|
4dee1bb0db | ||
|
|
4e4f529792 | ||
|
|
d2a203bb58 | ||
|
|
604729e75b | ||
|
|
b5ef5e1c21 | ||
|
|
195ef0ccb2 | ||
|
|
cf81aefd9c | ||
|
|
41f1205fef | ||
|
|
74cd624fde | ||
|
|
67652c2935 | ||
|
|
c56c459075 | ||
|
|
c93df6b075 | ||
|
|
ebefd997bb | ||
|
|
3f0df06c28 | ||
|
|
1cfad52a03 | ||
|
|
3b1db36689 | ||
|
|
b7512b79ce | ||
|
|
b09129684b | ||
|
|
f17968b54a | ||
|
|
86f931e1c3 | ||
|
|
a95d823554 | ||
|
|
d82db6046c | ||
|
|
026a445c40 | ||
|
|
01c458e438 | ||
|
|
9d98fe9cae | ||
|
|
f40f4ab8df | ||
|
|
48483dbaf7 | ||
|
|
fb332a2b33 | ||
|
|
c528b1d1ed | ||
|
|
364ab2ffd3 | ||
|
|
bc88a27537 | ||
|
|
4008f4fb08 | ||
|
|
aee1f4a5b5 | ||
|
|
a946afe075 | ||
|
|
542805a59d | ||
|
|
eec3e1e72a | ||
|
|
6dbe68cd9e | ||
|
|
398d53decf | ||
|
|
1b1b09449f | ||
|
|
1a42b4befb | ||
|
|
1a4a75c5dc | ||
|
|
16ea3676db | ||
|
|
a2320f43ea | ||
|
|
e855ccf90a | ||
|
|
e2db695d31 | ||
|
|
ff18df03c3 | ||
|
|
af003f6384 | ||
|
|
2b90ed294e | ||
|
|
ad875fb7ff | ||
|
|
e24a9c0b59 | ||
|
|
196ed14d15 | ||
|
|
9d48895e4c | ||
|
|
5f919ee8eb | ||
|
|
ac7c33e38c | ||
|
|
9ba7e17de1 | ||
|
|
e53c8616f1 | ||
|
|
a8f96397a1 | ||
|
|
b7a846d0e0 | ||
|
|
69b52456fc | ||
|
|
de9149ef18 | ||
|
|
4a3aef7b28 | ||
|
|
9e90219032 | ||
|
|
706d2de9c1 | ||
|
|
95064ece73 | ||
|
|
33ca6bf240 | ||
|
|
56667a5d3e | ||
|
|
6f2926692b | ||
|
|
6f394f88b8 | ||
|
|
91b2bdb083 | ||
|
|
ff52518969 | ||
|
|
3fb14bc734 | ||
|
|
ee31be64a3 | ||
|
|
690ae9c858 | ||
|
|
2b79bfdeab | ||
|
|
a0aa9070be | ||
|
|
a3fe8fe632 | ||
|
|
8e46f7264c | ||
|
|
3ff9b185fe | ||
|
|
fba2424cf2 | ||
|
|
fee496d882 | ||
|
|
e741f2714d | ||
|
|
fb97f28cc2 | ||
|
|
e032461eed | ||
|
|
b69510e889 | ||
|
|
dd007ed585 | ||
|
|
4ca8d5fefd | ||
|
|
04c5c9ee27 | ||
|
|
c64b85a348 | ||
|
|
f4c096b617 | ||
|
|
e8785f2c39 | ||
|
|
3c04cc09cd | ||
|
|
7b8c268fc1 | ||
|
|
913df81e74 | ||
|
|
dc8b25cbf3 | ||
|
|
0d86e9b568 | ||
|
|
254e028e90 | ||
|
|
91aeaf4cce | ||
|
|
bc488a76cc | ||
|
|
2c6f3dca4e | ||
|
|
266411aa8a | ||
|
|
ccf623f6f8 | ||
|
|
94f76b7fd6 | ||
|
|
ba46075731 | ||
|
|
249f0dda51 | ||
|
|
61214040e9 | ||
|
|
a3c084cbfa | ||
|
|
3c1e9c2a1f | ||
|
|
c84e3c1ee1 | ||
|
|
ee0ee2a046 | ||
|
|
3437b91102 | ||
|
|
32ac8cdaaa | ||
|
|
0f5a5ed8bb | ||
|
|
f4c5fcb3ad | ||
|
|
8968a31179 | ||
|
|
f4e1143697 | ||
|
|
a87aa8061c | ||
|
|
caf2dffd51 | ||
|
|
5e6d5ca16c | ||
|
|
e1fc4e2f0f | ||
|
|
79f7e1475a | ||
|
|
f9da680a0b | ||
|
|
2951b77e50 | ||
|
|
4100937474 | ||
|
|
c33916a6e0 | ||
|
|
f5901aa195 | ||
|
|
2982e70243 | ||
|
|
72fe56f298 | ||
|
|
bd65c46478 | ||
|
|
0e710d603e | ||
|
|
d05bf560ac | ||
|
|
673b9a3cae | ||
|
|
e057d40d96 | ||
|
|
5a4d51e692 | ||
|
|
85e932f2ca | ||
|
|
e78495de7e | ||
|
|
2486285546 | ||
|
|
730d2c0747 | ||
|
|
55480dccf4 | ||
|
|
a4c8dcbdae | ||
|
|
14b6945e27 | ||
|
|
10315b1201 | ||
|
|
6b487147ac | ||
|
|
39efa89afb | ||
|
|
2751592119 | ||
|
|
a8e3580be6 | ||
|
|
630a730f9b | ||
|
|
f3fe392760 | ||
|
|
4a46070365 | ||
|
|
fe17e7640d | ||
|
|
72179e1bd0 | ||
|
|
b751546636 | ||
|
|
560c52d32b | ||
|
|
4d9ae21a34 | ||
|
|
e3a0b53c2e | ||
|
|
f0327f67c7 | ||
|
|
22dbc77ef1 | ||
|
|
6470de83f2 | ||
|
|
a5f5c8be8f | ||
|
|
5737ca2350 | ||
|
|
c9dcb42704 | ||
|
|
9b846cb8ac | ||
|
|
877aa00811 | ||
|
|
c14621eafb | ||
|
|
abab85a499 | ||
|
|
a0169128d9 | ||
|
|
b893ac2098 | ||
|
|
31c31679e2 | ||
|
|
b052fe0e2c | ||
|
|
f05d81102c | ||
|
|
f86c0b01a7 | ||
|
|
daa270289b | ||
|
|
c8c13a0307 | ||
|
|
56b45b9b37 | ||
|
|
df2bc27b52 | ||
|
|
c1c3d68da9 | ||
|
|
d5e376eb3b | ||
|
|
7e85d3d432 | ||
|
|
dee2e315d7 | ||
|
|
ede3e6383d | ||
|
|
6f1404f8a8 | ||
|
|
841fbd2907 | ||
|
|
c4b99e0be7 | ||
|
|
141be8a585 | ||
|
|
c476e52fca | ||
|
|
0bd80ccd85 | ||
|
|
808c2bc8bf | ||
|
|
389a1793f4 | ||
|
|
6c85e7f3be | ||
|
|
3dbcd0c7ad | ||
|
|
fe70acb376 | ||
|
|
d73895ec00 | ||
|
|
22f93c700f | ||
|
|
a6cc03101e | ||
|
|
db250526bb | ||
|
|
a0c85c7ae1 | ||
|
|
555d2a8340 | ||
|
|
d79862599d | ||
|
|
6324c3b920 | ||
|
|
06ae70d07c | ||
|
|
01b626c26e | ||
|
|
8c0e322f18 | ||
|
|
6949eea7cc | ||
|
|
5246cd7a9b | ||
|
|
03e114b0f2 | ||
|
|
70baa405f2 | ||
|
|
427d51c23f | ||
|
|
a50d02d983 | ||
|
|
5ab9d98b9a | ||
|
|
926b5d3b30 | ||
|
|
d69497413f | ||
|
|
4ce239b0b1 | ||
|
|
3351679948 | ||
|
|
e66f06d819 | ||
|
|
52b91d801a | ||
|
|
df9259abce | ||
|
|
dab38d516e | ||
|
|
9be6e21575 | ||
|
|
ff1806f8da | ||
|
|
141f6bb341 | ||
|
|
4cff8faf05 | ||
|
|
44c71db771 | ||
|
|
1612b1abe7 | ||
|
|
c5089bb8ff | ||
|
|
580abea48a | ||
|
|
6e70736cbc | ||
|
|
4c46b5e001 | ||
|
|
9d438d3b38 | ||
|
|
0c6633a7ea | ||
|
|
5f87b23229 | ||
|
|
b62bcd1e05 | ||
|
|
484d241a4a | ||
|
|
98bfc2d5ee | ||
|
|
82850dd9cb | ||
|
|
12b559e7c3 | ||
|
|
2a876e40ce | ||
|
|
ec7944aaf2 | ||
|
|
cab465a6d7 | ||
|
|
0825c00f14 | ||
|
|
22971aaa45 | ||
|
|
6395af8018 | ||
|
|
edb07a2d88 | ||
|
|
2d473ab932 | ||
|
|
81c40c507c | ||
|
|
27610ed76c | ||
|
|
9f3685a527 | ||
|
|
0ea4a6b94b | ||
|
|
60bf1f58d0 | ||
|
|
a2947e2bea | ||
|
|
780c3e9b04 | ||
|
|
3c7ad013fb | ||
|
|
a9f2220176 | ||
|
|
16619a235b | ||
|
|
9a773488a7 | ||
|
|
c09a6d6c0c | ||
|
|
f9c9b32bd1 | ||
|
|
c1ba10c7f6 | ||
|
|
570064cf21 | ||
|
|
a2e14fc764 | ||
|
|
0bdda37fb4 | ||
|
|
bcf4d178ab | ||
|
|
4380d1ea23 | ||
|
|
11354759e2 | ||
|
|
927d4a1fb5 | ||
|
|
2a4e98ac1e | ||
|
|
a940aa6fc4 | ||
|
|
1e02e6620b | ||
|
|
e7766eeaa5 | ||
|
|
473de61b04 | ||
|
|
cd9c46265e | ||
|
|
87f764a891 | ||
|
|
b1b284fd5d | ||
|
|
f96d109827 | ||
|
|
2358403363 | ||
|
|
3798519b9e | ||
|
|
45fc539fe0 | ||
|
|
a238431302 | ||
|
|
43e0298416 | ||
|
|
decd9540fd | ||
|
|
8aca2e9bef | ||
|
|
417bad227a | ||
|
|
203d04d764 | ||
|
|
4cd92d5aae | ||
|
|
4e31296ffa | ||
|
|
cc908adac8 | ||
|
|
d89616ebb8 | ||
|
|
6d3a5d755a | ||
|
|
188c57bcd1 | ||
|
|
f751255283 | ||
|
|
8a7f5a2d43 | ||
|
|
cd2d8bb6ea | ||
|
|
2976c028ca | ||
|
|
c19b4b50a8 | ||
|
|
973fced763 | ||
|
|
d4209d203a | ||
|
|
e60c2e5e1c | ||
|
|
8795374bd3 | ||
|
|
67604aed75 | ||
|
|
5b84ddccea | ||
|
|
1cd3f2c450 | ||
|
|
e2b8cb3b15 | ||
|
|
d75799ab7f | ||
|
|
78eae9aaf7 | ||
|
|
5ebc09b450 | ||
|
|
b76591ef4a | ||
|
|
044aa290c5 | ||
|
|
dacd7de3fd | ||
|
|
f811509c03 | ||
|
|
a2d9510861 | ||
|
|
dd9a4a44a9 | ||
|
|
e9056b121d | ||
|
|
01d89dddfa | ||
|
|
dd2ccdf6ea | ||
|
|
f46da70603 | ||
|
|
f18fb7af75 | ||
|
|
f6de032afe | ||
|
|
9f5d600723 | ||
|
|
ac499e3116 | ||
|
|
78b5957439 | ||
|
|
f4258308e2 | ||
|
|
4f2109d782 | ||
|
|
bc41196bdc | ||
|
|
de71b5658f | ||
|
|
525666f282 | ||
|
|
307aa16a69 | ||
|
|
b122e9798e | ||
|
|
69afb7bf0a | ||
|
|
5de820b916 | ||
|
|
efb23f26e8 | ||
|
|
0418811869 | ||
|
|
61602c5bfe | ||
|
|
543b7ef700 | ||
|
|
3737fc1c30 | ||
|
|
75d7a06920 | ||
|
|
36b3a011d3 | ||
|
|
54dafde170 | ||
|
|
4b78063368 | ||
|
|
14f55c6f67 | ||
|
|
99dc19d1cc | ||
|
|
ca982c8d45 | ||
|
|
96c7dfd806 | ||
|
|
b06e20e6ba | ||
|
|
35eacd7180 | ||
|
|
2d5e112284 | ||
|
|
021e147b70 | ||
|
|
f62d942e54 | ||
|
|
16299b57cb | ||
|
|
4b6ebe6dce | ||
|
|
428e987b61 | ||
|
|
fdde880b02 | ||
|
|
fc714b35c6 | ||
|
|
018acca3bd | ||
|
|
305b2fde13 | ||
|
|
8600e40a67 | ||
|
|
bcb40977c3 | ||
|
|
494ff7e850 | ||
|
|
355fd9b468 | ||
|
|
78cddbe271 | ||
|
|
a9922d62e6 | ||
|
|
a5b725c3f6 | ||
|
|
1a3b56953e | ||
|
|
a1544c00c8 | ||
|
|
01a7a720ad | ||
|
|
9bb77d6fe6 | ||
|
|
bad704fa04 | ||
|
|
7e28384a9a | ||
|
|
07b8864111 | ||
|
|
1bcabe19a2 | ||
|
|
a03e631120 | ||
|
|
c8366790e8 | ||
|
|
c37b6ecd60 | ||
|
|
b38caae26c | ||
|
|
dd8aca664d | ||
|
|
432b09c84d | ||
|
|
21642ed1b4 | ||
|
|
9e822c00b1 | ||
|
|
3e734ea2c7 | ||
|
|
e9ba516be2 | ||
|
|
1bc2428e1f | ||
|
|
0014a53ad1 | ||
|
|
423532e10d | ||
|
|
28c2191949 | ||
|
|
75eb1610e1 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -36,12 +36,16 @@ src/Obj*/pathdef.c
|
|||||||
gvimext.dll
|
gvimext.dll
|
||||||
gvimext.lib
|
gvimext.lib
|
||||||
|
|
||||||
|
# Mac OSX
|
||||||
|
src/xxd/xxd.dSYM
|
||||||
|
|
||||||
# All platforms
|
# All platforms
|
||||||
*.rej
|
*.rej
|
||||||
*.orig
|
*.orig
|
||||||
*.mo
|
*.mo
|
||||||
*.swp
|
*.swp
|
||||||
*~
|
*~
|
||||||
|
*.pyc
|
||||||
src/po/vim.pot
|
src/po/vim.pot
|
||||||
|
|
||||||
# Generated by "make test"
|
# Generated by "make test"
|
||||||
@@ -52,3 +56,4 @@ src/testdir/lua.vim
|
|||||||
src/testdir/small.vim
|
src/testdir/small.vim
|
||||||
src/testdir/tiny.vim
|
src/testdir/tiny.vim
|
||||||
src/testdir/test*.out
|
src/testdir/test*.out
|
||||||
|
src/testdir/test.log
|
||||||
|
|||||||
8
Contents
8
Contents
@@ -9,10 +9,10 @@ Vim Vi IMproved. A clone of the UNIX text editor Vi. Very useful
|
|||||||
messages, shows current file name in window title, on-line
|
messages, shows current file name in window title, on-line
|
||||||
help, rectangular cut/paste, etc., etc., etc...
|
help, rectangular cut/paste, etc., etc., etc...
|
||||||
|
|
||||||
Version 7.3. Also runs under UNIX, MSDOS and other systems.
|
Version 7.4. Also runs under UNIX, MSDOS and other systems.
|
||||||
vim73rt.tgz contains the documentation and syntax files.
|
vim74rt.tgz contains the documentation and syntax files.
|
||||||
vim73bin.tgz contains the binaries.
|
vim74bin.tgz contains the binaries.
|
||||||
vim73src.tgz contains the sources.
|
vim74src.tgz contains the sources.
|
||||||
Author: Bram Moolenaar et al.
|
Author: Bram Moolenaar et al.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
10
Filelist
10
Filelist
@@ -84,6 +84,15 @@ SRC_ALL = \
|
|||||||
src/testdir/test49.vim \
|
src/testdir/test49.vim \
|
||||||
src/testdir/test60.vim \
|
src/testdir/test60.vim \
|
||||||
src/testdir/test83-tags? \
|
src/testdir/test83-tags? \
|
||||||
|
src/testdir/python2/*.py \
|
||||||
|
src/testdir/python3/*.py \
|
||||||
|
src/testdir/pythonx/*.py \
|
||||||
|
src/testdir/pythonx/topmodule/__init__.py \
|
||||||
|
src/testdir/pythonx/topmodule/submodule/__init__.py \
|
||||||
|
src/testdir/pythonx/topmodule/submodule/subsubmodule/__init__.py \
|
||||||
|
src/testdir/pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py \
|
||||||
|
src/testdir/python_after/*.py \
|
||||||
|
src/testdir/python_before/*.py \
|
||||||
src/proto.h \
|
src/proto.h \
|
||||||
src/proto/blowfish.pro \
|
src/proto/blowfish.pro \
|
||||||
src/proto/buffer.pro \
|
src/proto/buffer.pro \
|
||||||
@@ -685,6 +694,7 @@ LANG_GEN = \
|
|||||||
runtime/doc/*-fr.UTF-8.1 \
|
runtime/doc/*-fr.UTF-8.1 \
|
||||||
runtime/doc/*-it.1 \
|
runtime/doc/*-it.1 \
|
||||||
runtime/doc/*-it.UTF-8.1 \
|
runtime/doc/*-it.UTF-8.1 \
|
||||||
|
runtime/doc/*-ja.UTF-8.1 \
|
||||||
runtime/doc/*-pl.1 \
|
runtime/doc/*-pl.1 \
|
||||||
runtime/doc/*-pl.UTF-8.1 \
|
runtime/doc/*-pl.UTF-8.1 \
|
||||||
runtime/doc/*-ru.1 \
|
runtime/doc/*-ru.1 \
|
||||||
|
|||||||
114
Makefile
114
Makefile
@@ -74,14 +74,17 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
|
|||||||
# Before creating an archive first delete all backup files, *.orig, etc.
|
# Before creating an archive first delete all backup files, *.orig, etc.
|
||||||
|
|
||||||
MAJOR = 7
|
MAJOR = 7
|
||||||
MINOR = 3
|
MINOR = 4
|
||||||
|
|
||||||
# Uncomment this line if the Win32s version is to be included.
|
# Uncomment this line if the Win32s version is to be included.
|
||||||
DOSBIN_S = dosbin_s
|
# DOSBIN_S = dosbin_s
|
||||||
|
|
||||||
# Uncomment this line if the 16 bit DOS version is to be included.
|
# Uncomment this line if the 16 bit DOS version is to be included.
|
||||||
# DOSBIN_D16 = dosbin_d16
|
# DOSBIN_D16 = dosbin_d16
|
||||||
|
|
||||||
|
# Uncomment this line if the 32 bit DOS version is to be included.
|
||||||
|
# DOSBIN_D32 = dosbin_d32
|
||||||
|
|
||||||
# CHECKLIST for creating a new version:
|
# CHECKLIST for creating a new version:
|
||||||
#
|
#
|
||||||
# - Update Vim version number. For a test version in: src/version.h, Contents,
|
# - Update Vim version number. For a test version in: src/version.h, Contents,
|
||||||
@@ -89,8 +92,6 @@ DOSBIN_S = dosbin_s
|
|||||||
# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
|
# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
|
||||||
# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def,
|
# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def,
|
||||||
# src/gvim.exe.mnf.
|
# src/gvim.exe.mnf.
|
||||||
# - Adjust the date and other info in src/version.h.
|
|
||||||
# - Correct included_patches[] in src/version.c.
|
|
||||||
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
|
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
|
||||||
# you can make it all work), Cscope and "huge" features. Exclude workshop
|
# you can make it all work), Cscope and "huge" features. Exclude workshop
|
||||||
# and SNiFF.
|
# and SNiFF.
|
||||||
@@ -99,8 +100,14 @@ DOSBIN_S = dosbin_s
|
|||||||
# - With these features: "make depend" (works best with gcc).
|
# - With these features: "make depend" (works best with gcc).
|
||||||
# - If you have a lint program: "make lint" and check the output (ignore GTK
|
# - If you have a lint program: "make lint" and check the output (ignore GTK
|
||||||
# warnings).
|
# warnings).
|
||||||
# - Enable the efence library in "src/Makefile" and run "make test". Disable
|
# - If you have valgrind, enable it in src/testdir/Makefile and run "make
|
||||||
# Python and Ruby to avoid trouble with threads (efence is not threadsafe).
|
# test". Enable EXITFREE, disable GUI, scheme and tcl to avoid false alarms.
|
||||||
|
# Check the valgrind output.
|
||||||
|
# - If you have the efence library, enable it in "src/Makefile" and run "make
|
||||||
|
# test". Disable Python and Ruby to avoid trouble with threads (efence is
|
||||||
|
# not threadsafe).
|
||||||
|
# - Adjust the date and other info in src/version.h.
|
||||||
|
# - Correct included_patches[] in src/version.c.
|
||||||
# - Check for missing entries in runtime/makemenu.vim (with checkmenu script).
|
# - Check for missing entries in runtime/makemenu.vim (with checkmenu script).
|
||||||
# - Check for missing options in runtime/optwin.vim et al. (with check.vim).
|
# - Check for missing options in runtime/optwin.vim et al. (with check.vim).
|
||||||
# - Do "make menu" to update the runtime/synmenu.vim file.
|
# - Do "make menu" to update the runtime/synmenu.vim file.
|
||||||
@@ -108,8 +115,8 @@ DOSBIN_S = dosbin_s
|
|||||||
# - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL
|
# - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL
|
||||||
# ADDITIONS".
|
# ADDITIONS".
|
||||||
# - In runtime/doc run "make" and "make html" to check for errors.
|
# - In runtime/doc run "make" and "make html" to check for errors.
|
||||||
# - Check if src/Makefile and src/feature.h don't contain any personal
|
# - Check if src/Makefile, src/testdir/Makefile and src/feature.h don't contain
|
||||||
# preferences or the GTK, Perl, etc. mentioned above.
|
# any personal preferences or the changes mentioned above.
|
||||||
# - Check file protections to be "644" for text and "755" for executables (run
|
# - Check file protections to be "644" for text and "755" for executables (run
|
||||||
# the "check" script).
|
# the "check" script).
|
||||||
# - Check compiling on Amiga, MS-DOS and MS-Windows.
|
# - Check compiling on Amiga, MS-DOS and MS-Windows.
|
||||||
@@ -128,36 +135,20 @@ DOSBIN_S = dosbin_s
|
|||||||
# PC:
|
# PC:
|
||||||
# - Run make on Unix to update the ".mo" files.
|
# - Run make on Unix to update the ".mo" files.
|
||||||
# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
|
# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
|
||||||
# 16 bit DOS version: (OBSOLETE, 16 bit version doesn't build)
|
|
||||||
# - Set environment for compiling with Borland C++ 3.1.
|
|
||||||
# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
|
|
||||||
# case set environment for compiling with Borland C++ 4.0 and do
|
|
||||||
# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
|
|
||||||
# NOTE: this currently fails because Vim is too big.
|
|
||||||
# - "make test" and check the output.
|
|
||||||
# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
|
|
||||||
# "uninstald16.exe".
|
|
||||||
# 32 bit DOS version:
|
|
||||||
# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
|
|
||||||
# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
|
|
||||||
# "ALL DONE".
|
|
||||||
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
|
|
||||||
# "uninstald32.exe".
|
|
||||||
# Win32 console version:
|
# Win32 console version:
|
||||||
# - Set environment for Visual C++ 2008, e.g.:
|
# - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or:
|
||||||
# "E:\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat". Or, when using the
|
# "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
|
||||||
# Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the paths when necessary).
|
# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
|
||||||
# For Windows 98/ME the 2003 version is required, but then it won't work on
|
# paths when necessary).
|
||||||
# Windows 7 and 64 bit.
|
# For Windows 98/ME the 2003 version is required, but then the executable
|
||||||
# - "nmake -f Make_mvc.mak"
|
# won't work on Windows 7 and 64 bit systems.
|
||||||
|
# - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat)
|
||||||
# - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
|
# - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
|
||||||
# - Rename the executables to "vimw32.exe", "xxdw32.exe".
|
# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
|
||||||
# - Rename vim.pdb to vimw32.pdb.
|
# - Rename vim.pdb to vimw32.pdb.
|
||||||
# - When building the Win32s version later, delete vimrun.exe, install.exe and
|
# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
|
||||||
# uninstal.exe. Otherwise rename executables to installw32.exe and
|
|
||||||
# uninstalw32.exe.
|
|
||||||
# Win32 GUI version:
|
# Win32 GUI version:
|
||||||
# - "nmake -f Make_mvc.mak GUI=yes.
|
# - "nmake -f Make_mvc.mak GUI=yes"
|
||||||
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
|
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
|
||||||
# - Move gvim.pdb to here.
|
# - Move gvim.pdb to here.
|
||||||
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
||||||
@@ -167,23 +158,13 @@ DOSBIN_S = dosbin_s
|
|||||||
# - Rename "gvim.exe" to "gvim_ole.exe".
|
# - Rename "gvim.exe" to "gvim_ole.exe".
|
||||||
# - Rename gvim.pdb to "gvim_ole.pdb".
|
# - Rename gvim.pdb to "gvim_ole.pdb".
|
||||||
# - Delete install.exe and uninstal.exe.
|
# - Delete install.exe and uninstal.exe.
|
||||||
# - If building the Win32s version delete vimrun.exe.
|
|
||||||
# Win32s GUI version:
|
|
||||||
# - Set environment for Visual C++ 4.1 (requires a new console window):
|
|
||||||
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
|
|
||||||
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
|
|
||||||
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
|
|
||||||
# - Rename "gvim.exe" to "gvim_w32s.exe".
|
|
||||||
# - Rename "install.exe" to "installw32.exe"
|
|
||||||
# - Rename "uninstal.exe" to "uninstalw32.exe"
|
|
||||||
# - The produced uninstalw32.exe and vimrun.exe are used.
|
|
||||||
# Create the archives:
|
# Create the archives:
|
||||||
# - Copy all the "*.exe" files to where this Makefile is.
|
# - Copy all the "*.exe" files to where this Makefile is.
|
||||||
# - Copy all the "*.pdb" files to where this Makefile is.
|
# - Copy all the "*.pdb" files to where this Makefile is.
|
||||||
# - "make dosbin".
|
# - "make dosbin".
|
||||||
# NSIS self installing exe:
|
# NSIS self installing exe:
|
||||||
# - To get NSIS see http://nsis.sourceforge.net
|
# - To get NSIS see http://nsis.sourceforge.net
|
||||||
# - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe,
|
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
|
||||||
# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
|
# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
|
||||||
# - copy these files (get them from a binary archive or build them):
|
# - copy these files (get them from a binary archive or build them):
|
||||||
# gvimext.dll in src/GvimExt
|
# gvimext.dll in src/GvimExt
|
||||||
@@ -196,7 +177,44 @@ DOSBIN_S = dosbin_s
|
|||||||
# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
|
# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
|
||||||
# - Copy gvim##.exe to the dist directory.
|
# - Copy gvim##.exe to the dist directory.
|
||||||
#
|
#
|
||||||
# OS/2: (OBSOLETE, OS/2 version is no longer distributed)
|
# 64 bit builds (these are not in the normal distribution, the 32 bit build
|
||||||
|
# works just fine on 64 bit systems).
|
||||||
|
# Like the console and GUI version, but first run vcvars64.bat or
|
||||||
|
# "..\VC\vcvarsall.bat x86_amd64".
|
||||||
|
# - "nmake -f Make_mvc.mak"
|
||||||
|
# - "nmake -f Make_mvc.mak GUI=yes"
|
||||||
|
# Or run src/bigvim64.bat for an OLE version.
|
||||||
|
#
|
||||||
|
# OBSOLETE systems: You can build this if you have an appropriate system.
|
||||||
|
#
|
||||||
|
# 16 bit DOS version: (doesn't build anywhere)
|
||||||
|
# - Set environment for compiling with Borland C++ 3.1.
|
||||||
|
# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
|
||||||
|
# case set environment for compiling with Borland C++ 4.0 and do
|
||||||
|
# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
|
||||||
|
# NOTE: this currently fails because Vim is too big.
|
||||||
|
# - "make test" and check the output.
|
||||||
|
# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
|
||||||
|
# "uninstald16.exe".
|
||||||
|
#
|
||||||
|
# 32 bit DOS version: (requires Windows XP or earlier)
|
||||||
|
# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
|
||||||
|
# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
|
||||||
|
# "ALL DONE".
|
||||||
|
# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
|
||||||
|
# "uninstald32.exe".
|
||||||
|
#
|
||||||
|
# Win32s GUI version: (requires very old compiler)
|
||||||
|
# - Set environment for Visual C++ 4.1 (requires a new console window):
|
||||||
|
# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
|
||||||
|
# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
|
||||||
|
# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
|
||||||
|
# - Rename "gvim.exe" to "gvim_w32s.exe".
|
||||||
|
# - Rename "install.exe" to "installw32.exe"
|
||||||
|
# - Rename "uninstal.exe" to "uninstalw32.exe"
|
||||||
|
# - The produced uninstalw32.exe and vimrun.exe are used.
|
||||||
|
#
|
||||||
|
# OS/2: (requires an OS/2 system)
|
||||||
# - Unpack the Unix archive.
|
# - Unpack the Unix archive.
|
||||||
# - "make -f Make_os2.mak".
|
# - "make -f Make_os2.mak".
|
||||||
# - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
|
# - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
|
||||||
@@ -295,6 +313,8 @@ unixall: dist prepare
|
|||||||
$(LANG_SRC) \
|
$(LANG_SRC) \
|
||||||
| (cd dist/$(VIMRTDIR); tar xf -)
|
| (cd dist/$(VIMRTDIR); tar xf -)
|
||||||
# Need to use a "distclean" config.mk file
|
# Need to use a "distclean" config.mk file
|
||||||
|
# Note: this file is not included in the repository to avoid problems, but it's
|
||||||
|
# OK to put it in the archive.
|
||||||
cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
|
cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
|
||||||
# Create an empty config.h file, make dependencies require it
|
# Create an empty config.h file, make dependencies require it
|
||||||
touch dist/$(VIMRTDIR)/src/auto/config.h
|
touch dist/$(VIMRTDIR)/src/auto/config.h
|
||||||
@@ -450,7 +470,7 @@ runtime_unix2dos: dosrt_unix2dos
|
|||||||
cd dist/vim/$(VIMRTDIR); tar cf - * \
|
cd dist/vim/$(VIMRTDIR); tar cf - * \
|
||||||
| (cd ../../../runtime/dos; tar xf -)
|
| (cd ../../../runtime/dos; tar xf -)
|
||||||
|
|
||||||
dosbin: prepare dosbin_gvim dosbin_w32 dosbin_d32 dosbin_ole $(DOSBIN_S) $(DOSBIN_D16)
|
dosbin: prepare dosbin_gvim dosbin_w32 $(DOSBIN_D32) dosbin_ole $(DOSBIN_S) $(DOSBIN_D16)
|
||||||
|
|
||||||
# make Win32 gvim
|
# make Win32 gvim
|
||||||
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README.txt for version 7.3 of Vim: Vi IMproved.
|
README.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
|
|
||||||
WHAT IS VIM
|
WHAT IS VIM
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_ami.txt for version 7.3 of Vim: Vi IMproved.
|
README_ami.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Amiga systems.
|
This file explains the installation of Vim on Amiga systems.
|
||||||
See README.txt for general information about Vim.
|
See README.txt for general information about Vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_amibin.txt for version 7.3 of Vim: Vi IMproved.
|
README_amibin.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_amisrc.txt for version 7.3 of Vim: Vi IMproved.
|
README_amisrc.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_ami.txt" for installation instructions for the Amiga.
|
See "README_ami.txt" for installation instructions for the Amiga.
|
||||||
|
|||||||
@@ -1,19 +1,16 @@
|
|||||||
README_bindos.txt for version 7.3 of Vim: Vi IMproved.
|
README_bindos.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||||
These files are in the runtime archive (vim73rt.zip).
|
These files are in the runtime archive (vim74rt.zip).
|
||||||
|
|
||||||
|
|
||||||
There are several binary distributions of Vim for the PC. You would normally
|
There are several binary distributions of Vim for the PC. You would normally
|
||||||
pick only one of them, but it's also possible to install several.
|
pick only one of them, but it's also possible to install several.
|
||||||
These ones are available (the version number may differ):
|
These ones are available (the version number may differ):
|
||||||
vim73d16.zip 16 bit DOS version
|
vim74w32.zip Windows 95/98/NT/etc. console version
|
||||||
vim73d32.zip 32 bit DOS version
|
gvim74.zip Windows 95/98/NT/etc. GUI version
|
||||||
vim73w32.zip Windows 95/98/NT/etc. console version
|
gvim74ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
||||||
gvim73.zip Windows 95/98/NT/etc. GUI version
|
|
||||||
gvim73ole.zip Windows 95/98/NT/etc. GUI version with OLE
|
|
||||||
gvim73_s.zip Windows 3.1 GUI version
|
|
||||||
|
|
||||||
You MUST also get the runtime archive (vim73rt.zip).
|
You MUST also get the runtime archive (vim74rt.zip).
|
||||||
The sources are also available (vim73src.zip).
|
The sources are also available (vim74src.zip).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_dos.txt for version 7.3 of Vim: Vi IMproved.
|
README_dos.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
This file explains the installation of Vim on MS-DOS and MS-Windows systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
@@ -47,13 +47,13 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
Binary and runtime Vim archives are normally unpacked in the same location,
|
Binary and runtime Vim archives are normally unpacked in the same location,
|
||||||
on top of each other.
|
on top of each other.
|
||||||
|
|
||||||
2. Unpack the zip archives. This will create a new directory "vim\vim73",
|
2. Unpack the zip archives. This will create a new directory "vim\vim74",
|
||||||
in which all the distributed Vim files are placed. Since the directory
|
in which all the distributed Vim files are placed. Since the directory
|
||||||
name includes the version number, it is unlikely that you overwrite
|
name includes the version number, it is unlikely that you overwrite
|
||||||
existing files.
|
existing files.
|
||||||
Examples:
|
Examples:
|
||||||
pkunzip -d gvim73.zip
|
pkunzip -d gvim74.zip
|
||||||
unzip vim73w32.zip
|
unzip vim74w32.zip
|
||||||
|
|
||||||
You need to unpack the runtime archive and at least one of the binary
|
You need to unpack the runtime archive and at least one of the binary
|
||||||
archives. When using more than one binary version, be careful not to
|
archives. When using more than one binary version, be careful not to
|
||||||
@@ -69,7 +69,7 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
archive and follow the instructions in the documentation.
|
archive and follow the instructions in the documentation.
|
||||||
|
|
||||||
3. Change to the new directory:
|
3. Change to the new directory:
|
||||||
cd vim\vim73
|
cd vim\vim74
|
||||||
Run the "install.exe" program. It will ask you a number of questions about
|
Run the "install.exe" program. It will ask you a number of questions about
|
||||||
how you would like to have your Vim setup. Among these are:
|
how you would like to have your Vim setup. Among these are:
|
||||||
- You can tell it to write a "_vimrc" file with your preferences in the
|
- You can tell it to write a "_vimrc" file with your preferences in the
|
||||||
@@ -80,8 +80,8 @@ These are the normal steps to install Vim from the .zip archives:
|
|||||||
console or in a shell. You can select one of the directories in your
|
console or in a shell. You can select one of the directories in your
|
||||||
$PATH. If you skip this, you can add Vim to the search path manually:
|
$PATH. If you skip this, you can add Vim to the search path manually:
|
||||||
The simplest is to add a line to your autoexec.bat. Examples:
|
The simplest is to add a line to your autoexec.bat. Examples:
|
||||||
set path=%path%;C:\vim\vim73
|
set path=%path%;C:\vim\vim74
|
||||||
set path=%path%;D:\editors\vim\vim73
|
set path=%path%;D:\editors\vim\vim74
|
||||||
- Create entries for Vim on the desktop and in the Start menu.
|
- Create entries for Vim on the desktop and in the Start menu.
|
||||||
|
|
||||||
That's it!
|
That's it!
|
||||||
@@ -93,8 +93,8 @@ Remarks:
|
|||||||
won't show a menubar. Then you need to set the $VIM environment variable to
|
won't show a menubar. Then you need to set the $VIM environment variable to
|
||||||
point to the top directory of your Vim files. Example:
|
point to the top directory of your Vim files. Example:
|
||||||
set VIM=C:\editors\vim
|
set VIM=C:\editors\vim
|
||||||
Vim version 7.3 will look for your vimrc file in $VIM, and for the runtime
|
Vim version 7.4 will look for your vimrc file in $VIM, and for the runtime
|
||||||
files in $VIM/vim73. See ":help $VIM" for more information.
|
files in $VIM/vim74. See ":help $VIM" for more information.
|
||||||
|
|
||||||
- To avoid confusion between distributed files of different versions and your
|
- To avoid confusion between distributed files of different versions and your
|
||||||
own modified vim scripts, it is recommended to use this directory layout:
|
own modified vim scripts, it is recommended to use this directory layout:
|
||||||
@@ -105,14 +105,14 @@ Remarks:
|
|||||||
C:\vim\vimfiles\ftplugin\*.vim Filetype plugins
|
C:\vim\vimfiles\ftplugin\*.vim Filetype plugins
|
||||||
C:\vim\... Other files you made.
|
C:\vim\... Other files you made.
|
||||||
Distributed files:
|
Distributed files:
|
||||||
C:\vim\vim73\vim.exe The Vim version 7.3 executable.
|
C:\vim\vim74\vim.exe The Vim version 7.4 executable.
|
||||||
C:\vim\vim73\doc\*.txt The version 7.3 documentation files.
|
C:\vim\vim74\doc\*.txt The version 7.4 documentation files.
|
||||||
C:\vim\vim73\bugreport.vim A Vim version 7.3 script.
|
C:\vim\vim74\bugreport.vim A Vim version 7.4 script.
|
||||||
C:\vim\vim73\... Other version 7.3 distributed files.
|
C:\vim\vim74\... Other version 7.4 distributed files.
|
||||||
In this case the $VIM environment variable would be set like this:
|
In this case the $VIM environment variable would be set like this:
|
||||||
set VIM=C:\vim
|
set VIM=C:\vim
|
||||||
Then $VIMRUNTIME will automatically be set to "$VIM\vim73". Don't add
|
Then $VIMRUNTIME will automatically be set to "$VIM\vim74". Don't add
|
||||||
"vim73" to $VIM, that won't work.
|
"vim74" to $VIM, that won't work.
|
||||||
|
|
||||||
- You can put your Vim executable anywhere else. If the executable is not
|
- You can put your Vim executable anywhere else. If the executable is not
|
||||||
with the other Vim files, you should set $VIM. The simplest is to add a line
|
with the other Vim files, you should set $VIM. The simplest is to add a line
|
||||||
@@ -136,8 +136,8 @@ Remarks:
|
|||||||
Select Properties.
|
Select Properties.
|
||||||
5. In the Program tab, change the "Cmdline" to add "/c" and the name of the
|
5. In the Program tab, change the "Cmdline" to add "/c" and the name of the
|
||||||
Vim executable. Examples:
|
Vim executable. Examples:
|
||||||
C:\command.com /c C:\vim\vim73\vim.exe
|
C:\command.com /c C:\vim\vim74\vim.exe
|
||||||
C:\command.com /c D:\editors\vim\vim73\vim.exe
|
C:\command.com /c D:\editors\vim\vim74\vim.exe
|
||||||
6. Select the font, window size, etc. that you like. If this isn't
|
6. Select the font, window size, etc. that you like. If this isn't
|
||||||
possible, select "Advanced" in the Program tab, and deselect "MS-DOS
|
possible, select "Advanced" in the Program tab, and deselect "MS-DOS
|
||||||
mode".
|
mode".
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_extra.txt for version 7.3 of Vim: Vi IMproved.
|
README_extra.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
These extra files of Vim are for special purposes. This README explains what
|
These extra files of Vim are for special purposes. This README explains what
|
||||||
the files are for. For general information about Vim, see the "README.txt"
|
the files are for. For general information about Vim, see the "README.txt"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_mac.txt for version 7.3 of Vim: Vi IMproved.
|
README_mac.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Macintosh systems.
|
This file explains the installation of Vim on Macintosh systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_ole.txt for version 7.3 of Vim: Vi IMproved.
|
README_ole.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains gvim.exe with OLE interface and VisVim.
|
This archive contains gvim.exe with OLE interface and VisVim.
|
||||||
This version of gvim.exe can also load a number of interface dynamically (you
|
This version of gvim.exe can also load a number of interface dynamically (you
|
||||||
|
|||||||
@@ -1,32 +1,32 @@
|
|||||||
README_os2.txt for version 7.3 of Vim: Vi IMproved.
|
README_os2.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on OS/2 systems.
|
This file explains the installation of Vim on OS/2 systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|
||||||
|
|
||||||
NOTE: You will need two archives:
|
NOTE: You will need two archives:
|
||||||
vim73rt.zip contains the runtime files (same as for the PC version)
|
vim74rt.zip contains the runtime files (same as for the PC version)
|
||||||
vim73os2.zip contains the OS/2 executables
|
vim74os2.zip contains the OS/2 executables
|
||||||
|
|
||||||
1. Go to the directory where you want to put the Vim files. Examples:
|
1. Go to the directory where you want to put the Vim files. Examples:
|
||||||
cd C:\
|
cd C:\
|
||||||
cd D:\editors
|
cd D:\editors
|
||||||
|
|
||||||
2. Unpack the zip archives. This will create a new directory "vim/vim73",
|
2. Unpack the zip archives. This will create a new directory "vim/vim74",
|
||||||
in which all the distributed Vim files are placed. Since the directory
|
in which all the distributed Vim files are placed. Since the directory
|
||||||
name includes the version number, it is unlikely that you overwrite
|
name includes the version number, it is unlikely that you overwrite
|
||||||
existing files.
|
existing files.
|
||||||
Examples:
|
Examples:
|
||||||
pkunzip -d vim73os2.zip
|
pkunzip -d vim74os2.zip
|
||||||
unzip vim73os2.zip
|
unzip vim74os2.zip
|
||||||
|
|
||||||
After you unpacked the files, you can still move the whole directory tree
|
After you unpacked the files, you can still move the whole directory tree
|
||||||
to another location.
|
to another location.
|
||||||
|
|
||||||
3. Add the directory where vim.exe is to your path. The simplest is to add a
|
3. Add the directory where vim.exe is to your path. The simplest is to add a
|
||||||
line to your autoexec.bat. Examples:
|
line to your autoexec.bat. Examples:
|
||||||
set path=%path%;C:\vim\vim73
|
set path=%path%;C:\vim\vim74
|
||||||
set path=%path%;D:\editors\vim\vim73
|
set path=%path%;D:\editors\vim\vim74
|
||||||
|
|
||||||
That's it!
|
That's it!
|
||||||
|
|
||||||
@@ -41,10 +41,10 @@ Extra remarks:
|
|||||||
C:\vim\_viminfo Dynamic info for 'viminfo'.
|
C:\vim\_viminfo Dynamic info for 'viminfo'.
|
||||||
C:\vim\... Other files you made.
|
C:\vim\... Other files you made.
|
||||||
Distributed files:
|
Distributed files:
|
||||||
C:\vim\vim73\vim.exe The Vim version 7.3 executable.
|
C:\vim\vim74\vim.exe The Vim version 7.4 executable.
|
||||||
C:\vim\vim73\doc\*.txt The version 7.3 documentation files.
|
C:\vim\vim74\doc\*.txt The version 7.4 documentation files.
|
||||||
C:\vim\vim73\bugreport.vim A Vim version 7.3 script.
|
C:\vim\vim74\bugreport.vim A Vim version 7.4 script.
|
||||||
C:\vim\vim73\... Other version 7.3 distributed files.
|
C:\vim\vim74\... Other version 7.4 distributed files.
|
||||||
In this case the $VIM environment variable would be set like this:
|
In this case the $VIM environment variable would be set like this:
|
||||||
set VIM=C:\vim
|
set VIM=C:\vim
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_zOS.txt for version 7.3 of Vim: Vi IMproved.
|
README_zOS.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
@@ -29,7 +29,7 @@ console version).
|
|||||||
Compiling:
|
Compiling:
|
||||||
==========
|
==========
|
||||||
|
|
||||||
Vim can be compiled with or without GUI support. For 7.3 only the compilation
|
Vim can be compiled with or without GUI support. For 7.4 only the compilation
|
||||||
without GUI was tested. Below is a section about compiling with X11 but this
|
without GUI was tested. Below is a section about compiling with X11 but this
|
||||||
is from an earlier version of Vim.
|
is from an earlier version of Vim.
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ Change to the vim directory and do:
|
|||||||
With X11:
|
With X11:
|
||||||
---------
|
---------
|
||||||
|
|
||||||
WARNING: This instruction was not tested with Vim 7.3.
|
WARNING: This instruction was not tested with Vim 7.4.
|
||||||
|
|
||||||
There are two ways for building VIM with X11 support. The first way is simple
|
There are two ways for building VIM with X11 support. The first way is simple
|
||||||
and results in a big executable (~13 Mb), the second needs a few additional
|
and results in a big executable (~13 Mb), the second needs a few additional
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
README_src.txt for version 7.3 of Vim: Vi IMproved.
|
README_src.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
The source archive contains the files needed to compile Vim on Unix systems.
|
The source archive contains the files needed to compile Vim on Unix systems.
|
||||||
It is packed for Unix systems (NL line separator). It is also used for other
|
It is packed for Unix systems (NL line separator).
|
||||||
systems in combination with the extra archive (vim-7.3-extra.tar.gz, in the
|
|
||||||
"extra" directory of ftp.vim.org).
|
|
||||||
|
|
||||||
For more information, see the README.txt file that comes with the runtime
|
For more information, see the README.txt file that comes with the runtime
|
||||||
archive (vim-7.3-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
archive (vim-7.4-rt.tar.gz). To be able to run Vim you MUST get the runtime
|
||||||
archive too!
|
archive too!
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
README_srcdos.txt for version 7.3 of Vim: Vi IMproved.
|
README_srcdos.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
See "README_dos.txt" for installation instructions for MS-DOS and MS-Windows.
|
||||||
These files are in the runtime archive (vim73rt.zip).
|
These files are in the runtime archive (vim74rt.zip).
|
||||||
|
|
||||||
|
|
||||||
The DOS source archive contains the files needed to compile Vim on MS-DOS or
|
The DOS source archive contains the files needed to compile Vim on MS-DOS or
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_unix.txt for version 7.3 of Vim: Vi IMproved.
|
README_unix.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on Unix systems.
|
This file explains the installation of Vim on Unix systems.
|
||||||
See "README.txt" for general information about Vim.
|
See "README.txt" for general information about Vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_vms.txt for version 7.3 of Vim: Vi IMproved.
|
README_vms.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This file explains the installation of Vim on VMS systems.
|
This file explains the installation of Vim on VMS systems.
|
||||||
See "README.txt" in the runtime archive for information about Vim.
|
See "README.txt" in the runtime archive for information about Vim.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
README_w32s.txt for version 7.3 of Vim: Vi IMproved.
|
README_w32s.txt for version 7.4 of Vim: Vi IMproved.
|
||||||
|
|
||||||
This archive contains the gvim.exe that was specifically compiled for use in
|
This archive contains the gvim.exe that was specifically compiled for use in
|
||||||
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
the Win32s subsystem in MS-Windows 3.1 and 3.11.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# WARNING: if you make changes to this script, look out for $0 to be valid,
|
# WARNING: if you make changes to this script, look out for $0 to be valid,
|
||||||
# because uninstall deletes most files in $0.
|
# because uninstall deletes most files in $0.
|
||||||
|
|
||||||
# Location of gvim_ole.exe, vimd32.exe, GvimExt/*, etc.
|
# Location of gvim_ole.exe, vimw32.exe, GvimExt/*, etc.
|
||||||
!define VIMSRC "..\src"
|
!define VIMSRC "..\src"
|
||||||
|
|
||||||
# Location of runtime files
|
# Location of runtime files
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
!define HAVE_NLS
|
!define HAVE_NLS
|
||||||
|
|
||||||
!define VER_MAJOR 7
|
!define VER_MAJOR 7
|
||||||
!define VER_MINOR 3
|
!define VER_MINOR 4
|
||||||
|
|
||||||
# ----------- No configurable settings below this line -----------
|
# ----------- No configurable settings below this line -----------
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ RequestExecutionLevel highest
|
|||||||
ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer."
|
ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer."
|
||||||
DirText "Choose a directory to install Vim (must end in 'vim')"
|
DirText "Choose a directory to install Vim (must end in 'vim')"
|
||||||
Icon icons\vim_16c.ico
|
Icon icons\vim_16c.ico
|
||||||
# NSIS2 uses a different strategy with six diferent images in a strip...
|
# NSIS2 uses a different strategy with six different images in a strip...
|
||||||
#EnabledBitmap icons\enabled.bmp
|
#EnabledBitmap icons\enabled.bmp
|
||||||
#DisabledBitmap icons\disabled.bmp
|
#DisabledBitmap icons\disabled.bmp
|
||||||
UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system."
|
UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system."
|
||||||
@@ -56,6 +56,9 @@ LicenseData ${VIMRT}\doc\uganda.nsis.txt
|
|||||||
!packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
|
!packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
SetCompressor /SOLID lzma
|
||||||
|
XPStyle on
|
||||||
|
|
||||||
# This adds '\vim' to the user choice automagically. The actual value is
|
# This adds '\vim' to the user choice automagically. The actual value is
|
||||||
# obtained below with ReadINIStr.
|
# obtained below with ReadINIStr.
|
||||||
InstallDir "$PROGRAMFILES\Vim"
|
InstallDir "$PROGRAMFILES\Vim"
|
||||||
@@ -247,11 +250,10 @@ Section "Vim console program (vim.exe)"
|
|||||||
ReadRegStr $R0 HKLM \
|
ReadRegStr $R0 HKLM \
|
||||||
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
||||||
IfErrors 0 lbl_winnt
|
IfErrors 0 lbl_winnt
|
||||||
# Windows 95/98/ME
|
# Windows 95/98/ME: not supported
|
||||||
File /oname=vim.exe ${VIMSRC}\vimd32.exe
|
|
||||||
Goto lbl_done
|
Goto lbl_done
|
||||||
lbl_winnt:
|
lbl_winnt:
|
||||||
# Windows NT/2000/XT
|
# Windows NT/2000/XP and later
|
||||||
File /oname=vim.exe ${VIMSRC}\vimw32.exe
|
File /oname=vim.exe ${VIMSRC}\vimw32.exe
|
||||||
lbl_done:
|
lbl_done:
|
||||||
StrCpy $2 "$2 vim view vimdiff"
|
StrCpy $2 "$2 vim view vimdiff"
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,9 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: Ruby
|
" Language: Ruby
|
||||||
" Maintainer: Mark Guzman <segfault@hasno.info>
|
" Maintainer: Mark Guzman <segfault@hasno.info>
|
||||||
" Last Change: 2009 Sep 28
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Maintainer Version: 0.8.1
|
" Maintainer Version: 0.8.1
|
||||||
" ----------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------
|
||||||
@@ -12,16 +10,23 @@
|
|||||||
" ----------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------
|
||||||
|
|
||||||
" {{{ requirement checks
|
" {{{ requirement checks
|
||||||
|
|
||||||
|
function! s:ErrMsg(msg)
|
||||||
|
echohl ErrorMsg
|
||||||
|
echo a:msg
|
||||||
|
echohl None
|
||||||
|
endfunction
|
||||||
|
|
||||||
if !has('ruby')
|
if !has('ruby')
|
||||||
s:ErrMsg( "Error: Rubycomplete requires vim compiled with +ruby" )
|
call s:ErrMsg( "Error: Rubycomplete requires vim compiled with +ruby" )
|
||||||
s:ErrMsg( "Error: falling back to syntax completion" )
|
call s:ErrMsg( "Error: falling back to syntax completion" )
|
||||||
" lets fall back to syntax completion
|
" lets fall back to syntax completion
|
||||||
setlocal omnifunc=syntaxcomplete#Complete
|
setlocal omnifunc=syntaxcomplete#Complete
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if version < 700
|
if version < 700
|
||||||
s:ErrMsg( "Error: Required vim >= 7.0" )
|
call s:ErrMsg( "Error: Required vim >= 7.0" )
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
" }}} requirement checks
|
" }}} requirement checks
|
||||||
@@ -51,12 +56,6 @@ endif
|
|||||||
" {{{ vim-side support functions
|
" {{{ vim-side support functions
|
||||||
let s:rubycomplete_debug = 0
|
let s:rubycomplete_debug = 0
|
||||||
|
|
||||||
function! s:ErrMsg(msg)
|
|
||||||
echohl ErrorMsg
|
|
||||||
echo a:msg
|
|
||||||
echohl None
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! s:dprint(msg)
|
function! s:dprint(msg)
|
||||||
if s:rubycomplete_debug == 1
|
if s:rubycomplete_debug == 1
|
||||||
echom a:msg
|
echom a:msg
|
||||||
@@ -133,7 +132,7 @@ function! s:GetRubyVarType(v)
|
|||||||
let stopline = 1
|
let stopline = 1
|
||||||
let vtp = ''
|
let vtp = ''
|
||||||
let pos = getpos('.')
|
let pos = getpos('.')
|
||||||
let sstr = '^\s*#\s*@var\s*'.a:v.'\>\s\+[^ \t]\+\s*$'
|
let sstr = '^\s*#\s*@var\s*'.escape(a:v, '*').'\>\s\+[^ \t]\+\s*$'
|
||||||
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
|
let [lnum,lcol] = searchpos(sstr,'nb',stopline)
|
||||||
if lnum != 0 && lcol != 0
|
if lnum != 0 && lcol != 0
|
||||||
call setpos('.',pos)
|
call setpos('.',pos)
|
||||||
@@ -275,7 +274,7 @@ class VimRubyCompletion
|
|||||||
pare = /^\s*class\s*(.*)\s*<\s*(.*)\s*\n/.match( classdef )
|
pare = /^\s*class\s*(.*)\s*<\s*(.*)\s*\n/.match( classdef )
|
||||||
load_buffer_class( $2 ) if pare != nil && $2 != name # load parent class if needed
|
load_buffer_class( $2 ) if pare != nil && $2 != name # load parent class if needed
|
||||||
|
|
||||||
mixre = /.*\n\s*include\s*(.*)\s*\n/.match( classdef )
|
mixre = /.*\n\s*(include|prepend)\s*(.*)\s*\n/.match( classdef )
|
||||||
load_buffer_module( $2 ) if mixre != nil && $2 != name # load mixins if needed
|
load_buffer_module( $2 ) if mixre != nil && $2 != name # load mixins if needed
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@@ -364,6 +363,10 @@ class VimRubyCompletion
|
|||||||
print txt if @@debug
|
print txt if @@debug
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def escape_vim_singlequote_string(str)
|
||||||
|
str.to_s.gsub(/'/,"\\'")
|
||||||
|
end
|
||||||
|
|
||||||
def get_buffer_entity_list( type )
|
def get_buffer_entity_list( type )
|
||||||
# this will be a little expensive.
|
# this will be a little expensive.
|
||||||
loading_allowed = VIM::evaluate("exists('g:rubycomplete_buffer_loading') && g:rubycomplete_buffer_loading")
|
loading_allowed = VIM::evaluate("exists('g:rubycomplete_buffer_loading') && g:rubycomplete_buffer_loading")
|
||||||
@@ -526,9 +529,9 @@ class VimRubyCompletion
|
|||||||
end
|
end
|
||||||
|
|
||||||
def clean_sel(sel, msg)
|
def clean_sel(sel, msg)
|
||||||
sel.delete_if { |x| x == nil }
|
ret = sel.reject{|x|x.nil?}.uniq
|
||||||
sel.uniq!
|
ret = ret.grep(/^#{Regexp.quote(msg)}/) if msg != nil
|
||||||
sel.grep(/^#{Regexp.quote(msg)}/) if msg != nil
|
ret
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_rails_view_methods
|
def get_rails_view_methods
|
||||||
@@ -767,10 +770,10 @@ class VimRubyCompletion
|
|||||||
constants = clean_sel( constants, message )
|
constants = clean_sel( constants, message )
|
||||||
|
|
||||||
valid = []
|
valid = []
|
||||||
valid += methods.collect { |m| { :name => m, :type => 'm' } }
|
valid += methods.collect { |m| { :name => m.to_s, :type => 'm' } }
|
||||||
valid += variables.collect { |v| { :name => v, :type => 'v' } }
|
valid += variables.collect { |v| { :name => v.to_s, :type => 'v' } }
|
||||||
valid += classes.collect { |c| { :name => c, :type => 't' } }
|
valid += classes.collect { |c| { :name => c.to_s, :type => 't' } }
|
||||||
valid += constants.collect { |d| { :name => d, :type => 'd' } }
|
valid += constants.collect { |d| { :name => d.to_s, :type => 'd' } }
|
||||||
valid.sort! { |x,y| x[:name] <=> y[:name] }
|
valid.sort! { |x,y| x[:name] <=> y[:name] }
|
||||||
|
|
||||||
outp = ""
|
outp = ""
|
||||||
@@ -779,7 +782,7 @@ class VimRubyCompletion
|
|||||||
rg.step(150) do |x|
|
rg.step(150) do |x|
|
||||||
stpos = 0+x
|
stpos = 0+x
|
||||||
enpos = 150+x
|
enpos = 150+x
|
||||||
valid[stpos..enpos].each { |c| outp += "{'word':'%s','item':'%s','kind':'%s'}," % [ c[:name], c[:name], c[:type] ] }
|
valid[stpos..enpos].each { |c| outp += "{'word':'%s','item':'%s','kind':'%s'}," % [ c[:name], c[:name], c[:type] ].map{|x|escape_vim_singlequote_string(x)} }
|
||||||
outp.sub!(/,$/, '')
|
outp.sub!(/,$/, '')
|
||||||
|
|
||||||
VIM::command("call extend(g:rubycomplete_completions, [%s])" % outp)
|
VIM::command("call extend(g:rubycomplete_completions, [%s])" % outp)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
" Vim autoload file for the tohtml plugin.
|
" Vim autoload file for the tohtml plugin.
|
||||||
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
||||||
" Last Change: 2012 Jun 30
|
" Last Change: 2013 Jun 19
|
||||||
"
|
"
|
||||||
" Additional contributors:
|
" Additional contributors:
|
||||||
"
|
"
|
||||||
@@ -401,15 +401,15 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
call add(html, '</head>')
|
call add(html, '</head>')
|
||||||
let body_line_num = len(html)
|
let body_line_num = len(html)
|
||||||
if !empty(s:settings.prevent_copy)
|
if !empty(s:settings.prevent_copy)
|
||||||
call add(html, "<body onload='FixCharWidth();'>")
|
call add(html, "<body onload='FixCharWidth();".(s:settings.line_ids ? " JumpToLine();" : "")."'>")
|
||||||
call add(html, "<!-- hidden divs used by javascript to get the width of a char -->")
|
call add(html, "<!-- hidden divs used by javascript to get the width of a char -->")
|
||||||
call add(html, "<div id='oneCharWidth'>0</div>")
|
call add(html, "<div id='oneCharWidth'>0</div>")
|
||||||
call add(html, "<div id='oneInputWidth'><input size='1' value='0'".tag_close."</div>")
|
call add(html, "<div id='oneInputWidth'><input size='1' value='0'".tag_close."</div>")
|
||||||
call add(html, "<div id='oneEmWidth' style='width: 1em;'></div>")
|
call add(html, "<div id='oneEmWidth' style='width: 1em;'></div>")
|
||||||
else
|
else
|
||||||
call add(html, '<body>')
|
call add(html, '<body'.(s:settings.line_ids ? ' onload="JumpToLine();"' : '').'>')
|
||||||
endif
|
endif
|
||||||
call add(html, "<table border='1' width='100%' id='vimCodeElement'>")
|
call add(html, "<table border='1' width='100%' id='vimCodeElement".s:settings.id_suffix."'>")
|
||||||
|
|
||||||
call add(html, '<tr>')
|
call add(html, '<tr>')
|
||||||
for buf in a:win_list
|
for buf in a:win_list
|
||||||
@@ -475,7 +475,7 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
let temp = getline(1,'$')
|
let temp = getline(1,'$')
|
||||||
" clean out id on the main content container because we already set it on
|
" clean out id on the main content container because we already set it on
|
||||||
" the table
|
" the table
|
||||||
let temp[0] = substitute(temp[0], " id='vimCodeElement'", "", "")
|
let temp[0] = substitute(temp[0], " id='vimCodeElement[^']*'", "", "")
|
||||||
" undo deletion of start and end part
|
" undo deletion of start and end part
|
||||||
" so we can later save the file as valid html
|
" so we can later save the file as valid html
|
||||||
" TODO: restore using grabbed lines if undolevel is 1?
|
" TODO: restore using grabbed lines if undolevel is 1?
|
||||||
@@ -503,6 +503,11 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
call add(html, s:body_end_line)
|
call add(html, s:body_end_line)
|
||||||
call add(html, '</html>')
|
call add(html, '</html>')
|
||||||
|
|
||||||
|
" The generated HTML is admittedly ugly and takes a LONG time to fold.
|
||||||
|
" Make sure the user doesn't do syntax folding when loading a generated file,
|
||||||
|
" using a modeline.
|
||||||
|
call add(html, '<!-- vim: set foldmethod=manual : -->')
|
||||||
|
|
||||||
let i = 1
|
let i = 1
|
||||||
let name = "Diff" . (s:settings.use_xhtml ? ".xhtml" : ".html")
|
let name = "Diff" . (s:settings.use_xhtml ? ".xhtml" : ".html")
|
||||||
" Find an unused file name if current file name is already in use
|
" Find an unused file name if current file name is already in use
|
||||||
@@ -539,14 +544,12 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
" add required javascript in reverse order so we can just call append again
|
" add required javascript in reverse order so we can just call append again
|
||||||
" and again without adjusting {{{
|
" and again without adjusting {{{
|
||||||
|
|
||||||
" insert script closing tag if any javascript is needed
|
" insert script closing tag
|
||||||
if s:settings.dynamic_folds || !empty(s:settings.prevent_copy)
|
call append(style_start, [
|
||||||
call append(style_start, [
|
\ '',
|
||||||
\ '',
|
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
||||||
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
\ "</script>"
|
||||||
\ "</script>"
|
\ ])
|
||||||
\ ])
|
|
||||||
endif
|
|
||||||
|
|
||||||
" insert script which corrects the size of small input elements in
|
" insert script which corrects the size of small input elements in
|
||||||
" prevent_copy mode. See 2html.vim for details on why this is needed and how
|
" prevent_copy mode. See 2html.vim for details on why this is needed and how
|
||||||
@@ -565,13 +568,62 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
\ ' var emWidth = document.getElementById("oneEmWidth").clientWidth;',
|
\ ' var emWidth = document.getElementById("oneEmWidth").clientWidth;',
|
||||||
\ ' if (inputWidth > goodWidth) {',
|
\ ' if (inputWidth > goodWidth) {',
|
||||||
\ ' while (ratio < 100*goodWidth/emWidth && ratio < 100) {',
|
\ ' while (ratio < 100*goodWidth/emWidth && ratio < 100) {',
|
||||||
\ ' ratio += 5;',
|
\ ' ratio += 5;',
|
||||||
\ ' }',
|
\ ' }',
|
||||||
\ ' document.getElementById("vimCodeElement").className = "em"+ratio;',
|
\ ' document.getElementById("vimCodeElement'.s:settings.id_suffix.'").className = "em"+ratio;',
|
||||||
\ ' }',
|
\ ' }',
|
||||||
\ '}'
|
\ '}'
|
||||||
\ ])
|
\ ])
|
||||||
endif
|
endif
|
||||||
|
"
|
||||||
|
" insert javascript to get IDs from line numbers, and to open a fold before
|
||||||
|
" jumping to any lines contained therein
|
||||||
|
call append(style_start, [
|
||||||
|
\ " /* Always jump to new location even if the line was hidden inside a fold, or",
|
||||||
|
\ " * we corrected the raw number to a line ID.",
|
||||||
|
\ " */",
|
||||||
|
\ " if (lineElem) {",
|
||||||
|
\ " lineElem.scrollIntoView(true);",
|
||||||
|
\ " }",
|
||||||
|
\ " return true;",
|
||||||
|
\ "}",
|
||||||
|
\ "if ('onhashchange' in window) {",
|
||||||
|
\ " window.onhashchange = JumpToLine;",
|
||||||
|
\ "}"
|
||||||
|
\ ])
|
||||||
|
if s:settings.dynamic_folds
|
||||||
|
call append(style_start, [
|
||||||
|
\ "",
|
||||||
|
\ " /* navigate upwards in the DOM tree to open all folds containing the line */",
|
||||||
|
\ " var node = lineElem;",
|
||||||
|
\ " while (node && node.id != 'vimCodeElement".s:settings.id_suffix."')",
|
||||||
|
\ " {",
|
||||||
|
\ " if (node.className == 'closed-fold')",
|
||||||
|
\ " {",
|
||||||
|
\ " /* toggle open the fold ID (remove window ID) */",
|
||||||
|
\ " toggleFold(node.id.substr(4));",
|
||||||
|
\ " }",
|
||||||
|
\ " node = node.parentNode;",
|
||||||
|
\ " }",
|
||||||
|
\ ])
|
||||||
|
endif
|
||||||
|
call append(style_start, [
|
||||||
|
\ "",
|
||||||
|
\ "/* function to open any folds containing a jumped-to line before jumping to it */",
|
||||||
|
\ "function JumpToLine()",
|
||||||
|
\ "{",
|
||||||
|
\ " var lineNum;",
|
||||||
|
\ " lineNum = window.location.hash;",
|
||||||
|
\ " lineNum = lineNum.substr(1); /* strip off '#' */",
|
||||||
|
\ "",
|
||||||
|
\ " if (lineNum.indexOf('L') == -1) {",
|
||||||
|
\ " lineNum = 'L'+lineNum;",
|
||||||
|
\ " }",
|
||||||
|
\ " if (lineNum.indexOf('W') == -1) {",
|
||||||
|
\ " lineNum = 'W1'+lineNum;",
|
||||||
|
\ " }",
|
||||||
|
\ " lineElem = document.getElementById(lineNum);"
|
||||||
|
\ ])
|
||||||
|
|
||||||
" Insert javascript to toggle matching folds open and closed in all windows,
|
" Insert javascript to toggle matching folds open and closed in all windows,
|
||||||
" if dynamic folding is active.
|
" if dynamic folding is active.
|
||||||
@@ -596,12 +648,11 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
|||||||
\ ])
|
\ ])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" insert script tag if any javascript is needed
|
" insert script tag; javascript is always needed for the line number
|
||||||
if s:settings.dynamic_folds || s:settings.prevent_copy != ""
|
" normalization for URL hashes
|
||||||
call append(style_start, [
|
call append(style_start, [
|
||||||
\ "<script type='text/javascript'>",
|
\ "<script type='text/javascript'>",
|
||||||
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
||||||
endif "}}}
|
|
||||||
|
|
||||||
" Insert styles from all the generated html documents and additional styles
|
" Insert styles from all the generated html documents and additional styles
|
||||||
" for the table-based layout of the side-by-side diff. The diff should take
|
" for the table-based layout of the side-by-side diff. The diff should take
|
||||||
@@ -671,6 +722,7 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
call tohtml#GetOption(user_settings, 'no_invalid', 0 )
|
call tohtml#GetOption(user_settings, 'no_invalid', 0 )
|
||||||
call tohtml#GetOption(user_settings, 'whole_filler', 0 )
|
call tohtml#GetOption(user_settings, 'whole_filler', 0 )
|
||||||
call tohtml#GetOption(user_settings, 'use_xhtml', 0 )
|
call tohtml#GetOption(user_settings, 'use_xhtml', 0 )
|
||||||
|
call tohtml#GetOption(user_settings, 'line_ids', user_settings.number_lines )
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" override those settings that need it {{{
|
" override those settings that need it {{{
|
||||||
@@ -804,6 +856,20 @@ func! tohtml#GetUserSettings() "{{{
|
|||||||
let user_settings.no_invalid = 0
|
let user_settings.no_invalid = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if exists('g:html_id_expr')
|
||||||
|
let user_settings.id_suffix = eval(g:html_id_expr)
|
||||||
|
if user_settings.id_suffix !~ '^[-_:.A-Za-z0-9]*$'
|
||||||
|
echohl WarningMsg
|
||||||
|
echomsg '2html: g:html_id_expr evaluated to invalid string for HTML id attributes'
|
||||||
|
echomsg '2html: Omitting user-specified suffix'
|
||||||
|
echohl None
|
||||||
|
sleep 3
|
||||||
|
let user_settings.id_suffix=""
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let user_settings.id_suffix=""
|
||||||
|
endif
|
||||||
|
|
||||||
" TODO: font
|
" TODO: font
|
||||||
|
|
||||||
return user_settings
|
return user_settings
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: XML
|
" Language: XML
|
||||||
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2006 Aug 15
|
" Last Change: 2013 Jun 29
|
||||||
" Version: 1.9
|
" Version: 1.9
|
||||||
"
|
"
|
||||||
" Changelog:
|
" Changelog:
|
||||||
@@ -475,12 +475,12 @@ function! s:InCommentAt(line, col)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SetKeywords()
|
function! s:SetKeywords()
|
||||||
let g:IsKeywordBak=&iskeyword
|
let s:IsKeywordBak=&l:iskeyword
|
||||||
let &iskeyword='33-255'
|
let &l:iskeyword='33-255'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:RestoreKeywords()
|
function! s:RestoreKeywords()
|
||||||
let &iskeyword=g:IsKeywordBak
|
let &l:iskeyword=s:IsKeywordBak
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Push(el, sname)
|
function! s:Push(el, sname)
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
" zip.vim: Handles browsing zipfiles
|
" zip.vim: Handles browsing zipfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Apr 17, 2013
|
" Date: Jul 02, 2013
|
||||||
" Version: 26
|
" Version: 27
|
||||||
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||||
" License: Vim License (see vim's :help license)
|
" License: Vim License (see vim's :help license)
|
||||||
" Copyright: Copyright (C) 2005-2012 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2005-2013 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
" notice is copied with it. Like anything else that's free,
|
" notice is copied with it. Like anything else that's free,
|
||||||
@@ -13,13 +13,14 @@
|
|||||||
" this plugin, you agree that in no event will the copyright
|
" this plugin, you agree that in no event will the copyright
|
||||||
" holder be liable for any damages resulting from the use
|
" holder be liable for any damages resulting from the use
|
||||||
" of this software.
|
" of this software.
|
||||||
|
"redraw!|call DechoSep()|call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" Load Once: {{{1
|
" Load Once: {{{1
|
||||||
if &cp || exists("g:loaded_zip")
|
if &cp || exists("g:loaded_zip")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_zip= "v26"
|
let g:loaded_zip= "v27"
|
||||||
if v:version < 702
|
if v:version < 702
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of zip needs vim 7.2"
|
echo "***warning*** this version of zip needs vim 7.2"
|
||||||
@@ -28,6 +29,7 @@ if v:version < 702
|
|||||||
endif
|
endif
|
||||||
let s:keepcpo= &cpo
|
let s:keepcpo= &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
"DechoTabOn
|
||||||
|
|
||||||
let s:zipfile_escape = ' ?&;\'
|
let s:zipfile_escape = ' ?&;\'
|
||||||
let s:ERROR = 2
|
let s:ERROR = 2
|
||||||
@@ -60,6 +62,16 @@ endif
|
|||||||
" zip#Browse: {{{2
|
" zip#Browse: {{{2
|
||||||
fun! zip#Browse(zipfile)
|
fun! zip#Browse(zipfile)
|
||||||
" call Dfunc("zip#Browse(zipfile<".a:zipfile.">)")
|
" call Dfunc("zip#Browse(zipfile<".a:zipfile.">)")
|
||||||
|
" sanity check: insure that the zipfile has "PK" as its first two letters
|
||||||
|
" (zipped files have a leading PK as a "magic cookie")
|
||||||
|
if !filereadable(a:zipfile) || readfile(a:zipfile, "", 1)[0] !~ '^PK'
|
||||||
|
exe "noautocmd e ".fnameescape(a:zipfile)
|
||||||
|
" call Dret("zip#Browse : not a zipfile<".a:zipfile.">")
|
||||||
|
return
|
||||||
|
" else " Decho
|
||||||
|
" call Decho("zip#Browse: a:zipfile<".a:zipfile."> passed PK test - its a zip file")
|
||||||
|
endif
|
||||||
|
|
||||||
let repkeep= &report
|
let repkeep= &report
|
||||||
set report=10
|
set report=10
|
||||||
|
|
||||||
@@ -197,6 +209,7 @@ fun! zip#Read(fname,mode)
|
|||||||
" exe "keepj sil! r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
|
" exe "keepj sil! r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
|
||||||
" but allows zipfile:... entries in quickfix lists
|
" but allows zipfile:... entries in quickfix lists
|
||||||
let temp = tempname()
|
let temp = tempname()
|
||||||
|
" call Decho("using temp file<".temp.">")
|
||||||
let fn = expand('%:p')
|
let fn = expand('%:p')
|
||||||
exe "sil! !".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1).' > '.temp
|
exe "sil! !".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1).' > '.temp
|
||||||
" call Decho("exe sil! !".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1).' > '.temp)
|
" call Decho("exe sil! !".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1).' > '.temp)
|
||||||
@@ -208,7 +221,7 @@ fun! zip#Read(fname,mode)
|
|||||||
filetype detect
|
filetype detect
|
||||||
|
|
||||||
" cleanup
|
" cleanup
|
||||||
keepj 0d
|
" keepj 0d " used to be needed for the ...r! ... method
|
||||||
set nomod
|
set nomod
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
" vim: tw=0 ts=4 sw=4
|
" vim: tw=0 ts=4 sw=4
|
||||||
" Vim color file
|
" Vim color file
|
||||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||||
" Last Change: 2006 Dec 10
|
" Last Change: 2013 May 23
|
||||||
|
|
||||||
hi clear
|
hi clear
|
||||||
set background=dark
|
set background=dark
|
||||||
@@ -43,6 +43,8 @@ hi MatchParen term=reverse ctermfg=blue guibg=Blue
|
|||||||
hi TabLine term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
hi TabLine term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
||||||
hi TabLineFill term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
hi TabLineFill term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
||||||
hi TabLineSel term=reverse ctermfg=white ctermbg=lightblue guifg=white guibg=blue
|
hi TabLineSel term=reverse ctermfg=white ctermbg=lightblue guifg=white guibg=blue
|
||||||
|
hi Underlined term=underline cterm=bold,underline ctermfg=lightblue guifg=lightblue gui=bold,underline
|
||||||
|
hi Ignore ctermfg=black ctermbg=black guifg=black guibg=black
|
||||||
hi link IncSearch Visual
|
hi link IncSearch Visual
|
||||||
hi link String Constant
|
hi link String Constant
|
||||||
hi link Character Constant
|
hi link Character Constant
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
" vim: tw=0 ts=4 sw=4
|
" vim: tw=0 ts=4 sw=4
|
||||||
" Vim color file
|
" Vim color file
|
||||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||||
" Last Change: 2003 May 02
|
" Last Change: 2013 May 24
|
||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
hi clear
|
hi clear
|
||||||
@@ -11,7 +11,7 @@ if exists("syntax_on")
|
|||||||
endif
|
endif
|
||||||
let g:colors_name = "ron"
|
let g:colors_name = "ron"
|
||||||
hi Normal guifg=cyan guibg=black
|
hi Normal guifg=cyan guibg=black
|
||||||
hi NonText guifg=brown
|
hi NonText guifg=yellow guibg=#303030
|
||||||
hi comment guifg=green
|
hi comment guifg=green
|
||||||
hi constant guifg=cyan gui=bold
|
hi constant guifg=cyan gui=bold
|
||||||
hi identifier guifg=cyan gui=NONE
|
hi identifier guifg=cyan gui=NONE
|
||||||
@@ -24,10 +24,11 @@ hi WarningMsg guifg=Black guibg=Green
|
|||||||
hi Error guibg=Red
|
hi Error guibg=Red
|
||||||
hi Todo guifg=Black guibg=orange
|
hi Todo guifg=Black guibg=orange
|
||||||
hi Cursor guibg=#60a060 guifg=#00ff00
|
hi Cursor guibg=#60a060 guifg=#00ff00
|
||||||
hi Search guibg=lightslateblue
|
hi Search guibg=darkgray guifg=black gui=bold
|
||||||
hi IncSearch gui=NONE guibg=steelblue
|
hi IncSearch gui=NONE guibg=steelblue
|
||||||
hi LineNr guifg=darkgrey
|
hi LineNr guifg=darkgrey
|
||||||
hi title guifg=darkgrey
|
hi title guifg=darkgrey
|
||||||
|
hi ShowMarksHL ctermfg=cyan ctermbg=lightblue cterm=bold guifg=yellow guibg=black gui=bold
|
||||||
hi StatusLineNC gui=NONE guifg=lightblue guibg=darkblue
|
hi StatusLineNC gui=NONE guifg=lightblue guibg=darkblue
|
||||||
hi StatusLine gui=bold guifg=cyan guibg=blue
|
hi StatusLine gui=bold guifg=cyan guibg=blue
|
||||||
hi label guifg=gold2
|
hi label guifg=gold2
|
||||||
@@ -41,3 +42,4 @@ hi DiffDelete guibg=coral
|
|||||||
hi Folded guibg=gray30
|
hi Folded guibg=gray30
|
||||||
hi FoldColumn guibg=gray30 guifg=white
|
hi FoldColumn guibg=gray30 guifg=white
|
||||||
hi cIf0 guifg=gray
|
hi cIf0 guifg=gray
|
||||||
|
hi diffOnly guifg=red gui=bold
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Checkstyle
|
" Compiler: Checkstyle
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/checkstyle.vim
|
" Last Change: 2013 Jun 26
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@@ -17,4 +16,4 @@ CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain
|
|||||||
|
|
||||||
" sample error: WebTable.java:282: '+=' is not preceeded with whitespace.
|
" sample error: WebTable.java:282: '+=' is not preceeded with whitespace.
|
||||||
" WebTable.java:201:1: '{' should be on the previous line.
|
" WebTable.java:201:1: '{' should be on the previous line.
|
||||||
CompilerSet errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%#
|
CompilerSet errorformat=%f:%l:%v:\ %m,%f:%l:\ %m,%-G%.%#
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: eRuby
|
" Language: eRuby
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2008 Aug 1
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
|||||||
28
runtime/compiler/haml.vim
Normal file
28
runtime/compiler/haml.vim
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Haml
|
||||||
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
|
" Last Change: 2013 May 30
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "haml"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
CompilerSet makeprg=haml\ -c
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\Haml\ %trror\ on\ line\ %l:\ %m,
|
||||||
|
\Syntax\ %trror\ on\ line\ %l:\ %m,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim:set sw=2 sts=2:
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: javac
|
" Compiler: javac
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/javac.vim
|
" Last Change: 2004 Nov 27
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
|||||||
44
runtime/compiler/ocaml.vim
Normal file
44
runtime/compiler/ocaml.vim
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
" Vim Compiler File
|
||||||
|
" Compiler: ocaml
|
||||||
|
" Maintainer: See ftplugin/ocaml.vim (?)
|
||||||
|
" Last Change: June 2013 by Marc Weber
|
||||||
|
"
|
||||||
|
" Marc Weber's comments:
|
||||||
|
" Setting makeprg doesn't make sense, because there is ocamlc, ocamlopt,
|
||||||
|
" ocamake and whatnot. So which one to use?
|
||||||
|
"
|
||||||
|
" This error format was moved from ftplugin/ocaml.vim to this file,
|
||||||
|
" because ftplugin is the wrong file to set an error format
|
||||||
|
" and the error format itself is annoying because it joins many lines in this
|
||||||
|
" error case:
|
||||||
|
"
|
||||||
|
" Error: The implementation foo.ml does not match the interface foo.cmi:
|
||||||
|
" Modules do not match case.
|
||||||
|
"
|
||||||
|
" So having it here makes people opt-in
|
||||||
|
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "ocaml"
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
CompilerSet errorformat =
|
||||||
|
\%EFile\ \"%f\"\\,\ line\ %l\\,\ characters\ %c-%*\\d:,
|
||||||
|
\%EFile\ \"%f\"\\,\ line\ %l\\,\ character\ %c:%m,
|
||||||
|
\%+EReference\ to\ unbound\ regexp\ name\ %m,
|
||||||
|
\%Eocamlyacc:\ e\ -\ line\ %l\ of\ \"%f\"\\,\ %m,
|
||||||
|
\%Wocamlyacc:\ w\ -\ %m,
|
||||||
|
\%-Zmake%.%#,
|
||||||
|
\%C%m,
|
||||||
|
\%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
|
||||||
|
\%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
|
||||||
|
\%D%*\\a:\ Entering\ directory\ `%f',
|
||||||
|
\%X%*\\a:\ Leaving\ directory\ `%f',
|
||||||
|
\%DMaking\ %*\\a\ in\ %f
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: PHP
|
" Compiler: PHP CLI
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/php.vim
|
" Last Change: 2013 Jun 25
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@@ -17,12 +16,11 @@ let s:cpo_save = &cpo
|
|||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=php\ -lq
|
CompilerSet makeprg=php\ -lq
|
||||||
|
CompilerSet errorformat=%E<b>%.%#Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
||||||
CompilerSet errorformat=%E<b>Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
\%W<b>%.%#Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
||||||
\%W<b>Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
\%E%.%#Parse\ error:\ %m\ in\ %f\ on\ line\ %l,
|
||||||
\%EParse\ error:\ %m\ in\ %f\ on\ line\ %l,
|
\%W%.%#Notice:\ %m\ in\ %f\ on\ line\ %l,
|
||||||
\%WNotice:\ %m\ in\ %f</b>\ on\ line\ %l,
|
\%-G%.%#
|
||||||
\%-G%.%#
|
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|||||||
35
runtime/compiler/rake.vim
Normal file
35
runtime/compiler/rake.vim
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Language: Rake
|
||||||
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "rake"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
CompilerSet makeprg=rake
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%D(in\ %f),
|
||||||
|
\%\\s%#from\ %f:%l:%m,
|
||||||
|
\%\\s%#from\ %f:%l:,
|
||||||
|
\%\\s%##\ %f:%l:%m,
|
||||||
|
\%\\s%##\ %f:%l,
|
||||||
|
\%\\s%#[%f:%l:\ %#%m,
|
||||||
|
\%\\s%#%f:%l:\ %#%m,
|
||||||
|
\%\\s%#%f:%l:,
|
||||||
|
\%m\ [%f:%l]:
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim: nowrap sw=2 sts=2 ts=8:
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: RSpec
|
" Language: RSpec
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2009 Dec 22
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
@@ -18,21 +16,15 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=spec
|
CompilerSet makeprg=rspec
|
||||||
|
|
||||||
CompilerSet errorformat=
|
CompilerSet errorformat=
|
||||||
\%+W'%.%#'\ FAILED,
|
\%f:%l:\ %tarning:\ %m,
|
||||||
\%+I'%.%#'\ FIXED,
|
|
||||||
\%-Cexpected:%.%#,
|
|
||||||
\%-C\ \ \ \ \ got:%.%#,
|
|
||||||
\%E%.%#:in\ `load':\ %f:%l:%m,
|
\%E%.%#:in\ `load':\ %f:%l:%m,
|
||||||
\%C%f:%l:,
|
\%E%f:%l:in\ `%*[^']':\ %m,
|
||||||
\%W%f:%l:\ warning:\ %m,
|
\%-Z\ \ \ \ \ \#\ %f:%l:%.%#,
|
||||||
\%E%f:%l:in\ %*[^:]:\ %m,
|
\%E\ \ %\\d%\\+)%.%#,
|
||||||
\%E%f:%l:\ %m,
|
\%C\ \ \ \ \ %m,
|
||||||
\%-Z%\tfrom\ %f:%l,
|
|
||||||
\%-Z%p^%.%#,
|
|
||||||
\%-C%.%#,
|
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
|||||||
@@ -1,33 +1,10 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: Ruby
|
" Language: Ruby
|
||||||
" Function: Syntax check and/or error reporting
|
" Function: Syntax check and/or error reporting
|
||||||
" Maintainer: Tim Hammerquist <timh at rubyforge.org>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
" Last Change: 2008 Aug 1
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
" ----------------------------------------------------------------------------
|
" ----------------------------------------------------------------------------
|
||||||
"
|
|
||||||
" Changelog:
|
|
||||||
" 0.2: script saves and restores 'cpoptions' value to prevent problems with
|
|
||||||
" line continuations
|
|
||||||
" 0.1: initial release
|
|
||||||
"
|
|
||||||
" Contributors:
|
|
||||||
" Hugh Sasse <hgs@dmu.ac.uk>
|
|
||||||
" Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
|
||||||
"
|
|
||||||
" Todo:
|
|
||||||
" match error type %m
|
|
||||||
"
|
|
||||||
" Comments:
|
|
||||||
" I know this file isn't perfect. If you have any questions, suggestions,
|
|
||||||
" patches, etc., please don't hesitate to let me know.
|
|
||||||
"
|
|
||||||
" This is my first experience with 'errorformat' and compiler plugins and
|
|
||||||
" I welcome any input from more experienced (or clearer-thinking)
|
|
||||||
" individuals.
|
|
||||||
" ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: Test::Unit - Ruby Unit Testing Framework
|
" Language: Test::Unit - Ruby Unit Testing Framework
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2008 Aug 1
|
" URL: https://github.com/vim-ruby/vim-ruby
|
||||||
" URL: http://vim-ruby.rubyforge.org
|
|
||||||
" Anon CVS: See above site
|
|
||||||
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
|||||||
30
runtime/compiler/sass.vim
Normal file
30
runtime/compiler/sass.vim
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Sass
|
||||||
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||||
|
" Last Change: 2013 May 30
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "sass"
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo-=C
|
||||||
|
|
||||||
|
CompilerSet makeprg=sass\ -c
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%f:%l:%m\ (Sass::Syntax%trror),
|
||||||
|
\%ESyntax\ %trror:%m,
|
||||||
|
\%C%\\s%\\+on\ line\ %l\ of\ %f,
|
||||||
|
\%Z%.%#,
|
||||||
|
\%-G%.%#
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim:set sw=2 sts=2:
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: se (SmartEiffel Compiler)
|
" Compiler: se (Liberty Eiffel Compiler)
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/se.vim
|
" Last Change: 2013 Jun 29
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@@ -16,12 +15,15 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=compile\ %
|
CompilerSet makeprg=se\ c
|
||||||
|
|
||||||
CompilerSet errorformat=%W******\ Warning:\ %m,
|
CompilerSet errorformat=%W******\ Warning:\ %m,
|
||||||
\%E******\ Fatal\ Error:\ %m,
|
\%E******\ Fatal\ Error:\ %m,
|
||||||
\%E******\ Error:\ %m,
|
\%E******\ Error:\ %m,
|
||||||
\%CLine\ %l\ column\ %c\ in\ %\\w%\\+\ (%f)\ :,
|
\%ZLine\ %l\ column\ %c\ in\ %.%#\ (%f)\ %\\=:,
|
||||||
|
\%ZLine\ %l\ columns\ %c\\,\ %\\d%\\+\ %.%#\ (%f)\ %\\=:,
|
||||||
|
\%+C%*[^\ ]%.%#,
|
||||||
|
\%-GThe\ source\ lines\ involved,
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: tcl
|
" Compiler: tcl
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/tcl.vim
|
|
||||||
" Last Change: 2004 Nov 27
|
" Last Change: 2004 Nov 27
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: HTML Tidy
|
" Compiler: HTML Tidy
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/tidy.vim
|
" Last Change: 2013 Jul 7
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
" NOTE: set 'tidy_compiler_040800' if you are using the 4th August 2000 release
|
|
||||||
" of HTML Tidy.
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@@ -16,13 +12,7 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|||||||
command -nargs=* CompilerSet setlocal <args>
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" this is needed to work around a bug in the 04/08/00 release of tidy which
|
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
|
||||||
" failed to set the filename if the -quiet option was used
|
|
||||||
if exists("tidy_compiler_040800")
|
|
||||||
CompilerSet makeprg=tidy\ -errors\ --gnu-emacs\ yes\ %
|
|
||||||
else
|
|
||||||
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
|
|
||||||
endif
|
|
||||||
|
|
||||||
" sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
|
" sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
|
||||||
" sample error: foo.html:9:2: Error: <foobar> is not recognized!
|
" sample error: foo.html:9:2: Error: <foobar> is not recognized!
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: xmllint
|
" Compiler: xmllint
|
||||||
" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/xmllint.vim
|
" Last Change: 2013 Jul 8
|
||||||
" Last Change: 2004 Nov 27
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@@ -16,12 +15,10 @@ endif
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
CompilerSet makeprg=xmllint\ --valid\ --noout\
|
CompilerSet makeprg=xmllint\ --valid\ --noout
|
||||||
|
|
||||||
CompilerSet errorformat=%E%f:%l:\ error:\ %m,
|
CompilerSet errorformat=%+E%f:%l:\ %.%#\ error\ :\ %m,
|
||||||
\%W%f:%l:\ warning:\ %m,
|
\%+W%f:%l:\ %.%#\ warning\ :\ %m,
|
||||||
\%E%f:%l:\ validity\ error:\ %m,
|
|
||||||
\%W%f:%l:\ validity\ warning:\ %m,
|
|
||||||
\%-Z%p^,
|
\%-Z%p^,
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*arabic.txt* For Vim version 7.3. Last change: 2010 Nov 13
|
*arabic.txt* For Vim version 7.4. Last change: 2010 Nov 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Nadim Shaikli
|
VIM REFERENCE MANUAL by Nadim Shaikli
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*autocmd.txt* For Vim version 7.3. Last change: 2013 May 19
|
*autocmd.txt* For Vim version 7.4. Last change: 2013 Aug 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -480,6 +480,12 @@ CmdwinLeave Before leaving the command-line window.
|
|||||||
|cmdwin-char|
|
|cmdwin-char|
|
||||||
*ColorScheme*
|
*ColorScheme*
|
||||||
ColorScheme After loading a color scheme. |:colorscheme|
|
ColorScheme After loading a color scheme. |:colorscheme|
|
||||||
|
The pattern is matched against the
|
||||||
|
colorscheme name. <afile> can be used for the
|
||||||
|
name of the actual file where this option was
|
||||||
|
set, and <amatch> for the new colorscheme
|
||||||
|
name.
|
||||||
|
|
||||||
|
|
||||||
*CompleteDone*
|
*CompleteDone*
|
||||||
CompleteDone After Insert mode completion is done. Either
|
CompleteDone After Insert mode completion is done. Either
|
||||||
@@ -513,9 +519,9 @@ CursorHold When the user doesn't press a key for the time
|
|||||||
CursorHoldI Just like CursorHold, but in Insert mode.
|
CursorHoldI Just like CursorHold, but in Insert mode.
|
||||||
|
|
||||||
*CursorMoved*
|
*CursorMoved*
|
||||||
CursorMoved After the cursor was moved in Normal mode.
|
CursorMoved After the cursor was moved in Normal or Visual
|
||||||
Also when the text of the cursor line has been
|
mode. Also when the text of the cursor line
|
||||||
changed, e.g., with "x", "rx" or "p".
|
has been changed, e.g., with "x", "rx" or "p".
|
||||||
Not triggered when there is typeahead or when
|
Not triggered when there is typeahead or when
|
||||||
an operator is pending.
|
an operator is pending.
|
||||||
For an example see |match-parens|.
|
For an example see |match-parens|.
|
||||||
@@ -952,7 +958,8 @@ the autocommand is executed. This is different from the command!
|
|||||||
|
|
||||||
*file-pattern*
|
*file-pattern*
|
||||||
The pattern is interpreted like mostly used in file names:
|
The pattern is interpreted like mostly used in file names:
|
||||||
* matches any sequence of characters
|
* matches any sequence of characters; Unusual: includes path
|
||||||
|
separators
|
||||||
? matches any single character
|
? matches any single character
|
||||||
\? matches a '?'
|
\? matches a '?'
|
||||||
. matches a '.'
|
. matches a '.'
|
||||||
@@ -961,6 +968,9 @@ The pattern is interpreted like mostly used in file names:
|
|||||||
\, matches a ','
|
\, matches a ','
|
||||||
{ } like \( \) in a |pattern|
|
{ } like \( \) in a |pattern|
|
||||||
, inside { }: like \| in a |pattern|
|
, inside { }: like \| in a |pattern|
|
||||||
|
\} literal }
|
||||||
|
\{ literal {
|
||||||
|
\\\{n,m\} like \{n,m} in a |pattern|
|
||||||
\ special meaning like in a |pattern|
|
\ special meaning like in a |pattern|
|
||||||
[ch] matches 'c' or 'h'
|
[ch] matches 'c' or 'h'
|
||||||
[^ch] match any character but 'c' and 'h'
|
[^ch] match any character but 'c' and 'h'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*change.txt* For Vim version 7.3. Last change: 2013 Mar 19
|
*change.txt* For Vim version 7.4. Last change: 2013 Nov 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -71,9 +71,21 @@ For inserting text see |insert.txt|.
|
|||||||
"D" deletes the highlighted text plus all text until
|
"D" deletes the highlighted text plus all text until
|
||||||
the end of the line. {not in Vi}
|
the end of the line. {not in Vi}
|
||||||
|
|
||||||
*:d* *:de* *:del* *:delete* *:dl*
|
*:d* *:de* *:del* *:delete* *:dl* *:dp*
|
||||||
:[range]d[elete] [x] Delete [range] lines (default: current line) [into
|
:[range]d[elete] [x] Delete [range] lines (default: current line) [into
|
||||||
register x].
|
register x].
|
||||||
|
Note these weird abbreviations:
|
||||||
|
:dl delete and list
|
||||||
|
:dell idem
|
||||||
|
:delel idem
|
||||||
|
:deletl idem
|
||||||
|
:deletel idem
|
||||||
|
:dp delete and print
|
||||||
|
:dep idem
|
||||||
|
:delp idem
|
||||||
|
:delep idem
|
||||||
|
:deletp idem
|
||||||
|
:deletep idem
|
||||||
|
|
||||||
:[range]d[elete] [x] {count}
|
:[range]d[elete] [x] {count}
|
||||||
Delete {count} lines, starting with [range]
|
Delete {count} lines, starting with [range]
|
||||||
@@ -463,8 +475,8 @@ If the 'shiftround' option is on, the indent is rounded to a multiple of
|
|||||||
'shiftwidth'.
|
'shiftwidth'.
|
||||||
|
|
||||||
If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' contains
|
If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' contains
|
||||||
'#', shift right does not affect lines starting with '#' (these are supposed
|
'#' with a zero value, shift right does not affect lines starting with '#'
|
||||||
to be C preprocessor lines that must stay in column 1).
|
(these are supposed to be C preprocessor lines that must stay in column 1).
|
||||||
|
|
||||||
When the 'expandtab' option is off (this is the default) Vim uses <Tab>s as
|
When the 'expandtab' option is off (this is the default) Vim uses <Tab>s as
|
||||||
much as possible to make the indent. You can use ">><<" to replace an indent
|
much as possible to make the indent. You can use ">><<" to replace an indent
|
||||||
@@ -1057,6 +1069,11 @@ another register. E.g., yank the text to copy, Visually select the text to
|
|||||||
replace and use "0p . You can repeat this as many times as you like, the
|
replace and use "0p . You can repeat this as many times as you like, the
|
||||||
unnamed register will be changed each time.
|
unnamed register will be changed each time.
|
||||||
|
|
||||||
|
When you use a blockwise Visual mode command and yank only a single line into
|
||||||
|
a register, a paste on a visual selected area will paste that single line on
|
||||||
|
each of the selected lines (thus replacing the blockwise selected region by a
|
||||||
|
block of the pasted line).
|
||||||
|
|
||||||
*blockwise-register*
|
*blockwise-register*
|
||||||
If you use a blockwise Visual mode command to get the text into the register,
|
If you use a blockwise Visual mode command to get the text into the register,
|
||||||
the block of text will be inserted before ("P") or after ("p") the cursor
|
the block of text will be inserted before ("P") or after ("p") the cursor
|
||||||
@@ -1114,6 +1131,8 @@ less than one line (the small delete register is used then). An exception is
|
|||||||
made for the delete operator with these movement commands: |%|, |(|, |)|, |`|,
|
made for the delete operator with these movement commands: |%|, |(|, |)|, |`|,
|
||||||
|/|, |?|, |n|, |N|, |{| and |}|. Register "1 is always used then (this is Vi
|
|/|, |?|, |n|, |N|, |{| and |}|. Register "1 is always used then (this is Vi
|
||||||
compatible). The "- register is used as well if the delete is within a line.
|
compatible). The "- register is used as well if the delete is within a line.
|
||||||
|
Note that these characters may be mapped. E.g. |%| is mapped by the matchit
|
||||||
|
plugin.
|
||||||
With each successive deletion or change, Vim shifts the previous contents
|
With each successive deletion or change, Vim shifts the previous contents
|
||||||
of register 1 into register 2, 2 into 3, and so forth, losing the previous
|
of register 1 into register 2, 2 into 3, and so forth, losing the previous
|
||||||
contents of register 9.
|
contents of register 9.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 7.3. Last change: 2013 Mar 16
|
*cmdline.txt* For Vim version 7.4. Last change: 2013 Nov 25
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -356,6 +356,10 @@ terminals)
|
|||||||
List the recent five entries from all histories: >
|
List the recent five entries from all histories: >
|
||||||
:history all -5,
|
:history all -5,
|
||||||
|
|
||||||
|
:keepp[atterns] {command} *:keepp* *:keeppatterns*
|
||||||
|
Execute {command}, without adding anything to the search
|
||||||
|
history
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Command-line completion *cmdline-completion*
|
2. Command-line completion *cmdline-completion*
|
||||||
|
|
||||||
@@ -754,6 +758,7 @@ characters have a special meaning. These can also be used in the expression
|
|||||||
function expand() |expand()|.
|
function expand() |expand()|.
|
||||||
% Is replaced with the current file name. *:_%* *c_%*
|
% Is replaced with the current file name. *:_%* *c_%*
|
||||||
# Is replaced with the alternate file name. *:_#* *c_#*
|
# Is replaced with the alternate file name. *:_#* *c_#*
|
||||||
|
This is remembered for every window.
|
||||||
#n (where n is a number) is replaced with *:_#0* *:_#n*
|
#n (where n is a number) is replaced with *:_#0* *:_#n*
|
||||||
the file name of buffer n. "#0" is the same as "#". *c_#n*
|
the file name of buffer n. "#0" is the same as "#". *c_#n*
|
||||||
## Is replaced with all names in the argument list *:_##* *c_##*
|
## Is replaced with all names in the argument list *:_##* *c_##*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*debug.txt* For Vim version 7.3. Last change: 2012 Feb 11
|
*debug.txt* For Vim version 7.4. Last change: 2012 Feb 11
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*debugger.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*debugger.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Gordon Prieur
|
VIM REFERENCE MANUAL by Gordon Prieur
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*develop.txt* For Vim version 7.3. Last change: 2013 Apr 27
|
*develop.txt* For Vim version 7.4. Last change: 2013 Apr 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*diff.txt* For Vim version 7.3. Last change: 2012 Sep 05
|
*diff.txt* For Vim version 7.4. Last change: 2013 Sep 20
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -123,14 +123,18 @@ Since the option values are remembered with the buffer, you can edit another
|
|||||||
file for a moment and come back to the same file and be in diff mode again.
|
file for a moment and come back to the same file and be in diff mode again.
|
||||||
|
|
||||||
*:diffo* *:diffoff*
|
*:diffo* *:diffoff*
|
||||||
:diffo[ff] Switch off diff mode for the current window.
|
:diffo[ff] Switch off diff mode for the current window. Resets related
|
||||||
|
options also when 'diff' was not set.
|
||||||
|
|
||||||
:diffo[ff]! Switch off diff mode for the current window and in all windows
|
:diffo[ff]! Switch off diff mode for the current window and in all windows
|
||||||
in the current tab page where 'diff' is set.
|
in the current tab page where 'diff' is set. Resetting
|
||||||
|
related options only happens in a window that has 'diff' set,
|
||||||
|
if the current window does not have 'diff' set then no options
|
||||||
|
in it are changed.
|
||||||
|
|
||||||
The ":diffoff" command resets the relevant options to their default value.
|
The ":diffoff" command resets the relevant options to the values they had when
|
||||||
This may be different from what the values were before diff mode was started,
|
using |:diffsplit|, |:diffpatch| , |:diffthis|. or starting Vim in diff mode.
|
||||||
the old values are not remembered.
|
Otherwise they are set to their default value:
|
||||||
|
|
||||||
'diff' off
|
'diff' off
|
||||||
'scrollbind' off
|
'scrollbind' off
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*digraph.txt* For Vim version 7.3. Last change: 2011 Jan 15
|
*digraph.txt* For Vim version 7.4. Last change: 2011 Jan 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*editing.txt* For Vim version 7.3. Last change: 2013 Feb 07
|
*editing.txt* For Vim version 7.4. Last change: 2013 Nov 25
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -38,6 +38,7 @@ If there already was a current file name, then that one becomes the alternate
|
|||||||
file name. It can be used with "#" on the command line |:_#| and you can use
|
file name. It can be used with "#" on the command line |:_#| and you can use
|
||||||
the |CTRL-^| command to toggle between the current and the alternate file.
|
the |CTRL-^| command to toggle between the current and the alternate file.
|
||||||
However, the alternate file name is not changed when |:keepalt| is used.
|
However, the alternate file name is not changed when |:keepalt| is used.
|
||||||
|
An alternate file name is remembered for each window.
|
||||||
|
|
||||||
*:keepalt* *:keepa*
|
*:keepalt* *:keepa*
|
||||||
:keepalt {cmd} Execute {cmd} while keeping the current alternate file
|
:keepalt {cmd} Execute {cmd} while keeping the current alternate file
|
||||||
@@ -185,12 +186,13 @@ If you want to automatically save the changes without asking, switch on the
|
|||||||
that does not work for all commands.
|
that does not work for all commands.
|
||||||
|
|
||||||
If you want to keep the changed buffer without saving it, switch on the
|
If you want to keep the changed buffer without saving it, switch on the
|
||||||
'hidden' option. See |hidden-buffer|.
|
'hidden' option. See |hidden-buffer|. Some commands work like this even when
|
||||||
|
'hidden' is not set, check the help for the command.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Editing a file *edit-a-file*
|
2. Editing a file *edit-a-file*
|
||||||
|
|
||||||
*:e* *:edit*
|
*:e* *:edit* *reload*
|
||||||
:e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the
|
:e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the
|
||||||
current file, when it has been changed outside of Vim.
|
current file, when it has been changed outside of Vim.
|
||||||
This fails when changes have been made to the current
|
This fails when changes have been made to the current
|
||||||
@@ -199,7 +201,7 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
Also see |++opt| and |+cmd|.
|
Also see |++opt| and |+cmd|.
|
||||||
{Vi: no ++opt}
|
{Vi: no ++opt}
|
||||||
|
|
||||||
*:edit!*
|
*:edit!* *discard*
|
||||||
:e[dit]! [++opt] [+cmd]
|
:e[dit]! [++opt] [+cmd]
|
||||||
Edit the current file always. Discard any changes to
|
Edit the current file always. Discard any changes to
|
||||||
the current buffer. This is useful if you want to
|
the current buffer. This is useful if you want to
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*eval.txt* For Vim version 7.3. Last change: 2013 May 21
|
*eval.txt* For Vim version 7.4. Last change: 2013 Nov 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -123,6 +123,7 @@ around the arguments, to invoke the function it refers to. Example: >
|
|||||||
:echo Fn()
|
:echo Fn()
|
||||||
< *E704* *E705* *E707*
|
< *E704* *E705* *E707*
|
||||||
A Funcref variable must start with a capital, "s:", "w:", "t:" or "b:". You
|
A Funcref variable must start with a capital, "s:", "w:", "t:" or "b:". You
|
||||||
|
can use "g:" but the following name must still start with a capital. You
|
||||||
cannot have both a Funcref variable and a function with the same name.
|
cannot have both a Funcref variable and a function with the same name.
|
||||||
|
|
||||||
A special case is defining a function and directly assigning its Funcref to a
|
A special case is defining a function and directly assigning its Funcref to a
|
||||||
@@ -1454,6 +1455,13 @@ v:foldend Used for 'foldtext': last line of closed fold.
|
|||||||
v:foldstart Used for 'foldtext': first line of closed fold.
|
v:foldstart Used for 'foldtext': first line of closed fold.
|
||||||
Read-only in the |sandbox|. |fold-foldtext|
|
Read-only in the |sandbox|. |fold-foldtext|
|
||||||
|
|
||||||
|
*v:hlsearch* *hlsearch-variable*
|
||||||
|
v:hlsearch Variable that determines whether search highlighting is on.
|
||||||
|
Makes sense only if 'hlsearch' is enabled which requires
|
||||||
|
|+extra_search|. Setting this variable to zero acts the like
|
||||||
|
|:nohlsearch| command, setting it to one acts like >
|
||||||
|
let &hlsearch = &hlsearch
|
||||||
|
<
|
||||||
*v:insertmode* *insertmode-variable*
|
*v:insertmode* *insertmode-variable*
|
||||||
v:insertmode Used for the |InsertEnter| and |InsertChange| autocommand
|
v:insertmode Used for the |InsertEnter| and |InsertChange| autocommand
|
||||||
events. Values:
|
events. Values:
|
||||||
@@ -1712,6 +1720,7 @@ bufnr( {expr}) Number Number of the buffer {expr}
|
|||||||
bufwinnr( {expr}) Number window number of buffer {expr}
|
bufwinnr( {expr}) Number window number of buffer {expr}
|
||||||
byte2line( {byte}) Number line number at byte count {byte}
|
byte2line( {byte}) Number line number at byte count {byte}
|
||||||
byteidx( {expr}, {nr}) Number byte index of {nr}'th char in {expr}
|
byteidx( {expr}, {nr}) Number byte index of {nr}'th char in {expr}
|
||||||
|
byteidxcomp( {expr}, {nr}) Number byte index of {nr}'th char in {expr}
|
||||||
call( {func}, {arglist} [, {dict}])
|
call( {func}, {arglist} [, {dict}])
|
||||||
any call {func} with arguments {arglist}
|
any call {func} with arguments {arglist}
|
||||||
ceil( {expr}) Float round {expr} up
|
ceil( {expr}) Float round {expr} up
|
||||||
@@ -1906,6 +1915,8 @@ repeat( {expr}, {count}) String repeat {expr} {count} times
|
|||||||
resolve( {filename}) String get filename a shortcut points to
|
resolve( {filename}) String get filename a shortcut points to
|
||||||
reverse( {list}) List reverse {list} in-place
|
reverse( {list}) List reverse {list} in-place
|
||||||
round( {expr}) Float round off {expr}
|
round( {expr}) Float round off {expr}
|
||||||
|
screenattr( {row}, {col}) Number attribute at screen position
|
||||||
|
screenchar( {row}, {col}) Number character at screen position
|
||||||
screencol() Number current cursor column
|
screencol() Number current cursor column
|
||||||
screenrow() Number current cursor row
|
screenrow() Number current cursor row
|
||||||
search( {pattern} [, {flags} [, {stopline} [, {timeout}]]])
|
search( {pattern} [, {flags} [, {stopline} [, {timeout}]]])
|
||||||
@@ -2258,7 +2269,10 @@ byteidx({expr}, {nr}) *byteidx()*
|
|||||||
{expr}. Use zero for the first character, it returns zero.
|
{expr}. Use zero for the first character, it returns zero.
|
||||||
This function is only useful when there are multibyte
|
This function is only useful when there are multibyte
|
||||||
characters, otherwise the returned value is equal to {nr}.
|
characters, otherwise the returned value is equal to {nr}.
|
||||||
Composing characters are counted as a separate character.
|
Composing characters are not counted separately, their byte
|
||||||
|
length is added to the preceding base character. See
|
||||||
|
|byteidxcomp()| below for counting composing characters
|
||||||
|
separately.
|
||||||
Example : >
|
Example : >
|
||||||
echo matchstr(str, ".", byteidx(str, 3))
|
echo matchstr(str, ".", byteidx(str, 3))
|
||||||
< will display the fourth character. Another way to do the
|
< will display the fourth character. Another way to do the
|
||||||
@@ -2267,7 +2281,20 @@ byteidx({expr}, {nr}) *byteidx()*
|
|||||||
echo strpart(s, 0, byteidx(s, 1))
|
echo strpart(s, 0, byteidx(s, 1))
|
||||||
< If there are less than {nr} characters -1 is returned.
|
< If there are less than {nr} characters -1 is returned.
|
||||||
If there are exactly {nr} characters the length of the string
|
If there are exactly {nr} characters the length of the string
|
||||||
is returned.
|
in bytes is returned.
|
||||||
|
|
||||||
|
byteidxcomp({expr}, {nr}) *byteidxcomp()*
|
||||||
|
Like byteidx(), except that a composing character is counted
|
||||||
|
as a separate character. Example: >
|
||||||
|
let s = 'e' . nr2char(0x301)
|
||||||
|
echo byteidx(s, 1)
|
||||||
|
echo byteidxcomp(s, 1)
|
||||||
|
echo byteidxcomp(s, 2)
|
||||||
|
< The first and third echo result in 3 ('e' plus composing
|
||||||
|
character is 3 bytes), the second echo results in 1 ('e' is
|
||||||
|
one byte).
|
||||||
|
Only works different from byteidx() when 'encoding' is set to
|
||||||
|
a Unicode encoding.
|
||||||
|
|
||||||
call({func}, {arglist} [, {dict}]) *call()* *E699*
|
call({func}, {arglist} [, {dict}]) *call()* *E699*
|
||||||
Call function {func} with the items in |List| {arglist} as
|
Call function {func} with the items in |List| {arglist} as
|
||||||
@@ -2773,7 +2800,8 @@ expand({expr} [, {nosuf} [, {list}]]) *expand()*
|
|||||||
file name contains a space]
|
file name contains a space]
|
||||||
|
|
||||||
If the expansion fails, the result is an empty string. A name
|
If the expansion fails, the result is an empty string. A name
|
||||||
for a non-existing file is not included.
|
for a non-existing file is not included, unless {expr} does
|
||||||
|
not start with '%', '#' or '<', see below.
|
||||||
|
|
||||||
When {expr} starts with '%', '#' or '<', the expansion is done
|
When {expr} starts with '%', '#' or '<', the expansion is done
|
||||||
like for the |cmdline-special| variables with their associated
|
like for the |cmdline-special| variables with their associated
|
||||||
@@ -4207,6 +4235,9 @@ matchadd({group}, {pattern}[, {priority}[, {id}]])
|
|||||||
"match"). It will be highlighted with {group}. Returns an
|
"match"). It will be highlighted with {group}. Returns an
|
||||||
identification number (ID), which can be used to delete the
|
identification number (ID), which can be used to delete the
|
||||||
match using |matchdelete()|.
|
match using |matchdelete()|.
|
||||||
|
Matching is case sensitive and magic, unless case sensitivity
|
||||||
|
or magicness are explicitly overridden in {pattern}. The
|
||||||
|
'magic', 'smartcase' and 'ignorecase' options are not used.
|
||||||
|
|
||||||
The optional {priority} argument assigns a priority to the
|
The optional {priority} argument assigns a priority to the
|
||||||
match. A match with a high priority will have its
|
match. A match with a high priority will have its
|
||||||
@@ -4890,6 +4921,21 @@ round({expr}) *round()*
|
|||||||
< -5.0
|
< -5.0
|
||||||
{only available when compiled with the |+float| feature}
|
{only available when compiled with the |+float| feature}
|
||||||
|
|
||||||
|
screenattr(row, col) *screenattr()*
|
||||||
|
Like screenchar(), but return the attribute. This is a rather
|
||||||
|
arbitrary number that can only be used to compare to the
|
||||||
|
attribute at other positions.
|
||||||
|
|
||||||
|
screenchar(row, col) *screenchar()*
|
||||||
|
The result is a Number, which is the character at position
|
||||||
|
[row, col] on the screen. This works for every possible
|
||||||
|
screen position, also status lines, window separators and the
|
||||||
|
command line. The top left position is row one, column one
|
||||||
|
The character excludes composing characters. For double-byte
|
||||||
|
encodings it may only be the first byte.
|
||||||
|
This is mainly to be used for testing.
|
||||||
|
Returns -1 when row or col is out of range.
|
||||||
|
|
||||||
screencol() *screencol()*
|
screencol() *screencol()*
|
||||||
The result is a Number, which is the current screen column of
|
The result is a Number, which is the current screen column of
|
||||||
the cursor. The leftmost column has number 1.
|
the cursor. The leftmost column has number 1.
|
||||||
@@ -5866,6 +5912,9 @@ system({expr} [, {input}]) *system()* *E677*
|
|||||||
< To make the result more system-independent, the shell output
|
< To make the result more system-independent, the shell output
|
||||||
is filtered to replace <CR> with <NL> for Macintosh, and
|
is filtered to replace <CR> with <NL> for Macintosh, and
|
||||||
<CR><NL> with <NL> for DOS-like systems.
|
<CR><NL> with <NL> for DOS-like systems.
|
||||||
|
To avoid the string being truncated at a NUL, all NUL
|
||||||
|
characters are replaced with SOH (0x01).
|
||||||
|
|
||||||
The command executed is constructed using several options:
|
The command executed is constructed using several options:
|
||||||
'shell' 'shellcmdflag' 'shellxquote' {expr} 'shellredir' {tmp} 'shellxquote'
|
'shell' 'shellcmdflag' 'shellxquote' {expr} 'shellredir' {tmp} 'shellxquote'
|
||||||
({tmp} is an automatically generated file name).
|
({tmp} is an automatically generated file name).
|
||||||
@@ -6316,6 +6365,7 @@ There are three types of features:
|
|||||||
< Note that it's possible for patch 147 to be omitted even though 148 is
|
< Note that it's possible for patch 147 to be omitted even though 148 is
|
||||||
included.
|
included.
|
||||||
|
|
||||||
|
acl Compiled with |ACL| support.
|
||||||
all_builtin_terms Compiled with all builtin terminals enabled.
|
all_builtin_terms Compiled with all builtin terminals enabled.
|
||||||
amiga Amiga version of Vim.
|
amiga Amiga version of Vim.
|
||||||
arabic Compiled with Arabic support |Arabic|.
|
arabic Compiled with Arabic support |Arabic|.
|
||||||
@@ -6482,7 +6532,9 @@ windows Compiled with support for more than one window.
|
|||||||
writebackup Compiled with 'writebackup' default on.
|
writebackup Compiled with 'writebackup' default on.
|
||||||
xfontset Compiled with X fontset support |xfontset|.
|
xfontset Compiled with X fontset support |xfontset|.
|
||||||
xim Compiled with X input method support |xim|.
|
xim Compiled with X input method support |xim|.
|
||||||
xpm_w32 Compiled with pixmap support for Win32.
|
xpm Compiled with pixmap support.
|
||||||
|
xpm_w32 Compiled with pixmap support for Win32. (Only for
|
||||||
|
backward compatibility. Use "xpm" instead.)
|
||||||
xsmp Compiled with X session management support.
|
xsmp Compiled with X session management support.
|
||||||
xsmp_interact Compiled with interactive X session management support.
|
xsmp_interact Compiled with interactive X session management support.
|
||||||
xterm_clipboard Compiled with support for xterm clipboard.
|
xterm_clipboard Compiled with support for xterm clipboard.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH EVIM 1 "16 f<>vrier 2002 February 16"
|
.TH EVIM 1 "16 f<>vrier 2002"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
evim \- <20> Easy Vim <20>, <20>dite un fichier avec Vim sans utiliser les modes
|
evim \- <20> Easy Vim <20>, <20>dite un fichier avec Vim sans utiliser les modes
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@@ -54,4 +54,4 @@ Voir le menu Aide/Remerciements ou ":help credits" dans
|
|||||||
.SH TRADUCTION
|
.SH TRADUCTION
|
||||||
Cette page de manuel a <20>t<EFBFBD> traduite David Blanchet.
|
Cette page de manuel a <20>t<EFBFBD> traduite David Blanchet.
|
||||||
<david.blanchet@free.fr> 2005-03-26.
|
<david.blanchet@free.fr> 2005-03-26.
|
||||||
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>
|
Mise <20> jour 2013-05-10, Dominique Pell<6C> <dominique.pelle@gmail.com>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH EVIM 1 "16 février 2002 February 16"
|
.TH EVIM 1 "16 février 2002"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
evim \- « Easy Vim », édite un fichier avec Vim sans utiliser les modes
|
evim \- « Easy Vim », édite un fichier avec Vim sans utiliser les modes
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@@ -54,4 +54,4 @@ Voir le menu Aide/Remerciements ou ":help credits" dans
|
|||||||
.SH TRADUCTION
|
.SH TRADUCTION
|
||||||
Cette page de manuel a été traduite David Blanchet.
|
Cette page de manuel a été traduite David Blanchet.
|
||||||
<david.blanchet@free.fr> 2005-03-26.
|
<david.blanchet@free.fr> 2005-03-26.
|
||||||
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>
|
Mise à jour 2013-05-10, Dominique Pellé <dominique.pelle@gmail.com>
|
||||||
|
|||||||
51
runtime/doc/evim-ja.UTF-8.1
Normal file
51
runtime/doc/evim-ja.UTF-8.1
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
.TH EVIM 1 "2002 February 16"
|
||||||
|
.SH 名前
|
||||||
|
evim \- easy Vim, モードレスエディタ Vim
|
||||||
|
.SH 書式
|
||||||
|
.br
|
||||||
|
.B evim
|
||||||
|
[options] [file ..]
|
||||||
|
.br
|
||||||
|
.B eview
|
||||||
|
.SH 説明
|
||||||
|
.B eVim
|
||||||
|
は
|
||||||
|
.B Vim
|
||||||
|
を起動して、モードレスエディタとして動作するためのオプションを設定します。
|
||||||
|
Vim の動作が point-and-click エディタのような動作になります。
|
||||||
|
MS-Windows のメモ帳のような動作です。
|
||||||
|
.B eVim
|
||||||
|
は常に GUI で起動し、メニューとツールバーを表示します。
|
||||||
|
.PP
|
||||||
|
どうしても Vim の操作に馴染めない場合に使ってください。
|
||||||
|
編集効率は下がります。
|
||||||
|
.PP
|
||||||
|
.B eview
|
||||||
|
は同様に、読み込み専用モードで起動します。evim \-R と同じです。
|
||||||
|
.PP
|
||||||
|
引数や Vim についての詳細は vim(1) を参照してください。
|
||||||
|
.PP
|
||||||
|
オプション 'insertmode' が設定され、テキストを直接、入力できるようになりま
|
||||||
|
す。
|
||||||
|
.br
|
||||||
|
コピーとペーストのキー操作が MS-Windows と同じになるように、マップが設定され
|
||||||
|
ます。
|
||||||
|
CTRL-X が切り取り、CTRL-C がコピー、CTRL-V がペーストです。
|
||||||
|
標準の CTRL-V の操作は CTRL-Q に割り当てられます。
|
||||||
|
.SH オプション
|
||||||
|
vim(1) を参照してください。
|
||||||
|
.SH ファイル
|
||||||
|
.TP 15
|
||||||
|
/usr/local/lib/vim/evim.vim
|
||||||
|
eVim の初期化スクリプト。
|
||||||
|
.SH 別名
|
||||||
|
evim は "gumbies のための Vim" とも呼ばれています。
|
||||||
|
evim を使っているあなたはきっと、頭にハンカチをかぶっているのです。
|
||||||
|
(訳注: gumbies は Monty Python に登場するおもしろ集団。ハンカチをかぶっ
|
||||||
|
ている。)
|
||||||
|
.SH 関連項目
|
||||||
|
vim(1)
|
||||||
|
.SH 著者
|
||||||
|
.B Vim
|
||||||
|
のほとんどの機能は Bram Moolenaar が開発し、多くの人が協力しました。
|
||||||
|
メニューの Help/Credits を参照してください。
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
*farsi.txt* For Vim version 7.3. Last change: 2010 Aug 07
|
*farsi.txt* For Vim version 7.4. Last change: 2010 Aug 07
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
VIM REFERENCE MANUAL by Mortaza Ghassab Shiran
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*filetype.txt* For Vim version 7.3. Last change: 2011 Jun 19
|
*filetype.txt* For Vim version 7.4. Last change: 2013 May 25
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -603,7 +603,7 @@ Since the text for this plugin is rather long it has been put in a separate
|
|||||||
file: |ft_sql.txt|.
|
file: |ft_sql.txt|.
|
||||||
|
|
||||||
|
|
||||||
TEX *ft-tex-plugin*
|
TEX *ft-tex-plugin* *g:tex_flavor*
|
||||||
|
|
||||||
If the first line of a *.tex file has the form >
|
If the first line of a *.tex file has the form >
|
||||||
%&<format>
|
%&<format>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*fold.txt* For Vim version 7.3. Last change: 2010 May 13
|
*fold.txt* For Vim version 7.4. Last change: 2010 May 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*ft_ada.txt* For Vim version 7.3. Last change: 2010 Jul 20
|
*ft_ada.txt* For Vim version 7.4. Last change: 2010 Jul 20
|
||||||
|
|
||||||
|
|
||||||
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
ADA FILE TYPE PLUG-INS REFERENCE MANUAL~
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*ft_sql.txt* For Vim version 7.3. Last change: 2013 May 15
|
*ft_sql.txt* For Vim version 7.4. Last change: 2013 May 15
|
||||||
|
|
||||||
by David Fishburn
|
by David Fishburn
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui.txt* For Vim version 7.3. Last change: 2011 Jul 22
|
*gui.txt* For Vim version 7.4. Last change: 2013 Jun 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -93,10 +93,16 @@ and initialize other things that you may want to set up differently from the
|
|||||||
terminal version.
|
terminal version.
|
||||||
|
|
||||||
Recommended place for your personal GUI initializations:
|
Recommended place for your personal GUI initializations:
|
||||||
Unix $HOME/.gvimrc
|
Unix $HOME/.gvimrc or $HOME/.vim/gvimrc
|
||||||
OS/2 $HOME/.gvimrc or $VIM/.gvimrc
|
OS/2 $HOME/.gvimrc, $HOME/vimfiles/gvimrc
|
||||||
MS-DOS and Win32 $HOME/_gvimrc or $VIM/_gvimrc
|
or $VIM/.gvimrc
|
||||||
Amiga s:.gvimrc or $VIM/.gvimrc
|
MS-DOS and Win32 $HOME/_gvimrc, $HOME/vimfiles/gvimrc
|
||||||
|
or $VIM/_gvimrc
|
||||||
|
Amiga s:.gvimrc, home:.gvimrc, home:vimfiles:gvimrc
|
||||||
|
or $VIM/.gvimrc
|
||||||
|
|
||||||
|
The personal initialization files are searched in the order specified above
|
||||||
|
and only the first one that is found is read.
|
||||||
|
|
||||||
There are a number of options which only have meaning in the GUI version of
|
There are a number of options which only have meaning in the GUI version of
|
||||||
Vim. These are 'guicursor', 'guifont', 'guipty' and 'guioptions'. They are
|
Vim. These are 'guicursor', 'guifont', 'guipty' and 'guioptions'. They are
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui_w16.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*gui_w16.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui_w32.txt* For Vim version 7.3. Last change: 2012 Aug 04
|
*gui_w32.txt* For Vim version 7.4. Last change: 2012 Aug 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*gui_x11.txt* For Vim version 7.3. Last change: 2011 Sep 14
|
*gui_x11.txt* For Vim version 7.4. Last change: 2011 Sep 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*hangulin.txt* For Vim version 7.3. Last change: 2009 Jun 24
|
*hangulin.txt* For Vim version 7.4. Last change: 2009 Jun 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*hebrew.txt* For Vim version 7.3. Last change: 2007 Jun 14
|
*hebrew.txt* For Vim version 7.4. Last change: 2007 Jun 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*help.txt* For Vim version 7.3. Last change: 2012 Dec 06
|
*help.txt* For Vim version 7.4. Last change: 2012 Dec 06
|
||||||
|
|
||||||
VIM - main help file
|
VIM - main help file
|
||||||
k
|
k
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*helphelp.txt* For Vim version 7.3. Last change: 2012 Nov 28
|
*helphelp.txt* For Vim version 7.4. Last change: 2012 Nov 28
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*howto.txt* For Vim version 7.3. Last change: 2006 Apr 02
|
*howto.txt* For Vim version 7.4. Last change: 2006 Apr 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_cscop.txt* For Vim version 7.3. Last change: 2011 Jun 12
|
*if_cscop.txt* For Vim version 7.4. Last change: 2011 Jun 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Andy Kahn
|
VIM REFERENCE MANUAL by Andy Kahn
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_lua.txt* For Vim version 7.3. Last change: 2012 Jun 29
|
*if_lua.txt* For Vim version 7.4. Last change: 2013 Sep 04
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Luis Carvalho
|
VIM REFERENCE MANUAL by Luis Carvalho
|
||||||
@@ -10,9 +10,10 @@ The Lua Interface to Vim *lua* *Lua*
|
|||||||
2. The vim module |lua-vim|
|
2. The vim module |lua-vim|
|
||||||
3. List userdata |lua-list|
|
3. List userdata |lua-list|
|
||||||
4. Dict userdata |lua-dict|
|
4. Dict userdata |lua-dict|
|
||||||
5. Buffer userdata |lua-buffer|
|
5. Funcref userdata |lua-funcref|
|
||||||
6. Window userdata |lua-window|
|
6. Buffer userdata |lua-buffer|
|
||||||
7. The luaeval function |lua-luaeval|
|
7. Window userdata |lua-window|
|
||||||
|
8. The luaeval function |lua-luaeval|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
{Vi does not have any of these commands}
|
||||||
|
|
||||||
@@ -110,9 +111,31 @@ input range are stored in "vim.firstline" and "vim.lastline" respectively. The
|
|||||||
module also includes routines for buffer, window, and current line queries,
|
module also includes routines for buffer, window, and current line queries,
|
||||||
Vim evaluation and command execution, and others.
|
Vim evaluation and command execution, and others.
|
||||||
|
|
||||||
vim.list() Returns an empty list (see |List|).
|
vim.list([arg]) Returns an empty list or, if "arg" is a Lua
|
||||||
|
table with numeric keys 1, ..., n (a
|
||||||
vim.dict() Returns an empty dictionary (see |Dictionary|).
|
"sequence"), returns a list l such that l[i] =
|
||||||
|
arg[i] for i = 1, ..., n (see |List|).
|
||||||
|
Non-numeric keys are not used to initialize
|
||||||
|
the list. See also |lua-eval| for conversion
|
||||||
|
rules. Example: >
|
||||||
|
:lua t = {math.pi, false, say = 'hi'}
|
||||||
|
:echo luaeval('vim.list(t)')
|
||||||
|
:" [3.141593, 0], 'say' is ignored
|
||||||
|
<
|
||||||
|
vim.dict([arg]) Returns an empty dictionary or, if "arg" is a
|
||||||
|
Lua table, returns a dict d such that d[k] =
|
||||||
|
arg[k] for all string keys k in "arg" (see
|
||||||
|
|Dictionary|). Number keys are converted to
|
||||||
|
strings. Keys that are not strings are not
|
||||||
|
used to initialize the dictionary. See also
|
||||||
|
|lua-eval| for conversion rules. Example: >
|
||||||
|
:lua t = {math.pi, false, say = 'hi'}
|
||||||
|
:echo luaeval('vim.dict(t)')
|
||||||
|
:" {'say': 'hi'}, numeric keys ignored
|
||||||
|
<
|
||||||
|
vim.funcref({name}) Returns a Funcref to function {name} (see
|
||||||
|
|Funcref|). It is equivalent to Vim's
|
||||||
|
"function". NOT IMPLEMENTED YET
|
||||||
|
|
||||||
vim.buffer([arg]) If "arg" is a number, returns buffer with
|
vim.buffer([arg]) If "arg" is a number, returns buffer with
|
||||||
number "arg" in the buffer list or, if "arg"
|
number "arg" in the buffer list or, if "arg"
|
||||||
@@ -131,9 +154,9 @@ Vim evaluation and command execution, and others.
|
|||||||
|
|
||||||
vim.type({arg}) Returns the type of {arg}. It is equivalent to
|
vim.type({arg}) Returns the type of {arg}. It is equivalent to
|
||||||
Lua's "type" function, but returns "list",
|
Lua's "type" function, but returns "list",
|
||||||
"dict", "buffer", or "window" if {arg} is a
|
"dict", "funcref", "buffer", or "window" if
|
||||||
list, dictionary, buffer, or window,
|
{arg} is a list, dictionary, funcref, buffer,
|
||||||
respectively. Examples: >
|
or window, respectively. Examples: >
|
||||||
:lua l = vim.list()
|
:lua l = vim.list()
|
||||||
:lua print(type(l), vim.type(l))
|
:lua print(type(l), vim.type(l))
|
||||||
:" userdata list
|
:" userdata list
|
||||||
@@ -229,7 +252,40 @@ Examples:
|
|||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
5. Buffer userdata *lua-buffer*
|
5. Funcref userdata *lua-funcref*
|
||||||
|
|
||||||
|
Funcref userdata represent funcref variables in Vim. Funcrefs that were
|
||||||
|
defined with a "dict" attribute need to be obtained as a dictionary key
|
||||||
|
in order to have "self" properly assigned to the dictionary (see examples
|
||||||
|
below.) A funcref "f" has the following properties:
|
||||||
|
|
||||||
|
Properties
|
||||||
|
----------
|
||||||
|
o "#f" is the name of the function referenced by "f"
|
||||||
|
o "f(...)" calls the function referenced by "f" (with arguments)
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
>
|
||||||
|
:function I(x)
|
||||||
|
: return a:x
|
||||||
|
: endfunction
|
||||||
|
:let R = function('I')
|
||||||
|
:lua i1 = vim.funcref('I')
|
||||||
|
:lua i2 = vim.eval('R')
|
||||||
|
:lua print(#i1, #i2) -- both 'I'
|
||||||
|
:lua print(i1, i2, #i2(i1) == #i1(i2))
|
||||||
|
:function Mylen() dict
|
||||||
|
: return len(self.data)
|
||||||
|
: endfunction
|
||||||
|
:let mydict = {'data': [0, 1, 2, 3]}
|
||||||
|
:lua d = vim.eval('mydict'); d.len = vim.funcref('Mylen')
|
||||||
|
:echo mydict.len()
|
||||||
|
:lua l = d.len -- assign d as 'self'
|
||||||
|
:lua print(l())
|
||||||
|
<
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
6. Buffer userdata *lua-buffer*
|
||||||
|
|
||||||
Buffer userdata represent vim buffers. A buffer userdata "b" has the following
|
Buffer userdata represent vim buffers. A buffer userdata "b" has the following
|
||||||
properties and methods:
|
properties and methods:
|
||||||
@@ -281,7 +337,7 @@ Examples:
|
|||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Window userdata *lua-window*
|
7. Window userdata *lua-window*
|
||||||
|
|
||||||
Window objects represent vim windows. A window userdata "w" has the following
|
Window objects represent vim windows. A window userdata "w" has the following
|
||||||
properties and methods:
|
properties and methods:
|
||||||
@@ -313,7 +369,7 @@ Examples:
|
|||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
7. The luaeval function *lua-luaeval* *lua-eval*
|
8. The luaeval function *lua-luaeval* *lua-eval*
|
||||||
|
|
||||||
The (dual) equivalent of "vim.eval" for passing Lua values to Vim is
|
The (dual) equivalent of "vim.eval" for passing Lua values to Vim is
|
||||||
"luaeval". "luaeval" takes an expression string and an optional argument and
|
"luaeval". "luaeval" takes an expression string and an optional argument and
|
||||||
@@ -325,7 +381,13 @@ returns the result of the expression. It is semantically equivalent in Lua to:
|
|||||||
return chunk(arg) -- return typval
|
return chunk(arg) -- return typval
|
||||||
end
|
end
|
||||||
<
|
<
|
||||||
Note that "_A" receives the argument to "luaeval". Examples: >
|
Note that "_A" receives the argument to "luaeval". Lua numbers, strings, and
|
||||||
|
list, dict, and funcref userdata are converted to their Vim respective types,
|
||||||
|
while Lua booleans are converted to numbers. An error is thrown if conversion
|
||||||
|
of any of the remaining Lua types, including userdata other than lists, dicts,
|
||||||
|
and funcrefs, is attempted.
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
|
||||||
:echo luaeval('math.pi')
|
:echo luaeval('math.pi')
|
||||||
:lua a = vim.list():add('newlist')
|
:lua a = vim.list():add('newlist')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_mzsch.txt* For Vim version 7.3. Last change: 2012 Dec 17
|
*if_mzsch.txt* For Vim version 7.4. Last change: 2012 Dec 17
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sergey Khorev
|
VIM REFERENCE MANUAL by Sergey Khorev
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_ole.txt* For Vim version 7.3. Last change: 2008 Aug 16
|
*if_ole.txt* For Vim version 7.4. Last change: 2008 Aug 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_perl.txt* For Vim version 7.3. Last change: 2012 Oct 25
|
*if_perl.txt* For Vim version 7.4. Last change: 2013 Oct 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Sven Verdoolaege
|
VIM REFERENCE MANUAL by Sven Verdoolaege
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_pyth.txt* For Vim version 7.3. Last change: 2013 May 21
|
*if_pyth.txt* For Vim version 7.4. Last change: 2013 Jul 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Moore
|
VIM REFERENCE MANUAL by Paul Moore
|
||||||
@@ -12,9 +12,10 @@ The Python Interface to Vim *python* *Python*
|
|||||||
4. Range objects |python-range|
|
4. Range objects |python-range|
|
||||||
5. Window objects |python-window|
|
5. Window objects |python-window|
|
||||||
6. Tab page objects |python-tabpage|
|
6. Tab page objects |python-tabpage|
|
||||||
7. pyeval(), py3eval() Vim functions |python-pyeval|
|
7. vim.bindeval objects |python-bindeval-objects|
|
||||||
8. Dynamic loading |python-dynamic|
|
8. pyeval(), py3eval() Vim functions |python-pyeval|
|
||||||
9. Python 3 |python3|
|
9. Dynamic loading |python-dynamic|
|
||||||
|
10. Python 3 |python3|
|
||||||
|
|
||||||
{Vi does not have any of these commands}
|
{Vi does not have any of these commands}
|
||||||
|
|
||||||
@@ -22,6 +23,7 @@ The Python 2.x interface is available only when Vim was compiled with the
|
|||||||
|+python| feature.
|
|+python| feature.
|
||||||
The Python 3 interface is available only when Vim was compiled with the
|
The Python 3 interface is available only when Vim was compiled with the
|
||||||
|+python3| feature.
|
|+python3| feature.
|
||||||
|
Both can be available at the same time, but read |python-2-and-3|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Commands *python-commands*
|
1. Commands *python-commands*
|
||||||
@@ -171,47 +173,26 @@ vim.eval(str) *python-eval*
|
|||||||
'eval_expr', 'kind': 'f', 'filename': './src/eval.c'}]
|
'eval_expr', 'kind': 'f', 'filename': './src/eval.c'}]
|
||||||
|
|
||||||
vim.bindeval(str) *python-bindeval*
|
vim.bindeval(str) *python-bindeval*
|
||||||
Like |python-eval|, but
|
Like |python-eval|, but returns special objects described in
|
||||||
1. if expression evaluates to |List| or |Dictionary| it is returned as
|
|python-bindeval-objects|. These python objects let you modify (|List|
|
||||||
vimlist or vimdictionary python type that are connected to original
|
or |Dictionary|) or call (|Funcref|) vim objects.
|
||||||
list or dictionary. Thus modifications to these objects imply
|
|
||||||
modifications of the original.
|
|
||||||
|
|
||||||
Additionally, vim.List and vim.Dictionary type have read-write
|
vim.strwidth(str) *python-strwidth*
|
||||||
`.locked` attribute that returns
|
Like |strwidth()|: returns number of display cells str occupies, tab
|
||||||
Value Meaning ~
|
is counted as one cell.
|
||||||
zero Variable is not locked
|
|
||||||
vim.VAR_LOCKED Variable is locked, but can be unlocked
|
|
||||||
vim.VAR_FIXED Variable is locked and can't be unlocked
|
|
||||||
integer constants. If variable is not fixed, you can do
|
|
||||||
`var.locked=True` to lock it and `var.locked=False` to unlock.
|
|
||||||
There is no recursive locking like |:lockvar|! does. There is also
|
|
||||||
no way to lock a specific key or check whether it is locked (in any
|
|
||||||
case these locks are ignored by anything except |:let|: |extend()|
|
|
||||||
does not care, neither does python interface).
|
|
||||||
|
|
||||||
vim.Dictionary type also supports `.scope` attribute which is one
|
vim.foreach_rtp(callable) *python-foreach_rtp*
|
||||||
of
|
Call the given callable for each path in 'runtimepath' until either
|
||||||
Value Meaning ~
|
callable returns something but None, the exception is raised or there
|
||||||
zero Dictionary is not a scope one
|
are no longer paths. If stopped in case callable returned non-None,
|
||||||
vim.VAR_DEF_SCOPE Function-local or global scope dictionary
|
vim.foreach_rtp function returns the value returned by callable.
|
||||||
vim.VAR_SCOPE Other scope dictionary
|
|
||||||
|
|
||||||
2. if expression evaluates to a function reference, then it returns
|
|
||||||
callable vim.Function object. Use self keyword argument to assign
|
|
||||||
|self| object for dictionary functions.
|
|
||||||
|
|
||||||
Note: this function has the same behavior as |lua-eval| (except that
|
|
||||||
lua does not support running vim functions), |python-eval| is
|
|
||||||
kept for backwards compatibility in order not to make scripts
|
|
||||||
relying on outputs of vim.eval() being a copy of original or
|
|
||||||
vim.eval("1") returning a string.
|
|
||||||
|
|
||||||
You can use "List", "Dictionary" and "Function" vim module attributes
|
|
||||||
to test whether object has given type. These types are currently not
|
|
||||||
subclassable, neither they contain constructors, so you can use them
|
|
||||||
only for checks like `isinstance(obj, vim.List)`.
|
|
||||||
|
|
||||||
|
vim.chdir(*args, **kwargs) *python-chdir*
|
||||||
|
vim.fchdir(*args, **kwargs) *python-fchdir*
|
||||||
|
Run os.chdir or os.fchdir, then all appropriate vim stuff.
|
||||||
|
Note: you should not use these functions directly, use os.chdir and
|
||||||
|
os.fchdir instead. Behavior of vim.fchdir is undefined in case
|
||||||
|
os.fchdir does not exist.
|
||||||
|
|
||||||
Error object of the "vim" module
|
Error object of the "vim" module
|
||||||
|
|
||||||
@@ -245,12 +226,12 @@ vim.windows *python-windows*
|
|||||||
:py w in vim.windows # Membership test
|
:py w in vim.windows # Membership test
|
||||||
:py n = len(vim.windows) # Number of elements
|
:py n = len(vim.windows) # Number of elements
|
||||||
:py for w in vim.windows: # Sequential access
|
:py for w in vim.windows: # Sequential access
|
||||||
< Note: vim.windows object always accesses current tab page,.
|
< Note: vim.windows object always accesses current tab page.
|
||||||
|python-tabpage|.windows objects are bound to parent |python-tabpage|
|
|python-tabpage|.windows objects are bound to parent |python-tabpage|
|
||||||
object and always use windows from that tab page (or throw vim.error
|
object and always use windows from that tab page (or throw vim.error
|
||||||
in case tab page was deleted). You can keep a reference to both
|
in case tab page was deleted). You can keep a reference to both
|
||||||
without keeping a reference to vim module object or |python-tabpage|,
|
without keeping a reference to vim module object or |python-tabpage|,
|
||||||
they will not loose their properties in this case.
|
they will not lose their properties in this case.
|
||||||
|
|
||||||
vim.tabpages *python-tabpages*
|
vim.tabpages *python-tabpages*
|
||||||
A sequence object providing access to the list of vim tab pages. The
|
A sequence object providing access to the list of vim tab pages. The
|
||||||
@@ -326,6 +307,88 @@ Output from Python *python-output*
|
|||||||
supported, and may cause the program to crash. This should probably be
|
supported, and may cause the program to crash. This should probably be
|
||||||
fixed.
|
fixed.
|
||||||
|
|
||||||
|
*python2-directory* *python3-directory* *pythonx-directory*
|
||||||
|
Python 'runtimepath' handling *python-special-path*
|
||||||
|
|
||||||
|
In python vim.VIM_SPECIAL_PATH special directory is used as a replacement for
|
||||||
|
the list of paths found in 'runtimepath': with this directory in sys.path and
|
||||||
|
vim.path_hooks in sys.path_hooks python will try to load module from
|
||||||
|
{rtp}/python2 (or python3) and {rtp}/pythonx (for both python versions) for
|
||||||
|
each {rtp} found in 'runtimepath'.
|
||||||
|
|
||||||
|
Implementation is similar to the following, but written in C: >
|
||||||
|
|
||||||
|
from imp import find_module, load_module
|
||||||
|
import vim
|
||||||
|
import sys
|
||||||
|
|
||||||
|
class VimModuleLoader(object):
|
||||||
|
def __init__(self, module):
|
||||||
|
self.module = module
|
||||||
|
|
||||||
|
def load_module(self, fullname, path=None):
|
||||||
|
return self.module
|
||||||
|
|
||||||
|
def _find_module(fullname, oldtail, path):
|
||||||
|
idx = oldtail.find('.')
|
||||||
|
if idx > 0:
|
||||||
|
name = oldtail[:idx]
|
||||||
|
tail = oldtail[idx+1:]
|
||||||
|
fmr = find_module(name, path)
|
||||||
|
module = load_module(fullname[:-len(oldtail)] + name, *fmr)
|
||||||
|
return _find_module(fullname, tail, module.__path__)
|
||||||
|
else:
|
||||||
|
fmr = find_module(fullname, path)
|
||||||
|
return load_module(fullname, *fmr)
|
||||||
|
|
||||||
|
# It uses vim module itself in place of VimPathFinder class: it does not
|
||||||
|
# matter for python which object has find_module function attached to as
|
||||||
|
# an attribute.
|
||||||
|
class VimPathFinder(object):
|
||||||
|
@classmethod
|
||||||
|
def find_module(cls, fullname, path=None):
|
||||||
|
try:
|
||||||
|
return VimModuleLoader(_find_module(fullname, fullname, path or vim._get_paths()))
|
||||||
|
except ImportError:
|
||||||
|
return None
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def load_module(cls, fullname, path=None):
|
||||||
|
return _find_module(fullname, fullname, path or vim._get_paths())
|
||||||
|
|
||||||
|
def hook(path):
|
||||||
|
if path == vim.VIM_SPECIAL_PATH:
|
||||||
|
return VimPathFinder
|
||||||
|
else:
|
||||||
|
raise ImportError
|
||||||
|
|
||||||
|
sys.path_hooks.append(hook)
|
||||||
|
|
||||||
|
vim.VIM_SPECIAL_PATH *python-VIM_SPECIAL_PATH*
|
||||||
|
String constant used in conjunction with vim path hook. If path hook
|
||||||
|
installed by vim is requested to handle anything but path equal to
|
||||||
|
vim.VIM_SPECIAL_PATH constant it raises ImportError. In the only other
|
||||||
|
case it uses special loader.
|
||||||
|
|
||||||
|
Note: you must not use value of this constant directly, always use
|
||||||
|
vim.VIM_SPECIAL_PATH object.
|
||||||
|
|
||||||
|
vim.find_module(...) *python-find_module*
|
||||||
|
vim.path_hook(path) *python-path_hook*
|
||||||
|
Methods or objects used to implement path loading as described above.
|
||||||
|
You should not be using any of these directly except for vim.path_hook
|
||||||
|
in case you need to do something with sys.meta_path. It is not
|
||||||
|
guaranteed that any of the objects will exist in the future vim
|
||||||
|
versions.
|
||||||
|
|
||||||
|
vim._get_paths *python-_get_paths*
|
||||||
|
Methods returning a list of paths which will be searched for by path
|
||||||
|
hook. You should not rely on this method being present in future
|
||||||
|
versions, but can use it for debugging.
|
||||||
|
|
||||||
|
It returns a list of {rtp}/python2 (or {rtp}/python3) and
|
||||||
|
{rtp}/pythonx directories for each {rtp} in 'runtimepath'.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Buffer objects *python-buffer*
|
3. Buffer objects *python-buffer*
|
||||||
|
|
||||||
@@ -361,6 +424,13 @@ The buffer object attributes are:
|
|||||||
this object will raise KeyError. If option is
|
this object will raise KeyError. If option is
|
||||||
|global-local| and local value is missing getting it
|
|global-local| and local value is missing getting it
|
||||||
will return None.
|
will return None.
|
||||||
|
b.name String, RW. Contains buffer name (full path).
|
||||||
|
Note: when assigning to b.name |BufFilePre| and
|
||||||
|
|BufFilePost| autocommands are launched.
|
||||||
|
b.number Buffer number. Can be used as |python-buffers| key.
|
||||||
|
Read-only.
|
||||||
|
b.valid True or False. Buffer object becomes invalid when
|
||||||
|
corresponding buffer is wiped out.
|
||||||
|
|
||||||
The buffer object methods are:
|
The buffer object methods are:
|
||||||
b.append(str) Append a line to the buffer
|
b.append(str) Append a line to the buffer
|
||||||
@@ -465,6 +535,8 @@ Window attributes are:
|
|||||||
row, col (read-only) On-screen window position in display cells.
|
row, col (read-only) On-screen window position in display cells.
|
||||||
First position is zero.
|
First position is zero.
|
||||||
tabpage (read-only) Window tab page.
|
tabpage (read-only) Window tab page.
|
||||||
|
valid (read-write) True or False. Window object becomes invalid
|
||||||
|
when corresponding window is closed.
|
||||||
|
|
||||||
The height attribute is writable only if the screen is split horizontally.
|
The height attribute is writable only if the screen is split horizontally.
|
||||||
The width attribute is writable only if the screen is split vertically.
|
The width attribute is writable only if the screen is split vertically.
|
||||||
@@ -488,17 +560,124 @@ Tab page attributes are:
|
|||||||
windows Like |python-windows|, but for current tab page.
|
windows Like |python-windows|, but for current tab page.
|
||||||
vars The tab page |t:| variables.
|
vars The tab page |t:| variables.
|
||||||
window Current tabpage window.
|
window Current tabpage window.
|
||||||
|
valid True or False. Tab page object becomes invalid when
|
||||||
|
corresponding tab page is closed.
|
||||||
|
|
||||||
TabPage object type is available using "TabPage" attribute of vim module.
|
TabPage object type is available using "TabPage" attribute of vim module.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
7. pyeval() and py3eval() Vim functions *python-pyeval*
|
7. vim.bindeval objects *python-bindeval-objects*
|
||||||
|
|
||||||
|
vim.Dictionary object *python-Dictionary*
|
||||||
|
Dictionary-like object providing access to vim |Dictionary| type.
|
||||||
|
Attributes:
|
||||||
|
Attribute Description ~
|
||||||
|
locked One of *python-.locked*
|
||||||
|
Value Description ~
|
||||||
|
zero Variable is not locked
|
||||||
|
vim.VAR_LOCKED Variable is locked, but can be unlocked
|
||||||
|
vim.VAR_FIXED Variable is locked and can't be unlocked
|
||||||
|
Read-write. You can unlock locked variable by assigning
|
||||||
|
`True` or `False` to this attribute. No recursive locking
|
||||||
|
is supported.
|
||||||
|
scope One of
|
||||||
|
Value Description ~
|
||||||
|
zero Dictionary is not a scope one
|
||||||
|
vim.VAR_DEF_SCOPE |g:| or |l:| dictionary
|
||||||
|
vim.VAR_SCOPE Other scope dictionary,
|
||||||
|
see |internal-variables|
|
||||||
|
Methods (note: methods do not support keyword arguments):
|
||||||
|
Method Description ~
|
||||||
|
keys() Returns a list with dictionary keys.
|
||||||
|
values() Returns a list with dictionary values.
|
||||||
|
items() Returns a list of 2-tuples with dictionary contents.
|
||||||
|
update(iterable), update(dictionary), update(**kwargs)
|
||||||
|
Adds keys to dictionary.
|
||||||
|
get(key[, default=None])
|
||||||
|
Obtain key from dictionary, returning the default if it is
|
||||||
|
not present.
|
||||||
|
pop(key[, default])
|
||||||
|
Remove specified key from dictionary and return
|
||||||
|
corresponding value. If key is not found and default is
|
||||||
|
given returns the default, otherwise raises KeyError.
|
||||||
|
popitem()
|
||||||
|
Remove random key from dictionary and return (key, value)
|
||||||
|
pair.
|
||||||
|
has_key(key)
|
||||||
|
Check whether dictionary contains specified key, similar
|
||||||
|
to `key in dict`.
|
||||||
|
|
||||||
|
__new__(), __new__(iterable), __new__(dictionary), __new__(update)
|
||||||
|
You can use `vim.Dictionary()` to create new vim
|
||||||
|
dictionaries. `d=vim.Dictionary(arg)` is the same as
|
||||||
|
`d=vim.bindeval('{}');d.update(arg)`. Without arguments
|
||||||
|
constructs empty dictionary.
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
d = vim.Dictionary(food="bar") # Constructor
|
||||||
|
d['a'] = 'b' # Item assignment
|
||||||
|
print d['a'] # getting item
|
||||||
|
d.update({'c': 'd'}) # .update(dictionary)
|
||||||
|
d.update(e='f') # .update(**kwargs)
|
||||||
|
d.update((('g', 'h'), ('i', 'j'))) # .update(iterable)
|
||||||
|
for key in d.keys(): # .keys()
|
||||||
|
for val in d.values(): # .values()
|
||||||
|
for key, val in d.items(): # .items()
|
||||||
|
print isinstance(d, vim.Dictionary) # True
|
||||||
|
for key in d: # Iteration over keys
|
||||||
|
class Dict(vim.Dictionary): # Subclassing
|
||||||
|
<
|
||||||
|
Note: when iterating over keys you should not modify dictionary.
|
||||||
|
|
||||||
|
vim.List object *python-List*
|
||||||
|
Sequence-like object providing access to vim |List| type.
|
||||||
|
Supports `.locked` attribute, see |python-.locked|. Also supports the
|
||||||
|
following methods:
|
||||||
|
Method Description ~
|
||||||
|
extend(item) Add items to the list.
|
||||||
|
|
||||||
|
__new__(), __new__(iterable)
|
||||||
|
You can use `vim.List()` to create new vim lists.
|
||||||
|
`l=vim.List(iterable)` is the same as
|
||||||
|
`l=vim.bindeval('[]');l.extend(iterable)`. Without
|
||||||
|
arguments constructs empty list.
|
||||||
|
Examples: >
|
||||||
|
l = vim.List("abc") # Constructor, result: ['a', 'b', 'c']
|
||||||
|
l.extend(['abc', 'def']) # .extend() method
|
||||||
|
print l[1:] # slicing
|
||||||
|
l[:0] = ['ghi', 'jkl'] # slice assignment
|
||||||
|
print l[0] # getting item
|
||||||
|
l[0] = 'mno' # assignment
|
||||||
|
for i in l: # iteration
|
||||||
|
print isinstance(l, vim.List) # True
|
||||||
|
class List(vim.List): # Subclassing
|
||||||
|
|
||||||
|
vim.Function object *python-Function*
|
||||||
|
Function-like object, acting like vim |Funcref| object. Supports `.name`
|
||||||
|
attribute and is callable. Accepts special keyword argument `self`, see
|
||||||
|
|Dictionary-function|. You can also use `vim.Function(name)` constructor,
|
||||||
|
it is the same as `vim.bindeval('function(%s)'%json.dumps(name))`.
|
||||||
|
|
||||||
|
Examples: >
|
||||||
|
f = vim.Function('tr') # Constructor
|
||||||
|
print f('abc', 'a', 'b') # Calls tr('abc', 'a', 'b')
|
||||||
|
vim.command('''
|
||||||
|
function DictFun() dict
|
||||||
|
return self
|
||||||
|
endfunction
|
||||||
|
''')
|
||||||
|
f = vim.bindeval('function("DictFun")')
|
||||||
|
print f(self={}) # Like call('DictFun', [], {})
|
||||||
|
print isinstance(f, vim.Function) # True
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
8. pyeval() and py3eval() Vim functions *python-pyeval*
|
||||||
|
|
||||||
To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()|
|
To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()|
|
||||||
functions to evaluate Python expressions and pass their values to VimL.
|
functions to evaluate Python expressions and pass their values to VimL.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
8. Dynamic loading *python-dynamic*
|
9. Dynamic loading *python-dynamic*
|
||||||
|
|
||||||
On MS-Windows the Python library can be loaded dynamically. The |:version|
|
On MS-Windows the Python library can be loaded dynamically. The |:version|
|
||||||
output then includes |+python/dyn|.
|
output then includes |+python/dyn|.
|
||||||
@@ -515,7 +694,7 @@ Currently the name is "python24.dll". That is for Python 2.4. To know for
|
|||||||
sure edit "gvim.exe" and search for "python\d*.dll\c".
|
sure edit "gvim.exe" and search for "python\d*.dll\c".
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
9. Python 3 *python3*
|
10. Python 3 *python3*
|
||||||
|
|
||||||
*:py3* *:python3*
|
*:py3* *:python3*
|
||||||
The `:py3` and `:python3` commands work similar to `:python`. A simple check
|
The `:py3` and `:python3` commands work similar to `:python`. A simple check
|
||||||
@@ -533,7 +712,7 @@ Vim can be built in four ways (:version output):
|
|||||||
3. Python 3 support only (-python, +python3 or +python3/dyn)
|
3. Python 3 support only (-python, +python3 or +python3/dyn)
|
||||||
4. Python 2 and 3 support (+python/dyn, +python3/dyn)
|
4. Python 2 and 3 support (+python/dyn, +python3/dyn)
|
||||||
|
|
||||||
Some more details on the special case 4:
|
Some more details on the special case 4: *python-2-and-3*
|
||||||
|
|
||||||
When Python 2 and Python 3 are both supported they must be loaded dynamically.
|
When Python 2 and Python 3 are both supported they must be loaded dynamically.
|
||||||
|
|
||||||
@@ -562,6 +741,11 @@ To work around such problems there are these options:
|
|||||||
3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This
|
3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This
|
||||||
may crash Vim though.
|
may crash Vim though.
|
||||||
|
|
||||||
|
*E880*
|
||||||
|
Raising SystemExit exception in python isn't endorsed way to quit vim, use: >
|
||||||
|
:py vim.command("qall!")
|
||||||
|
<
|
||||||
|
|
||||||
*has-python*
|
*has-python*
|
||||||
You can test what Python version is available with: >
|
You can test what Python version is available with: >
|
||||||
if has('python')
|
if has('python')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_ruby.txt* For Vim version 7.3. Last change: 2012 Aug 02
|
*if_ruby.txt* For Vim version 7.4. Last change: 2012 Aug 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Shugo Maeda
|
VIM REFERENCE MANUAL by Shugo Maeda
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_sniff.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*if_sniff.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL
|
VIM REFERENCE MANUAL
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*if_tcl.txt* For Vim version 7.3. Last change: 2012 Aug 02
|
*if_tcl.txt* For Vim version 7.4. Last change: 2012 Aug 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ingo Wilken
|
VIM REFERENCE MANUAL by Ingo Wilken
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*indent.txt* For Vim version 7.3. Last change: 2013 May 20
|
*indent.txt* For Vim version 7.4. Last change: 2013 Nov 05
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -545,10 +545,12 @@ The examples below assume a 'shiftwidth' of 4.
|
|||||||
(default 70 lines).
|
(default 70 lines).
|
||||||
|
|
||||||
*cino-#*
|
*cino-#*
|
||||||
#N When N is non-zero recognize shell/Perl comments, starting with
|
#N When N is non-zero recognize shell/Perl comments starting with
|
||||||
'#'. Default N is zero: don't recognize '#' comments. Note
|
'#', do not recognize preprocessor lines; allow right-shifting
|
||||||
that lines starting with # will still be seen as preprocessor
|
lines that start with "#".
|
||||||
lines.
|
When N is zero (default): don't recognize '#' comments, do
|
||||||
|
recognize preprocessor lines; right-shifting lines that start
|
||||||
|
with "#" does not work.
|
||||||
|
|
||||||
|
|
||||||
The defaults, spelled out in full, are:
|
The defaults, spelled out in full, are:
|
||||||
@@ -556,7 +558,7 @@ The defaults, spelled out in full, are:
|
|||||||
c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0
|
c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0
|
||||||
|
|
||||||
Vim puts a line in column 1 if:
|
Vim puts a line in column 1 if:
|
||||||
- It starts with '#' (preprocessor directives), if 'cinkeys' contains '#'.
|
- It starts with '#' (preprocessor directives), if 'cinkeys' contains '#0'.
|
||||||
- It starts with a label (a keyword followed by ':', other than "case" and
|
- It starts with a label (a keyword followed by ':', other than "case" and
|
||||||
"default") and 'cinoptions' does not contain an 'L' entry with a positive
|
"default") and 'cinoptions' does not contain an 'L' entry with a positive
|
||||||
value.
|
value.
|
||||||
@@ -581,8 +583,8 @@ CLOJURE *ft-clojure-indent* *clojure-indent*
|
|||||||
|
|
||||||
Clojure indentation differs somewhat from traditional Lisps, due in part to
|
Clojure indentation differs somewhat from traditional Lisps, due in part to
|
||||||
the use of square and curly brackets, and otherwise by community convention.
|
the use of square and curly brackets, and otherwise by community convention.
|
||||||
These conventions are not always universally followed, so the Clojure indent
|
These conventions are not universally followed, so the Clojure indent script
|
||||||
script offers a few configurable options, listed below.
|
offers a few configurable options, listed below.
|
||||||
|
|
||||||
If the current vim does not include searchpairpos(), the indent script falls
|
If the current vim does not include searchpairpos(), the indent script falls
|
||||||
back to normal 'lisp' indenting, and the following options are ignored.
|
back to normal 'lisp' indenting, and the following options are ignored.
|
||||||
@@ -729,6 +731,50 @@ buffer-local variable as follows >
|
|||||||
let b:fortran_indent_less=1
|
let b:fortran_indent_less=1
|
||||||
|
|
||||||
|
|
||||||
|
HTML *ft-html-indent* *html-indent* *html-indenting*
|
||||||
|
|
||||||
|
This is about variables you can set in your vimrc to customize HTML indenting.
|
||||||
|
|
||||||
|
You can set the indent for the first line after <script> and <style>
|
||||||
|
"blocktags" (default "zero"): >
|
||||||
|
|
||||||
|
:let g:html_indent_script1 = "inc"
|
||||||
|
:let g:html_indent_style1 = "inc"
|
||||||
|
<
|
||||||
|
VALUE MEANING ~
|
||||||
|
"zero" zero indent
|
||||||
|
"auto" auto indent (same indent as the blocktag)
|
||||||
|
"inc" auto indent + one indent step
|
||||||
|
|
||||||
|
Many tags increase the indent for what follows per default (see "Add Indent
|
||||||
|
Tags" in the script). You can add further tags with: >
|
||||||
|
|
||||||
|
:let g:html_indent_inctags = "html,body,head,tbody"
|
||||||
|
|
||||||
|
You can also remove such tags with: >
|
||||||
|
|
||||||
|
:let g:html_indent_autotags = "th,td,tr,tfoot,thead"
|
||||||
|
|
||||||
|
Default value is empty for both variables. Note: the initial "inctags" are
|
||||||
|
only defined once per Vim session.
|
||||||
|
|
||||||
|
User variables are only read when the script is sourced. To enable your
|
||||||
|
changes during a session, without reloading the HTML file, you can manually
|
||||||
|
do: >
|
||||||
|
|
||||||
|
:call HtmlIndent_CheckUserSettings()
|
||||||
|
|
||||||
|
Detail:
|
||||||
|
Calculation of indent inside "blocktags" with "alien" content:
|
||||||
|
BLOCKTAG INDENT EXPR WHEN APPLICABLE ~
|
||||||
|
<script> : {customizable} if first line of block
|
||||||
|
: cindent(v:lnum) if attributes empty or contain "java"
|
||||||
|
: -1 else (vbscript, tcl, ...)
|
||||||
|
<style> : {customizable} if first line of block
|
||||||
|
: GetCSSIndent() else
|
||||||
|
<!-- --> : -1
|
||||||
|
|
||||||
|
|
||||||
PHP *ft-php-indent* *php-indent* *php-indenting*
|
PHP *ft-php-indent* *php-indent* *php-indenting*
|
||||||
|
|
||||||
NOTE: PHP files will be indented correctly only if PHP |syntax| is active.
|
NOTE: PHP files will be indented correctly only if PHP |syntax| is active.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 7.3. Last change: 2013 May 17
|
*index.txt* For Vim version 7.4. Last change: 2013 Nov 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -801,6 +801,10 @@ tag char note action in Normal mode ~
|
|||||||
|zE| zE eliminate all folds
|
|zE| zE eliminate all folds
|
||||||
|zF| zF create a fold for N lines
|
|zF| zF create a fold for N lines
|
||||||
|zG| zG mark word as good spelled word
|
|zG| zG mark word as good spelled word
|
||||||
|
|zH| zH when 'wrap' off scroll half a screenwidth
|
||||||
|
to the right
|
||||||
|
|zL| zL when 'wrap' off scroll half a screenwidth
|
||||||
|
to the left
|
||||||
|zM| zM set 'foldlevel' to zero
|
|zM| zM set 'foldlevel' to zero
|
||||||
|zN| zN set 'foldenable'
|
|zN| zN set 'foldenable'
|
||||||
|zO| zO open folds recursively
|
|zO| zO open folds recursively
|
||||||
@@ -1187,9 +1191,12 @@ tag command action ~
|
|||||||
|:digraphs| :dig[raphs] show or enter digraphs
|
|:digraphs| :dig[raphs] show or enter digraphs
|
||||||
|:display| :di[splay] display registers
|
|:display| :di[splay] display registers
|
||||||
|:djump| :dj[ump] jump to #define
|
|:djump| :dj[ump] jump to #define
|
||||||
|:dlist| :dl[ist] list #defines
|
|:dl| :dl short for |:delete| with the 'l' flag
|
||||||
|
|:dl| :del[ete]l short for |:delete| with the 'l' flag
|
||||||
|
|:dlist| :dli[st] list #defines
|
||||||
|:doautocmd| :do[autocmd] apply autocommands to current buffer
|
|:doautocmd| :do[autocmd] apply autocommands to current buffer
|
||||||
|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
|
|:doautoall| :doautoa[ll] apply autocommands for all loaded buffers
|
||||||
|
|:dp| :d[elete]p short for |:delete| with the 'p' flag
|
||||||
|:drop| :dr[op] jump to window editing file or edit file in
|
|:drop| :dr[op] jump to window editing file or edit file in
|
||||||
current window
|
current window
|
||||||
|:dsearch| :ds[earch] list one #define
|
|:dsearch| :ds[earch] list one #define
|
||||||
@@ -1268,6 +1275,7 @@ tag command action ~
|
|||||||
|:keepalt| :keepa[lt] following command keeps the alternate file
|
|:keepalt| :keepa[lt] following command keeps the alternate file
|
||||||
|:keepmarks| :kee[pmarks] following command keeps marks where they are
|
|:keepmarks| :kee[pmarks] following command keeps marks where they are
|
||||||
|:keepjumps| :keepj[umps] following command keeps jumplist and marks
|
|:keepjumps| :keepj[umps] following command keeps jumplist and marks
|
||||||
|
|:keeppatterns| :keepp[atterns] following command keeps search pattern history
|
||||||
|:lNext| :lN[ext] go to previous entry in location list
|
|:lNext| :lN[ext] go to previous entry in location list
|
||||||
|:lNfile| :lNf[ile] go to last entry in previous file
|
|:lNfile| :lNf[ile] go to last entry in previous file
|
||||||
|:list| :l[ist] print lines
|
|:list| :l[ist] print lines
|
||||||
@@ -1510,6 +1518,7 @@ tag command action ~
|
|||||||
|:sview| :sv[iew] split window and edit file read-only
|
|:sview| :sv[iew] split window and edit file read-only
|
||||||
|:swapname| :sw[apname] show the name of the current swap file
|
|:swapname| :sw[apname] show the name of the current swap file
|
||||||
|:syntax| :sy[ntax] syntax highlighting
|
|:syntax| :sy[ntax] syntax highlighting
|
||||||
|
|:syntime| :synti[me] measure syntax highlighting speed
|
||||||
|:syncbind| :sync[bind] sync scroll binding
|
|:syncbind| :sync[bind] sync scroll binding
|
||||||
|:t| :t same as ":copy"
|
|:t| :t same as ":copy"
|
||||||
|:tNext| :tN[ext] jump to previous matching tag
|
|:tNext| :tN[ext] jump to previous matching tag
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*insert.txt* For Vim version 7.3. Last change: 2013 Apr 12
|
*insert.txt* For Vim version 7.4. Last change: 2013 Jul 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -136,6 +136,8 @@ CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R*
|
|||||||
too.
|
too.
|
||||||
When the result is a Float it's automatically
|
When the result is a Float it's automatically
|
||||||
converted to a String.
|
converted to a String.
|
||||||
|
When append() or setline() is invoked the undo
|
||||||
|
sequence will be broken.
|
||||||
See |registers| about registers. {not in Vi}
|
See |registers| about registers. {not in Vi}
|
||||||
|
|
||||||
CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R*
|
CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R*
|
||||||
@@ -1357,7 +1359,7 @@ Complete:
|
|||||||
|
|
||||||
Completion works in separate JavaScript files (&ft==javascript), inside of
|
Completion works in separate JavaScript files (&ft==javascript), inside of
|
||||||
<script> tag of (X)HTML and in values of event attributes (including scanning
|
<script> tag of (X)HTML and in values of event attributes (including scanning
|
||||||
of external files.
|
of external files).
|
||||||
|
|
||||||
DOM compatibility
|
DOM compatibility
|
||||||
|
|
||||||
@@ -1468,9 +1470,9 @@ knows how to color highlight. It can be used for any filetype and provides a
|
|||||||
minimal language-sensitive completion.
|
minimal language-sensitive completion.
|
||||||
|
|
||||||
To enable syntax code completion you can run: >
|
To enable syntax code completion you can run: >
|
||||||
setlocal omnifunc=syntaxcomplete#Complete
|
setlocal omnifunc=syntaxcomplete#Complete
|
||||||
|
|
||||||
You can automate this by placing the following in your vimrc (after any
|
You can automate this by placing the following in your |.vimrc| (after any
|
||||||
":filetype" command): >
|
":filetype" command): >
|
||||||
if has("autocmd") && exists("+omnifunc")
|
if has("autocmd") && exists("+omnifunc")
|
||||||
autocmd Filetype *
|
autocmd Filetype *
|
||||||
@@ -1487,7 +1489,7 @@ customize which syntax groups to include or exclude from the list. Let's have
|
|||||||
a look at the PHP filetype to see how this works.
|
a look at the PHP filetype to see how this works.
|
||||||
|
|
||||||
If you edit a file called, index.php, run the following command: >
|
If you edit a file called, index.php, run the following command: >
|
||||||
:syntax list
|
syntax list
|
||||||
|
|
||||||
The first thing you will notice is that there are many different syntax groups.
|
The first thing you will notice is that there are many different syntax groups.
|
||||||
The PHP language can include elements from different languages like HTML,
|
The PHP language can include elements from different languages like HTML,
|
||||||
@@ -1496,24 +1498,37 @@ that begin with the filetype, "php", in this case. For example these syntax
|
|||||||
groups are included by default with the PHP: phpEnvVar, phpIntVar,
|
groups are included by default with the PHP: phpEnvVar, phpIntVar,
|
||||||
phpFunctions.
|
phpFunctions.
|
||||||
|
|
||||||
The PHP language has an enormous number of items which it knows how to syntax
|
If you wish non-filetype syntax items to also be included, you can use a
|
||||||
highlight. This means these items will be available within the omni
|
regular expression syntax (added in version 13.0 of autoload\syntaxcomplete.vim)
|
||||||
completion list. Some people may find this list unwieldy or are only
|
to add items. Looking at the output from ":syntax list" while editing a PHP file
|
||||||
interested in certain items.
|
I can see some of these entries: >
|
||||||
|
htmlArg,htmlTag,htmlTagName,javaScriptStatement,javaScriptGlobalObjects
|
||||||
|
|
||||||
There are two ways to prune this list (if necessary). If you find certain
|
To pick up any JavaScript and HTML keyword syntax groups while editing a PHP
|
||||||
syntax groups you do not wish displayed you can add the following to your
|
file, you can use 3 different regexs, one for each language. Or you can
|
||||||
vimrc: >
|
simply restrict the include groups to a particular value, without using
|
||||||
let g:omni_syntax_group_exclude_php = 'phpCoreConstant,phpConstant'
|
a regex string: >
|
||||||
|
let g:omni_syntax_group_include_php = 'php\w\+,javaScript\w\+,html\w\+'
|
||||||
|
let g:omni_syntax_group_include_php = 'phpFunctions,phpMethods'
|
||||||
|
<
|
||||||
|
The basic form of this variable is: >
|
||||||
|
let g:omni_syntax_group_include_{filetype} = 'regex,comma,separated'
|
||||||
|
|
||||||
|
The PHP language has an enormous number of items which it knows how to syntax
|
||||||
|
highlight. These items will be available within the omni completion list.
|
||||||
|
|
||||||
|
Some people may find this list unwieldy or are only interested in certain
|
||||||
|
items. There are two ways to prune this list (if necessary). If you find
|
||||||
|
certain syntax groups you do not wish displayed you can use two different
|
||||||
|
methods to identify these groups. The first specifically lists the syntax
|
||||||
|
groups by name. The second uses a regular expression to identify both
|
||||||
|
syntax groups. Simply add one the following to your vimrc: >
|
||||||
|
let g:omni_syntax_group_exclude_php = 'phpCoreConstant,phpConstant'
|
||||||
|
let g:omni_syntax_group_exclude_php = 'php\w*Constant'
|
||||||
|
|
||||||
Add as many syntax groups to this list by comma separating them. The basic
|
Add as many syntax groups to this list by comma separating them. The basic
|
||||||
form of this variable is: >
|
form of this variable is: >
|
||||||
let g:omni_syntax_group_exclude_{filetype} = 'comma,separated,list'
|
let g:omni_syntax_group_exclude_{filetype} = 'regex,comma,separated'
|
||||||
|
|
||||||
For completeness the opposite is also true. Creating this variable in your
|
|
||||||
vimrc will only include the items in the phpFunctions and phpMethods syntax
|
|
||||||
groups: >
|
|
||||||
let g:omni_syntax_group_include_php = 'phpFunctions,phpMethods'
|
|
||||||
|
|
||||||
You can create as many of these variables as you need, varying only the
|
You can create as many of these variables as you need, varying only the
|
||||||
filetype at the end of the variable name.
|
filetype at the end of the variable name.
|
||||||
@@ -1554,6 +1569,9 @@ To retrieve only the syntax items for the sqlOperator syntax group: >
|
|||||||
To retrieve all syntax items for both the sqlOperator and sqlType groups: >
|
To retrieve all syntax items for both the sqlOperator and sqlType groups: >
|
||||||
echo OmniSyntaxList( ['sqlOperator', 'sqlType'] )
|
echo OmniSyntaxList( ['sqlOperator', 'sqlType'] )
|
||||||
|
|
||||||
|
A regular expression can also be used: >
|
||||||
|
echo OmniSyntaxList( ['sql\w\+'] )
|
||||||
|
|
||||||
From within a plugin, you would typically assign the output to a List: >
|
From within a plugin, you would typically assign the output to a List: >
|
||||||
let myKeywords = []
|
let myKeywords = []
|
||||||
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
let myKeywords = OmniSyntaxList( ['sqlKeyword'] )
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*intro.txt* For Vim version 7.3. Last change: 2012 Sep 05
|
*intro.txt* For Vim version 7.4. Last change: 2013 Jun 17
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -261,6 +261,7 @@ Vim would never have become what it is now, without the help of these people!
|
|||||||
I wish to thank all the people that sent me bug reports and suggestions. The
|
I wish to thank all the people that sent me bug reports and suggestions. The
|
||||||
list is too long to mention them all here. Vim would not be the same without
|
list is too long to mention them all here. Vim would not be the same without
|
||||||
the ideas from all these people: They keep Vim alive!
|
the ideas from all these people: They keep Vim alive!
|
||||||
|
*love* *peace* *friendship* *gross-national-happiness*
|
||||||
|
|
||||||
|
|
||||||
In this documentation there are several references to other versions of Vi:
|
In this documentation there are several references to other versions of Vi:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 7.3. Last change: 2013 May 05
|
*map.txt* For Vim version 7.4. Last change: 2013 Aug 22
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -159,9 +159,9 @@ type "a", then "bar" will get inserted.
|
|||||||
|
|
||||||
1.2 SPECIAL ARGUMENTS *:map-arguments*
|
1.2 SPECIAL ARGUMENTS *:map-arguments*
|
||||||
|
|
||||||
"<buffer>", "<silent>", "<special>", "<script>", "<expr>" and "<unique>" can
|
"<buffer>", "<nowait>", "<silent>", "<special>", "<script>", "<expr>" and
|
||||||
be used in any order. They must appear right after the command, before any
|
"<unique>" can be used in any order. They must appear right after the
|
||||||
other arguments.
|
command, before any other arguments.
|
||||||
|
|
||||||
*:map-local* *:map-<buffer>* *E224* *E225*
|
*:map-local* *:map-<buffer>* *E224* *E225*
|
||||||
If the first argument to one of these commands is "<buffer>" the mapping will
|
If the first argument to one of these commands is "<buffer>" the mapping will
|
||||||
@@ -169,12 +169,23 @@ be effective in the current buffer only. Example: >
|
|||||||
:map <buffer> ,w /[.,;]<CR>
|
:map <buffer> ,w /[.,;]<CR>
|
||||||
Then you can map ",w" to something else in another buffer: >
|
Then you can map ",w" to something else in another buffer: >
|
||||||
:map <buffer> ,w /[#&!]<CR>
|
:map <buffer> ,w /[#&!]<CR>
|
||||||
The local buffer mappings are used before the global ones.
|
The local buffer mappings are used before the global ones. See <nowait> below
|
||||||
|
to make a short local mapping not taking effect when a longer global one
|
||||||
|
exists.
|
||||||
The "<buffer>" argument can also be used to clear mappings: >
|
The "<buffer>" argument can also be used to clear mappings: >
|
||||||
:unmap <buffer> ,w
|
:unmap <buffer> ,w
|
||||||
:mapclear <buffer>
|
:mapclear <buffer>
|
||||||
Local mappings are also cleared when a buffer is deleted, but not when it is
|
Local mappings are also cleared when a buffer is deleted, but not when it is
|
||||||
unloaded. Just like local option values.
|
unloaded. Just like local option values.
|
||||||
|
Also see |map-precedence|.
|
||||||
|
|
||||||
|
*:map-<nowait>* *:map-nowait*
|
||||||
|
When defining a buffer-local mapping for "," there may be a global mapping
|
||||||
|
that starts with ",". Then you need to type another character for Vim to know
|
||||||
|
whether to use the "," mapping or the longer one. To avoid this add the
|
||||||
|
<nowait> argument. Then the mapping will be used when it matches, Vim does
|
||||||
|
not wait for more characters to be typed. However, if the characters were
|
||||||
|
already type they are used.
|
||||||
|
|
||||||
*:map-<silent>* *:map-silent*
|
*:map-<silent>* *:map-silent*
|
||||||
To define a mapping which will not be echoed on the command line, add
|
To define a mapping which will not be echoed on the command line, add
|
||||||
@@ -369,11 +380,12 @@ it's just used here for this situation.
|
|||||||
The simplest way to load a set of related language mappings is by using the
|
The simplest way to load a set of related language mappings is by using the
|
||||||
'keymap' option. See |45.5|.
|
'keymap' option. See |45.5|.
|
||||||
In Insert mode and in Command-line mode the mappings can be disabled with
|
In Insert mode and in Command-line mode the mappings can be disabled with
|
||||||
the CTRL-^ command |i_CTRL-^| |c_CTRL-^|. When starting to enter a normal
|
the CTRL-^ command |i_CTRL-^| |c_CTRL-^|. These commands change the value of
|
||||||
command line (not a search pattern) the mappings are disabled until a CTRL-^
|
the 'iminsert' option. When starting to enter a normal command line (not a
|
||||||
is typed. The state last used is remembered for Insert mode and Search
|
search pattern) the mappings are disabled until a CTRL-^ is typed. The state
|
||||||
patterns separately. The state for Insert mode is also used when typing a
|
last used is remembered for Insert mode and Search patterns separately. The
|
||||||
character as an argument to command like "f" or "t".
|
state for Insert mode is also used when typing a character as an argument to
|
||||||
|
command like "f" or "t".
|
||||||
Language mappings will never be applied to already mapped characters. They
|
Language mappings will never be applied to already mapped characters. They
|
||||||
are only used for typed characters. This assumes that the language mapping
|
are only used for typed characters. This assumes that the language mapping
|
||||||
was already done when typing the mapping.
|
was already done when typing the mapping.
|
||||||
@@ -586,7 +598,7 @@ this (see |<>|). Example: >
|
|||||||
To avoid mapping of the characters you type in insert or Command-line mode,
|
To avoid mapping of the characters you type in insert or Command-line mode,
|
||||||
type a CTRL-V first. The mapping in Insert mode is disabled if the 'paste'
|
type a CTRL-V first. The mapping in Insert mode is disabled if the 'paste'
|
||||||
option is on.
|
option is on.
|
||||||
|
*map-error*
|
||||||
Note that when an error is encountered (that causes an error message or beep)
|
Note that when an error is encountered (that causes an error message or beep)
|
||||||
the rest of the mapping is not executed. This is Vi-compatible.
|
the rest of the mapping is not executed. This is Vi-compatible.
|
||||||
|
|
||||||
@@ -654,6 +666,17 @@ option). After that it assumes that the 'q' is to be interpreted as such. If
|
|||||||
you type slowly, or your system is slow, reset the 'timeout' option. Then you
|
you type slowly, or your system is slow, reset the 'timeout' option. Then you
|
||||||
might want to set the 'ttimeout' option.
|
might want to set the 'ttimeout' option.
|
||||||
|
|
||||||
|
*map-precedence*
|
||||||
|
Buffer-local mappings (defined using |:map-<buffer>|) take precedence over
|
||||||
|
global mappings. When a buffer-local mapping is the same as a global mapping,
|
||||||
|
Vim will use the buffer-local mapping. In addition, Vim will use a complete
|
||||||
|
mapping immediately if it was defined with <nowait>, even if a longer mapping
|
||||||
|
has the same prefix. For example, given the following two mappings: >
|
||||||
|
:map <buffer> <nowait> \a :echo "Local \a"<CR>
|
||||||
|
:map \abc :echo "Global \abc"<CR>
|
||||||
|
When typing \a the buffer-local mapping will be used immediately. Vim will
|
||||||
|
not wait for more characters to see if the user might be typing \abc.
|
||||||
|
|
||||||
*map-keys-fails*
|
*map-keys-fails*
|
||||||
There are situations where key codes might not be recognized:
|
There are situations where key codes might not be recognized:
|
||||||
- Vim can only read part of the key code. Mostly this is only the first
|
- Vim can only read part of the key code. Mostly this is only the first
|
||||||
@@ -1242,6 +1265,7 @@ completion can be enabled:
|
|||||||
-complete=shellcmd Shell command
|
-complete=shellcmd Shell command
|
||||||
-complete=sign |:sign| suboptions
|
-complete=sign |:sign| suboptions
|
||||||
-complete=syntax syntax file names |'syntax'|
|
-complete=syntax syntax file names |'syntax'|
|
||||||
|
-complete=syntime |:syntime| suboptions
|
||||||
-complete=tag tags
|
-complete=tag tags
|
||||||
-complete=tag_listfiles tags, file names are shown when CTRL-D is hit
|
-complete=tag_listfiles tags, file names are shown when CTRL-D is hit
|
||||||
-complete=user user names
|
-complete=user user names
|
||||||
@@ -1335,6 +1359,8 @@ There are some special cases as well:
|
|||||||
In the cases of the -count and -register attributes, if the optional argument
|
In the cases of the -count and -register attributes, if the optional argument
|
||||||
is supplied, it is removed from the argument list and is available to the
|
is supplied, it is removed from the argument list and is available to the
|
||||||
replacement text separately.
|
replacement text separately.
|
||||||
|
Note that these arguments can be abbreviated, but that is a deprecated
|
||||||
|
feature. Use the full name for new scripts.
|
||||||
|
|
||||||
Replacement text
|
Replacement text
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*mbyte.txt* For Vim version 7.3. Last change: 2013 May 18
|
*mbyte.txt* For Vim version 7.4. Last change: 2013 May 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*message.txt* For Vim version 7.3. Last change: 2013 Feb 23
|
*message.txt* For Vim version 7.4. Last change: 2013 Feb 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*mlang.txt* For Vim version 7.3. Last change: 2012 Jan 15
|
*mlang.txt* For Vim version 7.4. Last change: 2012 Jan 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*motion.txt* For Vim version 7.3. Last change: 2013 Mar 07
|
*motion.txt* For Vim version 7.4. Last change: 2013 Jul 17
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -236,6 +236,8 @@ g$ or g<End> When lines wrap ('wrap' on): To the last character of
|
|||||||
the line is not on the screen or when a count is used.
|
the line is not on the screen or when a count is used.
|
||||||
Additionally, vertical movements keep the column,
|
Additionally, vertical movements keep the column,
|
||||||
instead of going to the end of the line.
|
instead of going to the end of the line.
|
||||||
|
When 'virtualedit' is enabled moves to the end of the
|
||||||
|
screen line.
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
|
|
||||||
*bar*
|
*bar*
|
||||||
@@ -1083,7 +1085,8 @@ only once.
|
|||||||
|
|
||||||
When the |:keepjumps| command modifier is used, jumps are not stored in the
|
When the |:keepjumps| command modifier is used, jumps are not stored in the
|
||||||
jumplist. Jumps are also not stored in other cases, e.g., in a |:global|
|
jumplist. Jumps are also not stored in other cases, e.g., in a |:global|
|
||||||
command. You can explicitly add a jump by setting the ' mark.
|
command. You can explicitly add a jump by setting the ' mark with "m'". Note
|
||||||
|
that calling setpos() does not do this.
|
||||||
|
|
||||||
After the CTRL-O command that got you into line 1154 you could give another
|
After the CTRL-O command that got you into line 1154 you could give another
|
||||||
jump command (e.g., "G"). The jump list would then become:
|
jump command (e.g., "G"). The jump list would then become:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*netbeans.txt* For Vim version 7.3. Last change: 2012 Jan 26
|
*netbeans.txt* For Vim version 7.4. Last change: 2012 Jan 26
|
||||||
|
|
||||||
|
|
||||||
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 7.3. Last change: 2013 May 17
|
*options.txt* For Vim version 7.4. Last change: 2013 Nov 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -482,39 +482,42 @@ to set options automatically for one or more files:
|
|||||||
There are two forms of modelines. The first form:
|
There are two forms of modelines. The first form:
|
||||||
[text]{white}{vi:|vim:|ex:}[white]{options}
|
[text]{white}{vi:|vim:|ex:}[white]{options}
|
||||||
|
|
||||||
[text] any text or empty
|
[text] any text or empty
|
||||||
{white} at least one blank character (<Space> or <Tab>)
|
{white} at least one blank character (<Space> or <Tab>)
|
||||||
{vi:|vim:|ex:} the string "vi:", "vim:" or "ex:"
|
{vi:|vim:|ex:} the string "vi:", "vim:" or "ex:"
|
||||||
[white] optional white space
|
[white] optional white space
|
||||||
{options} a list of option settings, separated with white space or ':',
|
{options} a list of option settings, separated with white space
|
||||||
where each part between ':' is the argument for a ":set"
|
or ':', where each part between ':' is the argument
|
||||||
command (can be empty)
|
for a ":set" command (can be empty)
|
||||||
|
|
||||||
Example:
|
Examples:
|
||||||
vi:noai:sw=3 ts=6 ~
|
vi:noai:sw=3 ts=6 ~
|
||||||
|
vim: tw=77 ~
|
||||||
|
|
||||||
The second form (this is compatible with some versions of Vi):
|
The second form (this is compatible with some versions of Vi):
|
||||||
|
|
||||||
[text]{white}{vi:|vim:|ex:}[white]se[t] {options}:[text]
|
[text]{white}{vi:|vim:|Vim:|ex:}[white]se[t] {options}:[text]
|
||||||
|
|
||||||
[text] any text or empty
|
[text] any text or empty
|
||||||
{white} at least one blank character (<Space> or <Tab>)
|
{white} at least one blank character (<Space> or <Tab>)
|
||||||
{vi:|vim:|ex:} the string "vi:", "vim:" or "ex:"
|
{vi:|vim:|Vim:|ex:} the string "vi:", "vim:", "Vim:" or "ex:"
|
||||||
[white] optional white space
|
[white] optional white space
|
||||||
se[t] the string "set " or "se " (note the space)
|
se[t] the string "set " or "se " (note the space); When
|
||||||
{options} a list of options, separated with white space, which is the
|
"Vim" is used it must be "set".
|
||||||
argument for a ":set" command
|
{options} a list of options, separated with white space, which
|
||||||
: a colon
|
is the argument for a ":set" command
|
||||||
[text] any text or empty
|
: a colon
|
||||||
|
[text] any text or empty
|
||||||
|
|
||||||
Example:
|
Examples:
|
||||||
/* vim: set ai tw=75: */ ~
|
/* vim: set ai tw=75: */ ~
|
||||||
|
/* Vim: set ai tw=75: */ ~
|
||||||
|
|
||||||
The white space before {vi:|vim:|ex:} is required. This minimizes the chance
|
The white space before {vi:|vim:|Vim:|ex:} is required. This minimizes the
|
||||||
that a normal word like "lex:" is caught. There is one exception: "vi:" and
|
chance that a normal word like "lex:" is caught. There is one exception:
|
||||||
"vim:" can also be at the start of the line (for compatibility with version
|
"vi:" and "vim:" can also be at the start of the line (for compatibility with
|
||||||
3.0). Using "ex:" at the start of the line will be ignored (this could be
|
version 3.0). Using "ex:" at the start of the line will be ignored (this
|
||||||
short for "example:").
|
could be short for "example:").
|
||||||
|
|
||||||
*modeline-local*
|
*modeline-local*
|
||||||
The options are set like with ":setlocal": The new value only applies to the
|
The options are set like with ":setlocal": The new value only applies to the
|
||||||
@@ -530,7 +533,7 @@ in another window. But window-local options will be set.
|
|||||||
|
|
||||||
*modeline-version*
|
*modeline-version*
|
||||||
If the modeline is only to be used for some versions of Vim, the version
|
If the modeline is only to be used for some versions of Vim, the version
|
||||||
number can be specified where "vim:" is used:
|
number can be specified where "vim:" or "Vim:" is used:
|
||||||
vim{vers}: version {vers} or later
|
vim{vers}: version {vers} or later
|
||||||
vim<{vers}: version before {vers}
|
vim<{vers}: version before {vers}
|
||||||
vim={vers}: version {vers}
|
vim={vers}: version {vers}
|
||||||
@@ -1881,8 +1884,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
A sequence of single character flags. When a character is present
|
A sequence of single character flags. When a character is present
|
||||||
this indicates vi-compatible behavior. This is used for things where
|
this indicates Vi-compatible behavior. This is used for things where
|
||||||
not being vi-compatible is mostly or sometimes preferred.
|
not being Vi-compatible is mostly or sometimes preferred.
|
||||||
'cpoptions' stands for "compatible-options".
|
'cpoptions' stands for "compatible-options".
|
||||||
Commas can be added for readability.
|
Commas can be added for readability.
|
||||||
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
|
||||||
@@ -2243,7 +2246,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Specifies whether to use quickfix window to show cscope results.
|
Specifies whether to use quickfix window to show cscope results.
|
||||||
See |cscopequickfix|.
|
See |cscopequickfix|.
|
||||||
|
|
||||||
*'cscoperelative'* *'csre'*
|
*'cscoperelative'* *'csre'* *'nocscoperelative'* *'nocsre'*
|
||||||
'cscoperelative' 'csre' boolean (default off)
|
'cscoperelative' 'csre' boolean (default off)
|
||||||
global
|
global
|
||||||
{not available when compiled without the |+cscope|
|
{not available when compiled without the |+cscope|
|
||||||
@@ -3993,6 +3996,26 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
Can be overruled by using "\c" or "\C" in the pattern, see
|
Can be overruled by using "\c" or "\C" in the pattern, see
|
||||||
|/ignorecase|.
|
|/ignorecase|.
|
||||||
|
|
||||||
|
*'imactivatefunc'* *'imaf'*
|
||||||
|
'imactivatefunc' 'imaf' string (default "")
|
||||||
|
global
|
||||||
|
{not in Vi}
|
||||||
|
{only available when compiled with |+xim| and
|
||||||
|
|+GUI_GTK|}
|
||||||
|
This option specifies a function that will be called to
|
||||||
|
activate/inactivate Input Method.
|
||||||
|
|
||||||
|
Example: >
|
||||||
|
function ImActivateFunc(active)
|
||||||
|
if a:active
|
||||||
|
... do something
|
||||||
|
else
|
||||||
|
... do something
|
||||||
|
endif
|
||||||
|
" return value is not used
|
||||||
|
endfunction
|
||||||
|
set imactivatefunc=ImActivateFunc
|
||||||
|
<
|
||||||
*'imactivatekey'* *'imak'*
|
*'imactivatekey'* *'imak'*
|
||||||
'imactivatekey' 'imak' string (default "")
|
'imactivatekey' 'imak' string (default "")
|
||||||
global
|
global
|
||||||
@@ -4089,6 +4112,24 @@ 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.
|
||||||
|
|
||||||
|
*'imstatusfunc'* *'imsf'*
|
||||||
|
'imstatusfunc' 'imsf' string (default "")
|
||||||
|
global
|
||||||
|
{not in Vi}
|
||||||
|
{only available when compiled with |+xim| and
|
||||||
|
|+GUI_GTK|}
|
||||||
|
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.
|
||||||
|
|
||||||
|
Example: >
|
||||||
|
function ImStatusFunc()
|
||||||
|
let is_active = ...do something
|
||||||
|
return is_active ? 1 : 0
|
||||||
|
endfunction
|
||||||
|
set imstatusfunc=ImStatusFunc
|
||||||
|
<
|
||||||
|
NOTE: This function is invoked very often. Keep it fast.
|
||||||
|
|
||||||
*'include'* *'inc'*
|
*'include'* *'inc'*
|
||||||
'include' 'inc' string (default "^\s*#\s*include")
|
'include' 'inc' string (default "^\s*#\s*include")
|
||||||
global or local to buffer |global-local|
|
global or local to buffer |global-local|
|
||||||
@@ -4605,7 +4646,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The cursor is displayed at the start of the space a Tab character
|
The cursor is displayed at the start of the space a Tab character
|
||||||
occupies, not at the end as usual in Normal mode. To get this cursor
|
occupies, not at the end as usual in Normal mode. To get this cursor
|
||||||
position while displaying Tabs with spaces, use: >
|
position while displaying Tabs with spaces, use: >
|
||||||
:set list lcs=tab\ \
|
:set list lcs=tab:\ \
|
||||||
<
|
<
|
||||||
Note that list mode will also affect formatting (set with 'textwidth'
|
Note that list mode will also affect formatting (set with 'textwidth'
|
||||||
or 'wrapmargin') when 'cpoptions' includes 'L'. See 'listchars' for
|
or 'wrapmargin') when 'cpoptions' includes 'L'. See 'listchars' for
|
||||||
@@ -5132,7 +5173,18 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
characters are put before the number.
|
characters are put before the number.
|
||||||
See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for
|
See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for
|
||||||
the number.
|
the number.
|
||||||
When setting this option, 'relativenumber' is reset.
|
*number_relativenumber*
|
||||||
|
The 'relativenumber' option changes the displayed number to be
|
||||||
|
relative to the cursor. Together with 'number' there are these
|
||||||
|
four combinations (cursor in line 3):
|
||||||
|
|
||||||
|
'nonu' 'nu' 'nonu' 'nu'
|
||||||
|
'nornu' 'nornu' 'rnu' 'rnu'
|
||||||
|
|
||||||
|
|apple | 1 apple | 2 apple | 2 apple
|
||||||
|
|pear | 2 pear | 1 pear | 1 pear
|
||||||
|
|nobody | 3 nobody | 0 nobody |3 nobody
|
||||||
|
|there | 4 there | 1 there | 1 there
|
||||||
|
|
||||||
*'numberwidth'* *'nuw'*
|
*'numberwidth'* *'nuw'*
|
||||||
'numberwidth' 'nuw' number (Vim default: 4 Vi default: 8)
|
'numberwidth' 'nuw' number (Vim default: 4 Vi default: 8)
|
||||||
@@ -5516,7 +5568,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
matches will be highlighted. This is used to avoid that Vim hangs
|
matches will be highlighted. This is used to avoid that Vim hangs
|
||||||
when using a very complicated pattern.
|
when using a very complicated pattern.
|
||||||
|
|
||||||
*'regexpengine''* *'re'*
|
*'regexpengine'* *'re'*
|
||||||
'regexpengine' 're' number (default 0)
|
'regexpengine' 're' number (default 0)
|
||||||
global
|
global
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
@@ -5547,7 +5599,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
characters are put before the number.
|
characters are put before the number.
|
||||||
See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for
|
See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for
|
||||||
the number.
|
the number.
|
||||||
When setting this option, 'number' is reset.
|
|
||||||
|
The number in front of the cursor line also depends on the value of
|
||||||
|
'number', see |number_relativenumber| for all combinations of the two
|
||||||
|
options.
|
||||||
|
|
||||||
*'remap'* *'noremap'*
|
*'remap'* *'noremap'*
|
||||||
'remap' boolean (default on)
|
'remap' boolean (default on)
|
||||||
@@ -6500,6 +6555,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
region by listing them: "en_us,en_ca" supports both US and Canadian
|
region by listing them: "en_us,en_ca" supports both US and Canadian
|
||||||
English, but not words specific for Australia, New Zealand or Great
|
English, but not words specific for Australia, New Zealand or Great
|
||||||
Britain.
|
Britain.
|
||||||
|
If the name "cjk" is included East Asian characters are excluded from
|
||||||
|
spell checking. This is useful when editing text that also has Asian
|
||||||
|
words.
|
||||||
*E757*
|
*E757*
|
||||||
As a special case the name of a .spl file can be given as-is. The
|
As a special case the name of a .spl file can be given as-is. The
|
||||||
first "_xx" in the name is removed and used as the region name
|
first "_xx" in the name is removed and used as the region name
|
||||||
@@ -6699,7 +6757,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
V N Virtual column number as -{num}. Not displayed if equal to 'c'.
|
V N Virtual column number as -{num}. Not displayed if equal to 'c'.
|
||||||
p N Percentage through file in lines as in |CTRL-G|.
|
p N Percentage through file in lines as in |CTRL-G|.
|
||||||
P S Percentage through file of displayed window. This is like the
|
P S Percentage through file of displayed window. This is like the
|
||||||
percentage described for 'ruler'. Always 3 in length.
|
percentage described for 'ruler'. Always 3 in length, unless
|
||||||
|
translated.
|
||||||
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.
|
||||||
@@ -7521,7 +7580,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
given, no further entry is used.
|
given, no further entry is used.
|
||||||
See |undo-persistence|.
|
See |undo-persistence|.
|
||||||
|
|
||||||
*'undofile'* *'udf'*
|
*'undofile'* *'noundofile'* *'udf'* *'noudf'*
|
||||||
'undofile' 'udf' boolean (default off)
|
'undofile' 'udf' boolean (default off)
|
||||||
local to buffer
|
local to buffer
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
@@ -7538,7 +7597,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
*'undolevels'* *'ul'*
|
*'undolevels'* *'ul'*
|
||||||
'undolevels' 'ul' number (default 100, 1000 for Unix, VMS,
|
'undolevels' 'ul' number (default 100, 1000 for Unix, VMS,
|
||||||
Win32 and OS/2)
|
Win32 and OS/2)
|
||||||
global
|
global or local to buffer |global-local|
|
||||||
{not in Vi}
|
{not in Vi}
|
||||||
Maximum number of changes that can be undone. Since undo information
|
Maximum number of changes that can be undone. Since undo information
|
||||||
is kept in memory, higher numbers will cause more memory to be used
|
is kept in memory, higher numbers will cause more memory to be used
|
||||||
@@ -7549,8 +7608,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
< But you can also get Vi compatibility by including the 'u' flag in
|
< But you can also get Vi compatibility by including the 'u' flag in
|
||||||
'cpoptions', and still be able to use CTRL-R to repeat undo.
|
'cpoptions', and still be able to use CTRL-R to repeat undo.
|
||||||
Also see |undo-two-ways|.
|
Also see |undo-two-ways|.
|
||||||
Set to a negative number for no undo at all: >
|
Set to -1 for no undo at all. You might want to do this only for the
|
||||||
set ul=-1
|
current buffer: >
|
||||||
|
setlocal ul=-1
|
||||||
< This helps when you run out of memory for a single change.
|
< This helps when you run out of memory for a single change.
|
||||||
Also see |clear-undo|.
|
Also see |clear-undo|.
|
||||||
|
|
||||||
@@ -7807,8 +7867,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
if the line was empty. But it is far from Vi compatible. It may also
|
if the line was empty. But it is far from Vi compatible. It may also
|
||||||
break some plugins or Vim scripts. For example because |l| can move
|
break some plugins or Vim scripts. For example because |l| can move
|
||||||
the cursor after the last character. Use with care!
|
the cursor after the last character. Use with care!
|
||||||
Using the |$| command will move to the last character in the line, not
|
Using the `$` command will move to the last character in the line, not
|
||||||
past it. This may actually move the cursor to the left!
|
past it. This may actually move the cursor to the left!
|
||||||
|
The `g$` command will move to the end of the screen line.
|
||||||
It doesn't make sense to combine "all" with "onemore", but you will
|
It doesn't make sense to combine "all" with "onemore", but you will
|
||||||
not get a warning for it.
|
not get a warning for it.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_390.txt* For Vim version 7.3. Last change: 2010 May 30
|
*os_390.txt* For Vim version 7.4. Last change: 2010 May 30
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Ralf Schandl
|
VIM REFERENCE MANUAL by Ralf Schandl
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_amiga.txt* For Vim version 7.3. Last change: 2010 Aug 14
|
*os_amiga.txt* For Vim version 7.4. 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 7.3. Last change: 2010 Aug 14
|
*os_beos.txt* For Vim version 7.4. Last change: 2010 Aug 14
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_dos.txt* For Vim version 7.3. Last change: 2006 Mar 30
|
*os_dos.txt* For Vim version 7.4. 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 7.3. Last change: 2006 Apr 30
|
*os_mac.txt* For Vim version 7.4. Last change: 2006 Apr 30
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_mint.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*os_mint.txt* For Vim version 7.4. 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 7.3. Last change: 2005 Mar 29
|
*os_msdos.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_os2.txt* For Vim version 7.3. Last change: 2007 Apr 22
|
*os_os2.txt* For Vim version 7.4. Last change: 2007 Apr 22
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Paul Slootman
|
VIM REFERENCE MANUAL by Paul Slootman
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
*os_qnx.txt* For Vim version 7.3. Last change: 2005 Mar 29
|
*os_qnx.txt* For Vim version 7.4. Last change: 2005 Mar 29
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Julian Kinraid
|
VIM REFERENCE MANUAL by Julian Kinraid
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user