mirror of
https://github.com/vim/vim
synced 2025-08-01 19:31:52 +00:00
Compare commits
340 Commits
Author | SHA1 | Date | |
---|---|---|---|
196d157f12 | |||
33c8ca923e | |||
c85ffc9dab | |||
2cbc1a02cb | |||
44746aa1eb | |||
866f355814 | |||
5e53ac00a2 | |||
b9c67a51c1 | |||
4c05fa08c9 | |||
6d5b4f566a | |||
bbea47075c | |||
9067cd6cdf | |||
e1e714ef0d | |||
3d631cb0b3 | |||
a355652ea5 | |||
c0676bab92 | |||
2f21fa8743 | |||
fb2f7aa982 | |||
c6d86dccc4 | |||
af0839acec | |||
8caa10a8ec | |||
ef0a1d5ed3 | |||
a8bfa1727a | |||
1ea88a3e12 | |||
ced198d4b4 | |||
7d83bf4f2b | |||
01e51e5b30 | |||
c0c7549687 | |||
b56ac049ea | |||
c1a9bc1a72 | |||
3de8c2d1f0 | |||
6d9e71ad99 | |||
2ac372ccee | |||
54948183d2 | |||
b7a7e039b4 | |||
c8c8849267 | |||
5976f8ff00 | |||
d385b5d329 | |||
b09c684195 | |||
06d6260323 | |||
6436cd83f9 | |||
00b1e04165 | |||
e6fdf79980 | |||
c57463c9c6 | |||
548e598573 | |||
8cf734e024 | |||
48f88ac85b | |||
4604fbbbff | |||
b413d2e6a8 | |||
e38197d50f | |||
e3d31b02a5 | |||
cd929f7ba8 | |||
7a2d9892b7 | |||
d6024e2dd4 | |||
a42df5934b | |||
5d24a2257e | |||
c33181c44c | |||
80dae04d69 | |||
9123c0b31a | |||
4814ccbdf0 | |||
81df63537e | |||
39b5d8b514 | |||
3d1491ed23 | |||
9752c72f49 | |||
ef3c6a5b02 | |||
3ac55c8644 | |||
461a7fcfce | |||
528ccfbaa1 | |||
1916673a16 | |||
af610b8e66 | |||
d155d7a851 | |||
162b71479b | |||
48f377a476 | |||
9d302ad4e3 | |||
a79fd56923 | |||
6dc6703295 | |||
9d5c84a08f | |||
e667779013 | |||
c447d8d33f | |||
9d87a37ee9 | |||
a86187b9cd | |||
6403bcdaf4 | |||
9eb76af451 | |||
e751a5f531 | |||
2caad3fbbd | |||
4efe73b478 | |||
d80232be54 | |||
eeed665b0e | |||
72846cfa76 | |||
acecb3b935 | |||
21e551cce2 | |||
a9659e0da4 | |||
8b321d6a52 | |||
37e3edce20 | |||
471f658135 | |||
6c8dd39df9 | |||
cd1a62d468 | |||
142a975815 | |||
06b056e110 | |||
06d4c4c818 | |||
eae8ae1b2b | |||
56242f2b08 | |||
5f5e203c92 | |||
8f66717a1f | |||
fb95e212a2 | |||
ca79a5fc3b | |||
2fa7fad831 | |||
98aefe7c32 | |||
5c5697f298 | |||
295471920d | |||
30700cd5ff | |||
d47d52232b | |||
37402ed534 | |||
4af7259b2b | |||
55d4691308 | |||
76ab4fd619 | |||
446e7a3cd3 | |||
539328197c | |||
10ccaa17ec | |||
9a8534673a | |||
4087bfd96d | |||
20091c18c4 | |||
10600db772 | |||
88b53fd052 | |||
74ea88c170 | |||
b6fc72851c | |||
9719568533 | |||
51a7454cd2 | |||
b513d3079b | |||
d2ec51f399 | |||
5378e1cf0a | |||
ed8bc78d23 | |||
2fb8f684d8 | |||
614ab8aa00 | |||
07dc18ffa4 | |||
01a060da74 | |||
8ff5af9544 | |||
76a6345433 | |||
10efcd5b02 | |||
1341024e08 | |||
3067a4dd0d | |||
4ace6ab7e7 | |||
dc2f73a698 | |||
b730f0c7ba | |||
916a818cea | |||
4e303c8ba8 | |||
f951416a83 | |||
2b84949ad8 | |||
247bb7e43b | |||
82e8c92ebe | |||
5958f95a40 | |||
48d23bb4de | |||
addc156c38 | |||
6b731886ca | |||
25a494ce60 | |||
447f6ce8bd | |||
2d67d307ee | |||
dbc0d2163a | |||
c0f05d0bd1 | |||
f77af0e613 | |||
c4568ab37e | |||
f0d58efc9d | |||
0c27cbcacf | |||
61fb8d8c67 | |||
d3471e5785 | |||
c2c02574ec | |||
b244373bec | |||
f3aea59afa | |||
883ba68cda | |||
218959bc91 | |||
f49cc60aa8 | |||
8617b40159 | |||
d42333d8e9 | |||
ddd1f9183b | |||
ded5f1bed7 | |||
1bbb619483 | |||
d0721058f4 | |||
389ab7122b | |||
9e353b5265 | |||
ba3ff53930 | |||
dcd71cbaed | |||
0b38f54730 | |||
0f62cf5b33 | |||
da1c11c641 | |||
9691f82f86 | |||
bd9a0c611c | |||
4dbc262764 | |||
f7acf2b63c | |||
f080d70a82 | |||
a9a8e04eab | |||
833e5dab14 | |||
1c29943416 | |||
d474686a09 | |||
5f57bdcab7 | |||
c0fe4978f2 | |||
f86db78fed | |||
babfcf54ae | |||
e6e3989c1b | |||
bf9679ae46 | |||
0fd6be77de | |||
eda9e9c2fe | |||
b6f1480a6a | |||
9f84ded38b | |||
4c5d815256 | |||
42a4ea10af | |||
839e81e12d | |||
38654503b0 | |||
2c64ca1802 | |||
04c86d27fe | |||
115510f0bd | |||
29e7fe55be | |||
b361db077f | |||
64f410742f | |||
65dc12143a | |||
d95c3c253c | |||
a2aad02830 | |||
27e80c885b | |||
a16bc54503 | |||
d6105cb408 | |||
6cdb2c9811 | |||
453ce7c16b | |||
3d6014f033 | |||
108e7b422b | |||
0664089ecc | |||
1d3dbcf743 | |||
6a2633b00b | |||
95ba5c364f | |||
1df2fa47b4 | |||
798184cc67 | |||
c0543e145f | |||
00bf8cd211 | |||
1307d1c003 | |||
a05a0d325c | |||
df77cef92e | |||
0cc7b2d6cc | |||
d8f27b30d6 | |||
019dfe6855 | |||
2610990709 | |||
8295666dc2 | |||
7554c548a4 | |||
2bc152ab53 | |||
0e9deefb4f | |||
7701f30856 | |||
4a5abbd613 | |||
586c70cdfe | |||
4f88875725 | |||
35bc7d6c52 | |||
54ade9f7e3 | |||
95bafa296a | |||
6dff58f15c | |||
f45d747ebf | |||
d3dc062160 | |||
2bfddfc508 | |||
438d176e35 | |||
b434ae2a1f | |||
95892c27b2 | |||
ee91c33570 | |||
8c63e0ec31 | |||
09037503ea | |||
31cbadf74b | |||
45c5c86e63 | |||
6dae96ef7a | |||
d339828b4b | |||
c75878c923 | |||
3b30168f04 | |||
7ff8a3cfb6 | |||
4841a7ccae | |||
9cea87c577 | |||
e76d7a63df | |||
0bd4051732 | |||
4ff4290de1 | |||
76c612a166 | |||
1f402806b8 | |||
de2bd37bec | |||
b872e63fc6 | |||
036b09ca78 | |||
b0e982bf05 | |||
d4f73438bb | |||
3f3fb0b147 | |||
933bef779a | |||
92cbf62b87 | |||
cec12cd661 | |||
476c0db002 | |||
4b1c9a91b5 | |||
a87f8fd3fe | |||
fe15b7dfa6 | |||
9e81db9742 | |||
664323e7c8 | |||
e961cba3cb | |||
cc3a997746 | |||
198fa066b2 | |||
110bd60985 | |||
d2b58c0a2c | |||
65985ac998 | |||
8f4499b816 | |||
e8fa05b5bc | |||
42c63356d7 | |||
6e272acc82 | |||
e3521d9cbb | |||
785fc6567f | |||
50eb16c3b2 | |||
ac49f61a20 | |||
ab18673731 | |||
da1f71d75f | |||
bf1c1b8513 | |||
24839edc54 | |||
fe8ef98dd1 | |||
c91c500348 | |||
8aeb504fc6 | |||
a214079008 | |||
0f7683f973 | |||
5c6f574bd1 | |||
32d19c1820 | |||
78dcd4f002 | |||
0d5f21c3df | |||
42335f50bc | |||
c787539747 | |||
3b8defd0a5 | |||
bd9a53c06c | |||
1b7fefcbce | |||
90a997987d | |||
643b614087 | |||
274cea35c6 | |||
67f8ab8299 | |||
25328e39d2 | |||
84d9390480 | |||
007921611b | |||
4c7b08f640 | |||
e797abf3c7 | |||
c93262b2e3 | |||
f29c1c6aa3 | |||
6b0b83f768 | |||
e828b7621c | |||
93a1df2c20 | |||
6f8bdab8e2 | |||
a5c48c2698 | |||
02c972153d | |||
99f043a57d | |||
a750ac2288 | |||
53c8a478cc |
1
.gitignore
vendored
1
.gitignore
vendored
@ -80,6 +80,7 @@ src/testdir/dostmp/*
|
||||
src/testdir/messages
|
||||
src/testdir/viminfo
|
||||
src/testdir/opt_test.vim
|
||||
runtime/indent/testdir/*.out
|
||||
src/memfile_test
|
||||
src/json_test
|
||||
src/message_test
|
||||
|
@ -15,7 +15,7 @@ env:
|
||||
- BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||
FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||
- BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
- BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||
- BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||
- BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no
|
||||
@ -26,7 +26,7 @@ env:
|
||||
|
||||
sudo: false
|
||||
|
||||
# instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env),
|
||||
# instead of a 2*2*7 matrix (2*os + 2*compiler + 7*env),
|
||||
# exclude some builds on mac os x and linux
|
||||
# linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
|
||||
matrix:
|
||||
@ -38,7 +38,7 @@ matrix:
|
||||
- os: osx
|
||||
env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
- os: osx
|
||||
env: BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
env: BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||
- os: osx
|
||||
env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||
@ -109,7 +109,7 @@ script:
|
||||
- if [ -n "$err" ]; then exit 1; fi
|
||||
|
||||
after_success:
|
||||
- if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b ${SRCDIR} -x .xs -e ${SRCDIR}/xxd -e ${SRCDIR}/if_perl.c --encodings utf-8 latin-1 EUC-KR; fi
|
||||
- if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b ${SRCDIR} -x .xs -e ${SRCDIR}/if_perl.c -e ${SRCDIR}/xxd -e ${SRCDIR}/libvterm --encodings utf-8 latin-1 EUC-KR; fi
|
||||
- if [ "$COVERAGE" = "yes" ]; then cd ${SRCDIR} && bash <(curl -s https://codecov.io/bash) ; fi
|
||||
|
||||
# vim:set sts=2 sw=2 tw=0 et:
|
||||
|
33
Filelist
33
Filelist
@ -81,16 +81,18 @@ SRC_ALL = \
|
||||
src/screen.c \
|
||||
src/search.c \
|
||||
src/sha256.c \
|
||||
src/structs.h \
|
||||
src/sign.c \
|
||||
src/spell.c \
|
||||
src/spell.h \
|
||||
src/spellfile.c \
|
||||
src/structs.h \
|
||||
src/syntax.c \
|
||||
src/tag.c \
|
||||
src/term.c \
|
||||
src/terminal.c \
|
||||
src/term.h \
|
||||
src/termlib.c \
|
||||
src/textprop.c \
|
||||
src/ui.c \
|
||||
src/undo.c \
|
||||
src/userfunc.c \
|
||||
@ -141,6 +143,7 @@ SRC_ALL = \
|
||||
src/testdir/if_ver*.vim \
|
||||
src/testdir/color_ramp.vim \
|
||||
src/proto.h \
|
||||
src/protodef.h \
|
||||
src/proto/arabic.pro \
|
||||
src/proto/beval.pro \
|
||||
src/proto/blowfish.pro \
|
||||
@ -190,6 +193,7 @@ SRC_ALL = \
|
||||
src/proto/screen.pro \
|
||||
src/proto/search.pro \
|
||||
src/proto/sha256.pro \
|
||||
src/proto/sign.pro \
|
||||
src/proto/spell.pro \
|
||||
src/proto/spellfile.pro \
|
||||
src/proto/syntax.pro \
|
||||
@ -197,6 +201,7 @@ SRC_ALL = \
|
||||
src/proto/term.pro \
|
||||
src/proto/terminal.pro \
|
||||
src/proto/termlib.pro \
|
||||
src/proto/textprop.pro \
|
||||
src/proto/ui.pro \
|
||||
src/proto/undo.pro \
|
||||
src/proto/userfunc.pro \
|
||||
@ -227,7 +232,7 @@ SRC_ALL = \
|
||||
src/libvterm/src/parser.c \
|
||||
src/libvterm/src/pen.c \
|
||||
src/libvterm/src/rect.h \
|
||||
src/libvterm/src/screen.c \
|
||||
src/libvterm/src/termscreen.c \
|
||||
src/libvterm/src/state.c \
|
||||
src/libvterm/src/unicode.c \
|
||||
src/libvterm/src/utf8.h \
|
||||
@ -273,6 +278,22 @@ SRC_ALL = \
|
||||
src/libvterm/t/92lp1640917.test \
|
||||
src/libvterm/t/harness.c \
|
||||
src/libvterm/t/run-test.pl \
|
||||
src/xdiff/COPYING \
|
||||
src/xdiff/README.txt \
|
||||
src/xdiff/xdiff.h \
|
||||
src/xdiff/xdiffi.c \
|
||||
src/xdiff/xdiffi.h \
|
||||
src/xdiff/xemit.c \
|
||||
src/xdiff/xemit.h \
|
||||
src/xdiff/xhistogram.c \
|
||||
src/xdiff/xinclude.h \
|
||||
src/xdiff/xmacros.h \
|
||||
src/xdiff/xpatience.c \
|
||||
src/xdiff/xprepare.c \
|
||||
src/xdiff/xprepare.h \
|
||||
src/xdiff/xtypes.h \
|
||||
src/xdiff/xutils.c \
|
||||
src/xdiff/xutils.h \
|
||||
|
||||
|
||||
# source files for Unix only
|
||||
@ -456,8 +477,8 @@ SRC_DOS = \
|
||||
src/xxd/Make_mvc.mak \
|
||||
nsis/gvim.nsi \
|
||||
nsis/gvim_version.nsh \
|
||||
nsis/vimrc.ini \
|
||||
nsis/README.txt \
|
||||
nsis/lang/*.nsi \
|
||||
uninstal.txt \
|
||||
src/VisVim/Commands.cpp \
|
||||
src/VisVim/Commands.h \
|
||||
@ -498,6 +519,7 @@ SRC_DOS_BIN = \
|
||||
src/xpm/x86/lib-vc14/libXpm.lib \
|
||||
nsis/icons/*.bmp \
|
||||
nsis/icons/*.ico \
|
||||
nsis/icons/*.svg \
|
||||
|
||||
# source files for Amiga, DOS, etc. (also in the extra archive)
|
||||
SRC_AMI_DOS = \
|
||||
@ -674,6 +696,11 @@ RT_SCRIPTS = \
|
||||
runtime/compiler/README.txt \
|
||||
runtime/indent/*.vim \
|
||||
runtime/indent/README.txt \
|
||||
runtime/indent/Makefile \
|
||||
runtime/indent/testdir/README.txt \
|
||||
runtime/indent/testdir/*.vim \
|
||||
runtime/indent/testdir/*.in \
|
||||
runtime/indent/testdir/*.ok \
|
||||
runtime/ftplugin/*.vim \
|
||||
runtime/ftplugin/logtalk.dict \
|
||||
runtime/ftplugin/README.txt \
|
||||
|
14
Makefile
14
Makefile
@ -32,14 +32,26 @@ first:
|
||||
|
||||
# Some make programs use the last target for the $@ default; put the other
|
||||
# targets separately to always let $@ expand to "first" by default.
|
||||
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests unittests testclean clean distclean:
|
||||
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests test_libvterm unittests testclean clean distclean:
|
||||
@if test ! -f src/auto/config.mk; then \
|
||||
cp src/config.mk.dist src/auto/config.mk; \
|
||||
fi
|
||||
@echo "Starting make in the src directory."
|
||||
@echo "If there are problems, cd to the src directory and run make there"
|
||||
cd src && $(MAKE) $@
|
||||
@# When the target is "test" also run the indent tests.
|
||||
@if test "$@" = "test"; then \
|
||||
$(MAKE) indenttest; \
|
||||
fi
|
||||
|
||||
# Executable used for running the indent tests.
|
||||
VIM_FOR_INDENTTEST = ../../src/vim
|
||||
|
||||
indenttest:
|
||||
cd runtime/indent && \
|
||||
$(MAKE) clean VIM="$(VIM_FOR_INDENTTEST)" && \
|
||||
$(MAKE) test VIM="$(VIM_FOR_INDENTTEST)"
|
||||
|
||||
|
||||
#########################################################################
|
||||
# 2. Creating the various distribution files.
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
[](https://travis-ci.org/vim/vim)
|
||||
[](https://codecov.io/gh/vim/vim?branch=master)
|
||||
[](https://coveralls.io/github/vim/vim?branch=master)
|
||||
[](https://coveralls.io/github/vim/vim?branch=master)
|
||||
[](https://ci.appveyor.com/project/chrisbra/vim)
|
||||
[](https://scan.coverity.com/projects/vim)
|
||||
[](https://lgtm.com/projects/g/vim/vim/context:cpp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
README_zOS.txt for version 8.1 of Vim: Vi IMproved.
|
||||
README_os390.txt for version 8.1 of Vim: Vi IMproved.
|
||||
|
||||
This readme explains how to build Vim on z/OS. Formerly called OS/390.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
@ -15,6 +15,7 @@ To build the installable .exe:
|
||||
vimrun.exe,
|
||||
install.exe,
|
||||
uninstal.exe,
|
||||
tee/tee.exe,
|
||||
xxd/xxd.exe,
|
||||
|
||||
Then execute tools/rename.bat to rename the executables. (mv command is
|
||||
@ -29,14 +30,15 @@ To build the installable .exe:
|
||||
4. Go to the VisVim directory and build VisVim.dll (or get it from a binary
|
||||
archive).
|
||||
|
||||
5. Go to the OleVim directory and build OpenWithVim.exe and SendToVim.exe (or
|
||||
get them from a binary archive).
|
||||
|
||||
6. Get a "diff.exe" program and put it in the "../.." directory (above the
|
||||
"vim80" directory, it's the same for all Vim versions).
|
||||
5. Get a "diff.exe" program. If you skip this the built-in diff will always
|
||||
be used (which is fine for most users). If you do have your own
|
||||
"diff.exe" put it in the "../.." directory (above the "vim81" directory,
|
||||
it's the same for all Vim versions).
|
||||
You can find one in previous Vim versions or in this archive:
|
||||
http://www.mossbayeng.com/~ron/vim/diffutils.tar.gz
|
||||
Also put winpty32.dll and winpty-agent.exe there.
|
||||
|
||||
6 Also put winpty32.dll and winpty-agent.exe in "../.." (above the "vim81"
|
||||
directory). This is required for the terminal window.
|
||||
|
||||
7. Do "make uganda.nsis.txt" in runtime/doc. This requires sed, you may have
|
||||
to do this on Unix. Make sure the file is in DOS file format!
|
||||
|
1168
nsis/gvim.nsi
1168
nsis/gvim.nsi
File diff suppressed because it is too large
Load Diff
BIN
nsis/icons/header.bmp
Normal file
BIN
nsis/icons/header.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 100 KiB |
265
nsis/icons/header.svg
Normal file
265
nsis/icons/header.svg
Normal file
@ -0,0 +1,265 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="300"
|
||||
height="114"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.47 r22583"
|
||||
sodipodi:docname="header.svg"
|
||||
inkscape:export-filename="header.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<filter
|
||||
id="filter2840"
|
||||
inkscape:label="Drop shadow"
|
||||
width="1.5"
|
||||
height="1.5"
|
||||
x="-.25"
|
||||
y="-.25">
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur2842"
|
||||
in="SourceAlpha"
|
||||
stdDeviation="3.000000"
|
||||
result="blur" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix2844"
|
||||
result="bluralpha"
|
||||
type="matrix"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.600000 0 " />
|
||||
<feOffset
|
||||
id="feOffset2846"
|
||||
in="bluralpha"
|
||||
dx="-5.000000"
|
||||
dy="5.000000"
|
||||
result="offsetBlur" />
|
||||
<feMerge
|
||||
id="feMerge2848">
|
||||
<feMergeNode
|
||||
id="feMergeNode2850"
|
||||
in="offsetBlur" />
|
||||
<feMergeNode
|
||||
id="feMergeNode2852"
|
||||
in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
<filter
|
||||
id="filter2910"
|
||||
inkscape:label="Drop shadow"
|
||||
width="1.5"
|
||||
height="1.5"
|
||||
x="-.25"
|
||||
y="-.25">
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur2912"
|
||||
in="SourceAlpha"
|
||||
stdDeviation="2.500000"
|
||||
result="blur" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix2914"
|
||||
result="bluralpha"
|
||||
type="matrix"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.600000 0 " />
|
||||
<feOffset
|
||||
id="feOffset2916"
|
||||
in="bluralpha"
|
||||
dx="-3.000000"
|
||||
dy="3.000000"
|
||||
result="offsetBlur" />
|
||||
<feMerge
|
||||
id="feMerge2918">
|
||||
<feMergeNode
|
||||
id="feMergeNode2920"
|
||||
in="offsetBlur" />
|
||||
<feMergeNode
|
||||
id="feMergeNode2922"
|
||||
in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="1"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2.1369427"
|
||||
inkscape:cx="130.27686"
|
||||
inkscape:cy="77.09629"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="header"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="942"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:showpageshadow="false" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="header"
|
||||
transform="translate(0,-938.36218)">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
|
||||
id="text3026"
|
||||
x="4.0525044"
|
||||
y="-8.7699928">The editor</text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:40px;font-style:normal;font-weight:normal;line-height:100%;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;filter:url(#filter2910)"
|
||||
x="178.45901"
|
||||
y="988.47156"
|
||||
id="text3198"
|
||||
sodipodi:linespacing="100%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan3200"
|
||||
x="178.45901"
|
||||
y="988.47156"
|
||||
style="font-size:36px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;font-family:Courier New;-inkscape-font-specification:Courier New Bold">The</tspan><tspan
|
||||
sodipodi:role="line"
|
||||
x="178.45901"
|
||||
y="1024.4716"
|
||||
id="tspan3202"
|
||||
style="font-size:36px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:100%;writing-mode:lr-tb;text-anchor:middle;font-family:Courier New;-inkscape-font-specification:Courier New Bold">editor</tspan></text>
|
||||
<g
|
||||
id="g2916"
|
||||
style="filter:url(#filter2840)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2999"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="M 107.53604,994.85892 57.991535,946.32092 9.4535173,995.84025 57.991535,1044.4034 107.53604,994.85892" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3003"
|
||||
style="fill:#006b05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 102.57907,994.85892 2.96915,0 -47.556685,47.55668 0,-2.9691 44.587535,-44.58758" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3007"
|
||||
style="fill:#007d17;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 11.441335,995.84025 2.969148,0 43.581052,43.60625 0,2.9691 -46.5502,-46.57535" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3011"
|
||||
style="fill:#66ff99;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 57.991535,951.25272 0,-2.94398 -46.5502,47.53151 2.969148,0 43.581052,-44.58753" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3015"
|
||||
style="fill:#45ff02;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 57.991535,948.30873 0,2.94399 44.587535,43.6062 2.96915,0 -47.556685,-46.55019" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3019"
|
||||
style="fill:#009933;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 57.991535,1039.4465 44.587535,-44.58758 -44.587535,-43.6062 -43.581052,44.58753 43.581052,43.60625" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3023"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 67.25125,961.16664 2.969146,2.99431 0,0 -20.482085,20.78405 0,-20.78405 1.987817,0 2.969148,-2.99431 0,-7.90094 -2.969148,-2.99431 -33.012896,0 -2.969149,2.99431 0,7.90094 2.969149,2.99431 2.314928,0 0,67.35935 3.623367,2.9692 10.241043,0 70.98276,-73.32286 0,-7.90094 -2.96915,-2.99431 -32.358674,0 -3.296256,2.99431 0,7.90094" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3027"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 19.694561,962.17314 -1.987821,-1.98782 0,-5.9383 1.987821,-1.98782 31.05024,-0.0252 1.962656,2.01298 -1.962656,0.95617 -1.00649,-0.95617 -30.04375,4.9318 0,2.99432" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3031"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 25.632856,1032.5017 -2.314928,-1.9878 0,-68.36592 2.314928,-1.96266 0,72.31638" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3035"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 75.177364,962.17314 1.987819,-1.98782 0,3.97563 -33.038059,33.66712 3.64853,-7.9261 27.40171,-27.72883" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3039"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 26.312236,959.20399 -0.67938,0.98133 -2.314928,1.98782 -3.623367,0 0,-3.97563 6.617675,1.00648" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3043"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 47.775654,962.17314 0,27.72883 -3.64853,7.90094 0,-37.64275 5.611187,0 1.00649,-0.98133 -1.00649,-4.93181 2.969146,0 0,5.9383 -1.962656,1.98782 -2.969147,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3047"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 71.201725,962.17314 -1.962656,-1.98782 0,-5.9383 2.289766,-1.98782 30.068915,0 2.31493,1.98782 -3.32142,2.96915 -29.389535,1.96265 0,2.99432" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3051"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 103.91268,960.18532 -69.699491,72.31638 -8.580333,0 0,-2.9692 6.290568,0 69.674326,-71.33499 -1.00649,-3.95049 3.32142,0 0,5.9383" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3055"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 77.819404,959.20399 -0.679382,0.98133 -1.962658,1.98782 -3.975639,0 0,-3.97563 6.617679,1.00648" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3059"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 44.127124,997.80291 0,-37.64275 5.611187,0 1.00649,-0.98134 0,-3.97563 -1.00649,-0.98133 -29.062421,0 -0.981329,0.98133 0,3.97563 0.981329,0.98134 4.956966,0 0,69.37234 1.283276,0.9814 5.661511,0 69.347217,-72.31639 0,-2.84335 -1.00649,-1.1323 -28.710153,0 -1.006492,0.98133 0,4.0008 1.006492,0.98133 4.956966,0 0,3.97563 -33.038059,33.64196" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3063"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 62.143307,997.85323 2.31493,-1.98781 5.938295,0 1.660709,1.98781 -1.987817,5.93827 -2.289767,1.9879 -5.938295,0 -1.685872,-1.9879 1.987817,-5.93827" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3067"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 64.131127,1030.539 5.963458,-17.8149 -1.987818,0 1.987818,-5.9634 8.882281,0 1.987818,1.9878 1.333602,0 1.962657,-1.9878 6.617676,0 1.98782,1.9878 1.308439,0 1.987818,-1.9878 7.246734,0 2.64204,3.9756 -4.32791,14.0909 1.96265,0 -1.91233,5.7118 -11.901751,0 4.655019,-13.8644 -2.969147,0 -2.742688,8.1023 1.962658,0 -1.862008,5.7621 -11.901753,0 4.629856,-13.8644 -2.969146,0 -2.767852,8.1526 1.987821,0 -1.862008,5.7118 -11.901754,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3071"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 102.50359,1008.7485 1.53489,2.1891 -4.881475,15.6509 1.962655,0 -0.65422,1.9627 -7.92611,0 4.629858,-13.8644 -6.944788,0 -3.950475,11.9017 1.962657,0 -0.654219,1.9627 -7.926114,0 4.629855,-13.8644 -6.944785,0 -3.950476,11.9017 1.987818,0 -0.67938,1.9627 -7.926116,0 5.963458,-17.8149 -1.987818,0 0.654217,-1.9878 7.271898,0 1.987818,1.9878 1.962657,0 1.987819,-1.9878 5.938295,0 1.987821,1.9878 1.987818,0 1.987821,-1.9878 5.988621,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3075"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 69.088095,1006.7607 -6.064107,18.0413 2.063305,0 -1.962657,5.737 -11.876589,0 5.938295,-17.8149 -1.98782,0 13.889573,-5.9634 z m -13.889573,5.9634 1.98782,-5.9634 11.901753,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3079"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 61.816199,1028.5512 0.654219,-1.9627 -1.987819,0 5.963458,-17.84 -8.253225,0 -0.67938,1.9878 2.314928,0 -5.938297,17.8149 7.926116,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3083"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.07548681;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 68.408713,1002.8102 1.333602,-3.97563 -0.65422,-0.98134 -3.975639,0 -1.308438,0.98134 -1.333601,3.97563 0.679382,0.9813 3.975639,0 1.283275,-0.9813" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 14 KiB |
BIN
nsis/icons/un_header.bmp
Normal file
BIN
nsis/icons/un_header.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 100 KiB |
BIN
nsis/icons/uninstall.bmp
Normal file
BIN
nsis/icons/uninstall.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 604 KiB |
BIN
nsis/icons/welcome.bmp
Normal file
BIN
nsis/icons/welcome.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 604 KiB |
268
nsis/icons/welcome.svg
Normal file
268
nsis/icons/welcome.svg
Normal file
@ -0,0 +1,268 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="328"
|
||||
height="628"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.47 r22583"
|
||||
sodipodi:docname="welcome.svg"
|
||||
inkscape:export-filename="welcome.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<filter
|
||||
id="filter3356"
|
||||
inkscape:label="Drop shadow"
|
||||
width="1.5"
|
||||
height="1.5"
|
||||
x="-.25"
|
||||
y="-.25">
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur3358"
|
||||
in="SourceAlpha"
|
||||
stdDeviation="5.000000"
|
||||
result="blur" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix3360"
|
||||
result="bluralpha"
|
||||
type="matrix"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.600000 0 " />
|
||||
<feOffset
|
||||
id="feOffset3362"
|
||||
in="bluralpha"
|
||||
dx="-10.000000"
|
||||
dy="10.000000"
|
||||
result="offsetBlur" />
|
||||
<feMerge
|
||||
id="feMerge3364">
|
||||
<feMergeNode
|
||||
id="feMergeNode3366"
|
||||
in="offsetBlur" />
|
||||
<feMergeNode
|
||||
id="feMergeNode3368"
|
||||
in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
<filter
|
||||
id="filter3496"
|
||||
inkscape:label="Drop shadow"
|
||||
width="1.5"
|
||||
height="1.5"
|
||||
x="-.25"
|
||||
y="-.25">
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur3498"
|
||||
in="SourceAlpha"
|
||||
stdDeviation="3.000000"
|
||||
result="blur" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix3500"
|
||||
result="bluralpha"
|
||||
type="matrix"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.600000 0 " />
|
||||
<feOffset
|
||||
id="feOffset3502"
|
||||
in="bluralpha"
|
||||
dx="-5.000000"
|
||||
dy="5.000000"
|
||||
result="offsetBlur" />
|
||||
<feMerge
|
||||
id="feMerge3504">
|
||||
<feMergeNode
|
||||
id="feMergeNode3506"
|
||||
in="offsetBlur" />
|
||||
<feMergeNode
|
||||
id="feMergeNode3508"
|
||||
in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="1"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.0716561"
|
||||
inkscape:cx="122.81449"
|
||||
inkscape:cy="381.22777"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="942"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:showpageshadow="false" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-424.36218)">
|
||||
<rect
|
||||
style="fill:#eeffcc;fill-opacity:1;stroke:#007f00;stroke-width:2.0138948;stroke-miterlimit:2.6099999;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="rect3510"
|
||||
width="327.98608"
|
||||
height="635.98608"
|
||||
x="-0.99305254"
|
||||
y="420.36914" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#ffffff;fill-opacity:0;stroke:none"
|
||||
id="path3795"
|
||||
sodipodi:cx="92.889717"
|
||||
sodipodi:cy="94.761551"
|
||||
sodipodi:rx="83.062592"
|
||||
sodipodi:ry="84.466469"
|
||||
d="m 175.95231,94.761551 c 0,46.649539 -37.18839,84.466469 -83.062593,84.466469 -45.874202,0 -83.0625915,-37.81693 -83.0625915,-84.466469 0,-46.649543 37.1883895,-84.466469 83.0625915,-84.466469 45.874203,0 83.062593,37.816926 83.062593,84.466469 z"
|
||||
transform="matrix(0,-2.3099964,-2.3548838,0,387.15244,952.93709)" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;filter:url(#filter3496)"
|
||||
id="text3026"><textPath
|
||||
xlink:href="#path3795"
|
||||
startOffset="50%"
|
||||
id="textPath3036"
|
||||
style="font-size:58;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;text-anchor:middle;font-family:Courier New;-inkscape-font-specification:Courier New Bold;">The editor</textPath></text>
|
||||
<g
|
||||
id="g2968"
|
||||
style="filter:url(#filter3356)">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path2999"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="M 299.80052,736.9686 162.60646,602.56167 28.199478,739.68603 162.60646,874.16269 299.80052,736.9686" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3003"
|
||||
style="fill:#006b05;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 286.07415,736.9686 8.22189,0 -131.68958,131.68962 0,-8.2219 123.46769,-123.46772" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3007"
|
||||
style="fill:#007d17;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 33.703958,739.68603 8.221891,0 120.680611,120.75029 0,8.2219 L 33.703958,739.68603" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3011"
|
||||
style="fill:#66ff99;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 162.60646,616.21837 0,-8.15223 -128.902502,131.61989 8.221891,0 120.680611,-123.46766" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3015"
|
||||
style="fill:#45ff02;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 162.60646,608.06614 0,8.15223 123.46769,120.75023 8.22189,0 -131.68958,-128.90246" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3019"
|
||||
style="fill:#009933;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="M 162.60646,860.43632 286.07415,736.9686 162.60646,616.21837 41.925849,739.68603 162.60646,860.43632" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3023"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 188.24761,643.67106 8.22188,8.29158 0,0 -56.71709,57.55326 0,-57.55326 5.50448,0 8.22189,-8.29158 0,-21.87855 -8.22189,-8.29157 -91.416257,0 -8.221894,8.29157 0,21.87855 8.221894,8.29158 6.410285,0 0,186.52539 10.033492,8.22191 28.358547,0 196.558893,-203.03888 0,-21.87855 -8.22189,-8.29157 -89.60466,0 -9.12768,8.29157 0,21.87855" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3027"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 56.558028,646.45817 -5.504489,-5.50448 0,-16.4438 5.504489,-5.50448 85.981452,-0.0697 5.4348,5.57416 -5.4348,2.64775 -2.78708,-2.64775 -83.194372,13.6567 0,8.29158" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3031"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 73.001805,841.20547 -6.410285,-5.50448 0,-189.3125 6.410285,-5.4348 0,200.25178" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3035"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 210.19587,646.45817 5.50448,-5.50448 0,11.00895 -91.48593,93.22786 10.10317,-21.94822 75.87828,-76.78411" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3039"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 74.883082,638.23626 -1.881277,2.71743 -6.410285,5.50448 -10.033492,0 0,-11.00895 18.325054,2.78704" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3043"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 134.31759,646.45817 0,76.78411 -10.10317,21.87855 0,-104.23681 15.53798,0 2.78708,-2.71743 -2.78708,-13.6567 8.22188,0 0,16.4438 -5.4348,5.50448 -8.22189,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3047"
|
||||
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 199.1869,646.45817 -5.43481,-5.50448 0,-16.4438 6.34061,-5.50448 83.26404,0 6.41029,5.50448 -9.19736,8.2219 -81.38277,5.4348 0,8.29158" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3051"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 289.76703,640.95369 -193.005361,200.25177 -23.759864,0 0,-8.2219 17.419257,0 192.935678,-197.53434 -2.78707,-10.93933 9.19736,0 0,16.4438" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3055"
|
||||
style="fill:#7f7f7f;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 217.51196,638.23626 -1.88128,2.71743 -5.43481,5.50448 -11.00897,0 0,-11.00895 18.32506,2.78704" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3059"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 124.21442,745.12082 0,-104.23681 15.53798,0 2.78708,-2.71742 0,-11.00895 -2.78708,-2.71743 -80.476968,0 -2.717404,2.71743 0,11.00895 2.717404,2.71742 13.726373,0 0,192.09955 3.553528,2.71743 15.677333,0 192.029884,-200.25177 0,-7.87353 -2.78708,-3.13548 -79.50149,0 -2.78708,2.71743 0,11.07862 2.78708,2.71743 13.72637,0 0,11.00895 -91.48593,93.15818" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3063"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 174.10317,745.26018 6.41029,-5.50448 16.44377,0 4.59868,5.50448 -5.50447,16.4438 -6.34062,5.50448 -16.44377,0 -4.66836,-5.50448 5.50448,-16.4438" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3067"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 179.60765,835.77066 16.51346,-49.33135 -5.50448,0 5.50448,-16.51342 24.59599,0 5.50448,5.50447 3.69289,0 5.43481,-5.50447 18.32505,0 5.50449,5.50447 3.62321,0 5.50448,-5.50447 20.06698,0 7.31609,11.00895 -11.98445,39.01911 5.43481,0 -5.29546,15.81671 -32.95723,0 12.89025,-38.39208 -8.22189,0 -7.59479,22.43602 5.43481,0 -5.1561,15.95606 -32.95724,0 12.82057,-38.39208 -8.22188,0 -7.66448,22.57537 5.50449,0 -5.1561,15.81671 -32.95724,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3071"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 285.86512,775.43036 4.25029,6.06188 -13.51734,43.3391 5.43481,0 -1.8116,5.43485 -21.94826,0 12.82057,-38.39208 -19.23086,0 -10.93929,32.95723 5.43481,0 -1.81161,5.43485 -21.94826,0 12.82057,-38.39208 -19.23086,0 -10.93929,32.95723 5.50448,0 -1.88127,5.43485 -21.94827,0 16.51346,-49.33135 -5.50449,0 1.8116,-5.50448 20.13667,0 5.50448,5.50448 5.43481,0 5.50448,-5.50448 16.44378,0 5.50449,5.50448 5.50448,0 5.50449,-5.50448 16.58312,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3075"
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 193.33403,769.92588 -16.79216,49.95839 5.71351,0 -5.43481,15.88639 -32.88755,0 16.44378,-49.33135 -5.50449,0 38.46172,-16.51343 z m -38.46172,16.51343 5.50449,-16.51343 32.95723,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3079"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 173.19737,830.26619 1.8116,-5.43485 -5.50448,0 16.51345,-49.40098 -22.85406,0 -1.88128,5.50448 6.41028,0 -16.44378,49.33135 21.94827,0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3083"
|
||||
style="fill:#cccccc;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.20903109000000000;stroke-miterlimit:2.60999990000000004;stroke-opacity:1;stroke-dasharray:none;"
|
||||
d="m 191.45275,758.98656 3.69288,-11.00896 -1.8116,-2.71743 -11.00897,0 -3.62321,2.71743 -3.69288,11.00896 1.88128,2.71742 11.00897,0 3.55353,-2.71742" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 14 KiB |
175
nsis/lang/danish.nsi
Normal file
175
nsis/lang/danish.nsi
Normal file
@ -0,0 +1,175 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# danish.nsi: Danish language strings for gvim NSIS installer.
|
||||
#
|
||||
# Locale ID : 1030
|
||||
# fileencoding : UTF-8
|
||||
# Author : scootergrisen
|
||||
|
||||
!insertmacro MUI_LANGUAGE "Danish"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_DANISH} "$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_DANISH} "$(^Name) Uninstall"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_DANISH} "Destinationsmappe (skal slutte med $\"vim$\")"
|
||||
|
||||
LangString str_show_readme ${LANG_DANISH} "Vis README efter installationen er gennemført"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_DANISH} "Typisk"
|
||||
|
||||
LangString str_type_minimal ${LANG_DANISH} "Minimal"
|
||||
|
||||
LangString str_type_full ${LANG_DANISH} "Fuld"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_DANISH} "Afinstaller eksisterende version(er)"
|
||||
LangString str_desc_old_ver ${LANG_DANISH} "Afinstaller eksisterende Vim-version(er) fra dit system."
|
||||
|
||||
LangString str_section_exe ${LANG_DANISH} "Vim GUI og afviklingsfiler"
|
||||
LangString str_desc_exe ${LANG_DANISH} "Vim GUI-eksekverbare- og afviklingsfiler. Komponenten kræves."
|
||||
|
||||
LangString str_section_console ${LANG_DANISH} "Vim-konsolprogram"
|
||||
LangString str_desc_console ${LANG_DANISH} "Konsolversion af Vim (vim.exe)."
|
||||
|
||||
LangString str_section_batch ${LANG_DANISH} "Opret .bat-filer"
|
||||
LangString str_desc_batch ${LANG_DANISH} "Opret .bat-filer til Vim-varianter i Windows-mappen til brug fra kommandolinjen."
|
||||
|
||||
LangString str_group_icons ${LANG_DANISH} "Opret ikoner til Vim"
|
||||
LangString str_desc_icons ${LANG_DANISH} "Opret ikoner til Vim diverse steder for at hjælpe med at gøre adgangen let."
|
||||
|
||||
LangString str_section_desktop ${LANG_DANISH} "På skrivebordet"
|
||||
LangString str_desc_desktop ${LANG_DANISH} "Opret ikoner til gVim-eksekverbare på skrivebordet."
|
||||
|
||||
LangString str_section_start_menu ${LANG_DANISH} "I Programmer-mappen i menuen Start"
|
||||
LangString str_desc_start_menu ${LANG_DANISH} "Tilføj Vim i Programmer-mappen i menuen Start."
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_DANISH} "I værktøjslinjen Hurtig start"
|
||||
#LangString str_desc_quick_launch ${LANG_DANISH} "Tilføj Vim-genvej i værktøjslinjen Hurtig start."
|
||||
|
||||
LangString str_section_edit_with ${LANG_DANISH} "Tilføj Vim-genvejsmenu"
|
||||
LangString str_desc_edit_with ${LANG_DANISH} "Tilføj Vim til listen i $\"Åbn med...$\"-genvejsmenuen."
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_DANISH} "32-bit-version"
|
||||
#LangString str_desc_edit_with32 ${LANG_DANISH} "Tilføj Vim til listen i $\"Åbn med...$\"-genvejsmenuen for 32-bit-programmer."
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_DANISH} "64-bit-version"
|
||||
#LangString str_desc_edit_with64 ${LANG_DANISH} "Tilføj Vim til listen i $\"Åbn med...$\"-genvejsmenuen for 64-bit-programmer."
|
||||
|
||||
LangString str_section_vim_rc ${LANG_DANISH} "Opret standardkonfiguration"
|
||||
LangString str_desc_vim_rc ${LANG_DANISH} "Opret en standardkonfigurationsfil (_vimrc) hvis der ikke allerede findes en."
|
||||
|
||||
LangString str_group_plugin ${LANG_DANISH} "Opret plugin-mapper"
|
||||
LangString str_desc_plugin ${LANG_DANISH} "Opret plugin-mapper. Plugin-mapper giver mulighed for at udvide Vim ved at slippe en fil i en mappen."
|
||||
|
||||
LangString str_section_plugin_home ${LANG_DANISH} "Private"
|
||||
LangString str_desc_plugin_home ${LANG_DANISH} "Opret plugin-mapper i HOME-mappen."
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_DANISH} "Delte"
|
||||
LangString str_desc_plugin_vim ${LANG_DANISH} "Opret plugin-mapper i Vim-installationsmappe, det bruges af alle på systemet."
|
||||
|
||||
LangString str_section_vis_vim ${LANG_DANISH} "VisVim-udvidelser"
|
||||
LangString str_desc_vis_vim ${LANG_DANISH} "VisVim-udvidelser til integrering i Microsoft Visual Studio."
|
||||
|
||||
LangString str_section_nls ${LANG_DANISH} "Understøttelse af modersmål"
|
||||
LangString str_desc_nls ${LANG_DANISH} "Installer filer til understøttelse af modersmål."
|
||||
|
||||
LangString str_unsection_register ${LANG_DANISH} "Afregistrer Vim"
|
||||
LangString str_desc_unregister ${LANG_DANISH} "Afregistrer Vim fra systemet."
|
||||
|
||||
LangString str_unsection_exe ${LANG_DANISH} "Fjern Vim-eksekverbare-/afviklingsfiler"
|
||||
LangString str_desc_rm_exe ${LANG_DANISH} "Fjern alle Vim-eksekverbare- og afviklingsfiler."
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_DANISH} "Fjern plugin-mapper"
|
||||
LangString str_desc_rm_plugin ${LANG_DANISH} "Fjern plugin-mapperne hvis de er tomme."
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_DANISH} "Privat"
|
||||
LangString str_desc_rm_plugin_home ${LANG_DANISH} "Fjern plugin-mapperne fra HOME-mappen."
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_DANISH} "Delte"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_DANISH} "Fjern plugin-mapperne fra Vim-installationsmappen."
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_DANISH} "Fjern Vim-rodmappen"
|
||||
LangString str_desc_rm_rootdir ${LANG_DANISH} "Fjern Vim-rodmappen. Den indeholder dine Vim-konfigurationsfiler!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_DANISH} "Fandt $vim_old_ver_count Vim-versioner på dit system.$\r$\nInstallationsguiden kan højst håndtere ${VIM_MAX_OLD_VER}-versioner.$\r$\nFjern venligst nogle versioner og start igen."
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_DANISH} "Ugyldig installationssti: $vim_install_root!$\r$\nDen skal slutte med $\"vim$\"."
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_DANISH} "Uoverensstemmelse i binære sti!$\r$\n$\r$\nForventede at den binære sti var $\"$vim_bin_path$\",$\r$\nmen systemet indikerer at den binære sti er $\"$INSTDIR$\"."
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_DANISH} "Vim kører stadig på dit system.$\r$\nLuk venligst alle instanser af Vim inden du fortsætter."
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_DANISH} "Forsøger at registrere Vim med OLE. Der er ingen meddelelse til at indikere om det virker eller ej."
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_DANISH} "Forsøger at afregistrere Vim med OLE. Der er ingen meddelelse til at indikere om det virker eller ej."
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_DANISH} "Afinstallerer følgende version:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_DANISH} "Kunne ikke afinstallere følgende version:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_DANISH} "Kan ikke finde registreringsdatabasenøgle for afinstallationsguiden."
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_DANISH} "Kan ikke finde afinstallationsguiden fra registreringsdatabasen."
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_DANISH} "Kan ikke tilgå afinstallationsguide."
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_DANISH} "Kunne ikke kopiere afinstallationsguide til midlertidig mappe."
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_DANISH} "Kunne ikke køre afinstallationsguide."
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_DANISH} "Installationsguiden vil afbryde."
|
||||
|
||||
LangString str_msg_install_fail ${LANG_DANISH} "Installationen mislykkedes. Bedre held næste gang."
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_DANISH} "Nogle filer i $0 er ikke blevet slettet!$\r$\nDu skal gøre det manuelt."
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_DANISH} "ADVARSEL: Kan ikke fjerne $\"$vim_install_root$\", den er ikke tom!"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_DANISH} "Afinstallerer den gamle version..."
|
||||
|
||||
LangString str_msg_registering ${LANG_DANISH} "Registrerer..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_DANISH} "Afregistrerer..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_DANISH} "Vælg _vimrc-indstillinger"
|
||||
LangString str_vimrc_page_subtitle ${LANG_DANISH} "Vælg indstillingerne til forbedring, tastatur og mus."
|
||||
|
||||
LangString str_msg_compat_title ${LANG_DANISH} " Vi- / Vim-opførsel "
|
||||
LangString str_msg_compat_desc ${LANG_DANISH} "&Kompatibilitet og forbedringer"
|
||||
LangString str_msg_compat_vi ${LANG_DANISH} "Vi-kompatibel"
|
||||
LangString str_msg_compat_vim ${LANG_DANISH} "Vim original"
|
||||
LangString str_msg_compat_defaults ${LANG_DANISH} "Vim med nogle forbedringer (indlæs defaults.vim)"
|
||||
LangString str_msg_compat_all ${LANG_DANISH} "Vim med alle forbedringer (indlæs vimrc_example.vim) (standard)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_DANISH} " Tilknytninger "
|
||||
LangString str_msg_keymap_desc ${LANG_DANISH} "&Gentilknyt nogle få taster (Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F osv.)"
|
||||
LangString str_msg_keymap_default ${LANG_DANISH} "Gentilknyt ikke taster (standard)"
|
||||
LangString str_msg_keymap_windows ${LANG_DANISH} "Gentilknyt nogle få taster til Windows"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_DANISH} " Mus "
|
||||
LangString str_msg_mouse_desc ${LANG_DANISH} "&Opførsel af højre og venstre knapper"
|
||||
LangString str_msg_mouse_default ${LANG_DANISH} "Højre: genvejsmenu, venstre: visuel tilstand (standard)"
|
||||
LangString str_msg_mouse_windows ${LANG_DANISH} "Højre: genvejsmenu, venstre: vælg-tilstand (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_DANISH} "Højre: udvider markering, venstre: visuel tilstand (Unix)"
|
281
nsis/lang/dutch.nsi
Normal file
281
nsis/lang/dutch.nsi
Normal file
@ -0,0 +1,281 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# dutch.nsi : Dutch language strings for gvim NSIS installer.
|
||||
#
|
||||
# Locale ID : 1043
|
||||
# Locale Name : nl
|
||||
# fileencoding : UTF-8
|
||||
# Author : Peter Odding <peter@peterodding.com>
|
||||
|
||||
!insertmacro MUI_LANGUAGE "Dutch"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_DUTCH} \
|
||||
"$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_DUTCH} \
|
||||
"$(^Name) Uninstall"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_DUTCH} \
|
||||
# "Doelmap (moet eindigen op $\"vim$\")"
|
||||
|
||||
LangString str_show_readme ${LANG_DUTCH} \
|
||||
"README weergeven na installatie"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_DUTCH} \
|
||||
"Gebruikelijk"
|
||||
|
||||
LangString str_type_minimal ${LANG_DUTCH} \
|
||||
"Minimaal"
|
||||
|
||||
LangString str_type_full ${LANG_DUTCH} \
|
||||
"Volledig"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_DUTCH} \
|
||||
"Bestaande versie(s) de-installeren"
|
||||
LangString str_desc_old_ver ${LANG_DUTCH} \
|
||||
"Bestaande Vim versie(s) van je systeem verwijderen."
|
||||
|
||||
LangString str_section_exe ${LANG_DUTCH} \
|
||||
"Vim GUI"
|
||||
LangString str_desc_exe ${LANG_DUTCH} \
|
||||
"Vim GUI uitvoerbare bestanden en runtime bestanden. Dit component is vereist."
|
||||
|
||||
LangString str_section_console ${LANG_DUTCH} \
|
||||
"Vim console programma"
|
||||
LangString str_desc_console ${LANG_DUTCH} \
|
||||
"Console versie van Vim (vim.exe)."
|
||||
|
||||
LangString str_section_batch ${LANG_DUTCH} \
|
||||
"Creëer .bat bestanden"
|
||||
LangString str_desc_batch ${LANG_DUTCH} \
|
||||
"Creëer .bat bestanden voor Vim varianten in de Windows map voor \
|
||||
commando regel gebruik."
|
||||
|
||||
LangString str_group_icons ${LANG_DUTCH} \
|
||||
"Creëer pictogrammen for Vim"
|
||||
LangString str_desc_icons ${LANG_DUTCH} \
|
||||
"Creëer pictogrammen voor Vim op verschillende locaties voor gemakkelijke toegang."
|
||||
|
||||
LangString str_section_desktop ${LANG_DUTCH} \
|
||||
"Op het bureaublad"
|
||||
LangString str_desc_desktop ${LANG_DUTCH} \
|
||||
"Creëer pictogrammen voor Vim uitvoerbare bestanden op het bureaublad."
|
||||
|
||||
LangString str_section_start_menu ${LANG_DUTCH} \
|
||||
"In de Programma's map in het start menu"
|
||||
LangString str_desc_start_menu ${LANG_DUTCH} \
|
||||
"Voeg Vim toe aan de programma's map in het start menu. \
|
||||
Van toepassing op Windows 95 en later."
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_DUTCH} \
|
||||
# "In de snel starten balk"
|
||||
#LangString str_desc_quick_launch ${LANG_DUTCH} \
|
||||
# "Voeg Vim snelkoppeling toe aan de snel starten balk."
|
||||
|
||||
LangString str_section_edit_with ${LANG_DUTCH} \
|
||||
"Voeg Vim contextmenu toe"
|
||||
LangString str_desc_edit_with ${LANG_DUTCH} \
|
||||
"Voeg Vim toe aan de $\"Openen met...$\" contextmenu lijst."
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_DUTCH} \
|
||||
# "32-bit versie"
|
||||
#LangString str_desc_edit_with32 ${LANG_DUTCH} \
|
||||
# "Voeg Vim toe aan de $\"Openen met...$\" contextmenu lijst \
|
||||
# voor 32-bit toepassingen."
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_DUTCH} \
|
||||
# "64-bit versie"
|
||||
#LangString str_desc_edit_with64 ${LANG_DUTCH} \
|
||||
# "Voeg Vim toe aan de $\"Openen met...$\" contextmenu lijst \
|
||||
# voor 64-bit toepassingen."
|
||||
|
||||
LangString str_section_vim_rc ${LANG_DUTCH} \
|
||||
"Creëer standaard configuratie"
|
||||
LangString str_desc_vim_rc ${LANG_DUTCH} \
|
||||
"Creëer een standaard configuratie bestand (_vimrc) als er nog geen bestaat."
|
||||
|
||||
LangString str_group_plugin ${LANG_DUTCH} \
|
||||
"Creëer Plugin mappen"
|
||||
LangString str_desc_plugin ${LANG_DUTCH} \
|
||||
"Creëer plugin mappen. Plugin mappen maken het mogelijk om \
|
||||
Vim uit te breiden door een bestand in een map te plaatsen."
|
||||
|
||||
LangString str_section_plugin_home ${LANG_DUTCH} \
|
||||
"Privé"
|
||||
LangString str_desc_plugin_home ${LANG_DUTCH} \
|
||||
"Create plugin directories in HOME directory."
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_DUTCH} \
|
||||
"Gedeeld"
|
||||
LangString str_desc_plugin_vim ${LANG_DUTCH} \
|
||||
"Creëer plugin mappen in Vim installatie map, deze worden gebruikt \
|
||||
voor iedereen op het systeem."
|
||||
|
||||
LangString str_section_vis_vim ${LANG_DUTCH} \
|
||||
"VisVim extensie"
|
||||
LangString str_desc_vis_vim ${LANG_DUTCH} \
|
||||
"VisVim extensie voor Microsoft Visual Studio integratie."
|
||||
|
||||
LangString str_section_nls ${LANG_DUTCH} \
|
||||
"Ondersteuning voor andere talen"
|
||||
LangString str_desc_nls ${LANG_DUTCH} \
|
||||
"Bestanden voor ondersteuning van andere talen dan Engels installeren."
|
||||
|
||||
LangString str_unsection_register ${LANG_DUTCH} \
|
||||
"Vim afmelden"
|
||||
LangString str_desc_unregister ${LANG_DUTCH} \
|
||||
"Registratie van Vim in het systeem ongedaan maken."
|
||||
|
||||
LangString str_unsection_exe ${LANG_DUTCH} \
|
||||
"Vim uitvoerbare/runtime bestanden verwijderen"
|
||||
LangString str_desc_rm_exe ${LANG_DUTCH} \
|
||||
"Verwijder alle Vim uitvoerbare bestanden en runtime bestanden."
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_DUTCH} \
|
||||
"Remove plugin directories"
|
||||
LangString str_desc_rm_plugin ${LANG_DUTCH} \
|
||||
"Remove the plugin directories if they are empty."
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_DUTCH} \
|
||||
"Privé"
|
||||
LangString str_desc_rm_plugin_home ${LANG_DUTCH} \
|
||||
"Remove the plugin directories from HOME directory."
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_DUTCH} \
|
||||
"Gedeeld"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_DUTCH} \
|
||||
"Remove the plugin directories from Vim install directory."
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_DUTCH} \
|
||||
"Remove the Vim root directory"
|
||||
LangString str_desc_rm_rootdir ${LANG_DUTCH} \
|
||||
"Remove the Vim root directory. It contains your Vim configuration files!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_DUTCH} \
|
||||
# "Er zijn $vim_old_ver_count Vim versies op je systeem gevonden.$\r$\n\
|
||||
# Deze installatie kan omgaan met maximaal ${VIM_MAX_OLD_VER} versies.$\r$\n\
|
||||
# Verwijder a.u.b. wat versies en probeer het dan opnieuw."
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_DUTCH} \
|
||||
# "Ongeldig installatiepad: $vim_install_root!$\r$\n\
|
||||
# Het moet eindelijk op $\"vim$\"."
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_DUTCH} \
|
||||
# "Binair pad onjuist!$\r$\n$\r$\n\
|
||||
# Het binaire pad zou $\"$vim_bin_path$\" moeten zijn,$\r$\n\
|
||||
# maar het systeem geeft aan dat het binaire pad $\"$INSTDIR$\" is."
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_DUTCH} \
|
||||
# "Vim is nog actief op je systeem.$\r$\n\
|
||||
# Sluit a.u.b. alle instanties van Vim voordat je verder gaat."
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_DUTCH} \
|
||||
# "Bezig met proberen om Vim te registreren met OLE. \
|
||||
# Er is geen bericht dat aangeeft of deze operatie slaagt."
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_DUTCH} \
|
||||
# "Bezig met proberen om Vim te de-registreren met OLE. \
|
||||
# Er is geen bericht dat aangeeft of deze operatie slaagt."
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_DUTCH} \
|
||||
# "De volgende versies worden verwijderd:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_DUTCH} \
|
||||
# "De volgende versies konden niet worden verwijderd:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_DUTCH} \
|
||||
# "Kan de uninstaller register sleutel niet vinden."
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_DUTCH} \
|
||||
# "Kan de uninstaller niet vinden via het register."
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_DUTCH} \
|
||||
# "Kan geen toegang krijgen tot de uninstaller."
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_DUTCH} \
|
||||
# "Kon de uninstaller niet naar een tijdelijke map kopiëren."
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_DUTCH} \
|
||||
# "Kon de uninstaller niet uitvoeren."
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_DUTCH} \
|
||||
# "Installatie wordt gestopt."
|
||||
|
||||
LangString str_msg_install_fail ${LANG_DUTCH} \
|
||||
"Installatie is mislukt."
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_DUTCH} \
|
||||
"Sommige bestanden in $0 zijn niet verwijderd!$\r$\n\
|
||||
Dit moet je handmatig doen."
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_DUTCH} \
|
||||
# "WAARSCHUWING: Kan $\"$vim_install_root$\" niet verwijderen omdat het niet leeg is!"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_DUTCH} \
|
||||
"Uninstalling the old version..."
|
||||
|
||||
LangString str_msg_registering ${LANG_DUTCH} \
|
||||
"Registering..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_DUTCH} \
|
||||
"Unregistering..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_DUTCH} \
|
||||
"Choose _vimrc settings"
|
||||
LangString str_vimrc_page_subtitle ${LANG_DUTCH} \
|
||||
"Choose the settings for enhancement, keyboard and mouse."
|
||||
|
||||
LangString str_msg_compat_title ${LANG_DUTCH} \
|
||||
" Vi / Vim behavior "
|
||||
LangString str_msg_compat_desc ${LANG_DUTCH} \
|
||||
"&Compatibility and enhancements"
|
||||
LangString str_msg_compat_vi ${LANG_DUTCH} \
|
||||
"Vi compatible"
|
||||
LangString str_msg_compat_vim ${LANG_DUTCH} \
|
||||
"Vim original"
|
||||
LangString str_msg_compat_defaults ${LANG_DUTCH} \
|
||||
"Vim with some enhancements (load defaults.vim)"
|
||||
LangString str_msg_compat_all ${LANG_DUTCH} \
|
||||
"Vim with all enhancements (load vimrc_example.vim) (Default)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_DUTCH} \
|
||||
" Mappings "
|
||||
LangString str_msg_keymap_desc ${LANG_DUTCH} \
|
||||
"&Remap a few keys for Windows (Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F, etc)"
|
||||
LangString str_msg_keymap_default ${LANG_DUTCH} \
|
||||
"Do not remap keys (Default)"
|
||||
LangString str_msg_keymap_windows ${LANG_DUTCH} \
|
||||
"Remap a few keys"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_DUTCH} \
|
||||
" Mouse "
|
||||
LangString str_msg_mouse_desc ${LANG_DUTCH} \
|
||||
"&Behavior of right and left buttons"
|
||||
LangString str_msg_mouse_default ${LANG_DUTCH} \
|
||||
"Right: popup menu, Left: visual mode (Default)"
|
||||
LangString str_msg_mouse_windows ${LANG_DUTCH} \
|
||||
"Right: popup menu, Left: select mode (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_DUTCH} \
|
||||
"Right: extends selection, Left: visual mode (Unix)"
|
280
nsis/lang/english.nsi
Normal file
280
nsis/lang/english.nsi
Normal file
@ -0,0 +1,280 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# english.nsi: English language strings for gvim NSIS installer.
|
||||
#
|
||||
# Locale ID : 1033
|
||||
# fileencoding : UTF-8
|
||||
# Author : Guopeng Wen, Ken Takata
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_ENGLISH} \
|
||||
"$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_ENGLISH} \
|
||||
"$(^Name) Uninstall"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_ENGLISH} \
|
||||
# "Destination Folder (Must end with $\"vim$\")"
|
||||
|
||||
LangString str_show_readme ${LANG_ENGLISH} \
|
||||
"Show README after installation finish"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_ENGLISH} \
|
||||
"Typical"
|
||||
|
||||
LangString str_type_minimal ${LANG_ENGLISH} \
|
||||
"Minimal"
|
||||
|
||||
LangString str_type_full ${LANG_ENGLISH} \
|
||||
"Full"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_ENGLISH} \
|
||||
"Uninstall Existing Version(s)"
|
||||
LangString str_desc_old_ver ${LANG_ENGLISH} \
|
||||
"Uninstall existing Vim version(s) from your system."
|
||||
|
||||
LangString str_section_exe ${LANG_ENGLISH} \
|
||||
"Vim GUI and runtime files"
|
||||
LangString str_desc_exe ${LANG_ENGLISH} \
|
||||
"Vim GUI executables and runtime files. This component is required."
|
||||
|
||||
LangString str_section_console ${LANG_ENGLISH} \
|
||||
"Vim console program"
|
||||
LangString str_desc_console ${LANG_ENGLISH} \
|
||||
"Console version of Vim (vim.exe)."
|
||||
|
||||
LangString str_section_batch ${LANG_ENGLISH} \
|
||||
"Create .bat files"
|
||||
LangString str_desc_batch ${LANG_ENGLISH} \
|
||||
"Create .bat files for Vim variants in the Windows directory for \
|
||||
command line use."
|
||||
|
||||
LangString str_group_icons ${LANG_ENGLISH} \
|
||||
"Create icons for Vim"
|
||||
LangString str_desc_icons ${LANG_ENGLISH} \
|
||||
"Create icons for Vim at various locations to facilitate easy access."
|
||||
|
||||
LangString str_section_desktop ${LANG_ENGLISH} \
|
||||
"On the Desktop"
|
||||
LangString str_desc_desktop ${LANG_ENGLISH} \
|
||||
"Create icons for gVim executables on the desktop."
|
||||
|
||||
LangString str_section_start_menu ${LANG_ENGLISH} \
|
||||
"In the Start Menu Programs Folder"
|
||||
LangString str_desc_start_menu ${LANG_ENGLISH} \
|
||||
"Add Vim in the programs folder of the start menu."
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_ENGLISH} \
|
||||
# "In the Quick Launch Bar"
|
||||
#LangString str_desc_quick_launch ${LANG_ENGLISH} \
|
||||
# "Add Vim shortcut in the quick launch bar."
|
||||
|
||||
LangString str_section_edit_with ${LANG_ENGLISH} \
|
||||
"Add Vim Context Menu"
|
||||
LangString str_desc_edit_with ${LANG_ENGLISH} \
|
||||
"Add Vim to the $\"Open With...$\" context menu list."
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_ENGLISH} \
|
||||
# "32-bit Version"
|
||||
#LangString str_desc_edit_with32 ${LANG_ENGLISH} \
|
||||
# "Add Vim to the $\"Open With...$\" context menu list \
|
||||
# for 32-bit applications."
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_ENGLISH} \
|
||||
# "64-bit Version"
|
||||
#LangString str_desc_edit_with64 ${LANG_ENGLISH} \
|
||||
# "Add Vim to the $\"Open With...$\" context menu list \
|
||||
# for 64-bit applications."
|
||||
|
||||
LangString str_section_vim_rc ${LANG_ENGLISH} \
|
||||
"Create Default Config"
|
||||
LangString str_desc_vim_rc ${LANG_ENGLISH} \
|
||||
"Create a default config file (_vimrc) if one does not already exist."
|
||||
|
||||
LangString str_group_plugin ${LANG_ENGLISH} \
|
||||
"Create Plugin Directories"
|
||||
LangString str_desc_plugin ${LANG_ENGLISH} \
|
||||
"Create plugin directories. Plugin directories allow extending Vim \
|
||||
by dropping a file into a directory."
|
||||
|
||||
LangString str_section_plugin_home ${LANG_ENGLISH} \
|
||||
"Private"
|
||||
LangString str_desc_plugin_home ${LANG_ENGLISH} \
|
||||
"Create plugin directories in HOME directory."
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_ENGLISH} \
|
||||
"Shared"
|
||||
LangString str_desc_plugin_vim ${LANG_ENGLISH} \
|
||||
"Create plugin directories in Vim install directory, it is used for \
|
||||
everybody on the system."
|
||||
|
||||
LangString str_section_vis_vim ${LANG_ENGLISH} \
|
||||
"VisVim Extension"
|
||||
LangString str_desc_vis_vim ${LANG_ENGLISH} \
|
||||
"VisVim Extension for Microsoft Visual Studio integration."
|
||||
|
||||
LangString str_section_nls ${LANG_ENGLISH} \
|
||||
"Native Language Support"
|
||||
LangString str_desc_nls ${LANG_ENGLISH} \
|
||||
"Install files for native language support."
|
||||
|
||||
LangString str_unsection_register ${LANG_ENGLISH} \
|
||||
"Unregister Vim"
|
||||
LangString str_desc_unregister ${LANG_ENGLISH} \
|
||||
"Unregister Vim from the system."
|
||||
|
||||
LangString str_unsection_exe ${LANG_ENGLISH} \
|
||||
"Remove Vim Executables/Runtime Files"
|
||||
LangString str_desc_rm_exe ${LANG_ENGLISH} \
|
||||
"Remove all Vim executables and runtime files."
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_ENGLISH} \
|
||||
"Remove plugin directories"
|
||||
LangString str_desc_rm_plugin ${LANG_ENGLISH} \
|
||||
"Remove the plugin directories if they are empty."
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_ENGLISH} \
|
||||
"Private"
|
||||
LangString str_desc_rm_plugin_home ${LANG_ENGLISH} \
|
||||
"Remove the plugin directories from HOME directory."
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_ENGLISH} \
|
||||
"Shared"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_ENGLISH} \
|
||||
"Remove the plugin directories from Vim install directory."
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_ENGLISH} \
|
||||
"Remove the Vim root directory"
|
||||
LangString str_desc_rm_rootdir ${LANG_ENGLISH} \
|
||||
"Remove the Vim root directory. It contains your Vim configuration files!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_ENGLISH} \
|
||||
# "Found $vim_old_ver_count Vim versions on your system.$\r$\n\
|
||||
# This installer can only handle ${VIM_MAX_OLD_VER} versions \
|
||||
# at most.$\r$\n\
|
||||
# Please remove some versions and start again."
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_ENGLISH} \
|
||||
# "Invalid install path: $vim_install_root!$\r$\n\
|
||||
# It should end with $\"vim$\"."
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_ENGLISH} \
|
||||
# "Binary path mismatch!$\r$\n$\r$\n\
|
||||
# Expect the binary path to be $\"$vim_bin_path$\",$\r$\n\
|
||||
# but system indicates the binary path is $\"$INSTDIR$\"."
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_ENGLISH} \
|
||||
# "Vim is still running on your system.$\r$\n\
|
||||
# Please close all instances of Vim before you continue."
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_ENGLISH} \
|
||||
# "Attempting to register Vim with OLE. \
|
||||
# There is no message indicates whether this works or not."
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_ENGLISH} \
|
||||
# "Attempting to unregister Vim with OLE. \
|
||||
# There is no message indicates whether this works or not."
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_ENGLISH} \
|
||||
# "Uninstalling the following version:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_ENGLISH} \
|
||||
# "Fail to uninstall the following version:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_ENGLISH} \
|
||||
# "Cannot find uninstaller registry key."
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_ENGLISH} \
|
||||
# "Cannot find uninstaller from registry."
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_ENGLISH} \
|
||||
# "Cannot access uninstaller."
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_ENGLISH} \
|
||||
# "Fail to copy uninstaller to temporary directory."
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_ENGLISH} \
|
||||
# "Fail to run uninstaller."
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_ENGLISH} \
|
||||
# "Installer will abort."
|
||||
|
||||
LangString str_msg_install_fail ${LANG_ENGLISH} \
|
||||
"Installation failed. Better luck next time."
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_ENGLISH} \
|
||||
"Some files in $0 have not been deleted!$\r$\n\
|
||||
You must do it manually."
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_ENGLISH} \
|
||||
# "WARNING: Cannot remove $\"$vim_install_root$\", it is not empty!"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_ENGLISH} \
|
||||
"Uninstalling the old version..."
|
||||
|
||||
LangString str_msg_registering ${LANG_ENGLISH} \
|
||||
"Registering..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_ENGLISH} \
|
||||
"Unregistering..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_ENGLISH} \
|
||||
"Choose _vimrc settings"
|
||||
LangString str_vimrc_page_subtitle ${LANG_ENGLISH} \
|
||||
"Choose the settings for enhancement, keyboard and mouse."
|
||||
|
||||
LangString str_msg_compat_title ${LANG_ENGLISH} \
|
||||
" Vi / Vim behavior "
|
||||
LangString str_msg_compat_desc ${LANG_ENGLISH} \
|
||||
"&Compatibility and enhancements"
|
||||
LangString str_msg_compat_vi ${LANG_ENGLISH} \
|
||||
"Vi compatible"
|
||||
LangString str_msg_compat_vim ${LANG_ENGLISH} \
|
||||
"Vim original"
|
||||
LangString str_msg_compat_defaults ${LANG_ENGLISH} \
|
||||
"Vim with some enhancements (load defaults.vim)"
|
||||
LangString str_msg_compat_all ${LANG_ENGLISH} \
|
||||
"Vim with all enhancements (load vimrc_example.vim) (Default)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_ENGLISH} \
|
||||
" Mappings "
|
||||
LangString str_msg_keymap_desc ${LANG_ENGLISH} \
|
||||
"&Remap a few keys for Windows (Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F, etc)"
|
||||
LangString str_msg_keymap_default ${LANG_ENGLISH} \
|
||||
"Do not remap keys (Default)"
|
||||
LangString str_msg_keymap_windows ${LANG_ENGLISH} \
|
||||
"Remap a few keys"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_ENGLISH} \
|
||||
" Mouse "
|
||||
LangString str_msg_mouse_desc ${LANG_ENGLISH} \
|
||||
"&Behavior of right and left buttons"
|
||||
LangString str_msg_mouse_default ${LANG_ENGLISH} \
|
||||
"Right: popup menu, Left: visual mode (Default)"
|
||||
LangString str_msg_mouse_windows ${LANG_ENGLISH} \
|
||||
"Right: popup menu, Left: select mode (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_ENGLISH} \
|
||||
"Right: extends selection, Left: visual mode (Unix)"
|
280
nsis/lang/german.nsi
Normal file
280
nsis/lang/german.nsi
Normal file
@ -0,0 +1,280 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# german.nsi : German language strings for gvim NSIS installer.
|
||||
#
|
||||
# Locale ID : 1031
|
||||
# fileencoding : UTF-8
|
||||
# Author : Christian Brabandt, tux
|
||||
|
||||
!insertmacro MUI_LANGUAGE "German"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_GERMAN} \
|
||||
"$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_GERMAN} \
|
||||
"$(^Name) Uninstall"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_GERMAN} \
|
||||
# "Zielverzeichnis auswählen (muss auf $\"vim$\" enden)"
|
||||
|
||||
LangString str_show_readme ${LANG_GERMAN} \
|
||||
"README-Datei nach der Installation anzeigen"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_GERMAN} \
|
||||
"Typisch"
|
||||
|
||||
LangString str_type_minimal ${LANG_GERMAN} \
|
||||
"Minimal"
|
||||
|
||||
LangString str_type_full ${LANG_GERMAN} \
|
||||
"Vollständig"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_GERMAN} \
|
||||
"Vorherige Version deinstallieren"
|
||||
LangString str_desc_old_ver ${LANG_GERMAN} \
|
||||
"Vorherige installierte Versionen auf diesem System deinstallieren."
|
||||
|
||||
LangString str_section_exe ${LANG_GERMAN} \
|
||||
"Vim GUI"
|
||||
LangString str_desc_exe ${LANG_GERMAN} \
|
||||
"Vim (Anwendung) und Laufzeitdateien (Dieser Teil ist zwingend \
|
||||
erforderlich)."
|
||||
|
||||
LangString str_section_console ${LANG_GERMAN} \
|
||||
"Vim Konsolenanwendung"
|
||||
LangString str_desc_console ${LANG_GERMAN} \
|
||||
"Konsolenversion von Vim."
|
||||
|
||||
LangString str_section_batch ${LANG_GERMAN} \
|
||||
".bat-Dateien erstellen"
|
||||
LangString str_desc_batch ${LANG_GERMAN} \
|
||||
".bat-Dateien erstellen, um Vim in der Konsole auszuführen."
|
||||
|
||||
LangString str_group_icons ${LANG_GERMAN} \
|
||||
"Vim-Verknüpfungen erstellen"
|
||||
LangString str_desc_icons ${LANG_GERMAN} \
|
||||
"Verknüpfungen mit Vim für einfachen Aufruf erstellen."
|
||||
|
||||
LangString str_section_desktop ${LANG_GERMAN} \
|
||||
"Auf dem Desktop"
|
||||
LangString str_desc_desktop ${LANG_GERMAN} \
|
||||
"Icons für GVim auf dem Desktop erstellen."
|
||||
|
||||
LangString str_section_start_menu ${LANG_GERMAN} \
|
||||
"Im Startmenü"
|
||||
LangString str_desc_start_menu ${LANG_GERMAN} \
|
||||
"Vim im Programmverzeichnis des Startmenüs hinzufügen."
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_GERMAN} \
|
||||
# "In der Schnellstartleiste"
|
||||
#LangString str_desc_quick_launch ${LANG_GERMAN} \
|
||||
# "Verknüpfung zu Vim in der Schnellstartleiste ablegen."
|
||||
|
||||
LangString str_section_edit_with ${LANG_GERMAN} \
|
||||
"Vim zum Kontextmenü hinzufügen"
|
||||
LangString str_desc_edit_with ${LANG_GERMAN} \
|
||||
"Vim in das $\"Öffnen mit...$\"-Kontextmenü einfügen."
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_GERMAN} \
|
||||
# "32-Bit-Version"
|
||||
#LangString str_desc_edit_with32 ${LANG_GERMAN} \
|
||||
# "Vim in das $\"Öffnen mit...$\"-Kontextmenü \
|
||||
# für 32-Bit-Anwendungen integrieren."
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_GERMAN} \
|
||||
# "64-Bit-Version"
|
||||
#LangString str_desc_edit_with64 ${LANG_GERMAN} \
|
||||
# "Vim in das $\"Öffnen mit...$\"-Kontextmenü \
|
||||
# für 64-Bit-Anwendungen integrieren."
|
||||
|
||||
LangString str_section_vim_rc ${LANG_GERMAN} \
|
||||
"Standard-Konfigurationsdatei erstellen"
|
||||
LangString str_desc_vim_rc ${LANG_GERMAN} \
|
||||
"Eine Standard-Konfigurationsdatei (_vimrc) erstellen, \
|
||||
falls noch keine existiert."
|
||||
|
||||
LangString str_group_plugin ${LANG_GERMAN} \
|
||||
"Plugin-Verzeichnisse anlegen"
|
||||
LangString str_desc_plugin ${LANG_GERMAN} \
|
||||
"Plugin-Verzeichnisse anlegen. Plugins erlauben es, Vim \
|
||||
um zusätzliche Funktionen zu erweitern."
|
||||
|
||||
LangString str_section_plugin_home ${LANG_GERMAN} \
|
||||
"Privat"
|
||||
LangString str_desc_plugin_home ${LANG_GERMAN} \
|
||||
"Erstelle Plugin-Verzeichnis im HOME Benutzerverzeichnis."
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_GERMAN} \
|
||||
"Freigegeben"
|
||||
LangString str_desc_plugin_vim ${LANG_GERMAN} \
|
||||
"Plugin-Verzeichnisse im Vim-Installationsverzeichnis erstellen. Diese werden \
|
||||
für alle Benutzer dieses Systems genutzt."
|
||||
|
||||
LangString str_section_vis_vim ${LANG_GERMAN} \
|
||||
"VisVim-Erweiterung"
|
||||
LangString str_desc_vis_vim ${LANG_GERMAN} \
|
||||
"VisVim-Erweiterung zur Integration in Microsoft Visual Studio."
|
||||
|
||||
LangString str_section_nls ${LANG_GERMAN} \
|
||||
"Unterstützung für andere Sprachen"
|
||||
LangString str_desc_nls ${LANG_GERMAN} \
|
||||
"Dateien zur Unterstützung anderer Sprachen als Englisch installieren."
|
||||
|
||||
LangString str_unsection_register ${LANG_GERMAN} \
|
||||
"Vim deinstallieren"
|
||||
LangString str_desc_unregister ${LANG_GERMAN} \
|
||||
"Vim vom System entfernen."
|
||||
|
||||
LangString str_unsection_exe ${LANG_GERMAN} \
|
||||
"Vim-Anwendung und Laufzeitdateien entfernen"
|
||||
LangString str_desc_rm_exe ${LANG_GERMAN} \
|
||||
"Alle Vim-Anwendungen und Laufzeitdateien von diesem System entfernen."
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_GERMAN} \
|
||||
"Entferne Plugin-Verzeichnisse"
|
||||
LangString str_desc_rm_plugin ${LANG_GERMAN} \
|
||||
"Entferne Plugin-Verzeichnisse, falls sie leer sind."
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_GERMAN} \
|
||||
"Privat"
|
||||
LangString str_desc_rm_plugin_home ${LANG_GERMAN} \
|
||||
"Entfernt die Plugin-Verzeichnisse aus dem HOME Benutzerverzeichnis."
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_GERMAN} \
|
||||
"Freigegeben"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_GERMAN} \
|
||||
"Entfernt das Plugin-Verzeichnis aus dem Vim-Installationsverzeichnis."
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_GERMAN} \
|
||||
"Entferne Vim Installationsverzeichnis"
|
||||
LangString str_desc_rm_rootdir ${LANG_GERMAN} \
|
||||
"Entfernt das Vim Installationsverzeichnis. Es enthält die Vim Konfigurationsdateien!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_GERMAN} \
|
||||
# "$vim_old_ver_count Vim-Versionen auf diesem System gefunden..$\r$\n\
|
||||
# Dieser Installer kann maximal ${VIM_MAX_OLD_VER} Versionen \
|
||||
# handhaben.$\r$\n\
|
||||
# Bitte alte Versionen entfernen und noch einmal probieren."
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_GERMAN} \
|
||||
# "Nicht gültiges Installationsverzeichnis: $vim_install_root!$\r$\n\
|
||||
# Der Pfad muss auf $\"vim$\" enden."
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_GERMAN} \
|
||||
# "Pfaddiskrepanz!$\r$\n$\r$\n\
|
||||
# Erwarte Anwendungsverzeichnis $\"$vim_bin_path$\",$\r$\n\
|
||||
# aber fand Anwendungspfad $\"$INSTDIR$\" vor."
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_GERMAN} \
|
||||
# "Laufender Vim-Prozess erkannt.$\r$\n\
|
||||
# Bitte alle laufenden Vim-Prozesse vor dem Fortfahren beenden."
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_GERMAN} \
|
||||
# "Versuche OLE-Registrierung durchzuführen."
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_GERMAN} \
|
||||
# "Versuche OLE-Registrierung zu löschen."
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_GERMAN} \
|
||||
# "Deinstalliere die folgende Version:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_GERMAN} \
|
||||
# "Deinstallation der Version fehlgeschlagen:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_GERMAN} \
|
||||
# "Deinstallationsschlüssel in der Registrierungsdatenbank nicht gefunden."
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_GERMAN} \
|
||||
# "Kein Uninstaller in der Registrierungsdatenbank gefunden."
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_GERMAN} \
|
||||
# "Kein Zugriff auf den Uninstaller."
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_GERMAN} \
|
||||
# "Fehler beim Kopieren des Uninstallers in ein temporäres Verzeichnis."
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_GERMAN} \
|
||||
# "Fehler beim Aufruf des Uninstallers."
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_GERMAN} \
|
||||
# "Installation wird abgebrochen."
|
||||
|
||||
LangString str_msg_install_fail ${LANG_GERMAN} \
|
||||
"Installation fehlerhaft beendet."
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_GERMAN} \
|
||||
"Einige Dateien im Pfad $0 konnten nicht gelöscht werden!$\r$\n\
|
||||
Diese Dateien müssen manuell gelöscht werden."
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_GERMAN} \
|
||||
# "Achtung: Kann Verzeichnis $\"$vim_install_root$\" nicht entfernen, \
|
||||
# weil es nicht leer ist!"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_GERMAN} \
|
||||
"Deinstalliere alte Version..."
|
||||
|
||||
LangString str_msg_registering ${LANG_GERMAN} \
|
||||
"Registriere..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_GERMAN} \
|
||||
"Entferne Registrierung..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_GERMAN} \
|
||||
"Wähle _vimrc Konfigurationsoptionen"
|
||||
LangString str_vimrc_page_subtitle ${LANG_GERMAN} \
|
||||
"Wähle Einstellungen zur Kompatibilität, Tastatur und Maus."
|
||||
|
||||
LangString str_msg_compat_title ${LANG_GERMAN} \
|
||||
" Vi / Vim Verhalten "
|
||||
LangString str_msg_compat_desc ${LANG_GERMAN} \
|
||||
"&Kompatibilität und Erweiterungen"
|
||||
LangString str_msg_compat_vi ${LANG_GERMAN} \
|
||||
"Vi-kompatibel"
|
||||
LangString str_msg_compat_vim ${LANG_GERMAN} \
|
||||
"Vim Original"
|
||||
LangString str_msg_compat_defaults ${LANG_GERMAN} \
|
||||
"Vim mit einigen Erweiterungen (Lädt defaults.vim)"
|
||||
LangString str_msg_compat_all ${LANG_GERMAN} \
|
||||
"Vim mit allen Erweiterungen (Lädt vimrc_example.vim) (Standard)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_GERMAN} \
|
||||
" Mappings für Windows Standard Tastenkombinationen "
|
||||
LangString str_msg_keymap_desc ${LANG_GERMAN} \
|
||||
"&Einige Tasten umkonfigurieren (Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F, etc)"
|
||||
LangString str_msg_keymap_default ${LANG_GERMAN} \
|
||||
"Keine Tasten umkonfigurieren (Standard)"
|
||||
LangString str_msg_keymap_windows ${LANG_GERMAN} \
|
||||
"Einige Tasten umkonfigurieren"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_GERMAN} \
|
||||
" Maus "
|
||||
LangString str_msg_mouse_desc ${LANG_GERMAN} \
|
||||
"&Verhalten der linken und rechten Buttons"
|
||||
LangString str_msg_mouse_default ${LANG_GERMAN} \
|
||||
"Rechts: Popup Menü, Links: Visueller Modus (Standard)"
|
||||
LangString str_msg_mouse_windows ${LANG_GERMAN} \
|
||||
"Rechts: Popup Menü, Links: Auswahl Modus (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_GERMAN} \
|
||||
"Rechts: Auswahl erweitern, Links: Visueller Modus (Unix)"
|
290
nsis/lang/italian.nsi
Normal file
290
nsis/lang/italian.nsi
Normal file
@ -0,0 +1,290 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# italian.nsi : Italian language strings for gvim NSIS installer.
|
||||
#
|
||||
# Locale ID : 1040
|
||||
# Locale Name : it
|
||||
# fileencoding : latin1
|
||||
# Author : Antonio Colombo
|
||||
|
||||
!insertmacro MUI_LANGUAGE "Italian"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_ITALIAN} \
|
||||
"$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_ITALIAN} \
|
||||
"$(^Name) Uninstall"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_ITALIAN} \
|
||||
# "Cartella d'installazione (il nome deve finire con $\"vim$\")"
|
||||
|
||||
LangString str_show_readme ${LANG_ITALIAN} \
|
||||
"Visualizza README al termine dell'installazione"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_ITALIAN} \
|
||||
"Tipica"
|
||||
|
||||
LangString str_type_minimal ${LANG_ITALIAN} \
|
||||
"Minima"
|
||||
|
||||
LangString str_type_full ${LANG_ITALIAN} \
|
||||
"Completa"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_ITALIAN} \
|
||||
"Disinstalla versione/i esistente/i"
|
||||
LangString str_desc_old_ver ${LANG_ITALIAN} \
|
||||
"Disinstalla versione/i esistente/i di Vim dal vostro sistema."
|
||||
|
||||
LangString str_section_exe ${LANG_ITALIAN} \
|
||||
"Vim GUI (gvim.exe per Windows)"
|
||||
LangString str_desc_exe ${LANG_ITALIAN} \
|
||||
"Vim GUI programmi e file di supporto. Questa componente è indispensabile."
|
||||
|
||||
LangString str_section_console ${LANG_ITALIAN} \
|
||||
"Vim console (vim.exe per MS-DOS)"
|
||||
LangString str_desc_console ${LANG_ITALIAN} \
|
||||
"Versione console di Vim (vim.exe)."
|
||||
|
||||
LangString str_section_batch ${LANG_ITALIAN} \
|
||||
"Crea file di invocazione (MS-DOS) .bat"
|
||||
LangString str_desc_batch ${LANG_ITALIAN} \
|
||||
"Crea file di invocazione .bat per varianti di Vim nella directory \
|
||||
di Windows, da utilizzare da linea di comando (MS-DOS)."
|
||||
|
||||
LangString str_group_icons ${LANG_ITALIAN} \
|
||||
"Crea icone per Vim"
|
||||
LangString str_desc_icons ${LANG_ITALIAN} \
|
||||
"Crea icone per Vim in vari posti, per rendere facile l'accesso."
|
||||
|
||||
LangString str_section_desktop ${LANG_ITALIAN} \
|
||||
"Sul Desktop"
|
||||
LangString str_desc_desktop ${LANG_ITALIAN} \
|
||||
"Crea icone per programma gvim sul desktop."
|
||||
|
||||
LangString str_section_start_menu ${LANG_ITALIAN} \
|
||||
"Nella cartella del menù START"
|
||||
LangString str_desc_start_menu ${LANG_ITALIAN} \
|
||||
"Aggiungi Vim alle cartelle del menù START. \
|
||||
Disponibile solo da Windows 95 in avanti."
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_ITALIAN} \
|
||||
# "Nella barra di Avvio Veloce"
|
||||
#LangString str_desc_quick_launch ${LANG_ITALIAN} \
|
||||
# "Aggiungi un puntatore a Vim nella barra di Avvio Veloce."
|
||||
|
||||
LangString str_section_edit_with ${LANG_ITALIAN} \
|
||||
"Aggiungi Vim al Menù Contestuale"
|
||||
LangString str_desc_edit_with ${LANG_ITALIAN} \
|
||||
"Aggiungi Vim alla lista contestuale $\"Apri con...$\"."
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_ITALIAN} \
|
||||
# "Versione a 32-bit"
|
||||
#LangString str_desc_edit_with32 ${LANG_ITALIAN} \
|
||||
# "Aggiungi Vim alla lista contestuale $\"Apri con...$\" \
|
||||
# per applicazioni a 32-bit."
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_ITALIAN} \
|
||||
# "Versione a 64-bit"
|
||||
#LangString str_desc_edit_with64 ${LANG_ITALIAN} \
|
||||
# "Aggiungi Vim alla lista contestuale $\"Apri con...$\" \
|
||||
# per applicazioni a 64-bit."
|
||||
|
||||
LangString str_section_vim_rc ${LANG_ITALIAN} \
|
||||
"Crea Configurazione di default"
|
||||
LangString str_desc_vim_rc ${LANG_ITALIAN} \
|
||||
"Crea file configurazione di default (_vimrc) se non ne \
|
||||
esiste già uno."
|
||||
|
||||
LangString str_group_plugin ${LANG_ITALIAN} \
|
||||
"Crea Directory per Plugin"
|
||||
LangString str_desc_plugin ${LANG_ITALIAN} \
|
||||
"Crea Directory per Plugin. Servono per aggiungere funzionalità \
|
||||
a Vim aggiungendo file a una di queste directory."
|
||||
|
||||
LangString str_section_plugin_home ${LANG_ITALIAN} \
|
||||
"Privato"
|
||||
LangString str_desc_plugin_home ${LANG_ITALIAN} \
|
||||
"Create plugin directories in HOME directory."
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_ITALIAN} \
|
||||
"Condiviso"
|
||||
LangString str_desc_plugin_vim ${LANG_ITALIAN} \
|
||||
"Crea Directory Plugin nella directory di installazione di Vim \
|
||||
per uso da parte di tutti gli utenti di questo sistema."
|
||||
|
||||
LangString str_section_vis_vim ${LANG_ITALIAN} \
|
||||
"Estensione VisVim"
|
||||
LangString str_desc_vis_vim ${LANG_ITALIAN} \
|
||||
"Estensione VisVim per integrazione con Microsoft Visual Studio."
|
||||
|
||||
LangString str_section_nls ${LANG_ITALIAN} \
|
||||
"Supporto Multilingue (NLS)"
|
||||
LangString str_desc_nls ${LANG_ITALIAN} \
|
||||
"Installa file per supportare messaggi in diverse lingue."
|
||||
|
||||
LangString str_unsection_register ${LANG_ITALIAN} \
|
||||
"Togli Vim dal Registry"
|
||||
LangString str_desc_unregister ${LANG_ITALIAN} \
|
||||
"Togli Vim dal Registry di configurazione sistema."
|
||||
|
||||
LangString str_unsection_exe ${LANG_ITALIAN} \
|
||||
"Cancella programmi/file_ausiliari Vim"
|
||||
LangString str_desc_rm_exe ${LANG_ITALIAN} \
|
||||
"Cancella tutti i programmi/file_ausiliari di Vim."
|
||||
|
||||
LangString str_unsection_rc ${LANG_ITALIAN} \
|
||||
"Cancella file di configurazione di Vim"
|
||||
LangString str_desc_rm_rc ${LANG_ITALIAN} \
|
||||
"Cancella file di configurazione di Vim $vim_install_root\_vimrc. \
|
||||
Da saltare se avete personalizzato il file di configurazione."
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_ITALIAN} \
|
||||
"Remove plugin directories"
|
||||
LangString str_desc_rm_plugin ${LANG_ITALIAN} \
|
||||
"Remove the plugin directories if they are empty."
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_ITALIAN} \
|
||||
"Privato"
|
||||
LangString str_desc_rm_plugin_home ${LANG_ITALIAN} \
|
||||
"Remove the plugin directories from HOME directory."
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_ITALIAN} \
|
||||
"Condiviso"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_ITALIAN} \
|
||||
"Remove the plugin directories from Vim install directory."
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_ITALIAN} \
|
||||
"Remove the Vim root directory"
|
||||
LangString str_desc_rm_rootdir ${LANG_ITALIAN} \
|
||||
"Remove the Vim root directory. It contains your Vim configuration files!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_ITALIAN} \
|
||||
# "Trovate $vim_old_ver_count versioni di Vim sul vostro sistema.$\r$\n\
|
||||
# Questo programma di installazione può gestirne solo \
|
||||
# ${VIM_MAX_OLD_VER}.$\r$\n\
|
||||
# Disinstallate qualche versione precedente e ricominciate."
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_ITALIAN} \
|
||||
# "Nome di directory di installazione non valida: $vim_install_root!$\r$\n\
|
||||
# Dovrebbe terminare con $\"vim$\"."
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_ITALIAN} \
|
||||
# "Incongruenza di installazione!$\r$\n$\r$\n\
|
||||
# Cartella di installazione dev'essere $\"$vim_bin_path$\",$\r$\n\
|
||||
# ma il sistema segnala invece $\"$INSTDIR$\"."
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_ITALIAN} \
|
||||
# "Vim ancora in esecuzione sul vostro sistema.$\r$\n\
|
||||
# Chiudete tutte le sessioni attive di Vim per continuare."
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_ITALIAN} \
|
||||
# "Tentativo di registrazione di Vim con OLE. \
|
||||
# Non ci sono messaggi che indicano se ha funzionato o no."
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_ITALIAN} \
|
||||
# "Tentativo di togliere da Registry Vim con OLE. \
|
||||
# Non ci sono messaggi che indicano se ha funzionato o no."
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_ITALIAN} \
|
||||
# "Disinstallazione delle seguenti versioni:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_ITALIAN} \
|
||||
# "Disinstallazione non riuscita per la seguente versione:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_ITALIAN} \
|
||||
# "Non riesco a trovare chiave di disinstallazione nel Registry."
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_ITALIAN} \
|
||||
# "Non riesco a trovare programma disinstallazione nel Registry."
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_ITALIAN} \
|
||||
# "Non riesco a utilizzare programma disinstallazione."
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_ITALIAN} \
|
||||
# "Non riesco a copiare programma disinstallazione a una \
|
||||
# directory temporanea."
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_ITALIAN} \
|
||||
# "Non riesco a eseguire programma disinstallazione."
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_ITALIAN} \
|
||||
# "Il programma di disinstallazione verrà chiuso senza aver fatto nulla."
|
||||
|
||||
LangString str_msg_install_fail ${LANG_ITALIAN} \
|
||||
"Installazione non riuscita. Miglior fortuna alla prossima!"
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_ITALIAN} \
|
||||
"Alcuni file in $0 non sono stati cancellati!$\r$\n\
|
||||
Dovreste cancellarli voi stessi."
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_ITALIAN} \
|
||||
# "AVVISO: Non posso cancellare $\"$vim_install_root$\", non è vuota!"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_ITALIAN} \
|
||||
"Uninstalling the old version..."
|
||||
|
||||
LangString str_msg_registering ${LANG_ITALIAN} \
|
||||
"Registering..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_ITALIAN} \
|
||||
"Unregistering..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_ITALIAN} \
|
||||
"Choose _vimrc settings"
|
||||
LangString str_vimrc_page_subtitle ${LANG_ITALIAN} \
|
||||
"Choose the settings for enhancement, keyboard and mouse."
|
||||
|
||||
LangString str_msg_compat_title ${LANG_ITALIAN} \
|
||||
" Vi / Vim behavior "
|
||||
LangString str_msg_compat_desc ${LANG_ITALIAN} \
|
||||
"&Compatibility and enhancements"
|
||||
LangString str_msg_compat_vi ${LANG_ITALIAN} \
|
||||
"Vi compatible"
|
||||
LangString str_msg_compat_vim ${LANG_ITALIAN} \
|
||||
"Vim original"
|
||||
LangString str_msg_compat_defaults ${LANG_ITALIAN} \
|
||||
"Vim with some enhancements (load defaults.vim)"
|
||||
LangString str_msg_compat_all ${LANG_ITALIAN} \
|
||||
"Vim with all enhancements (load vimrc_example.vim) (Default)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_ITALIAN} \
|
||||
" Mappings "
|
||||
LangString str_msg_keymap_desc ${LANG_ITALIAN} \
|
||||
"&Remap a few keys for Windows (Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F, etc)"
|
||||
LangString str_msg_keymap_default ${LANG_ITALIAN} \
|
||||
"Do not remap keys (Default)"
|
||||
LangString str_msg_keymap_windows ${LANG_ITALIAN} \
|
||||
"Remap a few keys"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_ITALIAN} \
|
||||
" Mouse "
|
||||
LangString str_msg_mouse_desc ${LANG_ITALIAN} \
|
||||
"&Behavior of right and left buttons"
|
||||
LangString str_msg_mouse_default ${LANG_ITALIAN} \
|
||||
"Right: popup menu, Left: visual mode (Default)"
|
||||
LangString str_msg_mouse_windows ${LANG_ITALIAN} \
|
||||
"Right: popup menu, Left: select mode (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_ITALIAN} \
|
||||
"Right: extends selection, Left: visual mode (Unix)"
|
287
nsis/lang/japanese.nsi
Normal file
287
nsis/lang/japanese.nsi
Normal file
@ -0,0 +1,287 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# japanese.nsi: Japanese language strings for gvim NSIS installer.
|
||||
#
|
||||
# Locale ID : 1041
|
||||
# fileencoding : UTF-8
|
||||
# Author : Ken Takata
|
||||
|
||||
!insertmacro MUI_LANGUAGE "Japanese"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_JAPANESE} \
|
||||
"$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_JAPANESE} \
|
||||
"$(^Name) Uninstall"
|
||||
|
||||
# Workarounds for NSIS Japanese translation. The messages are too long.
|
||||
# These should be better to be fixed by the NSIS upstream.
|
||||
LangString ^SpaceAvailable ${LANG_JAPANESE} \
|
||||
"利用可能なディスク容量:"
|
||||
LangString ^SpaceRequired ${LANG_JAPANESE} \
|
||||
"必要なディスク容量:"
|
||||
# Fix another NSIS Japanese translation. The access key was missing.
|
||||
LangString ^InstallBtn ${LANG_JAPANESE} \
|
||||
"インストール(&I)"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_JAPANESE} \
|
||||
# "Destination Folder (Must end with $\"vim$\")"
|
||||
|
||||
LangString str_show_readme ${LANG_JAPANESE} \
|
||||
"インストール完了後に README を表示する"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_JAPANESE} \
|
||||
"通常"
|
||||
|
||||
LangString str_type_minimal ${LANG_JAPANESE} \
|
||||
"最小"
|
||||
|
||||
LangString str_type_full ${LANG_JAPANESE} \
|
||||
"全て"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_JAPANESE} \
|
||||
"既存のバージョンをアンインストール"
|
||||
LangString str_desc_old_ver ${LANG_JAPANESE} \
|
||||
"すでにインストールされている Vim をシステムから削除します。"
|
||||
|
||||
LangString str_section_exe ${LANG_JAPANESE} \
|
||||
"Vim GUI とランタイムファイル"
|
||||
LangString str_desc_exe ${LANG_JAPANESE} \
|
||||
"Vim GUI 実行ファイルとラインタイムファイル。このコンポーネントは必須です。"
|
||||
|
||||
LangString str_section_console ${LANG_JAPANESE} \
|
||||
"Vim コンソールプログラム"
|
||||
LangString str_desc_console ${LANG_JAPANESE} \
|
||||
"コンソール版の Vim (vim.exe)。"
|
||||
|
||||
LangString str_section_batch ${LANG_JAPANESE} \
|
||||
".bat ファイルを作成"
|
||||
LangString str_desc_batch ${LANG_JAPANESE} \
|
||||
"コマンドラインから Vim と関連コマンドを実行できるように、.bat ファイルを Windows ディレクトリに作成します。"
|
||||
|
||||
LangString str_group_icons ${LANG_JAPANESE} \
|
||||
"Vim のアイコンを作成"
|
||||
LangString str_desc_icons ${LANG_JAPANESE} \
|
||||
"Vim を簡単に実行できるように、いくつかの場所にアイコンを作成します。"
|
||||
|
||||
LangString str_section_desktop ${LANG_JAPANESE} \
|
||||
"デスクトップ上"
|
||||
LangString str_desc_desktop ${LANG_JAPANESE} \
|
||||
"gVim 実行ファイルのアイコンをデスクトップ上に作成します。"
|
||||
|
||||
LangString str_section_start_menu ${LANG_JAPANESE} \
|
||||
"スタートメニューのプログラムフォルダー上"
|
||||
LangString str_desc_start_menu ${LANG_JAPANESE} \
|
||||
"Vim のアイコンをスタートメニューのプログラムフォルダー上に作成します。"
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_JAPANESE} \
|
||||
# "In the Quick Launch Bar"
|
||||
#LangString str_desc_quick_launch ${LANG_JAPANESE} \
|
||||
# "Add Vim shortcut in the quick launch bar."
|
||||
|
||||
LangString str_section_edit_with ${LANG_JAPANESE} \
|
||||
"Vim のコンテキストメニューを追加"
|
||||
LangString str_desc_edit_with ${LANG_JAPANESE} \
|
||||
"$\"Vimで編集する$\" をコンテキストメニューに追加します。"
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_JAPANESE} \
|
||||
# "32-bit Version"
|
||||
#LangString str_desc_edit_with32 ${LANG_JAPANESE} \
|
||||
# "Add Vim to the $\"Open With...$\" context menu list \
|
||||
# for 32-bit applications."
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_JAPANESE} \
|
||||
# "64-bit Version"
|
||||
#LangString str_desc_edit_with64 ${LANG_JAPANESE} \
|
||||
# "Add Vim to the $\"Open With...$\" context menu list \
|
||||
# for 64-bit applications."
|
||||
|
||||
LangString str_section_vim_rc ${LANG_JAPANESE} \
|
||||
"既定のコンフィグを作成"
|
||||
LangString str_desc_vim_rc ${LANG_JAPANESE} \
|
||||
"もし無ければ、既定のコンフィグファイル (_vimrc) を作成します。"
|
||||
|
||||
LangString str_group_plugin ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリを作成"
|
||||
LangString str_desc_plugin ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリを作成します。そこにプラグインファイルを置くことで Vim を拡張することができます。"
|
||||
|
||||
LangString str_section_plugin_home ${LANG_JAPANESE} \
|
||||
"個人用"
|
||||
LangString str_desc_plugin_home ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリをホームディレクトリに作成します。"
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_JAPANESE} \
|
||||
"共用"
|
||||
LangString str_desc_plugin_vim ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリを Vim のインストールディレクトリに作成します。システムの全員で共有されます。"
|
||||
|
||||
LangString str_section_vis_vim ${LANG_JAPANESE} \
|
||||
"VisVim 拡張"
|
||||
LangString str_desc_vis_vim ${LANG_JAPANESE} \
|
||||
"Microsoft Visual Studio 統合用の VisVim 拡張。"
|
||||
|
||||
LangString str_section_nls ${LANG_JAPANESE} \
|
||||
"多言語サポート"
|
||||
LangString str_desc_nls ${LANG_JAPANESE} \
|
||||
"多言語サポート用のファイルをインストールします。"
|
||||
|
||||
LangString str_unsection_register ${LANG_JAPANESE} \
|
||||
"Vim を登録解除"
|
||||
LangString str_desc_unregister ${LANG_JAPANESE} \
|
||||
"Vim をシステムから登録解除します。"
|
||||
|
||||
LangString str_unsection_exe ${LANG_JAPANESE} \
|
||||
"Vim の実行ファイル/ランタイムファイルを削除"
|
||||
LangString str_desc_rm_exe ${LANG_JAPANESE} \
|
||||
"全ての Vim の実行ファイルとランタイムファイルを削除します。"
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリを削除"
|
||||
LangString str_desc_rm_plugin ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリが空であればそれを削除します。"
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_JAPANESE} \
|
||||
"個人用"
|
||||
LangString str_desc_rm_plugin_home ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリをホームディレクトリから削除します。"
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_JAPANESE} \
|
||||
"共用"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_JAPANESE} \
|
||||
"プラグインディレクトリを Vim のインストールディレクトリから削除します。"
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_JAPANESE} \
|
||||
"Vim のトップディレクトリを削除"
|
||||
LangString str_desc_rm_rootdir ${LANG_JAPANESE} \
|
||||
"Vim のトップディレクトリを削除します。あなたの Vim の設定ファイルも含まれていることに注意してください!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_JAPANESE} \
|
||||
# "Found $vim_old_ver_count Vim versions on your system.$\r$\n\
|
||||
# This installer can only handle ${VIM_MAX_OLD_VER} versions \
|
||||
# at most.$\r$\n\
|
||||
# Please remove some versions and start again."
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_JAPANESE} \
|
||||
# "Invalid install path: $vim_install_root!$\r$\n\
|
||||
# It should end with $\"vim$\"."
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_JAPANESE} \
|
||||
# "Binary path mismatch!$\r$\n$\r$\n\
|
||||
# Expect the binary path to be $\"$vim_bin_path$\",$\r$\n\
|
||||
# but system indicates the binary path is $\"$INSTDIR$\"."
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_JAPANESE} \
|
||||
# "Vim is still running on your system.$\r$\n\
|
||||
# Please close all instances of Vim before you continue."
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_JAPANESE} \
|
||||
# "Attempting to register Vim with OLE. \
|
||||
# There is no message indicates whether this works or not."
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_JAPANESE} \
|
||||
# "Attempting to unregister Vim with OLE. \
|
||||
# There is no message indicates whether this works or not."
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_JAPANESE} \
|
||||
# "Uninstalling the following version:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_JAPANESE} \
|
||||
# "Fail to uninstall the following version:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_JAPANESE} \
|
||||
# "Cannot find uninstaller registry key."
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_JAPANESE} \
|
||||
# "Cannot find uninstaller from registry."
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_JAPANESE} \
|
||||
# "Cannot access uninstaller."
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_JAPANESE} \
|
||||
# "Fail to copy uninstaller to temporary directory."
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_JAPANESE} \
|
||||
# "Fail to run uninstaller."
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_JAPANESE} \
|
||||
# "Installer will abort."
|
||||
|
||||
LangString str_msg_install_fail ${LANG_JAPANESE} \
|
||||
"インストールに失敗しました。次はうまくいくことを祈ります。"
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_JAPANESE} \
|
||||
"$0 内の一部のファイルは削除できませんでした!$\r$\n\
|
||||
手動で削除する必要があります。"
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_JAPANESE} \
|
||||
# "WARNING: Cannot remove $\"$vim_install_root$\", it is not empty!"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_JAPANESE} \
|
||||
"古いバージョンをアンインストールしています..."
|
||||
|
||||
LangString str_msg_registering ${LANG_JAPANESE} \
|
||||
"登録中..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_JAPANESE} \
|
||||
"登録解除中..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_JAPANESE} \
|
||||
"_vimrc の設定を選んでください"
|
||||
LangString str_vimrc_page_subtitle ${LANG_JAPANESE} \
|
||||
"拡張やキーボード、マウスの設定を選んでください。"
|
||||
|
||||
LangString str_msg_compat_title ${LANG_JAPANESE} \
|
||||
" Vi / Vim の動作 "
|
||||
LangString str_msg_compat_desc ${LANG_JAPANESE} \
|
||||
"互換性と拡張(&C)"
|
||||
LangString str_msg_compat_vi ${LANG_JAPANESE} \
|
||||
"Vi 互換"
|
||||
LangString str_msg_compat_vim ${LANG_JAPANESE} \
|
||||
"Vim 独自"
|
||||
LangString str_msg_compat_defaults ${LANG_JAPANESE} \
|
||||
"Vim 独自と多少の拡張 (defaults.vim を読み込み)"
|
||||
LangString str_msg_compat_all ${LANG_JAPANESE} \
|
||||
"Vim 独自と全ての拡張 (vimrc_example.vim を読み込み) (既定)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_JAPANESE} \
|
||||
" マッピング "
|
||||
LangString str_msg_keymap_desc ${LANG_JAPANESE} \
|
||||
"Windows用に一部のキーをリマップする(&R) (例: Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F など)"
|
||||
LangString str_msg_keymap_default ${LANG_JAPANESE} \
|
||||
"リマップしない (既定)"
|
||||
LangString str_msg_keymap_windows ${LANG_JAPANESE} \
|
||||
"リマップする"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_JAPANESE} \
|
||||
" マウス "
|
||||
LangString str_msg_mouse_desc ${LANG_JAPANESE} \
|
||||
"右ボタンと左ボタンの動作(&B)"
|
||||
LangString str_msg_mouse_default ${LANG_JAPANESE} \
|
||||
"右:ポップアップメニュー、左:ビジュアルモード (既定)"
|
||||
LangString str_msg_mouse_windows ${LANG_JAPANESE} \
|
||||
"右:ポップアップメニュー、左:選択モード (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_JAPANESE} \
|
||||
"右:選択を拡張、左:ビジュアルモード (Unix)"
|
277
nsis/lang/simpchinese.nsi
Normal file
277
nsis/lang/simpchinese.nsi
Normal file
@ -0,0 +1,277 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# simpchinese.nsi: Simplified Chinese language strings for gvim NSIS
|
||||
# installer.
|
||||
#
|
||||
# Locale ID : 2052
|
||||
# fileencoding : UTF-8
|
||||
# Author : Guopeng Wen
|
||||
|
||||
!insertmacro MUI_LANGUAGE "SimpChinese"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_SIMPCHINESE} \
|
||||
"$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_SIMPCHINESE} \
|
||||
"$(^Name) Uninstall"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_SIMPCHINESE} \
|
||||
# "安装路径 (必须以 vim 结尾)"
|
||||
|
||||
LangString str_show_readme ${LANG_SIMPCHINESE} \
|
||||
"安装完成后显示 README 文件"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_SIMPCHINESE} \
|
||||
"典型安装"
|
||||
|
||||
LangString str_type_minimal ${LANG_SIMPCHINESE} \
|
||||
"最小安装"
|
||||
|
||||
LangString str_type_full ${LANG_SIMPCHINESE} \
|
||||
"完全安装"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_SIMPCHINESE} \
|
||||
"卸载旧版本"
|
||||
LangString str_desc_old_ver ${LANG_SIMPCHINESE} \
|
||||
"卸载系统上旧版本的 Vim。"
|
||||
|
||||
LangString str_section_exe ${LANG_SIMPCHINESE} \
|
||||
"安装 Vim 图形界面"
|
||||
LangString str_desc_exe ${LANG_SIMPCHINESE} \
|
||||
"安装 Vim 图形界面及脚本。此为必选安装。"
|
||||
|
||||
LangString str_section_console ${LANG_SIMPCHINESE} \
|
||||
"安装 Vim 命令行程序"
|
||||
LangString str_desc_console ${LANG_SIMPCHINESE} \
|
||||
"安装 Vim 命令行程序 (vim.exe)。该程序在命令行窗口中运行。"
|
||||
|
||||
LangString str_section_batch ${LANG_SIMPCHINESE} \
|
||||
"安装批处理文件"
|
||||
LangString str_desc_batch ${LANG_SIMPCHINESE} \
|
||||
"为 Vim 的各种变体创建批处理程序,以便在命令行下运行 Vim。"
|
||||
|
||||
LangString str_group_icons ${LANG_SIMPCHINESE} \
|
||||
"创建 Vim 图标"
|
||||
LangString str_desc_icons ${LANG_SIMPCHINESE} \
|
||||
"为 Vim 创建若干图标,以方便使用 Vim。"
|
||||
|
||||
LangString str_section_desktop ${LANG_SIMPCHINESE} \
|
||||
"在桌面上"
|
||||
LangString str_desc_desktop ${LANG_SIMPCHINESE} \
|
||||
"在桌面上为 Vim 创建若干图标,以方便启动 Vim。"
|
||||
|
||||
LangString str_section_start_menu ${LANG_SIMPCHINESE} \
|
||||
"在启动菜单的程序菜单下"
|
||||
LangString str_desc_start_menu ${LANG_SIMPCHINESE} \
|
||||
"在启动菜单的程序菜单下添加 Vim 组。适用于 Windows 95 及以上版本。"
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_SIMPCHINESE} \
|
||||
# "在快速启动启动栏中"
|
||||
#LangString str_desc_quick_launch ${LANG_SIMPCHINESE} \
|
||||
# "在快速启动栏中添加 Vim 图标。"
|
||||
|
||||
LangString str_section_edit_with ${LANG_SIMPCHINESE} \
|
||||
"安装快捷菜单"
|
||||
LangString str_desc_edit_with ${LANG_SIMPCHINESE} \
|
||||
"将 Vim 添加到“打开方式”快捷菜单中。"
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_SIMPCHINESE} \
|
||||
# "32 位版本"
|
||||
#LangString str_desc_edit_with32 ${LANG_SIMPCHINESE} \
|
||||
# "将 Vim 添加到 32 位程序的“打开方式”快捷菜单中。"
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_SIMPCHINESE} \
|
||||
# "64 位版本"
|
||||
#LangString str_desc_edit_with64 ${LANG_SIMPCHINESE} \
|
||||
# "将 Vim 添加到 64 位程序的“打开方式”快捷菜单中。"
|
||||
|
||||
LangString str_section_vim_rc ${LANG_SIMPCHINESE} \
|
||||
"创建缺省配置文件"
|
||||
LangString str_desc_vim_rc ${LANG_SIMPCHINESE} \
|
||||
"在安装目录下生成缺省的 Vim 配置文件(_vimrc)。\
|
||||
如果该文件已经存在,则略过此项。"
|
||||
|
||||
LangString str_group_plugin ${LANG_SIMPCHINESE} \
|
||||
"创建插件目录"
|
||||
LangString str_desc_plugin ${LANG_SIMPCHINESE} \
|
||||
"创建(空的)插件目录结构。插件目录用于安装 Vim 扩展插件,\
|
||||
只要将文件复制到相关的子目录中即可。"
|
||||
|
||||
LangString str_section_plugin_home ${LANG_SIMPCHINESE} \
|
||||
"私有插件目录"
|
||||
LangString str_desc_plugin_home ${LANG_SIMPCHINESE} \
|
||||
"Create plugin directories in HOME directory."
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_SIMPCHINESE} \
|
||||
"公共插件目录"
|
||||
LangString str_desc_plugin_vim ${LANG_SIMPCHINESE} \
|
||||
"在 Vim 安装目录下创建(空的)插件目录结构,系统上所有用户都能使用安装在\
|
||||
该目录下的扩展插件。"
|
||||
|
||||
LangString str_section_vis_vim ${LANG_SIMPCHINESE} \
|
||||
"安装 VisVim 插件"
|
||||
LangString str_desc_vis_vim ${LANG_SIMPCHINESE} \
|
||||
"安装用于与微软 Microsoft Visual Studio 进行集成的 VisVim 插件。"
|
||||
|
||||
LangString str_section_nls ${LANG_SIMPCHINESE} \
|
||||
"安装多语言支持"
|
||||
LangString str_desc_nls ${LANG_SIMPCHINESE} \
|
||||
"安装用于多语言支持的文件。"
|
||||
|
||||
LangString str_unsection_register ${LANG_SIMPCHINESE} \
|
||||
"删除 Vim 系统配置"
|
||||
LangString str_desc_unregister ${LANG_SIMPCHINESE} \
|
||||
"删除和 Vim 相关的系统配置。"
|
||||
|
||||
LangString str_unsection_exe ${LANG_SIMPCHINESE} \
|
||||
"删除 Vim 执行文件以及脚本"
|
||||
LangString str_desc_rm_exe ${LANG_SIMPCHINESE} \
|
||||
"删除 Vim 的所有执行文件及脚本。"
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_SIMPCHINESE} \
|
||||
"Remove plugin directories"
|
||||
LangString str_desc_rm_plugin ${LANG_SIMPCHINESE} \
|
||||
"Remove the plugin directories if they are empty."
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_SIMPCHINESE} \
|
||||
"私有插件目录"
|
||||
LangString str_desc_rm_plugin_home ${LANG_SIMPCHINESE} \
|
||||
"Remove the plugin directories from HOME directory."
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_SIMPCHINESE} \
|
||||
"公共插件目录"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_SIMPCHINESE} \
|
||||
"Remove the plugin directories from Vim install directory."
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_SIMPCHINESE} \
|
||||
"Remove the Vim root directory"
|
||||
LangString str_desc_rm_rootdir ${LANG_SIMPCHINESE} \
|
||||
"Remove the Vim root directory. It contains your Vim configuration files!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_SIMPCHINESE} \
|
||||
# "您的系统上安装了 $vim_old_ver_count 个不同版本的 Vim,$\r$\n\
|
||||
# 但本安装程序最多只能处理 ${VIM_MAX_OLD_VER} 个版本。$\r$\n\
|
||||
# 请您手工删除一些旧版本以后再运行本安装程序。"
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_SIMPCHINESE} \
|
||||
# "安装路径“$vim_install_root”无效!$\r$\n\
|
||||
# 该路径必须以 vim 结尾。"
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_SIMPCHINESE} \
|
||||
# "Vim 执行程序安装路径异常!$\r$\n$\r$\n\
|
||||
# 该版本 Vim 的执行程序安装路径应该是“$vim_bin_path”,$\r$\n\
|
||||
# 而系统却指示该路径为“$INSTDIR”。"
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_SIMPCHINESE} \
|
||||
# "您的系统上仍有 Vim 在运行,$\r$\n\
|
||||
# 请您在执行后续步骤前退出这些 Vim。"
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_SIMPCHINESE} \
|
||||
# "试图注册 Vim OLE 服务器。请注意无论成功与否都不再显示进一步的信息。"
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_SIMPCHINESE} \
|
||||
# "试图注销 Vim OLE 服务器。请注意无论成功与否都不再显示进一步的信息。"
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_SIMPCHINESE} \
|
||||
# "开始卸载以下版本:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_SIMPCHINESE} \
|
||||
# "以下版本卸载失败:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_SIMPCHINESE} \
|
||||
# "找不到卸载程序的注册表键。"
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_SIMPCHINESE} \
|
||||
# "在注册表中未找到卸载程序路径。"
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_SIMPCHINESE} \
|
||||
# "找不到卸载程序。"
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_SIMPCHINESE} \
|
||||
# "无法将卸载程序复制到临时目录。"
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_SIMPCHINESE} \
|
||||
# "执行卸载程序失败。"
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_SIMPCHINESE} \
|
||||
# "安装程序将退出。"
|
||||
|
||||
LangString str_msg_install_fail ${LANG_SIMPCHINESE} \
|
||||
"安装失败。祝您下次好运。"
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_SIMPCHINESE} \
|
||||
"目录“$0”下有部分文件删除失败!$\r$\n\
|
||||
您只能手工删除该目录。"
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_SIMPCHINESE} \
|
||||
# "警告:无法删除 Vim 安装目录“$vim_install_root”,\
|
||||
# 该目录下仍有其他文件。"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_SIMPCHINESE} \
|
||||
"Uninstalling the old version..."
|
||||
|
||||
LangString str_msg_registering ${LANG_SIMPCHINESE} \
|
||||
"Registering..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_SIMPCHINESE} \
|
||||
"Unregistering..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_SIMPCHINESE} \
|
||||
"Choose _vimrc settings"
|
||||
LangString str_vimrc_page_subtitle ${LANG_SIMPCHINESE} \
|
||||
"Choose the settings for enhancement, keyboard and mouse."
|
||||
|
||||
LangString str_msg_compat_title ${LANG_SIMPCHINESE} \
|
||||
" Vi / Vim behavior "
|
||||
LangString str_msg_compat_desc ${LANG_SIMPCHINESE} \
|
||||
"&Compatibility and enhancements"
|
||||
LangString str_msg_compat_vi ${LANG_SIMPCHINESE} \
|
||||
"Vi compatible"
|
||||
LangString str_msg_compat_vim ${LANG_SIMPCHINESE} \
|
||||
"Vim original"
|
||||
LangString str_msg_compat_defaults ${LANG_SIMPCHINESE} \
|
||||
"Vim with some enhancements (load defaults.vim)"
|
||||
LangString str_msg_compat_all ${LANG_SIMPCHINESE} \
|
||||
"Vim with all enhancements (load vimrc_example.vim) (Default)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_SIMPCHINESE} \
|
||||
" Mappings "
|
||||
LangString str_msg_keymap_desc ${LANG_SIMPCHINESE} \
|
||||
"&Remap a few keys for Windows (Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F, etc)"
|
||||
LangString str_msg_keymap_default ${LANG_SIMPCHINESE} \
|
||||
"Do not remap keys (Default)"
|
||||
LangString str_msg_keymap_windows ${LANG_SIMPCHINESE} \
|
||||
"Remap a few keys"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_SIMPCHINESE} \
|
||||
" Mouse "
|
||||
LangString str_msg_mouse_desc ${LANG_SIMPCHINESE} \
|
||||
"&Behavior of right and left buttons"
|
||||
LangString str_msg_mouse_default ${LANG_SIMPCHINESE} \
|
||||
"Right: popup menu, Left: visual mode (Default)"
|
||||
LangString str_msg_mouse_windows ${LANG_SIMPCHINESE} \
|
||||
"Right: popup menu, Left: select mode (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_SIMPCHINESE} \
|
||||
"Right: extends selection, Left: visual mode (Unix)"
|
278
nsis/lang/tradchinese.nsi
Normal file
278
nsis/lang/tradchinese.nsi
Normal file
@ -0,0 +1,278 @@
|
||||
# vi:set ts=8 sts=4 sw=4 et fdm=marker:
|
||||
#
|
||||
# tradchinese.nsi: Traditional Chinese language strings for gvim NSIS
|
||||
# installer.
|
||||
#
|
||||
# Locale ID : 1028
|
||||
# fileencoding : UTF-8
|
||||
# Author : Guopeng Wen
|
||||
|
||||
!insertmacro MUI_LANGUAGE "TradChinese"
|
||||
|
||||
|
||||
# Overwrite the default translation.
|
||||
# These string should be always English. Otherwise dosinst.c fails.
|
||||
LangString ^SetupCaption ${LANG_TRADCHINESE} \
|
||||
"$(^Name) Setup"
|
||||
LangString ^UninstallCaption ${LANG_TRADCHINESE} \
|
||||
"$(^Name) Uninstall"
|
||||
|
||||
##############################################################################
|
||||
# MUI Configuration Strings {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_dest_folder ${LANG_TRADCHINESE} \
|
||||
# "安裝資料夾 (必須以 vim 結尾)"
|
||||
|
||||
LangString str_show_readme ${LANG_TRADCHINESE} \
|
||||
"安裝完成後顯示 README 檔案"
|
||||
|
||||
# Install types:
|
||||
LangString str_type_typical ${LANG_TRADCHINESE} \
|
||||
"典型安裝"
|
||||
|
||||
LangString str_type_minimal ${LANG_TRADCHINESE} \
|
||||
"最小安裝"
|
||||
|
||||
LangString str_type_full ${LANG_TRADCHINESE} \
|
||||
"完全安裝"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Section Titles & Description {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_section_old_ver ${LANG_TRADCHINESE} \
|
||||
"移除舊版本"
|
||||
LangString str_desc_old_ver ${LANG_TRADCHINESE} \
|
||||
"移除閣下電腦上舊版本的 Vim。"
|
||||
|
||||
LangString str_section_exe ${LANG_TRADCHINESE} \
|
||||
"安裝 Vim 圖形界面程式"
|
||||
LangString str_desc_exe ${LANG_TRADCHINESE} \
|
||||
"安裝 Vim 圖形界面程式及腳本。此為必選安裝。"
|
||||
|
||||
LangString str_section_console ${LANG_TRADCHINESE} \
|
||||
"安裝 Vim 命令行程式"
|
||||
LangString str_desc_console ${LANG_TRADCHINESE} \
|
||||
"安裝 Vim 命令行程式 (vim.exe)。該程式在控制臺窗口中運行。"
|
||||
|
||||
LangString str_section_batch ${LANG_TRADCHINESE} \
|
||||
"安裝批次檔案"
|
||||
LangString str_desc_batch ${LANG_TRADCHINESE} \
|
||||
"為 Vim 的各種變體創建批次檔,以便在命令行下啟動 Vim。"
|
||||
|
||||
LangString str_group_icons ${LANG_TRADCHINESE} \
|
||||
"建立 Vim 圖示"
|
||||
LangString str_desc_icons ${LANG_TRADCHINESE} \
|
||||
"建立若干 Vim 圖示,以便于使用 Vim。"
|
||||
|
||||
LangString str_section_desktop ${LANG_TRADCHINESE} \
|
||||
"於桌面"
|
||||
LangString str_desc_desktop ${LANG_TRADCHINESE} \
|
||||
"建立若干 Vim 圖示於桌面上,以方便啟動 Vim。"
|
||||
|
||||
LangString str_section_start_menu ${LANG_TRADCHINESE} \
|
||||
"於「開始」功能表的「程式」集"
|
||||
LangString str_desc_start_menu ${LANG_TRADCHINESE} \
|
||||
"在「開始」功能表的「程式」集中建立 Vim 啟動組。\
|
||||
適用于 Windows 95 及以上版本。"
|
||||
|
||||
#LangString str_section_quick_launch ${LANG_TRADCHINESE} \
|
||||
# "於快速啟動列"
|
||||
#LangString str_desc_quick_launch ${LANG_TRADCHINESE} \
|
||||
# "在快速啟動列中建立 Vim 圖示。"
|
||||
|
||||
LangString str_section_edit_with ${LANG_TRADCHINESE} \
|
||||
"安裝快捷選單"
|
||||
LangString str_desc_edit_with ${LANG_TRADCHINESE} \
|
||||
"在「打開方式」快捷選單中添加 Vim 項。"
|
||||
|
||||
#LangString str_section_edit_with32 ${LANG_TRADCHINESE} \
|
||||
# "32 位元版本"
|
||||
#LangString str_desc_edit_with32 ${LANG_TRADCHINESE} \
|
||||
# "在 32 位元程式的「打開方式」快捷選單中添加 Vim 項。"
|
||||
|
||||
#LangString str_section_edit_with64 ${LANG_TRADCHINESE} \
|
||||
# "64 位元版本"
|
||||
#LangString str_desc_edit_with64 ${LANG_TRADCHINESE} \
|
||||
# "在 64 位元程式的「打開方式」快捷選單中添加 Vim 項。"
|
||||
|
||||
LangString str_section_vim_rc ${LANG_TRADCHINESE} \
|
||||
"建立默認設定檔"
|
||||
LangString str_desc_vim_rc ${LANG_TRADCHINESE} \
|
||||
"在安裝資料夾下建立默認的 Vim 設定檔(_vimrc)。\
|
||||
若該設定檔已經存在,則略過此項。"
|
||||
|
||||
LangString str_group_plugin ${LANG_TRADCHINESE} \
|
||||
"建立插件資料夾"
|
||||
LangString str_desc_plugin ${LANG_TRADCHINESE} \
|
||||
"建立(空的)插件資料夾結構。插件資料夾用于安裝 Vim 的擴展插件,\
|
||||
只要將檔案復制到相關的子資料夾中即可。"
|
||||
|
||||
LangString str_section_plugin_home ${LANG_TRADCHINESE} \
|
||||
"建立插件資料夾"
|
||||
LangString str_desc_plugin_home ${LANG_TRADCHINESE} \
|
||||
"Create plugin directories in HOME directory."
|
||||
|
||||
LangString str_section_plugin_vim ${LANG_TRADCHINESE} \
|
||||
"建立共享插件資料夾"
|
||||
LangString str_desc_plugin_vim ${LANG_TRADCHINESE} \
|
||||
"在 Vim 安裝資料夾下建立(空的)插件資料夾結構,電腦上所有用戶都能使用安裝\
|
||||
在該資料夾里的擴展插件。"
|
||||
|
||||
LangString str_section_vis_vim ${LANG_TRADCHINESE} \
|
||||
"安裝 VisVim 插件"
|
||||
LangString str_desc_vis_vim ${LANG_TRADCHINESE} \
|
||||
"VisVim 是用于與微軟 Microsoft Visual Studio 軟體進行整合的插件。"
|
||||
|
||||
LangString str_section_nls ${LANG_TRADCHINESE} \
|
||||
"安裝本地語言支持"
|
||||
LangString str_desc_nls ${LANG_TRADCHINESE} \
|
||||
"安裝用于支持本地語言的檔案。"
|
||||
|
||||
LangString str_unsection_register ${LANG_TRADCHINESE} \
|
||||
"移除 Vim 系統設定"
|
||||
LangString str_desc_unregister ${LANG_TRADCHINESE} \
|
||||
"移除與 Vim 相關的系統設定。"
|
||||
|
||||
LangString str_unsection_exe ${LANG_TRADCHINESE} \
|
||||
"移除 Vim 程式及腳本"
|
||||
LangString str_desc_rm_exe ${LANG_TRADCHINESE} \
|
||||
"移除所有的 Vim 程式及腳本。"
|
||||
|
||||
LangString str_ungroup_plugin ${LANG_TRADCHINESE} \
|
||||
"Remove plugin directories"
|
||||
LangString str_desc_rm_plugin ${LANG_TRADCHINESE} \
|
||||
"Remove the plugin directories if they are empty."
|
||||
|
||||
LangString str_unsection_plugin_home ${LANG_TRADCHINESE} \
|
||||
"Private"
|
||||
LangString str_desc_rm_plugin_home ${LANG_TRADCHINESE} \
|
||||
"Remove the vimfiles directory in HOME directory."
|
||||
|
||||
LangString str_unsection_plugin_vim ${LANG_TRADCHINESE} \
|
||||
"Shared"
|
||||
LangString str_desc_rm_plugin_vim ${LANG_TRADCHINESE} \
|
||||
"Remove the vimfiles directory in Vim install directory."
|
||||
|
||||
LangString str_unsection_rootdir ${LANG_TRADCHINESE} \
|
||||
"Remove the Vim root directory"
|
||||
LangString str_desc_rm_rootdir ${LANG_TRADCHINESE} \
|
||||
"Remove the Vim root directory. It contains your Vim configuration files!"
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Messages {{{1
|
||||
##############################################################################
|
||||
|
||||
#LangString str_msg_too_many_ver ${LANG_TRADCHINESE} \
|
||||
# "閣下的電腦上安裝了 $vim_old_ver_count 個不同版本的 Vim,$\r$\n\
|
||||
# 但是本安裝程式最多只能處理 ${VIM_MAX_OLD_VER} 個版本。$\r$\n\
|
||||
# 煩請閣下手工移除一些版本以后再運行本安裝程式。"
|
||||
|
||||
#LangString str_msg_invalid_root ${LANG_TRADCHINESE} \
|
||||
# "安裝資料夾「$vim_install_root」無效!$\r$\n\
|
||||
# 該資料夾必須以「vim」結尾。"
|
||||
|
||||
#LangString str_msg_bin_mismatch ${LANG_TRADCHINESE} \
|
||||
# "Vim 執行程式安裝路徑異常!$\r$\n$\r$\n\
|
||||
# 該版本 Vim 的執行程式安裝路徑應該是「$vim_bin_path」,$\r$\n\
|
||||
# 而系統卻指示該路徑為「$INSTDIR」。"
|
||||
|
||||
#LangString str_msg_vim_running ${LANG_TRADCHINESE} \
|
||||
# "閣下的電腦上尚有正在運行之 Vim,$\r$\n\
|
||||
# 煩請閣下在執行后續步驟前將其全部退出。"
|
||||
|
||||
#LangString str_msg_register_ole ${LANG_TRADCHINESE} \
|
||||
# "試圖注冊 Vim OLE 伺服程式。請注意不論成功與否都不再顯示進一步的信息。"
|
||||
|
||||
#LangString str_msg_unreg_ole ${LANG_TRADCHINESE} \
|
||||
# "試圖注銷 Vim OLE 伺服程式。請注意不論成功與否都不再顯示進一步的信息。"
|
||||
|
||||
#LangString str_msg_rm_start ${LANG_TRADCHINESE} \
|
||||
# "正移除如下版本:"
|
||||
|
||||
#LangString str_msg_rm_fail ${LANG_TRADCHINESE} \
|
||||
# "以下版本移除失敗:"
|
||||
|
||||
#LangString str_msg_no_rm_key ${LANG_TRADCHINESE} \
|
||||
# "找不到反安裝程式的登錄檔入口。"
|
||||
|
||||
#LangString str_msg_no_rm_reg ${LANG_TRADCHINESE} \
|
||||
# "在登錄檔中未找到反安裝程式路徑。"
|
||||
|
||||
#LangString str_msg_no_rm_exe ${LANG_TRADCHINESE} \
|
||||
# "找不到反安裝程式。"
|
||||
|
||||
#LangString str_msg_rm_copy_fail ${LANG_TRADCHINESE} \
|
||||
# "無法將法將反安裝程式复制到臨時目錄。"
|
||||
|
||||
#LangString str_msg_rm_run_fail ${LANG_TRADCHINESE} \
|
||||
# "執行反安裝程式失敗。"
|
||||
|
||||
#LangString str_msg_abort_install ${LANG_TRADCHINESE} \
|
||||
# "安裝程式將退出。"
|
||||
|
||||
LangString str_msg_install_fail ${LANG_TRADCHINESE} \
|
||||
"安裝失敗。預祝下次好運。"
|
||||
|
||||
LangString str_msg_rm_exe_fail ${LANG_TRADCHINESE} \
|
||||
"資料夾「$0」下有部分檔案未能移除!$\r$\n\
|
||||
閣下只能手工移除該資料夾。"
|
||||
|
||||
#LangString str_msg_rm_root_fail ${LANG_TRADCHINESE} \
|
||||
# "警告:無法刪除 Vim 安裝資料夾「$vim_install_root」,\
|
||||
# 該資料夾下仍有其他檔案。"
|
||||
|
||||
LangString str_msg_uninstalling ${LANG_TRADCHINESE} \
|
||||
"Uninstalling the old version..."
|
||||
|
||||
LangString str_msg_registering ${LANG_TRADCHINESE} \
|
||||
"Registering..."
|
||||
|
||||
LangString str_msg_unregistering ${LANG_TRADCHINESE} \
|
||||
"Unregistering..."
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Dialog Box {{{1
|
||||
##############################################################################
|
||||
|
||||
LangString str_vimrc_page_title ${LANG_TRADCHINESE} \
|
||||
"Choose _vimrc settings"
|
||||
LangString str_vimrc_page_subtitle ${LANG_TRADCHINESE} \
|
||||
"Choose the settings for enhancement, keyboard and mouse."
|
||||
|
||||
LangString str_msg_compat_title ${LANG_TRADCHINESE} \
|
||||
" Vi / Vim behavior "
|
||||
LangString str_msg_compat_desc ${LANG_TRADCHINESE} \
|
||||
"&Compatibility and enhancements"
|
||||
LangString str_msg_compat_vi ${LANG_TRADCHINESE} \
|
||||
"Vi compatible"
|
||||
LangString str_msg_compat_vim ${LANG_TRADCHINESE} \
|
||||
"Vim original"
|
||||
LangString str_msg_compat_defaults ${LANG_TRADCHINESE} \
|
||||
"Vim with some enhancements (load defaults.vim)"
|
||||
LangString str_msg_compat_all ${LANG_TRADCHINESE} \
|
||||
"Vim with all enhancements (load vimrc_example.vim) (Default)"
|
||||
|
||||
LangString str_msg_keymap_title ${LANG_TRADCHINESE} \
|
||||
" Mappings "
|
||||
LangString str_msg_keymap_desc ${LANG_TRADCHINESE} \
|
||||
"&Remap a few keys for Windows (Ctrl-V, Ctrl-C, Ctrl-A, Ctrl-S, Ctrl-F, etc)"
|
||||
LangString str_msg_keymap_default ${LANG_TRADCHINESE} \
|
||||
"Do not remap keys (Default)"
|
||||
LangString str_msg_keymap_windows ${LANG_TRADCHINESE} \
|
||||
"Remap a few keys"
|
||||
|
||||
LangString str_msg_mouse_title ${LANG_TRADCHINESE} \
|
||||
" Mouse "
|
||||
LangString str_msg_mouse_desc ${LANG_TRADCHINESE} \
|
||||
"&Behavior of right and left buttons"
|
||||
LangString str_msg_mouse_default ${LANG_TRADCHINESE} \
|
||||
"Right: popup menu, Left: visual mode (Default)"
|
||||
LangString str_msg_mouse_windows ${LANG_TRADCHINESE} \
|
||||
"Right: popup menu, Left: select mode (Windows)"
|
||||
LangString str_msg_mouse_unix ${LANG_TRADCHINESE} \
|
||||
"Right: extends selection, Left: visual mode (Unix)"
|
@ -1,68 +0,0 @@
|
||||
[Settings]
|
||||
NumFields=7
|
||||
|
||||
[Field 1]
|
||||
Type=GroupBox
|
||||
Left=0
|
||||
Right=-1
|
||||
Top=0
|
||||
Bottom=53
|
||||
Text=" Key remapping "
|
||||
|
||||
[Field 2]
|
||||
Type=radiobutton
|
||||
Text=Do not remap keys for Windows behavior (Default)
|
||||
Left=10
|
||||
Right=-10
|
||||
Top=17
|
||||
Bottom=25
|
||||
State=1
|
||||
Flags=GROUP
|
||||
|
||||
[Field 3]
|
||||
Type=radiobutton
|
||||
Text=Remap a few keys for Windows behavior (<C-V>, <C-C>, <C-A>, <C-S>, <C-F>, etc)
|
||||
Left=10
|
||||
Right=-10
|
||||
Top=30
|
||||
Bottom=47
|
||||
State=0
|
||||
Flags=NOTABSTOP
|
||||
|
||||
[Field 4]
|
||||
Type=GroupBox
|
||||
Left=0
|
||||
Right=-1
|
||||
Top=55
|
||||
Bottom=-5
|
||||
Text=" Mouse behavior "
|
||||
|
||||
[Field 5]
|
||||
Type=radiobutton
|
||||
Text=Right button extends selection, left button starts visual mode (Unix)
|
||||
Left=10
|
||||
Right=-5
|
||||
Top=72
|
||||
Bottom=80
|
||||
State=0
|
||||
Flags=GROUP
|
||||
|
||||
[Field 6]
|
||||
Type=radiobutton
|
||||
Text=Right button has a popup menu, left button starts select mode (Windows)
|
||||
Left=10
|
||||
Right=-5
|
||||
Top=85
|
||||
Bottom=93
|
||||
State=0
|
||||
Flags=NOTABSTOP
|
||||
|
||||
[Field 7]
|
||||
Type=radiobutton
|
||||
Text=Right button has a popup menu, left button starts visual mode (Default)
|
||||
Left=10
|
||||
Right=-5
|
||||
Top=98
|
||||
Bottom=106
|
||||
State=1
|
||||
Flags=NOTABSTOP
|
@ -1,8 +1,12 @@
|
||||
" Author: Antony Lee <anntzer.lee@gmail.com>
|
||||
" Description: Helper functions for reStructuredText syntax folding
|
||||
" Last Modified: 2018-01-07
|
||||
" Last Modified: 2018-12-29
|
||||
|
||||
function s:CacheRstFold()
|
||||
if !g:rst_fold_enabled
|
||||
return
|
||||
endif
|
||||
|
||||
let closure = {'header_types': {}, 'max_level': 0, 'levels': {}}
|
||||
function closure.Process(match) dict
|
||||
let curline = getcurpos()[1]
|
||||
@ -20,12 +24,18 @@ function s:CacheRstFold()
|
||||
let self.levels[curline] = self.header_types[key]
|
||||
endfunction
|
||||
let save_cursor = getcurpos()
|
||||
let save_mark = getpos("'[")
|
||||
silent keeppatterns %s/\v^%(%(([=`:.'"~^_*+#-])\1+\n)?.{1,2}\n([=`:.'"~^_*+#-])\2+)|%(%(([=`:.''"~^_*+#-])\3{2,}\n)?.{3,}\n([=`:.''"~^_*+#-])\4{2,})$/\=closure.Process(submatch(0))/gn
|
||||
call setpos('.', save_cursor)
|
||||
call setpos("'[", save_mark)
|
||||
let b:RstFoldCache = closure.levels
|
||||
endfunction
|
||||
|
||||
function RstFold#GetRstFold()
|
||||
if !g:rst_fold_enabled
|
||||
return
|
||||
endif
|
||||
|
||||
if !has_key(b:, 'RstFoldCache')
|
||||
call s:CacheRstFold()
|
||||
endif
|
||||
@ -37,6 +47,10 @@ function RstFold#GetRstFold()
|
||||
endfunction
|
||||
|
||||
function RstFold#GetRstFoldText()
|
||||
if !g:rst_fold_enabled
|
||||
return
|
||||
endif
|
||||
|
||||
if !has_key(b:, 'RstFoldCache')
|
||||
call s:CacheRstFold()
|
||||
endif
|
||||
|
2
runtime/autoload/dist/ft.vim
vendored
2
runtime/autoload/dist/ft.vim
vendored
@ -126,7 +126,7 @@ endfunc
|
||||
" This function checks if one of the first ten lines start with a '@'. In
|
||||
" that case it is probably a change file.
|
||||
" If the first line starts with # or ! it's probably a ch file.
|
||||
" If a line has "main", "include", "//" ir "/*" it's probably ch.
|
||||
" If a line has "main", "include", "//" or "/*" it's probably ch.
|
||||
" Otherwise CHILL is assumed.
|
||||
func dist#ft#FTchange()
|
||||
let lnum = 1
|
||||
|
@ -3,7 +3,7 @@
|
||||
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
||||
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||
" URL: https://github.com/shawncplus/phpcomplete.vim
|
||||
" Last Change: 2016 Oct 10
|
||||
" Last Change: 2018 Oct 10
|
||||
"
|
||||
" OPTIONS:
|
||||
"
|
||||
@ -146,6 +146,8 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
||||
end
|
||||
|
||||
try
|
||||
let eventignore = &eventignore
|
||||
let &eventignore = 'all'
|
||||
let winheight = winheight(0)
|
||||
let winnr = winnr()
|
||||
|
||||
@ -216,6 +218,7 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
||||
endif
|
||||
finally
|
||||
silent! exec winnr.'resize '.winheight
|
||||
let &eventignore = eventignore
|
||||
endtry
|
||||
endfunction
|
||||
" }}}
|
||||
@ -1393,23 +1396,28 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
|
||||
for classstructure in classcontents
|
||||
let docblock_target_pattern = 'function\s\+&\?'.method.'\>\|\(public\|private\|protected\|var\).\+\$'.method.'\>\|@property.\+\$'.method.'\>'
|
||||
let doc_str = phpcomplete#GetDocBlock(split(classstructure.content, '\n'), docblock_target_pattern)
|
||||
if doc_str != ''
|
||||
let return_type_hint = phpcomplete#GetFunctionReturnTypeHint(split(classstructure.content, '\n'), 'function\s\+&\?'.method.'\>')
|
||||
if doc_str != '' || return_type_hint != ''
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
if doc_str != ''
|
||||
if doc_str != '' || return_type_hint != ''
|
||||
let docblock = phpcomplete#ParseDocBlock(doc_str)
|
||||
if has_key(docblock.return, 'type') || has_key(docblock.var, 'type') || len(docblock.properties) > 0
|
||||
let type = has_key(docblock.return, 'type') ? docblock.return.type : has_key(docblock.var, 'type') ? docblock.var.type : ''
|
||||
if has_key(docblock.return, 'type') || has_key(docblock.var, 'type') || len(docblock.properties) > 0 || return_type_hint != ''
|
||||
if return_type_hint == ''
|
||||
let type = has_key(docblock.return, 'type') ? docblock.return.type : has_key(docblock.var, 'type') ? docblock.var.type : ''
|
||||
|
||||
if type == ''
|
||||
for property in docblock.properties
|
||||
if property.description =~? method
|
||||
let type = property.type
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if type == ''
|
||||
for property in docblock.properties
|
||||
if property.description =~? method
|
||||
let type = property.type
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
else
|
||||
let type = return_type_hint
|
||||
end
|
||||
|
||||
" there's a namespace in the type, threat the type as FQCN
|
||||
if type =~ '\\'
|
||||
@ -1483,7 +1491,7 @@ function! phpcomplete#GetMethodStack(line) " {{{
|
||||
continue
|
||||
endif
|
||||
|
||||
" if it's looks like a string
|
||||
" if it looks like a string
|
||||
if current_char == "'" || current_char == '"'
|
||||
" and it is not escaped
|
||||
if prev_char != '\' || (prev_char == '\' && prev_prev_char == '\')
|
||||
@ -1587,9 +1595,11 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
elseif function_file != '' && filereadable(function_file)
|
||||
let file_lines = readfile(function_file)
|
||||
let docblock_str = phpcomplete#GetDocBlock(file_lines, 'function\s*&\?\<'.function_name.'\>')
|
||||
let return_type_hint = phpcomplete#GetFunctionReturnTypeHint(file_lines, 'function\s*&\?'.function_name.'\>')
|
||||
let docblock = phpcomplete#ParseDocBlock(docblock_str)
|
||||
if has_key(docblock.return, 'type')
|
||||
let classname_candidate = docblock.return.type
|
||||
let type = has_key(docblock.return, 'type') ? docblock.return.type : return_type_hint
|
||||
if type != ''
|
||||
let classname_candidate = type
|
||||
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
||||
" try to expand the classname of the returned type with the context got from the function's source file
|
||||
|
||||
@ -1821,9 +1831,11 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
elseif function_file != '' && filereadable(function_file)
|
||||
let file_lines = readfile(function_file)
|
||||
let docblock_str = phpcomplete#GetDocBlock(file_lines, 'function\s*&\?\<'.function_name.'\>')
|
||||
let return_type_hint = phpcomplete#GetFunctionReturnTypeHint(file_lines, 'function\s*&\?'.function_name.'\>')
|
||||
let docblock = phpcomplete#ParseDocBlock(docblock_str)
|
||||
if has_key(docblock.return, 'type')
|
||||
let classname_candidate = docblock.return.type
|
||||
let type = has_key(docblock.return, 'type') ? docblock.return.type : return_type_hint
|
||||
if type != ''
|
||||
let classname_candidate = type
|
||||
let [class_candidate_namespace, function_imports] = phpcomplete#GetCurrentNameSpace(file_lines)
|
||||
" try to expand the classname of the returned type with the context got from the function's source file
|
||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(classname_candidate, class_candidate_namespace, function_imports)
|
||||
@ -2413,6 +2425,44 @@ function! phpcomplete#ParseDocBlock(docblock) " {{{
|
||||
endfunction
|
||||
" }}}
|
||||
|
||||
function! phpcomplete#GetFunctionReturnTypeHint(sccontent, search)
|
||||
let i = 0
|
||||
let l = 0
|
||||
let function_line_start = -1
|
||||
let function_line_end = -1
|
||||
let sccontent_len = len(a:sccontent)
|
||||
let return_type = ''
|
||||
|
||||
while (i < sccontent_len)
|
||||
let line = a:sccontent[i]
|
||||
" search for a function declaration
|
||||
if line =~? a:search
|
||||
let l = i
|
||||
let function_line_start = i
|
||||
" now search for the first { where the function body starts
|
||||
while l < sccontent_len
|
||||
let line = a:sccontent[l]
|
||||
if line =~? '\V{'
|
||||
let function_line_end = l
|
||||
break
|
||||
endif
|
||||
let l += 1
|
||||
endwhile
|
||||
break
|
||||
endif
|
||||
let i += 1
|
||||
endwhile
|
||||
|
||||
" now grab the lines that holds the function declaration line
|
||||
if function_line_start != -1 && function_line_end != -1
|
||||
let function_line = join(a:sccontent[function_line_start :function_line_end], " ")
|
||||
let class_name_pattern = '[a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
||||
let return_type = matchstr(function_line, '\c\s*:\s*\zs'.class_name_pattern.'\ze\s*{')
|
||||
endif
|
||||
return return_type
|
||||
|
||||
endfunction
|
||||
|
||||
function! phpcomplete#GetTypeFromDocBlockParam(docblock_type) " {{{
|
||||
if a:docblock_type !~ '|'
|
||||
return a:docblock_type
|
||||
@ -2572,7 +2622,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
||||
" find kind flags from tags or built in methods for the objects we extracted
|
||||
" they can be either classes, interfaces or namespaces, no other thing is importable in php
|
||||
for [key, import] in items(imports)
|
||||
" if theres a \ in the name we have it's definetly not a built in thing, look for tags
|
||||
" if theres a \ in the name we have it's definitely not a built in thing, look for tags
|
||||
if import.name =~ '\\'
|
||||
let patched_ctags_detected = 0
|
||||
let [classname, namespace_for_classes] = phpcomplete#ExpandClassName(import.name, '\', {})
|
||||
|
@ -1,6 +1,6 @@
|
||||
" Vim autoload file for the tohtml plugin.
|
||||
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
|
||||
" Last Change: 2013 Sep 03
|
||||
" Last Change: 2018 Nov 11
|
||||
"
|
||||
" Additional contributors:
|
||||
"
|
||||
@ -544,12 +544,16 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
||||
" add required javascript in reverse order so we can just call append again
|
||||
" and again without adjusting {{{
|
||||
|
||||
" insert script closing tag
|
||||
call append(style_start, [
|
||||
\ '',
|
||||
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
||||
\ "</script>"
|
||||
\ ])
|
||||
let s:uses_script = s:settings.dynamic_folds || s:settings.line_ids || !empty(s:settings.prevent_copy)
|
||||
|
||||
" insert script closing tag if needed
|
||||
if s:uses_script
|
||||
call append(style_start, [
|
||||
\ '',
|
||||
\ s:settings.use_xhtml ? '//]]>' : '-->',
|
||||
\ "</script>"
|
||||
\ ])
|
||||
endif
|
||||
|
||||
" 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
|
||||
@ -575,55 +579,61 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
||||
\ '}'
|
||||
\ ])
|
||||
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
|
||||
if s:settings.line_ids
|
||||
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
|
||||
endif
|
||||
|
||||
if s:settings.line_ids
|
||||
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;",
|
||||
\ "/* 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;",
|
||||
\ " }",
|
||||
\ " var lineElem = document.getElementById(lineNum);"
|
||||
\ ])
|
||||
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,
|
||||
" if dynamic folding is active.
|
||||
@ -648,11 +658,13 @@ func! tohtml#Diff2HTML(win_list, buf_list) "{{{
|
||||
\ ])
|
||||
endif
|
||||
|
||||
" insert script tag; javascript is always needed for the line number
|
||||
" normalization for URL hashes
|
||||
call append(style_start, [
|
||||
\ "<script type='text/javascript'>",
|
||||
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
||||
if s:uses_script
|
||||
" insert script tag; javascript is always needed for the line number
|
||||
" normalization for URL hashes
|
||||
call append(style_start, [
|
||||
\ "<script type='text/javascript'>",
|
||||
\ s:settings.use_xhtml ? '//<![CDATA[' : "<!--"])
|
||||
endif
|
||||
|
||||
" 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
|
||||
@ -767,7 +779,7 @@ func! tohtml#GetUserSettings() "{{{
|
||||
if user_settings.no_pre == 0
|
||||
call tohtml#GetOption(user_settings,
|
||||
\ 'expand_tabs',
|
||||
\ &expandtab || &ts != 8 || user_settings.number_lines ||
|
||||
\ &expandtab || &ts != 8 || &vts != '' || user_settings.number_lines ||
|
||||
\ (user_settings.dynamic_folds && !user_settings.no_foldcolumn))
|
||||
else
|
||||
let user_settings.expand_tabs = 1
|
||||
|
@ -1,9 +1,9 @@
|
||||
" Vim plugin for formatting XML
|
||||
" Last Change: Thu, 22 May 2018 21:26:55 +0100
|
||||
" Version: 0.1
|
||||
" Author: Christian Brabandt <cb@256bit.org>
|
||||
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
|
||||
" License: VIM License
|
||||
" Last Change: Thu, 07 Dec 2018
|
||||
" Version: 0.1
|
||||
" Author: Christian Brabandt <cb@256bit.org>
|
||||
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
|
||||
" License: VIM License
|
||||
" Documentation: see :h xmlformat.txt (TODO!)
|
||||
" ---------------------------------------------------------------------
|
||||
" Load Once: {{{1
|
||||
@ -85,7 +85,11 @@ func! s:Trim(item)
|
||||
endfunc
|
||||
" Check if tag is a new opening tag <tag> {{{1
|
||||
func! s:StartTag(tag)
|
||||
return a:tag =~? '^\s*<[^/?]'
|
||||
let is_comment = s:IsComment(a:tag)
|
||||
return a:tag =~? '^\s*<[^/?]' && !is_comment
|
||||
endfunc
|
||||
func! s:IsComment(tag)
|
||||
return a:tag =~? '<!--'
|
||||
endfunc
|
||||
" Remove one level of indentation {{{1
|
||||
func! s:DecreaseIndent()
|
||||
|
@ -5,6 +5,7 @@
|
||||
" Last Change: 2001 May 27
|
||||
|
||||
aunmenu *
|
||||
tlunmenu *
|
||||
|
||||
silent! unlet did_install_default_menus
|
||||
silent! unlet did_install_syntax_menu
|
||||
|
@ -102,6 +102,7 @@ DOCS = \
|
||||
tagsrch.txt \
|
||||
term.txt \
|
||||
terminal.txt \
|
||||
textprop.txt \
|
||||
tips.txt \
|
||||
todo.txt \
|
||||
uganda.txt \
|
||||
@ -238,6 +239,7 @@ HTMLS = \
|
||||
tagsrch.html \
|
||||
term.html \
|
||||
terminal.html \
|
||||
textprop.html \
|
||||
tips.html \
|
||||
todo.html \
|
||||
uganda.html \
|
||||
|
@ -1,4 +1,4 @@
|
||||
*autocmd.txt* For Vim version 8.1. Last change: 2018 May 03
|
||||
*autocmd.txt* For Vim version 8.1. Last change: 2018 Dec 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -301,6 +301,7 @@ Name triggered by ~
|
||||
|FileChangedShellPost| After handling a file changed since editing started
|
||||
|FileChangedRO| before making the first change to a read-only file
|
||||
|
||||
|DiffUpdated| after diffs have been updated
|
||||
|DirChanged| after the working directory has changed
|
||||
|
||||
|ShellCmdPost| after executing a shell command
|
||||
@ -656,6 +657,11 @@ FileChangedRO Before making the first change to a read-only
|
||||
*E881*
|
||||
If the number of lines changes saving for undo
|
||||
may fail and the change will be aborted.
|
||||
*DiffUpdated*
|
||||
DiffUpdated After diffs have been updated. Depending on
|
||||
what kind of diff is being used (internal or
|
||||
external) this can be triggered on every
|
||||
change or when doing |:diffupdate|.
|
||||
*DirChanged*
|
||||
DirChanged The working directory has changed in response
|
||||
to the |:cd| or |:lcd| commands, or as a
|
||||
@ -753,13 +759,14 @@ FilterReadPre Before reading a file from a filter command.
|
||||
Not triggered when 'shelltemp' is off.
|
||||
*FilterWritePost*
|
||||
FilterWritePost After writing a file for a filter command or
|
||||
making a diff.
|
||||
making a diff with an external diff (see
|
||||
DiffUpdated for internal diff).
|
||||
Vim checks the pattern against the name of
|
||||
the current buffer as with FilterWritePre.
|
||||
Not triggered when 'shelltemp' is off.
|
||||
*FilterWritePre*
|
||||
FilterWritePre Before writing a file for a filter command or
|
||||
making a diff.
|
||||
making a diff with an external diff.
|
||||
Vim checks the pattern against the name of
|
||||
the current buffer, not the name of the
|
||||
temporary file that is the output of the
|
||||
@ -829,13 +836,14 @@ MenuPopup Just before showing the popup menu (under the
|
||||
right mouse button). Useful for adjusting the
|
||||
menu for what is under the cursor or mouse
|
||||
pointer.
|
||||
The pattern is matched against a single
|
||||
character representing the mode:
|
||||
The pattern is matched against one or two
|
||||
characters representing the mode:
|
||||
n Normal
|
||||
v Visual
|
||||
o Operator-pending
|
||||
i Insert
|
||||
c Command line
|
||||
tl Terminal
|
||||
*OptionSet*
|
||||
OptionSet After setting an option. The pattern is
|
||||
matched against the long option name.
|
||||
@ -859,6 +867,9 @@ OptionSet After setting an option. The pattern is
|
||||
plugin. You can always use `:noa` to prevent
|
||||
triggering this autocommand.
|
||||
|
||||
When using |:set| in the autocommand the event
|
||||
is not triggered again.
|
||||
|
||||
*QuickFixCmdPre*
|
||||
QuickFixCmdPre Before a quickfix command is run (|:make|,
|
||||
|:lmake|, |:grep|, |:lgrep|, |:grepadd|,
|
||||
|
@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 8.1. Last change: 2018 May 12
|
||||
*change.txt* For Vim version 8.1. Last change: 2018 Dec 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -476,6 +476,10 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right*
|
||||
*<*
|
||||
<{motion} Shift {motion} lines one 'shiftwidth' leftwards.
|
||||
|
||||
If the 'vartabstop' feature is enabled, and the
|
||||
'shiftwidth' option is set to zero, the amount of
|
||||
indent is calculated at the first non-blank character
|
||||
in the line.
|
||||
*<<*
|
||||
<< Shift [count] lines one 'shiftwidth' leftwards.
|
||||
|
||||
@ -487,6 +491,10 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right*
|
||||
*>*
|
||||
>{motion} Shift {motion} lines one 'shiftwidth' rightwards.
|
||||
|
||||
If the 'vartabstop' feature is enabled, and the
|
||||
'shiftwidth' option is set to zero, the amount of
|
||||
indent is calculated at the first non-blank character
|
||||
in the line.
|
||||
*>>*
|
||||
>> Shift [count] lines one 'shiftwidth' rightwards.
|
||||
|
||||
@ -708,6 +716,7 @@ The flags that you can use for the substitute commands:
|
||||
search pattern.
|
||||
{not in Vi: highlighting of the match, other responses than 'y' or 'n'}
|
||||
|
||||
*:s_e*
|
||||
[e] When the search pattern fails, do not issue an error message and, in
|
||||
particular, continue in maps as if no error occurred. This is most
|
||||
useful to prevent the "No match" error from breaking a mapping. Vim
|
||||
@ -719,6 +728,7 @@ The flags that you can use for the substitute commands:
|
||||
Interrupted
|
||||
{not in Vi}
|
||||
|
||||
*:s_g*
|
||||
[g] Replace all occurrences in the line. Without this argument,
|
||||
replacement occurs only for the first occurrence in each line. If
|
||||
the 'edcompatible' option is on, Vim remembers this flag and toggles
|
||||
@ -726,26 +736,30 @@ The flags that you can use for the substitute commands:
|
||||
pattern. If the 'gdefault' option is on, this flag is on by default
|
||||
and the [g] argument switches it off.
|
||||
|
||||
*:s_i*
|
||||
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
|
||||
are not used.
|
||||
{not in Vi}
|
||||
|
||||
*:s_I*
|
||||
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
|
||||
options are not used.
|
||||
{not in Vi}
|
||||
|
||||
*:s_n*
|
||||
[n] Report the number of matches, do not actually substitute. The [c]
|
||||
flag is ignored. The matches are reported as if 'report' is zero.
|
||||
Useful to |count-items|.
|
||||
If \= |sub-replace-expression| is used, the expression will be
|
||||
evaluated in the |sandbox| at every match.
|
||||
|
||||
[p] Print the line containing the last substitute.
|
||||
[p] Print the line containing the last substitute. *:s_p*
|
||||
|
||||
[#] Like [p] and prepend the line number.
|
||||
[#] Like [p] and prepend the line number. *:s_#*
|
||||
|
||||
[l] Like [p] but print the text like |:list|.
|
||||
[l] Like [p] but print the text like |:list|. *:s_l*
|
||||
|
||||
*:s_r*
|
||||
[r] Only useful in combination with `:&` or `:s` without arguments. `:&r`
|
||||
works the same way as `:~`: When the search pattern is empty, use the
|
||||
previously used search pattern instead of the search pattern from the
|
||||
@ -844,7 +858,7 @@ the |substitute()| function with the following exceptions:
|
||||
- magic is always set without regard to 'magic'.
|
||||
- A ~ inserts a tilde literally.
|
||||
- <CR> and \r inserts a carriage-return (CTRL-M).
|
||||
- \<CR> does not have a special meaning. it's just one of \x.
|
||||
- \<CR> does not have a special meaning. It's just one of \x.
|
||||
|
||||
Examples: >
|
||||
:s/a\|b/xxx\0xxx/g modifies "a b" to "xxxaxxx xxxbxxx"
|
||||
@ -930,9 +944,9 @@ When the result is a |List| then the items are joined with separating line
|
||||
breaks. Thus each item becomes a line, except that they can contain line
|
||||
breaks themselves.
|
||||
|
||||
The whole matched text can be accessed with "submatch(0)". The text matched
|
||||
with the first pair of () with "submatch(1)". Likewise for further
|
||||
sub-matches in ().
|
||||
The |submatch()| function can be used to obtain matched text. The whole
|
||||
matched text can be accessed with "submatch(0)". The text matched with the
|
||||
first pair of () with "submatch(1)". Likewise for further sub-matches in ().
|
||||
|
||||
Be careful: The separation character must not appear in the expression!
|
||||
Consider using a character like "@" or ":". There is no problem if the result
|
||||
|
@ -534,8 +534,45 @@ after a command causes the rest of the line to be ignored. This can be used
|
||||
to add comments. Example: >
|
||||
:set ai "set 'autoindent' option
|
||||
It is not possible to add a comment to a shell command ":!cmd" or to the
|
||||
":map" command and a few others, because they see the '"' as part of their
|
||||
argument. This is mentioned where the command is explained.
|
||||
":map" command and a few others (mainly commands that expect expressions)
|
||||
that see the '"' as part of their argument:
|
||||
|
||||
:argdo
|
||||
:autocmd
|
||||
:bufdo
|
||||
:cexpr (and the like)
|
||||
:cdo (and the like)
|
||||
:command
|
||||
:cscope (and the like)
|
||||
:debug
|
||||
:display
|
||||
:echo (and the like)
|
||||
:elseif
|
||||
:execute
|
||||
:folddoopen
|
||||
:folddoclosed
|
||||
:for
|
||||
:grep (and the like)
|
||||
:help (and the like)
|
||||
:if
|
||||
:let
|
||||
:make
|
||||
:map (and the like including :abbrev commands)
|
||||
:menu (and the like)
|
||||
:mkspell
|
||||
:normal
|
||||
:ownsyntax
|
||||
:popup
|
||||
:promptfind (and the like)
|
||||
:registers
|
||||
:return
|
||||
:sort
|
||||
:syntax
|
||||
:tabdo
|
||||
:tearoff
|
||||
:vimgrep (and the like)
|
||||
:while
|
||||
:windo
|
||||
|
||||
*:bar* *:\bar*
|
||||
'|' can be used to separate commands, so you can give multiple commands in one
|
||||
@ -832,11 +869,12 @@ it, no matter how many backslashes.
|
||||
\\# \#
|
||||
Also see |`=|.
|
||||
|
||||
*:<cword>* *:<cWORD>* *:<cfile>* *<cfile>*
|
||||
*:<sfile>* *<sfile>* *:<afile>* *<afile>*
|
||||
*:<abuf>* *<abuf>* *:<amatch>* *<amatch>*
|
||||
*:<cexpr>* *<cexpr>*
|
||||
*<slnum>* *E495* *E496* *E497* *E499* *E500*
|
||||
*:<cword>* *<cword>* *:<cWORD>* *<cWORD>*
|
||||
*:<cexpr>* *<cexpr>* *:<cfile>* *<cfile>*
|
||||
*:<afile>* *<afile>* *:<abuf>* *<abuf>*
|
||||
*:<amatch>* *<amatch>*
|
||||
*:<sfile>* *<sfile>* *:<slnum>* *<slnum>*
|
||||
*:<sflnum>* *<sflnum>* *E499* *E500*
|
||||
Note: these are typed literally, they are not special keys!
|
||||
<cword> is replaced with the word under the cursor (like |star|)
|
||||
<cWORD> is replaced with the WORD under the cursor (see |WORD|)
|
||||
@ -849,15 +887,16 @@ Note: these are typed literally, they are not special keys!
|
||||
|gf| uses)
|
||||
<afile> When executing autocommands, is replaced with the file name
|
||||
of the buffer being manipulated, or the file for a read or
|
||||
write.
|
||||
write. *E495*
|
||||
<abuf> When executing autocommands, is replaced with the currently
|
||||
effective buffer number (for ":r file" and ":so file" it is
|
||||
the current buffer, the file being read/sourced is not in a
|
||||
buffer).
|
||||
buffer). *E496*
|
||||
<amatch> When executing autocommands, is replaced with the match for
|
||||
which this autocommand was executed. It differs from
|
||||
<afile> only when the file name isn't used to match with
|
||||
(for FileType, Syntax and SpellFileMissing events).
|
||||
which this autocommand was executed. *E497*
|
||||
It differs from <afile> only when the file name isn't used
|
||||
to match with (for FileType, Syntax and SpellFileMissing
|
||||
events).
|
||||
<sfile> When executing a ":source" command, is replaced with the
|
||||
file name of the sourced file. *E498*
|
||||
When executing a function, is replaced with:
|
||||
@ -867,9 +906,12 @@ Note: these are typed literally, they are not special keys!
|
||||
Note that filename-modifiers are useless when <sfile> is
|
||||
used inside a function.
|
||||
<slnum> When executing a ":source" command, is replaced with the
|
||||
line number. *E842*
|
||||
line number. *E842*
|
||||
When executing a function it's the line number relative to
|
||||
the start of the function.
|
||||
<sflnum> When executing a script, is replaced with the line number.
|
||||
It differs from <slnum> in that <sflnum> is replaced with
|
||||
the script line number in any situation. *E961*
|
||||
|
||||
*filename-modifiers*
|
||||
*:_%:* *::8* *::p* *::.* *::~* *::h* *::t* *::r* *::e* *::s* *::gs* *::S*
|
||||
|
@ -39,7 +39,9 @@ The second and following arguments may also be a directory name. Vim will
|
||||
then append the file name of the first argument to the directory name to find
|
||||
the file.
|
||||
|
||||
This only works when a standard "diff" command is available. See 'diffexpr'.
|
||||
By default an internal diff library will be used. When 'diffopt' or
|
||||
'diffexpr' has been set an external "diff" command will be used. This only
|
||||
works when such a diff program is available.
|
||||
|
||||
Diffs are local to the current tab page |tab-page|. You can't see diffs with
|
||||
a window in another tab page. This does make it possible to have several
|
||||
@ -344,8 +346,9 @@ between file1 and file2: >
|
||||
|
||||
The ">" is replaced with the value of 'shellredir'.
|
||||
|
||||
The output of "diff" must be a normal "ed" style diff. Do NOT use a context
|
||||
diff. This example explains the format that Vim expects: >
|
||||
The output of "diff" must be a normal "ed" style diff or a unified diff. Do
|
||||
NOT use a context diff. This example explains the format that Vim expects for
|
||||
the "ed" style diff: >
|
||||
|
||||
1a2
|
||||
> bbb
|
||||
|
@ -1,4 +1,4 @@
|
||||
*digraph.txt* For Vim version 8.1. Last change: 2016 Nov 04
|
||||
*digraph.txt* For Vim version 8.1. Last change: 2018 Dec 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -24,7 +24,9 @@ An alternative is using the 'keymap' option.
|
||||
1. Defining digraphs *digraphs-define*
|
||||
|
||||
*:dig* *:digraphs*
|
||||
:dig[raphs] show currently defined digraphs.
|
||||
:dig[raphs][!] Show currently defined digraphs.
|
||||
With [!] headers are used to make it a bit easier to
|
||||
find a specific character.
|
||||
*E104* *E39*
|
||||
:dig[raphs] {char1}{char2} {number} ...
|
||||
Add digraph {char1}{char2} to the list. {number} is
|
||||
@ -111,11 +113,14 @@ this, you will have to type <BS> e again. To avoid this don't set the
|
||||
|
||||
You may have problems using Vim with characters which have a value above 128.
|
||||
For example: You insert ue (u-umlaut) and the editor echoes \334 in Insert
|
||||
mode. After leaving the Insert mode everything is fine. Note that fmt
|
||||
removes all characters with a value above 128 from the text being formatted.
|
||||
On some Unix systems this means you have to define the environment-variable
|
||||
LC_CTYPE. If you are using csh, then put the following line in your .cshrc: >
|
||||
setenv LC_CTYPE iso_8859_1
|
||||
mode. After leaving the Insert mode everything is fine. On some Unix systems
|
||||
this means you have to define the environment-variable LC_CTYPE. If you are
|
||||
using csh, then put the following line in your .cshrc: >
|
||||
setenv LC_CTYPE en_US.utf8
|
||||
(or similar for a different language or country). The value must be a valid
|
||||
locale on your system, i.e. on Unix-like systems it must be present in the
|
||||
output of >
|
||||
locale -a
|
||||
|
||||
==============================================================================
|
||||
3. Default digraphs *digraphs-default*
|
||||
|
@ -1,4 +1,4 @@
|
||||
*editing.txt* For Vim version 8.1. Last change: 2018 Mar 29
|
||||
*editing.txt* For Vim version 8.1. Last change: 2018 Dec 16
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1415,7 +1415,7 @@ cannot be read without the right key.
|
||||
The text in the swap file and the undo file is also encrypted. *E843*
|
||||
However, this is done block-by-block and may reduce the time needed to crack a
|
||||
password. You can disable the swap file, but then a crash will cause you to
|
||||
lose your work. The undo file can be disabled without much disadvantage. >
|
||||
lose your work. The undo file can be disabled without too much disadvantage. >
|
||||
:set noundofile
|
||||
:noswapfile edit secrets
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -547,15 +547,16 @@ floating menus that do not appear on the main menu bar.
|
||||
|
||||
5.2 Creating New Menus *creating-menus*
|
||||
|
||||
*:me* *:menu* *:noreme* *:noremenu*
|
||||
*:am* *:amenu* *:an* *:anoremenu*
|
||||
*:nme* *:nmenu* *:nnoreme* *:nnoremenu*
|
||||
*:ome* *:omenu* *:onoreme* *:onoremenu*
|
||||
*:vme* *:vmenu* *:vnoreme* *:vnoremenu*
|
||||
*:xme* *:xmenu* *:xnoreme* *:xnoremenu*
|
||||
*:sme* *:smenu* *:snoreme* *:snoremenu*
|
||||
*:ime* *:imenu* *:inoreme* *:inoremenu*
|
||||
*:cme* *:cmenu* *:cnoreme* *:cnoremenu*
|
||||
*:me* *:menu* *:noreme* *:noremenu*
|
||||
*:am* *:amenu* *:an* *:anoremenu*
|
||||
*:nme* *:nmenu* *:nnoreme* *:nnoremenu*
|
||||
*:ome* *:omenu* *:onoreme* *:onoremenu*
|
||||
*:vme* *:vmenu* *:vnoreme* *:vnoremenu*
|
||||
*:xme* *:xmenu* *:xnoreme* *:xnoremenu*
|
||||
*:sme* *:smenu* *:snoreme* *:snoremenu*
|
||||
*:ime* *:imenu* *:inoreme* *:inoremenu*
|
||||
*:cme* *:cmenu* *:cnoreme* *:cnoremenu*
|
||||
*:tlm* *:tlmenu* *:tln* *:tlnoremenu*
|
||||
*E330* *E327* *E331* *E336* *E333*
|
||||
*E328* *E329* *E337* *E792*
|
||||
To create a new menu item, use the ":menu" commands. They are mostly like
|
||||
@ -571,6 +572,10 @@ the mouse button down on this will pop up a menu containing the item
|
||||
"Big Changes", which is a sub-menu containing the item "Delete All Spaces",
|
||||
which when selected, performs the operation.
|
||||
|
||||
To create a menu for terminal mode, use |:tlmenu| instead of |:tmenu| unlike
|
||||
key mapping (|:tmap|). This is because |:tmenu| is already used for defining
|
||||
tooltips for menus. See |terminal-typing|.
|
||||
|
||||
Special characters in a menu name:
|
||||
|
||||
& The next character is the shortcut key. Make sure each
|
||||
@ -589,9 +594,9 @@ With the shortcut "F" (while keeping the <Alt> key pressed), and then "O",
|
||||
this menu can be used. The second part is shown as "Open :e". The ":e"
|
||||
is right aligned, and the "O" is underlined, to indicate it is the shortcut.
|
||||
|
||||
The ":amenu" command can be used to define menu entries for all modes at once.
|
||||
To make the command work correctly, a character is automatically inserted for
|
||||
some modes:
|
||||
The ":amenu" command can be used to define menu entries for all modes at once,
|
||||
except for Terminal mode. To make the command work correctly, a character is
|
||||
automatically inserted for some modes:
|
||||
mode inserted appended ~
|
||||
Normal nothing nothing
|
||||
Visual <C-C> <C-\><C-G>
|
||||
@ -865,6 +870,16 @@ be used to complete the name of the menu item.
|
||||
insert-mode menu Eg: >
|
||||
:emenu File.Exit
|
||||
|
||||
:[range]em[enu] {mode} {menu} Like above, but execute the menu for {mode}:
|
||||
'n': |:nmenu| Normal mode
|
||||
'v': |:vmenu| Visual mode
|
||||
's': |:smenu| Select mode
|
||||
'o': |:omenu| Operator-pending mode
|
||||
't': |:tlmenu| Terminal mode
|
||||
'i': |:imenu| Insert mode
|
||||
'c': |:cmenu| Cmdline mode
|
||||
|
||||
|
||||
If the console-mode vim has been compiled with WANT_MENU defined, you can
|
||||
use :emenu to access useful menu items you may have got used to from GUI
|
||||
mode. See 'wildmenu' for an option that works well with this. See
|
||||
@ -885,6 +900,7 @@ using the last visual selection.
|
||||
*:sunme* *:sunmenu*
|
||||
*:iunme* *:iunmenu*
|
||||
*:cunme* *:cunmenu*
|
||||
*:tlu* *:tlunmenu*
|
||||
To delete a menu item or a whole submenu, use the unmenu commands, which are
|
||||
analogous to the unmap commands. Eg: >
|
||||
:unmenu! Edit.Paste
|
||||
@ -951,6 +967,8 @@ See section |42.4| in the user manual.
|
||||
:tu[nmenu] {menupath} Remove a tip for a menu or tool.
|
||||
{only in X11 and Win32 GUI}
|
||||
|
||||
Note: To create menus for terminal mode, use |:tlmenu| instead.
|
||||
|
||||
When a tip is defined for a menu item, it appears in the command-line area
|
||||
when the mouse is over that item, much like a standard Windows menu hint in
|
||||
the status bar. (Except when Vim is in Command-line mode, when of course
|
||||
|
@ -496,7 +496,7 @@ unexpectedly less attractive or even deteriorates their usability. Keep this
|
||||
in mind always when you try improving a theme.
|
||||
|
||||
|
||||
Example 3. border color
|
||||
Example 3. border color ~
|
||||
|
||||
To eliminate borders when maximized: >
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*help.txt* For Vim version 8.1. Last change: 2017 Oct 28
|
||||
*help.txt* For Vim version 8.1. Last change: 2019 Jan 01
|
||||
|
||||
VIM - main help file
|
||||
k
|
||||
@ -10,7 +10,7 @@ Close this window: Use ":q<Enter>".
|
||||
Jump to a subject: Position the cursor on a tag (e.g. |bars|) and hit CTRL-].
|
||||
With the mouse: ":set mouse=a" to enable the mouse (in xterm or GUI).
|
||||
Double-click the left mouse button on a tag, e.g. |bars|.
|
||||
Jump back: Type CTRL-T or CTRL-O. Repeat to go further back.
|
||||
Jump back: Type CTRL-O. Repeat to go further back.
|
||||
|
||||
Get specific help: It is possible to go directly to whatever you want help
|
||||
on, by giving an argument to the |:help| command.
|
||||
@ -31,13 +31,17 @@ Get specific help: It is possible to go directly to whatever you want help
|
||||
help entries for "word".
|
||||
Or use ":helpgrep word". |:helpgrep|
|
||||
|
||||
Getting started: Do the Vim tutor, a 20 minute interactive training for the
|
||||
basic commands, see |vimtutor|.
|
||||
Read the user manual from start to end: |usr_01.txt|
|
||||
|
||||
Vim stands for Vi IMproved. Most of Vim was made by Bram Moolenaar, but only
|
||||
through the help of many others. See |credits|.
|
||||
------------------------------------------------------------------------------
|
||||
*doc-file-list* *Q_ct*
|
||||
BASIC:
|
||||
|quickref| Overview of the most common commands you will use
|
||||
|tutor| 30 minutes training course for beginners
|
||||
|tutor| 20 minutes training course for beginners
|
||||
|copying| About copyrights
|
||||
|iccf| Helping poor children in Uganda
|
||||
|sponsor| Sponsor Vim development, become a registered Vim user
|
||||
@ -113,7 +117,6 @@ Basic editing ~
|
||||
|scroll.txt| scrolling the text in the window
|
||||
|insert.txt| Insert and Replace mode
|
||||
|change.txt| deleting and replacing text
|
||||
|indent.txt| automatic indenting for C and other languages
|
||||
|undo.txt| Undo and Redo
|
||||
|repeat.txt| repeating commands, Vim scripts and debugging
|
||||
|visual.txt| using the Visual mode (selecting a text area)
|
||||
@ -126,14 +129,11 @@ Advanced editing ~
|
||||
|pattern.txt| regexp patterns and search commands
|
||||
|map.txt| key mapping and abbreviations
|
||||
|tagsrch.txt| tags and special searches
|
||||
|quickfix.txt| commands for a quick edit-compile-fix cycle
|
||||
|windows.txt| commands for using multiple windows and buffers
|
||||
|tabpage.txt| commands for using multiple tab pages
|
||||
|syntax.txt| syntax highlighting
|
||||
|spell.txt| spell checking
|
||||
|diff.txt| working with two to four versions of the same file
|
||||
|autocmd.txt| automatically executing commands on an event
|
||||
|filetype.txt| settings done specifically for a type of file
|
||||
|eval.txt| expression evaluation, conditional commands
|
||||
|channel.txt| Jobs, Channels, inter-process communication
|
||||
|fold.txt| hide (fold) ranges of lines
|
||||
@ -143,18 +143,27 @@ Special issues ~
|
||||
|remote.txt| using Vim as a server or client
|
||||
|term.txt| using different terminals and mice
|
||||
|terminal.txt| Terminal window support
|
||||
|
||||
Programming language support ~
|
||||
|indent.txt| automatic indenting for C and other languages
|
||||
|syntax.txt| syntax highlighting
|
||||
|textprop.txt| Attaching properties to text for highlighting or other
|
||||
|filetype.txt| settings done specifically for a type of file
|
||||
|quickfix.txt| commands for a quick edit-compile-fix cycle
|
||||
|ft_ada.txt| Ada (the programming language) support
|
||||
|ft_rust.txt| Filetype plugin for Rust
|
||||
|ft_sql.txt| about the SQL filetype plugin
|
||||
|
||||
Language support ~
|
||||
|digraph.txt| list of available digraphs
|
||||
|mbyte.txt| multi-byte text support
|
||||
|mlang.txt| non-English language support
|
||||
|rileft.txt| right-to-left editing mode
|
||||
|arabic.txt| Arabic language support and editing
|
||||
|farsi.txt| Farsi (Persian) editing
|
||||
|hebrew.txt| Hebrew language support and editing
|
||||
|russian.txt| Russian language support and editing
|
||||
|ft_ada.txt| Ada (the programming language) support
|
||||
|ft_rust.txt| Filetype plugin for Rust
|
||||
|ft_sql.txt| about the SQL filetype plugin
|
||||
|hangulin.txt| Hangul (Korean) input mode
|
||||
|rileft.txt| right-to-left editing mode
|
||||
|
||||
GUI ~
|
||||
|gui.txt| Graphical User Interface (GUI)
|
||||
@ -225,4 +234,4 @@ will try to find help for it. Especially for options in single quotes, e.g.
|
||||
'compatible'.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
vim:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":ts=8:noet:ft=help:norl:
|
||||
vim:tw=78:isk=!-~,^*,^\|,^\":ts=8:noet:ft=help:norl:
|
||||
|
@ -45,8 +45,8 @@ The Perl patches for Vim were made by:
|
||||
Matt Gerassimof
|
||||
|
||||
Perl for MS-Windows (and other platforms) can be found at:
|
||||
http://www.perl.org/ The ActiveState one should work, Strawberry Perl is a
|
||||
good alternative.
|
||||
http://www.perl.org/
|
||||
The ActiveState one should work, Strawberry Perl is a good alternative.
|
||||
|
||||
==============================================================================
|
||||
3. Using the Perl interface *perl-using*
|
||||
|
@ -60,9 +60,10 @@ Example: >
|
||||
endfunction
|
||||
|
||||
To see what version of Python you have: >
|
||||
:python import sys
|
||||
:python print(sys.version)
|
||||
|
||||
There is no need to import sys, it's done by default.
|
||||
|
||||
Note: Python is very sensitive to the indenting. Make sure the "class" line
|
||||
and "EOF" do not have any indent.
|
||||
|
||||
@ -110,7 +111,6 @@ Python commands cannot be used in the |sandbox|.
|
||||
|
||||
To pass arguments you need to set sys.argv[] explicitly. Example: >
|
||||
|
||||
:python import sys
|
||||
:python sys.argv = ["foo", "bar"]
|
||||
:pyfile myscript.py
|
||||
|
||||
|
@ -588,8 +588,9 @@ The basics for using flexible indenting are explained in section |30.3| of the
|
||||
user manual.
|
||||
|
||||
If you want to write your own indent file, it must set the 'indentexpr'
|
||||
option. Setting the 'indentkeys' option is often useful. See the
|
||||
$VIMRUNTIME/indent directory for examples.
|
||||
option. Setting the 'indentkeys' option is often useful.
|
||||
See the $VIMRUNTIME/indent/README.txt file for hints.
|
||||
See the $VIMRUNTIME/indent directory for examples.
|
||||
|
||||
|
||||
REMARKS ABOUT SPECIFIC INDENT FILES ~
|
||||
@ -602,14 +603,14 @@ the use of square and curly brackets, and otherwise by community convention.
|
||||
These conventions are not universally followed, so the Clojure indent script
|
||||
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.
|
||||
|
||||
*g:clojure_maxlines*
|
||||
|
||||
Set maximum scan distance of searchpairpos(). Larger values trade performance
|
||||
for correctness when dealing with very long forms. A value of 0 will scan
|
||||
without limits.
|
||||
Set maximum scan distance of |searchpairpos()|. Larger values trade
|
||||
performance for correctness when dealing with very long forms. A value of 0
|
||||
will scan without limits.
|
||||
>
|
||||
" Default
|
||||
let g:clojure_maxlines = 100
|
||||
@ -935,11 +936,16 @@ given are the defaults. Note that the variables are set to an expression, so
|
||||
that you can change the value of 'shiftwidth' later.
|
||||
|
||||
Indent after an open paren: >
|
||||
let g:pyindent_open_paren = '&sw * 2'
|
||||
let g:pyindent_open_paren = 'shiftwidth() * 2'
|
||||
Indent after a nested paren: >
|
||||
let g:pyindent_nested_paren = '&sw'
|
||||
let g:pyindent_nested_paren = 'shiftwidth()'
|
||||
Indent for a continuation line: >
|
||||
let g:pyindent_continue = '&sw * 2'
|
||||
let g:pyindent_continue = 'shiftwidth() * 2'
|
||||
|
||||
The method uses |searchpair()| to look back for unclosed parenthesis. This
|
||||
can sometimes be slow, thus it timeouts after 150 msec. If you notice the
|
||||
indenting isn't correct, you can set a larger timeout in msec: >
|
||||
let g:pyindent_searchpair_timeout = 500
|
||||
|
||||
|
||||
R *ft-r-indent*
|
||||
@ -1033,7 +1039,7 @@ Furthermore, setting the variable b:verilog_indent_width to change the
|
||||
indenting width (default is 'shiftwidth'): >
|
||||
|
||||
let b:verilog_indent_width = 4
|
||||
let b:verilog_indent_width = &sw * 2
|
||||
let b:verilog_indent_width = shiftwidth() * 2
|
||||
|
||||
In addition, you can turn the verbose mode for debug issue: >
|
||||
|
||||
@ -1156,7 +1162,7 @@ VIM *ft-vim-indent*
|
||||
For indenting Vim scripts there is one variable that specifies the amount of
|
||||
indent for a continuation line, a line that starts with a backslash: >
|
||||
|
||||
:let g:vim_indent_cont = &sw * 3
|
||||
:let g:vim_indent_cont = shiftwidth() * 3
|
||||
|
||||
Three times shiftwidth is the default value.
|
||||
|
||||
|
@ -1583,6 +1583,9 @@ tag command action ~
|
||||
|:tjump| :tj[ump] like ":tselect", but jump directly when there
|
||||
is only one match
|
||||
|:tlast| :tl[ast] jump to last matching tag
|
||||
|:tlmenu| :tlm[enu] add menu for Terminal-Job mode
|
||||
|:tlnoremenu| :tln[oremenu] like ":noremenu" but for Terminal-Job mode
|
||||
|:tlunmenu| :tlu[nmenu] remove menu for Terminal-Job mode
|
||||
|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
|
||||
|:tmap| :tma[p] like ":map" but for Terminal-Job mode
|
||||
|:tmenu| :tm[enu] define menu tooltip
|
||||
|
@ -1,4 +1,4 @@
|
||||
*intro.txt* For Vim version 8.1. Last change: 2018 Jan 24
|
||||
*intro.txt* For Vim version 8.1. Last change: 2019 Jan 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -52,29 +52,11 @@ an introduction to the use of Vi or Vim, it gets a bit complicated here and
|
||||
there. For beginners, there is a hands-on |tutor|. To learn using Vim, read
|
||||
the user manual |usr_toc.txt|.
|
||||
|
||||
*book*
|
||||
There are many books on Vi that contain a section for beginners. There are
|
||||
two books I can recommend:
|
||||
|
||||
"Vim - Vi Improved" by Steve Oualline
|
||||
|
||||
This is the very first book completely dedicated to Vim. It is very good for
|
||||
beginners. The most often used commands are explained with pictures and
|
||||
examples. The less often used commands are also explained, the more advanced
|
||||
features are summarized. There is a comprehensive index and a quick
|
||||
reference. Parts of this book have been included in the user manual
|
||||
|frombook|.
|
||||
Published by New Riders Publishing. ISBN: 0735710015
|
||||
For more information try one of these:
|
||||
http://iccf-holland.org/click5.html
|
||||
http://www.vim.org/iccf/click5.html
|
||||
|
||||
"Learning the Vi editor" by Linda Lamb and Arnold Robbins
|
||||
|
||||
This is a book about Vi that includes a chapter on Vim (in the sixth edition).
|
||||
The first steps in Vi are explained very well. The commands that Vim adds are
|
||||
only briefly mentioned. There is also a German translation.
|
||||
Published by O'Reilly. ISBN: 1-56592-426-6.
|
||||
*book* *books*
|
||||
Most books on Vi and Vim contain a section for beginners. Others are spending
|
||||
more words on specific functionality. You can find an overview of Vim books
|
||||
here:
|
||||
http://iccf-holland.org/vim_books.html
|
||||
|
||||
==============================================================================
|
||||
2. Vim on the internet *internet*
|
||||
@ -84,9 +66,9 @@ The Vim pages contain the most recent information about Vim. They also
|
||||
contain links to the most recent version of Vim. The FAQ is a list of
|
||||
Frequently Asked Questions. Read this if you have problems.
|
||||
|
||||
Vim home page: http://www.vim.org/
|
||||
Vim FAQ: http://vimdoc.sf.net/
|
||||
Downloading: ftp://ftp.vim.org/pub/vim/MIRRORS
|
||||
Vim home page: https://www.vim.org/
|
||||
Vim FAQ: https://vimhelp.appspot.com/vim_faq.txt.html
|
||||
Downloading: https://www.vim.org/download.php
|
||||
|
||||
|
||||
Usenet News group where Vim is discussed: *news* *usenet*
|
||||
@ -114,10 +96,12 @@ There are several mailing lists for Vim:
|
||||
See http://www.vim.org/maillist.php for the latest information.
|
||||
|
||||
NOTE:
|
||||
- Anyone can see the archive, e.g. on Google groups. Search this if you have
|
||||
questions.
|
||||
- You can only send messages to these lists if you have subscribed!
|
||||
- The first message is moderated, thus it may take a few hours to show up.
|
||||
- You need to send the messages from the same location as where you subscribed
|
||||
from (to avoid spam mail).
|
||||
- Maximum message size is 40000 characters.
|
||||
|
||||
*subscribe-maillist*
|
||||
If you want to join, send a message to
|
||||
@ -150,7 +134,10 @@ Preferably start Vim with: >
|
||||
Where reproduce.vim is a script that reproduces the problem. Try different
|
||||
machines, if relevant (is this an MS-Windows specific bug perhaps?).
|
||||
|
||||
Send me patches if you can!
|
||||
Send me patches if you can! If you create a pull request on
|
||||
https://github.com/vim/vim then the automated checks will run and report any
|
||||
obvious problems. But you can also send the patch by email (use an attachment
|
||||
to avoid white space changes).
|
||||
|
||||
It will help to include information about the version of Vim you are using and
|
||||
your setup. You can get the information with this command: >
|
||||
@ -189,7 +176,7 @@ introduce Y2K problems, but those are not really part of Vim itself.
|
||||
==============================================================================
|
||||
3. Credits *credits* *author* *Bram* *Moolenaar*
|
||||
|
||||
Most of Vim was written by Bram Moolenaar <Bram@vim.org>.
|
||||
Most of Vim was created by Bram Moolenaar <Bram@vim.org>.
|
||||
|
||||
Parts of the documentation come from several Vi manuals, written by:
|
||||
W.N. Joy
|
||||
@ -268,6 +255,7 @@ Vim would never have become what it is now, without the help of these people!
|
||||
Ken Takata fixes and features
|
||||
Kazunobu Kuriyama GTK 3
|
||||
Christian Brabandt many fixes, features, user support, etc.
|
||||
Yegappan Lakshmanan many quickfix features
|
||||
|
||||
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
|
||||
@ -300,6 +288,12 @@ Elvis Another Vi clone, made by Steve Kirkendall. Very compact but isn't
|
||||
as flexible as Vim.
|
||||
The version used is 2.1. It is still being developed. Source code is
|
||||
freely available.
|
||||
*NeoVim*
|
||||
NeoVim A Vim clone. Forked the Vim source in 2014 and went a different way.
|
||||
Very much bound to github and has many more dependencies, making
|
||||
development more complex and limiting portability. Code has been
|
||||
refactored, resulting in patches not being exchangeable with Vim.
|
||||
Supports a remote GUI and integration with scripting languages.
|
||||
|
||||
==============================================================================
|
||||
4. Notation *notation*
|
||||
|
@ -1,4 +1,4 @@
|
||||
*map.txt* For Vim version 8.1. Last change: 2018 May 13
|
||||
*map.txt* For Vim version 8.1. Last change: 2018 Dec 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -371,8 +371,9 @@ job running in the terminal. See |terminal-typing|.
|
||||
|
||||
*omap-info*
|
||||
Operator-pending mappings can be used to define a movement command that can be
|
||||
used with any operator. Simple example: ":omap { w" makes "y{" work like "yw"
|
||||
and "d{" like "dw".
|
||||
used with any operator. Simple example: >
|
||||
:omap { w
|
||||
makes "y{" work like "yw" and "d{" like "dw".
|
||||
|
||||
To ignore the starting cursor position and select different text, you can have
|
||||
the omap start Visual mode to select the text to be operated upon. Example
|
||||
@ -383,9 +384,11 @@ Normal mode commands find the first '(' character and select the first word
|
||||
before it. That usually is the function name.
|
||||
|
||||
To enter a mapping for Normal and Visual mode, but not Operator-pending mode,
|
||||
first define it for all three modes, then unmap it for Operator-pending mode:
|
||||
first define it for all three modes, then unmap it for
|
||||
Operator-pending mode: >
|
||||
:map xx something-difficult
|
||||
:ounmap xx
|
||||
|
||||
Likewise for a mapping for Visual and Operator-pending mode or Normal and
|
||||
Operator-pending mode.
|
||||
|
||||
@ -1220,6 +1223,10 @@ See |:verbose-cmd| for more information.
|
||||
attributes (see below) are {attr}. If the command
|
||||
already exists, an error is reported, unless a ! is
|
||||
specified, in which case the command is redefined.
|
||||
There is one exception: When sourcing a script again,
|
||||
a command that was previously defined in that script
|
||||
will be silently replaced.
|
||||
|
||||
|
||||
:delc[ommand] {cmd} *:delc* *:delcommand* *E184*
|
||||
Delete the user-defined command {cmd}.
|
||||
@ -1227,7 +1234,8 @@ See |:verbose-cmd| for more information.
|
||||
:comc[lear] *:comc* *:comclear*
|
||||
Delete all user-defined commands.
|
||||
|
||||
Command attributes
|
||||
|
||||
Command attributes ~
|
||||
|
||||
User-defined commands are treated by Vim just like any other Ex commands. They
|
||||
can have arguments, or have a range specified. Arguments are subject to
|
||||
@ -1238,14 +1246,15 @@ There are a number of attributes, split into four categories: argument
|
||||
handling, completion behavior, range handling, and special cases. The
|
||||
attributes are described below, by category.
|
||||
|
||||
Argument handling *E175* *E176* *:command-nargs*
|
||||
|
||||
Argument handling ~
|
||||
*E175* *E176* *:command-nargs*
|
||||
By default, a user defined command will take no arguments (and an error is
|
||||
reported if any are supplied). However, it is possible to specify that the
|
||||
command can take arguments, using the -nargs attribute. Valid cases are:
|
||||
|
||||
-nargs=0 No arguments are allowed (the default)
|
||||
-nargs=1 Exactly one argument is required, it includes spaces
|
||||
-nargs=1 Exactly one argument is required, it includes spaces
|
||||
-nargs=* Any number of arguments are allowed (0, 1, or many),
|
||||
separated by white space
|
||||
-nargs=? 0 or 1 arguments are allowed
|
||||
@ -1268,8 +1277,10 @@ defined, not where it is invoked! Example:
|
||||
Executing script2.vim will result in "None" being echoed. Not what you
|
||||
intended! Calling a function may be an alternative.
|
||||
|
||||
Completion behavior *:command-completion* *E179*
|
||||
*E180* *E181* *:command-complete*
|
||||
|
||||
Completion behavior ~
|
||||
*:command-completion* *E179* *E180* *E181*
|
||||
*:command-complete*
|
||||
By default, the arguments of user defined commands do not undergo completion.
|
||||
However, by specifying one or the other of the following attributes, argument
|
||||
completion can be enabled:
|
||||
@ -1314,9 +1325,9 @@ completion can be enabled:
|
||||
Note: That some completion methods might expand environment variables.
|
||||
|
||||
|
||||
Custom completion *:command-completion-custom*
|
||||
*:command-completion-customlist*
|
||||
*E467* *E468*
|
||||
Custom completion ~
|
||||
*:command-completion-custom*
|
||||
*:command-completion-customlist* *E467* *E468*
|
||||
It is possible to define customized completion schemes via the "custom,{func}"
|
||||
or the "customlist,{func}" completion argument. The {func} part should be a
|
||||
function with the following signature: >
|
||||
@ -1361,8 +1372,8 @@ the 'path' option: >
|
||||
This example does not work for file names with spaces!
|
||||
|
||||
|
||||
Range handling *E177* *E178* *:command-range*
|
||||
*:command-count*
|
||||
Range handling ~
|
||||
*E177* *E178* *:command-range* *:command-count*
|
||||
By default, user-defined commands do not accept a line number range. However,
|
||||
it is possible to specify that the command does take a range (the -range
|
||||
attribute), or that it takes an arbitrary count value, either in the line
|
||||
@ -1396,8 +1407,11 @@ Possible values are:
|
||||
-addr=loaded_buffers Range for loaded buffers
|
||||
-addr=windows Range for windows
|
||||
-addr=tabs Range for tab pages
|
||||
-addr=other other kind of range
|
||||
|
||||
Special cases *:command-bang* *:command-bar*
|
||||
|
||||
Special cases ~
|
||||
*:command-bang* *:command-bar*
|
||||
*:command-register* *:command-buffer*
|
||||
There are some special cases as well:
|
||||
|
||||
@ -1415,7 +1429,8 @@ 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 ~
|
||||
|
||||
The replacement text for a user defined command is scanned for special escape
|
||||
sequences, using <...> notation. Escape sequences are replaced with values
|
||||
|
@ -1,4 +1,4 @@
|
||||
*message.txt* For Vim version 8.1. Last change: 2018 Feb 04
|
||||
*message.txt* For Vim version 8.1. Last change: 2018 Dec 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -557,14 +557,6 @@ This message is only given when Vim detects a problem when searching for a
|
||||
tag. Sometimes this message is not given, even though the tags file is not
|
||||
properly sorted.
|
||||
|
||||
*E460* >
|
||||
The resource fork would be lost (add ! to override)
|
||||
|
||||
On the Macintosh (classic), when writing a file, Vim attempts to preserve all
|
||||
info about a file, including its resource fork. If this is not possible you
|
||||
get this error message. Append "!" to the command name to write anyway (and
|
||||
lose the info).
|
||||
|
||||
*E424* >
|
||||
Too many different highlighting attributes in use
|
||||
|
||||
|
@ -102,8 +102,10 @@ Or:
|
||||
|
||||
This also contains tools xgettext, msgformat and others.
|
||||
|
||||
libintl.dll should be placed in same directory with (g)vim.exe, or some
|
||||
place where PATH environment value describe. Vim also finds libintl-8.dll.
|
||||
libintl.dll should be placed in same directory as (g)vim.exe, or one of the
|
||||
directories listed in the PATH environment value. Vim also looks for the
|
||||
alternate names "libintl-8.dll" and "intl.dll".
|
||||
|
||||
Message files (vim.mo) have to be placed in "$VIMRUNTIME/lang/xx/LC_MESSAGES",
|
||||
where "xx" is the abbreviation of the language (mostly two letters).
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*motion.txt* For Vim version 8.1. Last change: 2017 Oct 15
|
||||
*motion.txt* For Vim version 8.1. Last change: 2018 Dec 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -113,7 +113,7 @@ This cannot be repeated: >
|
||||
endif<CR>
|
||||
Note that when using ":" any motion becomes characterwise exclusive.
|
||||
|
||||
|
||||
*forced-motion*
|
||||
FORCING A MOTION TO BE LINEWISE, CHARACTERWISE OR BLOCKWISE
|
||||
|
||||
When a motion is not of the type you would like to use, you can force another
|
||||
@ -1025,7 +1025,7 @@ remembered. You can return to that position with the "''" and "``" command,
|
||||
unless the line containing that position was changed or deleted. The
|
||||
following commands are "jump" commands: "'", "`", "G", "/", "?", "n", "N",
|
||||
"%", "(", ")", "[[", "]]", "{", "}", ":s", ":tag", "L", "M", "H" and the
|
||||
commands that start editing a new file.
|
||||
commands that start editing a new file.
|
||||
|
||||
*CTRL-O*
|
||||
CTRL-O Go to [count] Older cursor position in jump list
|
||||
|
@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 8.1. Last change: 2018 May 15
|
||||
*options.txt* For Vim version 8.1. Last change: 2018 Dec 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -120,10 +120,10 @@ and the following arguments will be ignored.
|
||||
When 'verbose' is non-zero, displaying an option value will also tell where it
|
||||
was last set. Example: >
|
||||
:verbose set shiftwidth cindent?
|
||||
< shiftwidth=4 ~
|
||||
Last set from modeline ~
|
||||
cindent ~
|
||||
Last set from /usr/local/share/vim/vim60/ftplugin/c.vim ~
|
||||
< shiftwidth=4 ~
|
||||
Last set from modeline line 1 ~
|
||||
cindent ~
|
||||
Last set from /usr/local/share/vim/vim60/ftplugin/c.vim line 30 ~
|
||||
This is only done when specific option values are requested, not for ":verbose
|
||||
set all" or ":verbose set" without an argument.
|
||||
When the option was set by hand there is no "Last set" message.
|
||||
@ -132,7 +132,7 @@ autocommand, the script in which it was defined is reported.
|
||||
Note that an option may also have been set as a side effect of setting
|
||||
'compatible'.
|
||||
A few special texts:
|
||||
Last set from modeline ~
|
||||
Last set from modeline line 1 ~
|
||||
Option was set in a |modeline|.
|
||||
Last set from --cmd argument ~
|
||||
Option was set with command line argument |--cmd| or +.
|
||||
@ -846,7 +846,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'{A-Z0-9}, or `{A-Z0-9} command takes one to another file.
|
||||
Note that for some commands the 'autowrite' option is not used, see
|
||||
'autowriteall' for that.
|
||||
Some buffers will not be written, specifically when 'buttype' is
|
||||
Some buffers will not be written, specifically when 'buftype' is
|
||||
"nowrite", "nofile", "terminal" or "prompt".
|
||||
|
||||
*'autowriteall'* *'awa'* *'noautowriteall'* *'noawa'*
|
||||
@ -1057,9 +1057,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
- To include a comma in a directory name precede it with a backslash.
|
||||
- A directory name may end in an '/'.
|
||||
- For Unix and Win32, if a directory ends in two path separators "//",
|
||||
the swap file name will be built from the complete path to the file
|
||||
with all path separators changed to percent '%' signs. This will
|
||||
ensure file name uniqueness in the backup directory.
|
||||
the backup file name will be built from the complete path to the
|
||||
file with all path separators changed to percent '%' signs. This
|
||||
will ensure file name uniqueness in the backup directory.
|
||||
On Win32, it is also possible to end with "\\". However, When a
|
||||
separating comma is following, you must use "//", since "\\" will
|
||||
include the comma in the file name. Therefore it is recommended to
|
||||
@ -1638,10 +1638,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
area extended, Vim tries to become the owner of the
|
||||
windowing system's global selection or put the
|
||||
selected text on the clipboard used by the selection
|
||||
register "*. See |guioptions_a| and |quotestar| for
|
||||
details. When the GUI is active, the 'a' flag in
|
||||
'guioptions' is used, when the GUI is not active, this
|
||||
"autoselect" flag is used.
|
||||
register "*. See |'go-a'| and |quotestar| for details.
|
||||
When the GUI is active, the 'a' flag in 'guioptions'
|
||||
is used, when the GUI is not active, this "autoselect"
|
||||
flag is used.
|
||||
Also applies to the modeless selection.
|
||||
|
||||
*clipboard-autoselectplus*
|
||||
@ -1999,8 +1999,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
displayed. E.g., when moving vertically it may change column.
|
||||
|
||||
|
||||
'conceallevel' 'cole' *'conceallevel'* *'cole'*
|
||||
number (default 0)
|
||||
*'conceallevel'* *'cole'*
|
||||
'conceallevel' 'cole' number (default 0)
|
||||
local to window
|
||||
{not in Vi}
|
||||
{not available when compiled without the |+conceal|
|
||||
@ -2370,7 +2370,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
|
||||
*'cryptmethod'* *'cm'*
|
||||
'cryptmethod' 'cm' string (default "zip")
|
||||
'cryptmethod' 'cm' string (default "blowfish2")
|
||||
global or local to buffer |global-local|
|
||||
{not in Vi}
|
||||
Method used for encryption when the buffer is written to a file:
|
||||
@ -2401,8 +2401,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
modifications. Also see |:X|.
|
||||
|
||||
When setting the global value to an empty string, it will end up with
|
||||
the value "zip". When setting the local value to an empty string the
|
||||
buffer will use the global value.
|
||||
the value "blowfish2". When setting the local value to an empty
|
||||
string the buffer will use the global value.
|
||||
|
||||
When a new encryption method is added in a later version of Vim, and
|
||||
the current version does not recognize it, you will get *E821* .
|
||||
@ -2609,13 +2609,13 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
{not in Vi}
|
||||
{not available when compiled without the |+diff|
|
||||
feature}
|
||||
Expression which is evaluated to obtain an ed-style diff file from two
|
||||
versions of a file. See |diff-diffexpr|.
|
||||
Expression which is evaluated to obtain a diff file (either ed-style
|
||||
or unified-style) from two versions of a file. See |diff-diffexpr|.
|
||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||
security reasons.
|
||||
|
||||
*'dip'* *'diffopt'*
|
||||
'diffopt' 'dip' string (default "filler")
|
||||
'diffopt' 'dip' string (default "internal,filler")
|
||||
global
|
||||
{not in Vi}
|
||||
{not available when compiled without the |+diff|
|
||||
@ -2634,6 +2634,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
When omitted a context of six lines is used.
|
||||
See |fold-diff|.
|
||||
|
||||
iblank Ignore changes where lines are all blank. Adds
|
||||
the "-B" flag to the "diff" command if
|
||||
'diffexpr' is empty. Check the documentation
|
||||
of the "diff" command for what this does
|
||||
exactly.
|
||||
NOTE: the diff windows will get out of sync,
|
||||
because no differences between blank lines are
|
||||
taken into account.
|
||||
|
||||
icase Ignore changes in case of text. "a" and "A"
|
||||
are considered the same. Adds the "-i" flag
|
||||
to the "diff" command if 'diffexpr' is empty.
|
||||
@ -2645,6 +2654,18 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
exactly. It should ignore adding trailing
|
||||
white space, but not leading white space.
|
||||
|
||||
iwhiteall Ignore all white space changes. Adds
|
||||
the "-w" flag to the "diff" command if
|
||||
'diffexpr' is empty. Check the documentation
|
||||
of the "diff" command for what this does
|
||||
exactly.
|
||||
|
||||
iwhiteeol Ignore white space changes at end of line.
|
||||
Adds the "-Z" flag to the "diff" command if
|
||||
'diffexpr' is empty. Check the documentation
|
||||
of the "diff" command for what this does
|
||||
exactly.
|
||||
|
||||
horizontal Start diff mode with horizontal splits (unless
|
||||
explicitly specified otherwise).
|
||||
|
||||
@ -2657,11 +2678,31 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
foldcolumn:{n} Set the 'foldcolumn' option to {n} when
|
||||
starting diff mode. Without this 2 is used.
|
||||
|
||||
Examples: >
|
||||
internal Use the internal diff library. This is
|
||||
ignored when 'diffexpr' is set. *E960*
|
||||
When running out of memory when writing a
|
||||
buffer this item will be ignored for diffs
|
||||
involving that buffer. Set the 'verbose'
|
||||
option to see when this happens.
|
||||
|
||||
:set diffopt=filler,context:4
|
||||
indent-heuristic
|
||||
Use the indent heuristic for the internal
|
||||
diff library.
|
||||
|
||||
algorithm:{text} Use the specified diff algorithm with the
|
||||
internal diff engine. Currently supported
|
||||
algorithms are:
|
||||
myers the default algorithm
|
||||
minimal spend extra time to generate the
|
||||
smallest possible diff
|
||||
patience patience diff algorithm
|
||||
histogram histogram diff algorithm
|
||||
|
||||
Examples: >
|
||||
:set diffopt=internal,filler,context:4
|
||||
:set diffopt=
|
||||
:set diffopt=filler,foldcolumn:3
|
||||
:set diffopt=internal,filler,foldcolumn:3
|
||||
:set diffopt-=internal " do NOT use the internal diff parser
|
||||
<
|
||||
*'digraph'* *'dg'* *'nodigraph'* *'nodg'*
|
||||
'digraph' 'dg' boolean (default off)
|
||||
@ -3854,8 +3895,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
screen.
|
||||
|
||||
*'guioptions'* *'go'*
|
||||
'guioptions' 'go' string (default "egmrLtT" (MS-Windows, "t" is
|
||||
removed in |defaults.vim|),
|
||||
'guioptions' 'go' string (default "egmrLtT" (MS-Windows,
|
||||
"t" is removed in |defaults.vim|),
|
||||
"aegimrLtT" (GTK, Motif and Athena),
|
||||
)
|
||||
global
|
||||
@ -3875,7 +3916,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
terminal to list the command output.
|
||||
The terminal window will be positioned at the bottom, and grow
|
||||
upwards as needed.
|
||||
*guioptions_a* *'go-a'*
|
||||
*'go-a'*
|
||||
'a' Autoselect: If present, then whenever VISUAL mode is started,
|
||||
or the Visual area extended, Vim tries to become the owner of
|
||||
the windowing system's global selection. This means that the
|
||||
@ -4092,11 +4133,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,
|
||||
N:CursorLineNr,r:Question,s:StatusLine,
|
||||
S:StatusLineNC,c:VertSplit,t:Title,
|
||||
v:Visual,w:WarningMsg,W:WildMenu,f:Folded,
|
||||
F:FoldColumn,A:DiffAdd,C:DiffChange,
|
||||
D:DiffDelete,T:DiffText,>:SignColumn,
|
||||
v:Visual,V:VisualNOS,w:WarningMsg,
|
||||
W:WildMenu,f:Folded,F:FoldColumn,
|
||||
A:DiffAdd,C:DiffChange,D:DiffDelete,
|
||||
T:DiffText,>:SignColumn,-:Conceal,
|
||||
B:SpellBad,P:SpellCap,R:SpellRare,
|
||||
L:SpellLocal,-:Conceal,+:Pmenu,=:PmenuSel,
|
||||
L:SpellLocal,+:Pmenu,=:PmenuSel,
|
||||
x:PmenuSbar,X:PmenuThumb,*:TabLine,
|
||||
#:TabLineSel,_:TabLineFill,!:CursorColumn,
|
||||
.:CursorLine,o:ColorColumn,q:QuickFixLine,
|
||||
@ -4141,16 +4183,16 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|hl-DiffDelete| D deleted line in diff mode
|
||||
|hl-DiffText| T inserted text in diff mode
|
||||
|hl-SignColumn| > column used for |signs|
|
||||
|hl-Conceal| - the placeholders used for concealed characters
|
||||
(see 'conceallevel')
|
||||
|hl-SpellBad| B misspelled word |spell|
|
||||
|hl-SpellCap| P word that should start with capital |spell|
|
||||
|hl-SpellRare| R rare word |spell|
|
||||
|hl-SpellLocal| L word from other region |spell|
|
||||
|hl-Conceal| - the placeholders used for concealed characters
|
||||
(see 'conceallevel')
|
||||
|hl-Pmenu| + popup menu normal line
|
||||
|hl-PmenuSel| = popup menu normal line
|
||||
|hl-PmenuSbar| x popup menu scrollbar
|
||||
|hl-PmenuThumb| X popup menu scrollbar thumb
|
||||
|hl-Pmenu| + popup menu normal line
|
||||
|hl-PmenuSel| = popup menu selected line
|
||||
|hl-PmenuSbar| x popup menu scrollbar
|
||||
|hl-PmenuThumb| X popup menu scrollbar thumb
|
||||
|
||||
The display modes are:
|
||||
r reverse (termcap entry "mr" and "me")
|
||||
@ -4678,7 +4720,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
Identifiers are used in recognizing environment variables and after a
|
||||
match of the 'define' option. It is also used for "\i" in a
|
||||
|pattern|. See 'isfname' for a description of the format of this
|
||||
option.
|
||||
option. For '@' only characters up to 255 are used.
|
||||
Careful: If you change this option, it might break expanding
|
||||
environment variables. E.g., when '/' is included and Vim tries to
|
||||
expand "$HOME/.viminfo". Maybe you should change 'iskeyword' instead.
|
||||
@ -4692,8 +4734,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
{not in Vi}
|
||||
Keywords are used in searching and recognizing with many commands:
|
||||
"w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See
|
||||
'isfname' for a description of the format of this option. For C
|
||||
programs you could use "a-z,A-Z,48-57,_,.,-,>".
|
||||
'isfname' for a description of the format of this option. For '@'
|
||||
characters above 255 check the "word" character class.
|
||||
For C programs you could use "a-z,A-Z,48-57,_,.,-,>".
|
||||
For a help file it is set to all non-blank printable characters except
|
||||
'*', '"' and '|' (so that CTRL-] on a command finds the help for that
|
||||
command).
|
||||
@ -5404,7 +5447,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
h all previous modes when editing a help file
|
||||
a all previous modes
|
||||
r for |hit-enter| and |more-prompt| prompt
|
||||
Normally you would enable the mouse in all four modes with: >
|
||||
Normally you would enable the mouse in all five modes with: >
|
||||
:set mouse=a
|
||||
< When the mouse is not enabled, the GUI will still use the mouse for
|
||||
modeless selection. This doesn't move the text cursor.
|
||||
@ -5926,7 +5969,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
security reasons.
|
||||
|
||||
*'printencoding'* *'penc'*
|
||||
'printencoding' 'penc' String (default empty, except for some systems)
|
||||
'printencoding' 'penc' string (default empty, except for some systems)
|
||||
global
|
||||
{not in Vi}
|
||||
{only available when compiled with the |+printer|
|
||||
@ -5935,7 +5978,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
See |penc-option|.
|
||||
|
||||
*'printexpr'* *'pexpr'*
|
||||
'printexpr' 'pexpr' String (default: see below)
|
||||
'printexpr' 'pexpr' string (default: see below)
|
||||
global
|
||||
{not in Vi}
|
||||
{only available when compiled with the |+printer|
|
||||
@ -7297,8 +7340,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
After this option has been set successfully, Vim will source the files
|
||||
"spell/LANG.vim" in 'runtimepath'. "LANG" is the value of 'spelllang'
|
||||
up to the first comma, dot or underscore.
|
||||
Also see |set-spc-auto|.
|
||||
up to the first character that is not an ASCII letter or number and
|
||||
not a dash. Also see |set-spc-auto|.
|
||||
|
||||
|
||||
*'spellsuggest'* *'sps'*
|
||||
@ -8078,13 +8121,18 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
global or local to buffer |global-local|
|
||||
{not in Vi}
|
||||
List of file names, separated by commas, that are used to lookup words
|
||||
for thesaurus completion commands |i_CTRL-X_CTRL-T|. Each line in
|
||||
the file should contain words with similar meaning, separated by
|
||||
non-keyword characters (white space is preferred). Maximum line
|
||||
length is 510 bytes.
|
||||
To obtain a file to be used here, check out this ftp site:
|
||||
[Sorry this link doesn't work anymore, do you know the right one?]
|
||||
ftp://ftp.ox.ac.uk/pub/wordlists/ First get the README file.
|
||||
for thesaurus completion commands |i_CTRL-X_CTRL-T|.
|
||||
|
||||
Each line in the file should contain words with similar meaning,
|
||||
separated by non-keyword characters (white space is preferred).
|
||||
Maximum line length is 510 bytes.
|
||||
|
||||
An English word list was added to this github issue:
|
||||
https://github.com/vim/vim/issues/629#issuecomment-443293282
|
||||
Unpack thesaurus_pkg.zip, put the thesaurus.txt file somewhere, e.g.
|
||||
~/.vim/thesaurus/english.txt, and the 'thesaurus' option to this file
|
||||
name.
|
||||
|
||||
To include a comma in a file name precede it with a backslash. Spaces
|
||||
after a comma are ignored, otherwise spaces are included in the file
|
||||
name. See |option-backslash| about using backslashes.
|
||||
@ -8389,8 +8437,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|t_RV| is set to the escape sequence to request the xterm version
|
||||
number, more intelligent detection process runs.
|
||||
The "xterm2" value will be set if the xterm version is reported to be
|
||||
from 95 to 276. The "sgr" value will be set if the xterm version is
|
||||
277 or higher and when Vim detects Mac Terminal.app or iTerm2.
|
||||
from 95 to 276. The "sgr" value will be set if Vim detects Mac
|
||||
Terminal.app, iTerm2 or mintty, and when the xterm version is 277 or
|
||||
higher.
|
||||
If you do not want 'ttymouse' to be set to "xterm2" or "sgr"
|
||||
automatically, set t_RV to an empty string: >
|
||||
:set t_RV=
|
||||
|
@ -83,10 +83,10 @@ There is no solution for this yet.
|
||||
ctags out there, that does it right, but we can't be sure. So this seems to
|
||||
be a permanent restriction.
|
||||
|
||||
- The cscope interface (|cscope|) doesn't work for the version of cscope
|
||||
that we use on our mainframe. We have a copy of version 15.0b12, and it
|
||||
causes Vim to hang when using the "cscope add" command. I'm guessing that
|
||||
the binary format of the cscope database isn't quite what Vim is expecting.
|
||||
- The cscope interface (|cscope|) doesn't work for the version of cscope that
|
||||
we use on our mainframe. We have a copy of version 15.0b12, and it causes
|
||||
Vim to hang when using the "cscope add" command. I'm guessing that the
|
||||
binary format of the cscope database isn't quite what Vim is expecting.
|
||||
I've tried to port the current version of cscope (15.3) to z/OS, without
|
||||
much success. If anyone is interested in trying, drop me a line if you
|
||||
make any progress.
|
||||
@ -131,4 +131,4 @@ Also look at:
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
vim:tw=78:fo=tcq2:ts=8:noet:ft=help:norl:
|
||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
|
@ -303,4 +303,4 @@ A. Yes, place your favorite icon in bitmaps/vim.ico in a directory of
|
||||
'runtimepath'. For example ~/vimfiles/bitmaps/vim.ico.
|
||||
|
||||
|
||||
vim:tw=78:fo=tcq2:ts=8:noet:ft=help:norl:
|
||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
|
@ -1,4 +1,4 @@
|
||||
*pattern.txt* For Vim version 8.1. Last change: 2018 Mar 13
|
||||
*pattern.txt* For Vim version 8.1. Last change: 2018 Dec 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -295,7 +295,7 @@ the "*" is under your right hand middle finger (search to the right and down).
|
||||
|
||||
*E956*
|
||||
In very rare cases a regular expression is used recursively. This can happen
|
||||
when executing a pattern takes a long time and when checkig for messages on
|
||||
when executing a pattern takes a long time and when checking for messages on
|
||||
channels a callback is invoked that also uses a pattern or an autocommand is
|
||||
triggered. In most cases this should be fine, but if a pattern is in use when
|
||||
it's used again it fails. Usually this means there is something wrong with
|
||||
@ -398,11 +398,11 @@ Use of "\m" makes the pattern after it be interpreted as if 'magic' is set,
|
||||
ignoring the actual value of the 'magic' option.
|
||||
Use of "\M" makes the pattern after it be interpreted as if 'nomagic' is used.
|
||||
*/\v* */\V*
|
||||
Use of "\v" means that in the pattern after it all ASCII characters except
|
||||
'0'-'9', 'a'-'z', 'A'-'Z' and '_' have a special meaning. "very magic"
|
||||
Use of "\v" means that after it, all ASCII characters except '0'-'9', 'a'-'z',
|
||||
'A'-'Z' and '_' have special meaning: "very magic"
|
||||
|
||||
Use of "\V" means that in the pattern after it only the backslash and the
|
||||
terminating character (/ or ?) has a special meaning. "very nomagic"
|
||||
Use of "\V" means that after it, only a backslash and terminating character
|
||||
(usually / or ?) have special meaning: "very nomagic"
|
||||
|
||||
Examples:
|
||||
after: \v \m \M \V matches ~
|
||||
|
@ -1,4 +1,4 @@
|
||||
*quickfix.txt* For Vim version 8.1. Last change: 2018 May 01
|
||||
*quickfix.txt* For Vim version 8.1. Last change: 2018 Dec 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -898,7 +898,7 @@ commands can be combined to create a NewGrep command: >
|
||||
'smartcase' is not used.
|
||||
If {pattern} is empty (e.g. // is specified), the last
|
||||
used search pattern is used. |last-pattern|
|
||||
|
||||
:{count}vim[grep] ...
|
||||
When a number is put before the command this is used
|
||||
as the maximum number of matches to find. Use
|
||||
":1vimgrep pattern file" to find only the first.
|
||||
@ -1551,7 +1551,7 @@ The backslashes before the pipe character are required to avoid it to be
|
||||
recognized as a command separator. The backslash before each space is
|
||||
required for the set command.
|
||||
|
||||
*cfilter-plugin*
|
||||
*cfilter-plugin* *:Cfilter* *:Lfilter*
|
||||
If you have too many matching messages, you can use the cfilter plugin to
|
||||
reduce the number of entries. Load the plugin with: >
|
||||
packadd cfilter
|
||||
|
@ -28,6 +28,9 @@ You can see the name of the current swap file being used with the command:
|
||||
|
||||
:sw[apname] *:sw* *:swapname*
|
||||
|
||||
Or you can use the |swapname()| function, which also allows for seeing the
|
||||
swap file name of other buffers.
|
||||
|
||||
The name of the swap file is normally the same as the file you are editing,
|
||||
with the extension ".swp".
|
||||
- On Unix, a '.' is prepended to swap file names in the same directory as the
|
||||
|
@ -1,4 +1,4 @@
|
||||
*repeat.txt* For Vim version 8.1. Last change: 2018 Mar 04
|
||||
*repeat.txt* For Vim version 8.1. Last change: 2018 Dec 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -334,6 +334,12 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
||||
{not in Vi} {not available when compiled without the
|
||||
|+eval| feature}
|
||||
|
||||
:scr[iptnames][!] {scriptId} *:script*
|
||||
Edit script {scriptId}. Although ":scriptnames name"
|
||||
works, using ":script name" is recommended.
|
||||
When the current buffer can't be |abandon|ed and the !
|
||||
is not present, the command fails.
|
||||
|
||||
*:fini* *:finish* *E168*
|
||||
:fini[sh] Stop sourcing a script. Can only be used in a Vim
|
||||
script file. This is a quick way to skip the rest of
|
||||
@ -465,6 +471,16 @@ flag when defining the function, it is not relevant when executing it. >
|
||||
.
|
||||
:endfunction
|
||||
:set cpo-=C
|
||||
<
|
||||
*line-continuation-comment*
|
||||
To add a comment in between the lines start with '"\ '. Notice the space
|
||||
after the backslash. Example: >
|
||||
let array = [
|
||||
"\ first entry comment
|
||||
\ 'first',
|
||||
"\ second entry comment
|
||||
\ 'second',
|
||||
\ ]
|
||||
|
||||
Rationale:
|
||||
Most programs work with a trailing backslash to indicate line
|
||||
@ -473,6 +489,14 @@ Rationale:
|
||||
:map xx asdf\
|
||||
< Therefore the unusual leading backslash is used.
|
||||
|
||||
Starting a comment in a continuation line results in all following
|
||||
continuation lines to be part of the comment. Since it was like this
|
||||
for a long time, when making it possible to add a comment halfway a
|
||||
sequence of continuation lines, it was not possible to use \", since
|
||||
that was a valid continuation line. Using '"\ ' comes closest, even
|
||||
though it may look a bit weird. Requiring the space after the
|
||||
backslash is to make it very unlikely this is a normal comment line.
|
||||
|
||||
==============================================================================
|
||||
5. Using Vim packages *packages*
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*sign.txt* For Vim version 8.1. Last change: 2016 Aug 17
|
||||
*sign.txt* For Vim version 8.1. Last change: 2019 Jan 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Gordon Prieur
|
||||
@ -51,6 +51,20 @@ The color of the column is set with the SignColumn group |hl-SignColumn|.
|
||||
Example to set the color: >
|
||||
|
||||
:highlight SignColumn guibg=darkgrey
|
||||
<
|
||||
*sign-group*
|
||||
Each sign can be assigned to either the global group or a named group. When
|
||||
placing a sign, if a group name is not supplied, or an empty string is used,
|
||||
then the sign is placed in the global group. Otherwise the sign is placed in
|
||||
the named group. The sign identifier is unique within a group. The sign group
|
||||
allows Vim plugins to use unique signs without interfering with other plugins
|
||||
using signs.
|
||||
|
||||
*sign-priority*
|
||||
Each placed sign is assigned a priority value. When multiple signs are placed
|
||||
on the same line, the attributes of the sign with the highest priority is used
|
||||
independent of the sign group. The default priority for a sign is 10. The
|
||||
priority is assigned at the time of placing a sign.
|
||||
|
||||
==============================================================================
|
||||
2. Commands *sign-commands* *:sig* *:sign*
|
||||
@ -69,10 +83,12 @@ comment. If you do need that, use the |:execute| command.
|
||||
|
||||
DEFINING A SIGN. *:sign-define* *E255* *E160* *E612*
|
||||
|
||||
See |sign_define()| for the equivalent Vim script function.
|
||||
|
||||
:sign define {name} {argument}...
|
||||
Define a new sign or set attributes for an existing sign.
|
||||
The {name} can either be a number (all digits) or a name
|
||||
starting with a non-digit. Leading digits are ignored, thus
|
||||
starting with a non-digit. Leading zeros are ignored, thus
|
||||
"0012", "012" and "12" are considered the same name.
|
||||
About 120 different signs can be defined.
|
||||
|
||||
@ -106,13 +122,18 @@ DEFINING A SIGN. *:sign-define* *E255* *E160* *E612*
|
||||
|
||||
DELETING A SIGN *:sign-undefine* *E155*
|
||||
|
||||
See |sign_undefine()| for the equivalent Vim script function.
|
||||
|
||||
:sign undefine {name}
|
||||
Deletes a previously defined sign. If signs with this {name}
|
||||
are still placed this will cause trouble.
|
||||
|
||||
|
||||
|
||||
LISTING SIGNS *:sign-list* *E156*
|
||||
|
||||
See |sign_getdefined()| for the equivalent Vim script function.
|
||||
|
||||
:sign list Lists all defined signs and their attributes.
|
||||
|
||||
:sign list {name}
|
||||
@ -121,6 +142,8 @@ LISTING SIGNS *:sign-list* *E156*
|
||||
|
||||
PLACING SIGNS *:sign-place* *E158*
|
||||
|
||||
See |sign_place()| for the equivalent Vim script function.
|
||||
|
||||
:sign place {id} line={lnum} name={name} file={fname}
|
||||
Place sign defined as {name} at line {lnum} in file {fname}.
|
||||
*:sign-fname*
|
||||
@ -136,6 +159,25 @@ PLACING SIGNS *:sign-place* *E158*
|
||||
to be done several times and making changes may not work as
|
||||
expected).
|
||||
|
||||
The following optional sign attributes can be specified before
|
||||
"file=":
|
||||
group={group} Place sign in sign group {group}
|
||||
priority={prio} Assign priority {prio} to sign
|
||||
|
||||
By default, the sign is placed in the global sign group.
|
||||
|
||||
By default, the sign is assigned a default priority of 10. To
|
||||
assign a different priority value, use "priority={prio}" to
|
||||
specify a value. The priority is used to determine the
|
||||
highlight group used when multiple signs are placed on the
|
||||
same line.
|
||||
|
||||
Examples: >
|
||||
:sign place 5 line=3 name=sign1 file=a.py
|
||||
:sign place 6 group=g2 line=2 name=sign2 file=x.py
|
||||
:sign place 9 group=g2 priority=50 line=5
|
||||
\ name=sign1 file=a.py
|
||||
<
|
||||
:sign place {id} line={lnum} name={name} buffer={nr}
|
||||
Same, but use buffer {nr}.
|
||||
|
||||
@ -146,46 +188,119 @@ PLACING SIGNS *:sign-place* *E158*
|
||||
This can be used to change the displayed sign without moving
|
||||
it (e.g., when the debugger has stopped at a breakpoint).
|
||||
|
||||
The optional "group={group}" attribute can be used before
|
||||
"file=" to select a sign in a particular group.
|
||||
|
||||
:sign place {id} name={name} buffer={nr}
|
||||
Same, but use buffer {nr}.
|
||||
|
||||
|
||||
REMOVING SIGNS *:sign-unplace* *E159*
|
||||
|
||||
See |sign_unplace()| for the equivalent Vim script function.
|
||||
|
||||
:sign unplace {id} file={fname}
|
||||
Remove the previously placed sign {id} from file {fname}.
|
||||
See remark above about {fname} |:sign-fname|.
|
||||
|
||||
:sign unplace {id} group={group} file={fname}
|
||||
Same but remove the sign {id} in sign group {group}.
|
||||
|
||||
:sign unplace {id} group=* file={fname}
|
||||
Same but remove the sign {id} from all the sign groups.
|
||||
|
||||
:sign unplace * file={fname}
|
||||
Remove all placed signs in file {fname}.
|
||||
|
||||
:sign unplace * group={group} file={fname}
|
||||
Remove all placed signs in group {group} from file {fname}.
|
||||
|
||||
:sign unplace * group=* file={fname}
|
||||
Remove all placed signs in all the groups from file {fname}.
|
||||
|
||||
:sign unplace {id} buffer={nr}
|
||||
Remove the previously placed sign {id} from buffer {nr}.
|
||||
|
||||
:sign unplace {id} group={group} buffer={nr}
|
||||
Remove the previously placed sign {id} in group {group} from
|
||||
buffer {nr}.
|
||||
|
||||
:sign unplace {id} group=* buffer={nr}
|
||||
Remove the previously placed sign {id} in all the groups from
|
||||
buffer {nr}.
|
||||
|
||||
:sign unplace * buffer={nr}
|
||||
Remove all placed signs in buffer {nr}.
|
||||
|
||||
:sign unplace * group={group} buffer={nr}
|
||||
Remove all placed signs in group {group} from buffer {nr}.
|
||||
|
||||
:sign unplace * group=* buffer={nr}
|
||||
Remove all placed signs in all the groups from buffer {nr}.
|
||||
|
||||
:sign unplace {id}
|
||||
Remove the previously placed sign {id} from all files it
|
||||
appears in.
|
||||
|
||||
:sign unplace {id} group={group}
|
||||
Remove the previously placed sign {id} in group {group} from
|
||||
all files it appears in.
|
||||
|
||||
:sign unplace {id} group=*
|
||||
Remove the previously placed sign {id} in all the groups from
|
||||
all the files it appears in.
|
||||
|
||||
:sign unplace *
|
||||
Remove all placed signs.
|
||||
Remove placed signs in the global group from all the files.
|
||||
|
||||
:sign unplace * group={group}
|
||||
Remove placed signs in group {group} from all the files.
|
||||
|
||||
:sign unplace * group=*
|
||||
Remove placed signs in all the groups from all the files.
|
||||
|
||||
:sign unplace
|
||||
Remove the placed sign at the cursor position.
|
||||
Remove a placed sign at the cursor position. If multiple signs
|
||||
are placed in the line, then only one is removed.
|
||||
|
||||
:sign unplace group={group}
|
||||
Remove a placed sign in group {group} at the cursor
|
||||
position.
|
||||
|
||||
:sign unplace group=*
|
||||
Remove a placed sign in any group at the cursor position.
|
||||
|
||||
|
||||
LISTING PLACED SIGNS *:sign-place-list*
|
||||
|
||||
See |sign_getplaced()| for the equivalent Vim script function.
|
||||
|
||||
:sign place file={fname}
|
||||
List signs placed in file {fname}.
|
||||
See remark above about {fname} |:sign-fname|.
|
||||
|
||||
:sign place group={group} file={fname}
|
||||
List signs in group {group} placed in file {fname}.
|
||||
|
||||
:sign place group=* file={fname}
|
||||
List signs in all the groups placed in file {fname}.
|
||||
|
||||
:sign place buffer={nr}
|
||||
List signs placed in buffer {nr}.
|
||||
|
||||
:sign place List placed signs in all files.
|
||||
:sign place group={group} buffer={nr}
|
||||
List signs in group {group} placed in buffer {nr}.
|
||||
|
||||
:sign place group=* buffer={nr}
|
||||
List signs in all the groups placed in buffer {nr}.
|
||||
|
||||
:sign place List placed signs in the global group in all files.
|
||||
|
||||
:sign place group={group}
|
||||
List placed signs with sign group {group} in all files.
|
||||
|
||||
:sign place group=*
|
||||
List placed signs in all sign groups in all files.
|
||||
|
||||
|
||||
JUMPING TO A SIGN *:sign-jump* *E157*
|
||||
@ -197,9 +312,15 @@ JUMPING TO A SIGN *:sign-jump* *E157*
|
||||
If the file isn't displayed in window and the current file can
|
||||
not be |abandon|ed this fails.
|
||||
|
||||
:sign jump {id} group={group} file={fname}
|
||||
Same but jump to the sign in group {group}
|
||||
|
||||
:sign jump {id} buffer={nr} *E934*
|
||||
Same, but use buffer {nr}. This fails if buffer {nr} does not
|
||||
have a name.
|
||||
|
||||
:sign jump {id} group={group} buffer={nr}
|
||||
Same but jump to the sign in group {group}
|
||||
|
||||
|
||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
|
@ -515,7 +515,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
|
||||
--clean Similar to "-u DEFAULTS -U NONE -i NONE":
|
||||
- initializations from files and environment variables is
|
||||
skipped
|
||||
-'runtimepath'and 'packpath' are set to exclude home
|
||||
- 'runtimepath' and 'packpath' are set to exclude home
|
||||
directory entries (does not happen with -u DEFAULTS).
|
||||
- the |defaults.vim| script is loaded, which implies
|
||||
'nocompatible': use Vim defaults
|
||||
|
@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 8.1. Last change: 2018 Apr 30
|
||||
*syntax.txt* For Vim version 8.1. Last change: 2018 Dec 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -23,21 +23,22 @@ In the User Manual:
|
||||
1. Quick start |:syn-qstart|
|
||||
2. Syntax files |:syn-files|
|
||||
3. Syntax loading procedure |syntax-loading|
|
||||
4. Syntax file remarks |:syn-file-remarks|
|
||||
5. Defining a syntax |:syn-define|
|
||||
6. :syntax arguments |:syn-arguments|
|
||||
7. Syntax patterns |:syn-pattern|
|
||||
8. Syntax clusters |:syn-cluster|
|
||||
9. Including syntax files |:syn-include|
|
||||
10. Synchronizing |:syn-sync|
|
||||
11. Listing syntax items |:syntax|
|
||||
12. Highlight command |:highlight|
|
||||
13. Linking groups |:highlight-link|
|
||||
14. Cleaning up |:syn-clear|
|
||||
15. Highlighting tags |tag-highlight|
|
||||
16. Window-local syntax |:ownsyntax|
|
||||
17. Color xterms |xterm-color|
|
||||
18. When syntax is slow |:syntime|
|
||||
4. Converting to HTML |2html.vim|
|
||||
5. Syntax file remarks |:syn-file-remarks|
|
||||
6. Defining a syntax |:syn-define|
|
||||
7. :syntax arguments |:syn-arguments|
|
||||
8. Syntax patterns |:syn-pattern|
|
||||
9. Syntax clusters |:syn-cluster|
|
||||
10. Including syntax files |:syn-include|
|
||||
11. Synchronizing |:syn-sync|
|
||||
12. Listing syntax items |:syntax|
|
||||
13. Highlight command |:highlight|
|
||||
14. Linking groups |:highlight-link|
|
||||
15. Cleaning up |:syn-clear|
|
||||
16. Highlighting tags |tag-highlight|
|
||||
17. Window-local syntax |:ownsyntax|
|
||||
18. Color xterms |xterm-color|
|
||||
19. When syntax is slow |:syntime|
|
||||
|
||||
{Vi does not have any of these commands}
|
||||
|
||||
@ -368,20 +369,9 @@ Upon loading a file, Vim finds the relevant syntax file as follows:
|
||||
syntax.
|
||||
|
||||
==============================================================================
|
||||
4. Syntax file remarks *:syn-file-remarks*
|
||||
4. Conversion to HTML *2html.vim* *convert-to-HTML*
|
||||
|
||||
*b:current_syntax-variable*
|
||||
Vim stores the name of the syntax that has been loaded in the
|
||||
"b:current_syntax" variable. You can use this if you want to load other
|
||||
settings, depending on which syntax is active. Example: >
|
||||
:au BufReadPost * if b:current_syntax == "csh"
|
||||
:au BufReadPost * do-some-things
|
||||
:au BufReadPost * endif
|
||||
|
||||
|
||||
2HTML *2html.vim* *convert-to-HTML*
|
||||
|
||||
This is not a syntax file itself, but a script that converts the current
|
||||
2html is not a syntax file itself, but a script that converts the current
|
||||
window into HTML. Vim opens a new window in which it builds the HTML file.
|
||||
|
||||
After you save the resulting file, you can view it with any browser. The
|
||||
@ -671,12 +661,12 @@ the rendered page generated by 2html.vim.
|
||||
:let g:html_no_pre = 1
|
||||
<
|
||||
*g:html_expand_tabs*
|
||||
Default: 1 if 'tabstop' is 8, 'expandtab' is 0, and no fold column or line
|
||||
numbers occur in the generated HTML;
|
||||
0 otherwise.
|
||||
When 0, <Tab> characters in the buffer text are replaced with an appropriate
|
||||
Default: 0 if 'tabstop' is 8, 'expandtab' is 0, 'vartabstop' is not in use,
|
||||
and no fold column or line numbers occur in the generated HTML;
|
||||
1 otherwise.
|
||||
When 1, <Tab> characters in the buffer text are replaced with an appropriate
|
||||
number of space characters, or references if |g:html_no_pre| is 1.
|
||||
When 1, if |g:html_no_pre| is 0 or unset, <Tab> characters in the buffer text
|
||||
When 0, if |g:html_no_pre| is 0 or unset, <Tab> characters in the buffer text
|
||||
are included as-is in the generated HTML. This is useful for when you want to
|
||||
allow copy and paste from a browser without losing the actual whitespace in
|
||||
the source document. Note that this can easily break text alignment and
|
||||
@ -773,6 +763,18 @@ When 1, generate XHTML 1.0 instead (XML compliant HTML).
|
||||
>
|
||||
:let g:html_use_xhtml = 1
|
||||
<
|
||||
==============================================================================
|
||||
5. Syntax file remarks *:syn-file-remarks*
|
||||
|
||||
*b:current_syntax-variable*
|
||||
Vim stores the name of the syntax that has been loaded in the
|
||||
"b:current_syntax" variable. You can use this if you want to load other
|
||||
settings, depending on which syntax is active. Example: >
|
||||
:au BufReadPost * if b:current_syntax == "csh"
|
||||
:au BufReadPost * do-some-things
|
||||
:au BufReadPost * endif
|
||||
|
||||
|
||||
|
||||
ABEL *abel.vim* *ft-abel-syntax*
|
||||
|
||||
@ -939,6 +941,9 @@ to the respective variable. Example: >
|
||||
To disable them use ":unlet". Example: >
|
||||
:unlet c_comment_strings
|
||||
|
||||
An alternative is to switch to the C++ highlighting: >
|
||||
:set filetype=cpp
|
||||
|
||||
Variable Highlight ~
|
||||
*c_gnu* GNU gcc specific items
|
||||
*c_comment_strings* strings and numbers inside a comment
|
||||
@ -2697,9 +2702,29 @@ later, and part earlier) adds.
|
||||
|
||||
RESTRUCTURED TEXT *rst.vim* *ft-rst-syntax*
|
||||
|
||||
You may set what syntax definitions should be used for code blocks via >
|
||||
Syntax highlighting is enabled for code blocks within the document for a
|
||||
select number of file types. See $VIMRUNTIME/syntax/rst.vim for the default
|
||||
syntax list.
|
||||
|
||||
To set a user-defined list of code block syntax highlighting: >
|
||||
let rst_syntax_code_list = ['vim', 'lisp', ...]
|
||||
<
|
||||
|
||||
To assign multiple code block types to a single syntax, define
|
||||
`rst_syntax_code_list` as a mapping: >
|
||||
let rst_syntax_code_list = {
|
||||
\ 'cpp' = ['cpp', 'c++'],
|
||||
\ 'bash' = ['bash', 'sh'],
|
||||
...
|
||||
}
|
||||
|
||||
To use color highlighting for emphasis text: >
|
||||
let rst_use_emphasis_colors = 1
|
||||
|
||||
To enable folding of sections: >
|
||||
let rst_fold_enabled = 1
|
||||
|
||||
Note that folding can cause performance issues on some platforms.
|
||||
|
||||
|
||||
REXX *rexx.vim* *ft-rexx-syntax*
|
||||
|
||||
@ -3211,6 +3236,12 @@ by syntax/tex.vim. Please consider uploading any extensions that you write,
|
||||
which typically would go in $HOME/after/syntax/tex/[pkgname].vim, to
|
||||
http://vim.sf.net/.
|
||||
|
||||
I've included some support for various popular packages on my website: >
|
||||
|
||||
http://www.drchip.org/astronaut/vim/index.html#LATEXPKGS
|
||||
<
|
||||
The syntax files there go into your .../after/syntax/tex/ directory.
|
||||
|
||||
*tex-error* *g:tex_no_error*
|
||||
Tex: Excessive Error Highlighting? ~
|
||||
|
||||
@ -3475,7 +3506,7 @@ The syntax script for zsh allows for syntax-based folding: >
|
||||
:let g:zsh_fold_enable = 1
|
||||
|
||||
==============================================================================
|
||||
5. Defining a syntax *:syn-define* *E410*
|
||||
6. Defining a syntax *:syn-define* *E410*
|
||||
|
||||
Vim understands three types of syntax items:
|
||||
|
||||
@ -3834,7 +3865,7 @@ DEFINING REGIONS *:syn-region* *:syn-start* *:syn-skip* *:syn-end*
|
||||
The maximum number of syntax groups is 19999.
|
||||
|
||||
==============================================================================
|
||||
6. :syntax arguments *:syn-arguments*
|
||||
7. :syntax arguments *:syn-arguments*
|
||||
|
||||
The :syntax commands that define syntax items take a number of arguments.
|
||||
The common ones are explained here. The arguments may be given in any order
|
||||
@ -4155,7 +4186,7 @@ IMPLICIT CONCEAL *:syn-conceal-implicit*
|
||||
Show either "syntax conceal on" or "syntax conceal off" (translated).
|
||||
|
||||
==============================================================================
|
||||
7. Syntax patterns *:syn-pattern* *E401* *E402*
|
||||
8. Syntax patterns *:syn-pattern* *E401* *E402*
|
||||
|
||||
In the syntax commands, a pattern must be surrounded by two identical
|
||||
characters. This is like it works for the ":s" command. The most common to
|
||||
@ -4333,7 +4364,7 @@ Note that only matches within a single line can be used. Multi-line matches
|
||||
cannot be referred to.
|
||||
|
||||
==============================================================================
|
||||
8. Syntax clusters *:syn-cluster* *E400*
|
||||
9. Syntax clusters *:syn-cluster* *E400*
|
||||
|
||||
:sy[ntax] cluster {cluster-name} [contains={group-name}..]
|
||||
[add={group-name}..]
|
||||
@ -4379,7 +4410,7 @@ This also has implications for nested clusters: >
|
||||
The maximum number of clusters is 9767.
|
||||
|
||||
==============================================================================
|
||||
9. Including syntax files *:syn-include* *E397*
|
||||
10. Including syntax files *:syn-include* *E397*
|
||||
|
||||
It is often useful for one language's syntax file to include a syntax file for
|
||||
a related language. Depending on the exact relationship, this can be done in
|
||||
@ -4420,7 +4451,7 @@ two different ways:
|
||||
The maximum number of includes is 999.
|
||||
|
||||
==============================================================================
|
||||
10. Synchronizing *:syn-sync* *E403* *E404*
|
||||
11. Synchronizing *:syn-sync* *E403* *E404*
|
||||
|
||||
Vim wants to be able to start redrawing in any position in the document. To
|
||||
make this possible it needs to know the syntax state at the position where
|
||||
@ -4612,7 +4643,7 @@ You can clear specific sync patterns with: >
|
||||
:syntax sync clear {sync-group-name} ..
|
||||
|
||||
==============================================================================
|
||||
11. Listing syntax items *:syntax* *:sy* *:syn* *:syn-list*
|
||||
12. Listing syntax items *:syntax* *:sy* *:syn* *:syn-list*
|
||||
|
||||
This command lists all the syntax items: >
|
||||
|
||||
@ -4632,7 +4663,7 @@ Note that the ":syntax" command can be abbreviated to ":sy", although ":syn"
|
||||
is mostly used, because it looks better.
|
||||
|
||||
==============================================================================
|
||||
12. Highlight command *:highlight* *:hi* *E28* *E411* *E415*
|
||||
13. Highlight command *:highlight* *:hi* *E28* *E411* *E415*
|
||||
|
||||
There are three types of highlight groups:
|
||||
- The ones used for specific languages. For these the name starts with the
|
||||
@ -5125,7 +5156,7 @@ Tooltip Current font, background and foreground of the tooltips.
|
||||
set.
|
||||
|
||||
==============================================================================
|
||||
13. Linking groups *:hi-link* *:highlight-link* *E412* *E413*
|
||||
14. Linking groups *:hi-link* *:highlight-link* *E412* *E413*
|
||||
|
||||
When you want to use the same highlighting for several syntax groups, you
|
||||
can do this more easily by linking the groups into one common highlight
|
||||
@ -5163,7 +5194,7 @@ Without the "default" in the C syntax file, the highlighting would be
|
||||
overruled when the syntax file is loaded.
|
||||
|
||||
==============================================================================
|
||||
14. Cleaning up *:syn-clear* *E391*
|
||||
15. Cleaning up *:syn-clear* *E391*
|
||||
|
||||
If you want to clear the syntax stuff for the current buffer, you can use this
|
||||
command: >
|
||||
@ -5254,7 +5285,7 @@ syntax/syncolor.vim files are loaded:
|
||||
them.
|
||||
|
||||
==============================================================================
|
||||
15. Highlighting tags *tag-highlight*
|
||||
16. Highlighting tags *tag-highlight*
|
||||
|
||||
If you want to highlight all the tags in your file, you can use the following
|
||||
mappings.
|
||||
@ -5289,7 +5320,7 @@ And put these lines in your .vimrc: >
|
||||
autocmd BufRead,BufNewFile *.[ch] endif
|
||||
|
||||
==============================================================================
|
||||
16. Window-local syntax *:ownsyntax*
|
||||
17. Window-local syntax *:ownsyntax*
|
||||
|
||||
Normally all windows on a buffer share the same syntax settings. It is
|
||||
possible, however, to set a particular window on a file to have its own
|
||||
@ -5319,7 +5350,7 @@ is loaded into that window or the file is reloaded.
|
||||
When splitting the window, the new window will use the original syntax.
|
||||
|
||||
==============================================================================
|
||||
17. Color xterms *xterm-color* *color-xterm*
|
||||
18. Color xterms *xterm-color* *color-xterm*
|
||||
|
||||
Most color xterms have only eight colors. If you don't get colors with the
|
||||
default setup, it should work with these lines in your .vimrc: >
|
||||
@ -5463,7 +5494,7 @@ that Setup / Font / Enable Bold is NOT enabled.
|
||||
|
||||
|
||||
==============================================================================
|
||||
18. When syntax is slow *:syntime*
|
||||
19. When syntax is slow *:syntime*
|
||||
|
||||
This is aimed at authors of a syntax file.
|
||||
|
||||
|
@ -1356,6 +1356,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
+terminfo various.txt /*+terminfo*
|
||||
+termresponse various.txt /*+termresponse*
|
||||
+textobjects various.txt /*+textobjects*
|
||||
+textprop various.txt /*+textprop*
|
||||
+tgetent various.txt /*+tgetent*
|
||||
+timers various.txt /*+timers*
|
||||
+title various.txt /*+title*
|
||||
@ -1932,6 +1933,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:<cfile> cmdline.txt /*:<cfile>*
|
||||
:<cword> cmdline.txt /*:<cword>*
|
||||
:<sfile> cmdline.txt /*:<sfile>*
|
||||
:<sflnum> cmdline.txt /*:<sflnum>*
|
||||
:<slnum> cmdline.txt /*:<slnum>*
|
||||
:= various.txt /*:=*
|
||||
:> change.txt /*:>*
|
||||
:? cmdline.txt /*:?*
|
||||
@ -1946,6 +1949,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:AdaTypes ft_ada.txt /*:AdaTypes*
|
||||
:Arguments terminal.txt /*:Arguments*
|
||||
:Break terminal.txt /*:Break*
|
||||
:Cfilter quickfix.txt /*:Cfilter*
|
||||
:Clear terminal.txt /*:Clear*
|
||||
:CompilerSet usr_41.txt /*:CompilerSet*
|
||||
:Continue terminal.txt /*:Continue*
|
||||
@ -1965,6 +1969,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:LPE pi_logipat.txt /*:LPE*
|
||||
:LPF pi_logipat.txt /*:LPF*
|
||||
:Lexplore pi_netrw.txt /*:Lexplore*
|
||||
:Lfilter quickfix.txt /*:Lfilter*
|
||||
:LogiPat pi_logipat.txt /*:LogiPat*
|
||||
:Man filetype.txt /*:Man*
|
||||
:MkVimball pi_vimball.txt /*:MkVimball*
|
||||
@ -2872,8 +2877,17 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:sN windows.txt /*:sN*
|
||||
:sNext windows.txt /*:sNext*
|
||||
:s\= change.txt /*:s\\=*
|
||||
:s_# change.txt /*:s_#*
|
||||
:s_I change.txt /*:s_I*
|
||||
:s_c change.txt /*:s_c*
|
||||
:s_e change.txt /*:s_e*
|
||||
:s_flags change.txt /*:s_flags*
|
||||
:s_g change.txt /*:s_g*
|
||||
:s_i change.txt /*:s_i*
|
||||
:s_l change.txt /*:s_l*
|
||||
:s_n change.txt /*:s_n*
|
||||
:s_p change.txt /*:s_p*
|
||||
:s_r change.txt /*:s_r*
|
||||
:sa windows.txt /*:sa*
|
||||
:sal windows.txt /*:sal*
|
||||
:sall windows.txt /*:sall*
|
||||
@ -2908,6 +2922,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:scl change.txt /*:scl*
|
||||
:scp change.txt /*:scp*
|
||||
:scr repeat.txt /*:scr*
|
||||
:script repeat.txt /*:script*
|
||||
:scripte repeat.txt /*:scripte*
|
||||
:scriptencoding repeat.txt /*:scriptencoding*
|
||||
:scriptnames repeat.txt /*:scriptnames*
|
||||
@ -3174,6 +3189,12 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:tjump tagsrch.txt /*:tjump*
|
||||
:tl tagsrch.txt /*:tl*
|
||||
:tlast tagsrch.txt /*:tlast*
|
||||
:tlm gui.txt /*:tlm*
|
||||
:tlmenu gui.txt /*:tlmenu*
|
||||
:tln gui.txt /*:tln*
|
||||
:tlnoremenu gui.txt /*:tlnoremenu*
|
||||
:tlu gui.txt /*:tlu*
|
||||
:tlunmenu gui.txt /*:tlunmenu*
|
||||
:tm gui.txt /*:tm*
|
||||
:tma map.txt /*:tma*
|
||||
:tmap map.txt /*:tmap*
|
||||
@ -3462,10 +3483,12 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
<bang> map.txt /*<bang>*
|
||||
<buffer=N> autocmd.txt /*<buffer=N>*
|
||||
<buffer=abuf> autocmd.txt /*<buffer=abuf>*
|
||||
<cWORD> cmdline.txt /*<cWORD>*
|
||||
<cexpr> cmdline.txt /*<cexpr>*
|
||||
<cfile> cmdline.txt /*<cfile>*
|
||||
<character> intro.txt /*<character>*
|
||||
<count> map.txt /*<count>*
|
||||
<cword> cmdline.txt /*<cword>*
|
||||
<f-args> map.txt /*<f-args>*
|
||||
<k0> term.txt /*<k0>*
|
||||
<k1> term.txt /*<k1>*
|
||||
@ -3497,6 +3520,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
<reg> map.txt /*<reg>*
|
||||
<register> map.txt /*<register>*
|
||||
<sfile> cmdline.txt /*<sfile>*
|
||||
<sflnum> cmdline.txt /*<sflnum>*
|
||||
<slnum> cmdline.txt /*<slnum>*
|
||||
<xCSI> intro.txt /*<xCSI>*
|
||||
<xDown> term.txt /*<xDown>*
|
||||
@ -3727,6 +3751,7 @@ DOS-format-write editing.txt /*DOS-format-write*
|
||||
Dictionaries eval.txt /*Dictionaries*
|
||||
Dictionary eval.txt /*Dictionary*
|
||||
Dictionary-function eval.txt /*Dictionary-function*
|
||||
DiffUpdated autocmd.txt /*DiffUpdated*
|
||||
Digraphs digraph.txt /*Digraphs*
|
||||
DirChanged autocmd.txt /*DirChanged*
|
||||
E motion.txt /*E*
|
||||
@ -4103,7 +4128,6 @@ E457 print.txt /*E457*
|
||||
E458 message.txt /*E458*
|
||||
E459 message.txt /*E459*
|
||||
E46 message.txt /*E46*
|
||||
E460 message.txt /*E460*
|
||||
E461 eval.txt /*E461*
|
||||
E462 editing.txt /*E462*
|
||||
E463 netbeans.txt /*E463*
|
||||
@ -4626,8 +4650,21 @@ E954 options.txt /*E954*
|
||||
E955 eval.txt /*E955*
|
||||
E956 pattern.txt /*E956*
|
||||
E957 eval.txt /*E957*
|
||||
E958 eval.txt /*E958*
|
||||
E96 diff.txt /*E96*
|
||||
E960 options.txt /*E960*
|
||||
E961 cmdline.txt /*E961*
|
||||
E962 eval.txt /*E962*
|
||||
E963 eval.txt /*E963*
|
||||
E964 eval.txt /*E964*
|
||||
E965 eval.txt /*E965*
|
||||
E966 eval.txt /*E966*
|
||||
E967 textprop.txt /*E967*
|
||||
E968 eval.txt /*E968*
|
||||
E969 eval.txt /*E969*
|
||||
E97 diff.txt /*E97*
|
||||
E970 eval.txt /*E970*
|
||||
E971 textprop.txt /*E971*
|
||||
E98 diff.txt /*E98*
|
||||
E99 diff.txt /*E99*
|
||||
EX intro.txt /*EX*
|
||||
@ -4732,6 +4769,7 @@ N: cmdline.txt /*N:*
|
||||
N<Del> various.txt /*N<Del>*
|
||||
NFA pattern.txt /*NFA*
|
||||
NL-used-for-Nul pattern.txt /*NL-used-for-Nul*
|
||||
NeoVim intro.txt /*NeoVim*
|
||||
NetBSD-backspace options.txt /*NetBSD-backspace*
|
||||
NetUserPass() pi_netrw.txt /*NetUserPass()*
|
||||
Normal intro.txt /*Normal*
|
||||
@ -5253,6 +5291,7 @@ bold syntax.txt /*bold*
|
||||
bom-bytes mbyte.txt /*bom-bytes*
|
||||
book intro.txt /*book*
|
||||
bookmark usr_03.txt /*bookmark*
|
||||
books intro.txt /*books*
|
||||
boolean options.txt /*boolean*
|
||||
break-finally eval.txt /*break-finally*
|
||||
browse() eval.txt /*browse()*
|
||||
@ -5463,6 +5502,7 @@ channel-drop channel.txt /*channel-drop*
|
||||
channel-functions usr_41.txt /*channel-functions*
|
||||
channel-mode channel.txt /*channel-mode*
|
||||
channel-more channel.txt /*channel-more*
|
||||
channel-noblock channel.txt /*channel-noblock*
|
||||
channel-open channel.txt /*channel-open*
|
||||
channel-open-options channel.txt /*channel-open-options*
|
||||
channel-raw channel.txt /*channel-raw*
|
||||
@ -6153,6 +6193,7 @@ foldtext() eval.txt /*foldtext()*
|
||||
foldtextresult() eval.txt /*foldtextresult()*
|
||||
font-sizes gui_x11.txt /*font-sizes*
|
||||
fontset mbyte.txt /*fontset*
|
||||
forced-motion motion.txt /*forced-motion*
|
||||
foreground() eval.txt /*foreground()*
|
||||
fork os_unix.txt /*fork*
|
||||
form.vim syntax.txt /*form.vim*
|
||||
@ -6665,6 +6706,7 @@ getscript-start pi_getscript.txt /*getscript-start*
|
||||
gettabinfo() eval.txt /*gettabinfo()*
|
||||
gettabvar() eval.txt /*gettabvar()*
|
||||
gettabwinvar() eval.txt /*gettabwinvar()*
|
||||
gettagstack() eval.txt /*gettagstack()*
|
||||
getwininfo() eval.txt /*getwininfo()*
|
||||
getwinpos() eval.txt /*getwinpos()*
|
||||
getwinposx() eval.txt /*getwinposx()*
|
||||
@ -6784,7 +6826,6 @@ gui_w32.txt gui_w32.txt /*gui_w32.txt*
|
||||
gui_x11.txt gui_x11.txt /*gui_x11.txt*
|
||||
guifontwide_gtk options.txt /*guifontwide_gtk*
|
||||
guifontwide_win_mbyte options.txt /*guifontwide_win_mbyte*
|
||||
guioptions_a options.txt /*guioptions_a*
|
||||
guu change.txt /*guu*
|
||||
gv visual.txt /*gv*
|
||||
gview starting.txt /*gview*
|
||||
@ -7183,6 +7224,7 @@ job-err_io channel.txt /*job-err_io*
|
||||
job-exit_cb channel.txt /*job-exit_cb*
|
||||
job-functions usr_41.txt /*job-functions*
|
||||
job-in_io channel.txt /*job-in_io*
|
||||
job-noblock channel.txt /*job-noblock*
|
||||
job-options channel.txt /*job-options*
|
||||
job-out_cb channel.txt /*job-out_cb*
|
||||
job-out_io channel.txt /*job-out_io*
|
||||
@ -7270,6 +7312,7 @@ lifelines.vim syntax.txt /*lifelines.vim*
|
||||
limits vi_diff.txt /*limits*
|
||||
line() eval.txt /*line()*
|
||||
line-continuation repeat.txt /*line-continuation*
|
||||
line-continuation-comment repeat.txt /*line-continuation-comment*
|
||||
line2byte() eval.txt /*line2byte()*
|
||||
linefeed intro.txt /*linefeed*
|
||||
linewise motion.txt /*linewise*
|
||||
@ -8084,7 +8127,18 @@ prompt-buffer channel.txt /*prompt-buffer*
|
||||
prompt_setcallback() eval.txt /*prompt_setcallback()*
|
||||
prompt_setinterrupt() eval.txt /*prompt_setinterrupt()*
|
||||
prompt_setprompt() eval.txt /*prompt_setprompt()*
|
||||
promptbuffer-functions usr_41.txt /*promptbuffer-functions*
|
||||
pronounce intro.txt /*pronounce*
|
||||
prop_add() eval.txt /*prop_add()*
|
||||
prop_clear() eval.txt /*prop_clear()*
|
||||
prop_find() eval.txt /*prop_find()*
|
||||
prop_list() eval.txt /*prop_list()*
|
||||
prop_remove() eval.txt /*prop_remove()*
|
||||
prop_type_add() eval.txt /*prop_type_add()*
|
||||
prop_type_change() eval.txt /*prop_type_change()*
|
||||
prop_type_delete() eval.txt /*prop_type_delete()*
|
||||
prop_type_get() eval.txt /*prop_type_get()*
|
||||
prop_type_list() eval.txt /*prop_type_list()*
|
||||
psql ft_sql.txt /*psql*
|
||||
ptcap.vim syntax.txt /*ptcap.vim*
|
||||
pterm-mouse options.txt /*pterm-mouse*
|
||||
@ -8407,6 +8461,7 @@ setqflist-examples quickfix.txt /*setqflist-examples*
|
||||
setreg() eval.txt /*setreg()*
|
||||
settabvar() eval.txt /*settabvar()*
|
||||
settabwinvar() eval.txt /*settabwinvar()*
|
||||
settagstack() eval.txt /*settagstack()*
|
||||
setting-guifont gui.txt /*setting-guifont*
|
||||
setting-guitablabel tabpage.txt /*setting-guitablabel*
|
||||
setting-tabline tabpage.txt /*setting-tabline*
|
||||
@ -8428,9 +8483,18 @@ shiftwidth() eval.txt /*shiftwidth()*
|
||||
short-name-changed version4.txt /*short-name-changed*
|
||||
showing-menus gui.txt /*showing-menus*
|
||||
sign-commands sign.txt /*sign-commands*
|
||||
sign-functions usr_41.txt /*sign-functions*
|
||||
sign-group sign.txt /*sign-group*
|
||||
sign-intro sign.txt /*sign-intro*
|
||||
sign-priority sign.txt /*sign-priority*
|
||||
sign-support sign.txt /*sign-support*
|
||||
sign.txt sign.txt /*sign.txt*
|
||||
sign_define() eval.txt /*sign_define()*
|
||||
sign_getdefined() eval.txt /*sign_getdefined()*
|
||||
sign_getplaced() eval.txt /*sign_getplaced()*
|
||||
sign_place() eval.txt /*sign_place()*
|
||||
sign_undefine() eval.txt /*sign_undefine()*
|
||||
sign_unplace() eval.txt /*sign_unplace()*
|
||||
signs sign.txt /*signs*
|
||||
simple-change change.txt /*simple-change*
|
||||
simplify() eval.txt /*simplify()*
|
||||
@ -8661,6 +8725,7 @@ swapchoice-variable eval.txt /*swapchoice-variable*
|
||||
swapcommand-variable eval.txt /*swapcommand-variable*
|
||||
swapfile-changed version4.txt /*swapfile-changed*
|
||||
swapinfo() eval.txt /*swapinfo()*
|
||||
swapname() eval.txt /*swapname()*
|
||||
swapname-variable eval.txt /*swapname-variable*
|
||||
sybase ft_sql.txt /*sybase*
|
||||
syn-sync-grouphere syntax.txt /*syn-sync-grouphere*
|
||||
@ -8904,6 +8969,7 @@ tag-binary-search tagsrch.txt /*tag-binary-search*
|
||||
tag-blocks motion.txt /*tag-blocks*
|
||||
tag-commands tagsrch.txt /*tag-commands*
|
||||
tag-details tagsrch.txt /*tag-details*
|
||||
tag-functions usr_41.txt /*tag-functions*
|
||||
tag-highlight syntax.txt /*tag-highlight*
|
||||
tag-matchlist tagsrch.txt /*tag-matchlist*
|
||||
tag-old-static tagsrch.txt /*tag-old-static*
|
||||
@ -9074,7 +9140,9 @@ test_null_job() eval.txt /*test_null_job()*
|
||||
test_null_list() eval.txt /*test_null_list()*
|
||||
test_null_partial() eval.txt /*test_null_partial()*
|
||||
test_null_string() eval.txt /*test_null_string()*
|
||||
test_option_not_set() eval.txt /*test_option_not_set()*
|
||||
test_override() eval.txt /*test_override()*
|
||||
test_scrollbar() eval.txt /*test_scrollbar()*
|
||||
test_settime() eval.txt /*test_settime()*
|
||||
testing eval.txt /*testing*
|
||||
testing-variable eval.txt /*testing-variable*
|
||||
@ -9098,7 +9166,11 @@ tex.vim syntax.txt /*tex.vim*
|
||||
text-functions usr_41.txt /*text-functions*
|
||||
text-objects motion.txt /*text-objects*
|
||||
text-objects-changed version5.txt /*text-objects-changed*
|
||||
text-prop-functions textprop.txt /*text-prop-functions*
|
||||
text-prop-intro textprop.txt /*text-prop-intro*
|
||||
text-properties textprop.txt /*text-properties*
|
||||
textlock eval.txt /*textlock*
|
||||
textprop.txt textprop.txt /*textprop.txt*
|
||||
tf.vim syntax.txt /*tf.vim*
|
||||
this_session-variable eval.txt /*this_session-variable*
|
||||
throw-catch eval.txt /*throw-catch*
|
||||
|
@ -179,6 +179,9 @@ commands explained above the tag stack will look like this:
|
||||
1 1 main 1 harddisk2:text/vim/test
|
||||
2 1 FuncB 59 harddisk2:text/vim/src/main.c
|
||||
|
||||
The |gettagstack()| function returns the tag stack of a specified window. The
|
||||
|settagstack()| function modifies the tag stack of a window.
|
||||
|
||||
*E73*
|
||||
When you try to use the tag stack while it doesn't contain anything you will
|
||||
get an error message.
|
||||
|
@ -110,10 +110,13 @@ sent to the job running in the terminal. For example, to make F1 switch
|
||||
to Terminal-Normal mode: >
|
||||
tnoremap <F1> <C-W>N
|
||||
You can use Esc, but you need to make sure it won't cause other keys to
|
||||
break: >
|
||||
break (cursor keys start with an Esc, so they may break): >
|
||||
tnoremap <Esc> <C-W>N
|
||||
set notimeout ttimeout timeoutlen=100
|
||||
|
||||
You can also create menus similar to terminal mode mappings, but you have to
|
||||
use |:tlmenu| instead of |:tmenu|.
|
||||
|
||||
< *options-in-terminal*
|
||||
After opening the terminal window and setting 'buftype' to "terminal" the
|
||||
TerminalOpen autocommand event is triggered. This makes it possible to set
|
||||
@ -617,7 +620,18 @@ This will open a window consisting of three parts:
|
||||
3. The contents of the second dump
|
||||
|
||||
You can usually see what differs in the second part. Use the 'ruler' to
|
||||
relate it to the position in the first or second dump.
|
||||
relate it to the position in the first or second dump. Letters indicate the
|
||||
kind of difference:
|
||||
X different character
|
||||
> cursor in first but not in second
|
||||
< cursor in second but not in first
|
||||
w character width differs (single vs double width)
|
||||
f foreground color differs
|
||||
b background color differs
|
||||
a attribute differs (bold, underline, reverse, etc.)
|
||||
? character missing in both
|
||||
+ character missing in first
|
||||
- character missing in second
|
||||
|
||||
Alternatively, press "s" to swap the first and second dump. Do this several
|
||||
times so that you can spot the difference in the context of the text.
|
||||
|
117
runtime/doc/textprop.txt
Normal file
117
runtime/doc/textprop.txt
Normal file
@ -0,0 +1,117 @@
|
||||
*textprop.txt* For Vim version 8.1. Last change: 2018 Dec 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
|
||||
Displaying text with properties attached. *text-properties*
|
||||
|
||||
THIS IS UNDER DEVELOPMENT - ANYTHING MAY STILL CHANGE *E967*
|
||||
|
||||
What is not working yet:
|
||||
- Adjusting column/length when inserting text
|
||||
- Text properties spanning more than one line
|
||||
- prop_find()
|
||||
- callbacks when text properties are outdated
|
||||
|
||||
|
||||
1. Introduction |text-prop-intro|
|
||||
2. Functions |text-prop-functions|
|
||||
|
||||
|
||||
{Vi does not have text properties}
|
||||
{not able to use text properties when the |+textprop| feature was
|
||||
disabled at compile time}
|
||||
|
||||
==============================================================================
|
||||
1. Introduction *text-prop-intro*
|
||||
|
||||
Text properties can be attached to text in a buffer. They will move with the
|
||||
text: If lines are deleted or inserted the properties move with the text they
|
||||
are attached to. Also when inserting/deleting text in the line before the
|
||||
text property. And when inserting/deleting text inside the text property, it
|
||||
will increase/decrease in size.
|
||||
|
||||
The main use for text properties is to highlight text. This can be seen as a
|
||||
replacement for syntax highlighting. Instead of defining patterns to match
|
||||
the text, the highlighting is set by a script, possibly using the output of an
|
||||
external parser. This only needs to be done once, not every time when
|
||||
redrawing the screen, thus can be much faster, after the initial cost of
|
||||
attaching the text properties.
|
||||
|
||||
Text properties can also be used for other purposes to identify text. For
|
||||
example, add a text property on a function name, so that a search can be
|
||||
defined to jump to the next/previous function.
|
||||
|
||||
A text property is attached at a specific line and column, and has a specified
|
||||
length. The property can span multiple lines.
|
||||
|
||||
A text property has these fields:
|
||||
"id" a number to be used as desired
|
||||
"type" the name of a property type
|
||||
|
||||
|
||||
Property Types ~
|
||||
*E971*
|
||||
A text property normally has the name of a property type, which defines
|
||||
how to highlight the text. The property type can have these entries:
|
||||
"highlight" name of the highlight group to use
|
||||
"priority" when properties overlap, the one with the highest
|
||||
priority will be used.
|
||||
"start_incl" when TRUE inserts at the start position will be
|
||||
included in the text property
|
||||
"end_incl" when TRUE inserts at the end position will be
|
||||
included in the text property
|
||||
|
||||
|
||||
Example ~
|
||||
|
||||
Suppose line 11 in a buffer has this text (excluding the indent):
|
||||
|
||||
The number 123 is smaller than 4567.
|
||||
|
||||
To highlight the numbers in this text: >
|
||||
call prop_type_add('number', {'highlight': 'Constant'})
|
||||
call prop_add(11, 12, {'length': 3, 'type': 'number'})
|
||||
call prop_add(11, 32, {'length': 4, 'type': 'number'})
|
||||
|
||||
Try inserting or deleting lines above the text, you will see that the text
|
||||
properties stick to the text, thus the line number is adjusted as needed.
|
||||
|
||||
Setting "start_incl" and "end_incl" is useful when white space surrounds the
|
||||
text, e.g. for a function name. Using false is useful when the text starts
|
||||
and/or ends with a specific character, such as the quote surrounding a string.
|
||||
|
||||
func FuncName(arg) ~
|
||||
^^^^^^^^ property with start_incl and end_incl set
|
||||
|
||||
var = "text"; ~
|
||||
^^^^^^ property with start_incl and end_incl not set
|
||||
|
||||
Nevertheless, when text is inserted or deleted the text may need to be parsed
|
||||
and the text properties updated. But this can be done asynchronously.
|
||||
|
||||
==============================================================================
|
||||
2. Functions *text-prop-functions*
|
||||
|
||||
Manipulating text property types:
|
||||
|
||||
prop_type_add({name}, {props}) define a new property type
|
||||
prop_type_change({name}, {props}) change an existing property type
|
||||
prop_type_delete({name} [, {props}]) delete a property type
|
||||
prop_type_get([{name} [, {props}]) get property type values
|
||||
prop_type_list([{props}]) get list of property types
|
||||
|
||||
|
||||
Manipulating text properties:
|
||||
|
||||
prop_add({lnum}, {col}, {props}) add a text property
|
||||
prop_clear({lnum} [, {lnum-end} [, {bufnr}]])
|
||||
remove all text properties
|
||||
prop_find({props} [, {direction}]) search for a text property
|
||||
prop_list({lnum} [, {props}) text properties in {lnum}
|
||||
prop_remove({props} [, {lnum} [, {lnum-end}]])
|
||||
remove a text property
|
||||
|
||||
|
||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 8.1. Last change: 2018 May 17
|
||||
*todo.txt* For Vim version 8.1. Last change: 2019 Jan 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -38,10 +38,18 @@ browser use: https://github.com/vim/vim/issues/1234
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Valgrind error in old regexp engine when using TOhtml.
|
||||
(Dominique, 2018 Dec 31, #3749)
|
||||
|
||||
Possible errors reported from fuzzer. Shadowblade #3716
|
||||
a) using get_regline() without checking for NULL
|
||||
b) using getcell() in libvterm without checking for NULL
|
||||
|
||||
'incsearch' with :s: (#3321)
|
||||
- :/foo/s//<Esc> changes last search pattern. Also E486.
|
||||
- :s/foo using CTRL-G moves to another line, should not happen, or use the
|
||||
correct line (it uses the last but one line) (Lifepillar, Aug 18, #3345)
|
||||
- :s@pat/tern@ doesn't include "/" in the pattern. (Takahiro Yoshihara, #3637)
|
||||
pass delim to do_search() ?
|
||||
- Also support range: :/foo/,/bar/delete
|
||||
- Also support for user command, e.g. Cfilter
|
||||
- :%s/foo should take the first match below the cursor line, unless there
|
||||
@ -51,17 +59,26 @@ browser use: https://github.com/vim/vim/issues/1234
|
||||
Prompt buffer:
|
||||
- Add a command line history.
|
||||
- delay next prompt until plugin gives OK?
|
||||
- add prompt_addtext({buf}, {expr}) none add text to a prompt buffer
|
||||
|
||||
Terminal debugger:
|
||||
- Make prompt-buffer variant work better.
|
||||
- Add option to not open the program window. It's not used when attaching to
|
||||
an already running program. (M. Kelly)
|
||||
- When only gdb window exists, on "quit" edit another buffer.
|
||||
- Termdebug does not work when Vim was build with mzscheme: gdb hangs just
|
||||
after "run". Everything else works, including communication channel. Not
|
||||
initializing mzscheme avoid the problem, thus it's not some #ifdef.
|
||||
- Add support for lldb? #3565
|
||||
- Could we do something similar for debugging Vim scripts? At least see the
|
||||
script while stepping through it. Simple version would use an extra window.
|
||||
More complete solution would actually run Vim in a Terminal and control it
|
||||
with another Vim instance.
|
||||
|
||||
Terminal emulator window:
|
||||
- GUI: When using ":set go+=!" a system() call causes the hit-enter prompt.
|
||||
(#3327)
|
||||
- GUI: hang until key typed. (#3530)
|
||||
- When the job in the terminal doesn't use mouse events, let the scroll wheel
|
||||
scroll the scrollback, like a terminal does at the shell prompt. #2490
|
||||
And use modeless selection. #2962
|
||||
@ -89,69 +106,156 @@ Terminal emulator window:
|
||||
- When 'encoding' is not utf-8, or the job is using another encoding, setup
|
||||
conversions.
|
||||
|
||||
Not possible to have a comment in between line continuation. Use |\":
|
||||
let array = [
|
||||
\ item,
|
||||
|\" comment
|
||||
\ item,
|
||||
\ ]
|
||||
":function" can now silently overwrite the function from the same script.
|
||||
Do the same for ":command" ?
|
||||
|
||||
Update for German spell files: https://github.com/chrisbra/vim/compare/5e021c990f8817a50d3264782a5...3b27c92f297540761ebbd92d04fb3
|
||||
(Christian Brabandt, 2018 Nov 4)
|
||||
|
||||
Problem with Visual yank when 'linebreak' and 'showbreak' are set.
|
||||
Patch with tests, but it's not clear how it is supposed to work. (tommm, 2018
|
||||
Nov 17) Asked about this, Dec 22. Christian will have a look.
|
||||
|
||||
Key mapping times out when using a timer in Gvim. (Michael Henry, 2018 Sep 9,
|
||||
#3417)
|
||||
|
||||
Add v:motion_force. (Kana Natsuno, 2008 Dec 6)
|
||||
Maybe call it v:motiontype. Update in #3490.
|
||||
Alternative: add the force flag to mode(), after "no".
|
||||
Patch ready to include?
|
||||
|
||||
Does not build with MinGW out of the box:
|
||||
- _stat64 is not defined, need to use "struct stat" in vim.h
|
||||
- WINVER conflict, should use 0x0600 by default?
|
||||
|
||||
Signs:
|
||||
- Use a sign group in the Termdebug plugin.
|
||||
- Avoid that "sign unplace id" does a redraw right away, esp. when there is
|
||||
a sequence of these commands. (Andy Stewart, 2018 Mar 16)
|
||||
- Patch to right-align signs. (James Kolb (email james), 2013 Sep 23)
|
||||
- Patch from Christian Brabandt to make the "buffer" argument for ":sign
|
||||
place" optional. (2013 Jul 12)
|
||||
|
||||
Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May
|
||||
13, #2910) Can't reproduce?
|
||||
|
||||
Patch to add blob type support. (Yasuhiro Matsumoto, 2018 Nov 26, #3638)
|
||||
Should be ready to include.
|
||||
|
||||
Errors found with random data:
|
||||
heap-buffer-overflow in alist_add (#2472)
|
||||
|
||||
Win32 key codes are messy. Mike Williams tried to fix that, but now old
|
||||
mappings no longer work. Create a new terminal for the better solution?
|
||||
|
||||
Improve fallback for menu translations, to avoid having to create lots of
|
||||
files that source the actual file. E.g. menu_da_de -> menu_da
|
||||
Include part of #3242?
|
||||
|
||||
Patch to add 'p' flag to 'formatoptions'. (Tom Ryder, 2018 Dec 28)
|
||||
Wait a few days for feedback.
|
||||
|
||||
When a terminal exit_cb closes the window, a following typed key is lost, if
|
||||
it's in a mapping. (2018 Oct 6, #2302, #3522)
|
||||
|
||||
Completion mixes results from the current buffer with tags and other files.
|
||||
Happens when typing CTRL-N while still search for results. E.g., type "b_" in
|
||||
terminal.c and then CTRL-N twice.
|
||||
Should do current file first and not split it up when more results are found.
|
||||
(Also #1890)
|
||||
|
||||
Internal diff doesn't handle binary file like external diff does. (Mike
|
||||
Williams, 2018 Oct 30)
|
||||
|
||||
Problem with :tlmenu: Detach item added with all modes? Issue #3563.
|
||||
|
||||
C syntax: {} inside () causes following {} to be highlighted as error.
|
||||
(Michalis Giannakidis, 2006 Jun 1)
|
||||
|
||||
Patch on #3690 to fix that "wincmd p" does not always behave properly.
|
||||
(Christian Brabandt, 2018 Dec 17)
|
||||
|
||||
Patch: When using %v in 'errorformat', assume the number is the screen column
|
||||
not bytes, also handle multi-byte charactes. (Yegappan Lakshmanan, #3700)
|
||||
|
||||
Patch to add FOR_ALL_FRAMES. (Yegappan, 2018 Dec 11, #3686)
|
||||
|
||||
Patch for MinGW build with static libraries. (Ken Takata, 2018 Dec 16)
|
||||
|
||||
More warnings from static analysis:
|
||||
https://lgtm.com/projects/g/vim/vim/alerts/?mode=list
|
||||
|
||||
Patch for this: (Aron Widforss, 2018 Oct 13, #3539)
|
||||
missing a test.
|
||||
7 Make 'scrolloff' a global-local option, so that it can be different in the
|
||||
quickfix window, for example. (Gary Holloway)
|
||||
Also do 'sidescrolloff'.
|
||||
|
||||
Patch for ConPTY support, #3474: What is the status?
|
||||
|
||||
Issue #3649: Retrying the X server connection once may be insufficient.
|
||||
Since patch 8.1.0615 we try reconnecting five times. Does it work?
|
||||
|
||||
nvo-mode mapping works on Windows, not on Linux. (#3678)
|
||||
|
||||
Patch to be able to separately map CTRL-H and BS on Windows.
|
||||
(Linwei, 2017 Jul 11, #1833)
|
||||
|
||||
Pasting foo} causes Vim to behave weird. (John Little, 2018 Jun 17)
|
||||
Related to bracketed paste. I cannot reproduce it.
|
||||
|
||||
Patch in pull request #2967: Allow white space in sign text. (Ben Jackson)
|
||||
Test fails in AppVeyor.
|
||||
Using CTRL-L to add a character to the search string doesn't work for the last
|
||||
character in the file. (Smylers, 2018 Nov 17, #3620)
|
||||
Suggested patch by Hirohito Higashi, 2018 Nov 18.
|
||||
|
||||
Patch to add script line number to script ID. (ichizok, Ozaki Kiichi, 2018 Aug
|
||||
24, #3362)
|
||||
Using CTRL-L to add a character to the search string that contains \v,
|
||||
punctiuation is repeated. (Smylers, 2018 Nov 17, #3621)
|
||||
|
||||
Removing flags from 'cpoptions' breaks the Winbar buttons in termdebug.
|
||||
(Dominique Pelle, 2018 Jul 16)
|
||||
Using CTRL-L during search only picks up the base character, not a combining
|
||||
character. (Rick, 2018 Dec 11, #3682)
|
||||
|
||||
":mksession" cannot handle a very long 'runtimepath'. (Timothy Madden, 21 Sep
|
||||
2018, #3466) Patch from Christian, 2018 Oct 30 (with comments).
|
||||
|
||||
ml_get error: (Israel Chauca Fuentes, 2018 Oct 17, #3550).
|
||||
|
||||
Patch to convert temp file name. (Yasuhiro Matsumoto, #3520)
|
||||
Not ready to include yet.
|
||||
|
||||
Problem with two buffers with the same name a/b, if it didn't exist before and
|
||||
is created outside of Vim. (dskloetg, 2018 Jul 16, #3219)
|
||||
|
||||
Memory leak in test_assert:
|
||||
==19127== by 0x2640D7: alloc (misc2.c:874)
|
||||
==19127== by 0x2646D6: vim_strsave (misc2.c:1315)
|
||||
==19127== by 0x1B68D2: f_getcwd (evalfunc.c:4950)
|
||||
And:
|
||||
==19127== by 0x2640D7: alloc (misc2.c:874)
|
||||
==19127== by 0x1A9477: set_var (eval.c:7601)
|
||||
==19127== by 0x19F96F: set_var_lval (eval.c:2233)
|
||||
==19127== by 0x19EA3A: ex_let_one (eval.c:1810)
|
||||
==19127== by 0x19D737: ex_let_vars (eval.c:1294)
|
||||
==19127== by 0x19D6B4: ex_let (eval.c:1259)
|
||||
When 'sidescrolloff' is set, using "zl" to go to the end of the line, suddenly
|
||||
scrolls back. Should allow for this scrolling, like 'scrolloff' does when
|
||||
using CTRL-E. (Yee Cheng Chin, #3721)
|
||||
|
||||
We have a SourcePre autocommand event, but not SourcePost. Useful for doing
|
||||
some thing after a plugin was loaded. (#3739)
|
||||
|
||||
Invalid memory access with old regexp engine. (Dominique Pelle, 2018 Sep 3,
|
||||
#3405) Introduced by 8.0.1517, which was fixing another memory access error.
|
||||
(Sep 8)
|
||||
|
||||
Add function to make use of internal diff, working on two lists and returning
|
||||
unified diff (list of lines).
|
||||
|
||||
Patch to implement 'diffref' option. (#3535)
|
||||
Easier to use a 'diffmaster' option, is the extra complexity needed?
|
||||
|
||||
Patch to fix that bracketed paste remains after Vim exits. (2018 Oct 30, #3579)
|
||||
|
||||
Patch to add support for changing the current quickfix/location list indes.
|
||||
(Yegappan Lakshmanan, 2018 Dec 18, #3701)
|
||||
|
||||
Make ":interactive !cmd" stop termcap mode, also when used in an autocommand.
|
||||
(#3692)
|
||||
|
||||
cursorline highlighting not removed after yanking in Visual mode.
|
||||
(Matéo Zanibelli, 2018 Oct 30, #3578)
|
||||
Patch by Christian, Oct 30.
|
||||
|
||||
Memory leaks in test_channel? (or is it because of fork())
|
||||
Using uninitialized value in test_crypt.
|
||||
Memory leaks in test_escaped_glob
|
||||
==20651== by 0x2640D7: alloc (misc2.c:874)
|
||||
==20651== by 0x2646D6: vim_strsave (misc2.c:1315)
|
||||
==20651== by 0x3741EA: get_function_args (userfunc.c:131)
|
||||
==20651== by 0x378779: ex_function (userfunc.c:2036)
|
||||
Memory leak in test_terminal:
|
||||
==23530== by 0x2640D7: alloc (misc2.c:874)
|
||||
==23530== by 0x2646D6: vim_strsave (misc2.c:1315)
|
||||
@ -165,47 +269,67 @@ Memory leak in test_terminal:
|
||||
|
||||
gethostbyname() is old, use getaddrinfo() if available. (#3227)
|
||||
|
||||
Delete the src/main.aap file?
|
||||
Patch to add match count and current index "3/44" when using "n" command.
|
||||
(Christian Brabandt, on issue #453). Only when search string was typed?
|
||||
|
||||
matchaddpos() gets slow with many matches. Proposal by Rick Howe, 2018 Jul
|
||||
19.
|
||||
|
||||
Sourceforge Vim pages still have content, redirect from empty page.
|
||||
Check for PHP errors. (Wayne Davison, 2018 Oct 26)
|
||||
|
||||
Patch to support ":tag <tagkind> <tagname>". (emmrk, 2018 May 7, #2871)
|
||||
Use something like ":tag {kind}/{tagname}".
|
||||
Not ready to include.
|
||||
|
||||
:pedit resets the 'buflisted' option unexpectedly. (Wang Shidong, 2018 Oct 12,
|
||||
#3536)
|
||||
|
||||
home_replace() uses $HOME instead of "homedir". (Cesar Martins, 2018 Aug 9)
|
||||
|
||||
When the status line uses term_gettitle(), it does not get updated when the
|
||||
terminal title changes. (Josh Triplett, 2018 Sep 9, #3418)
|
||||
How would we know that the status line needs to be updated?
|
||||
|
||||
Adjust windows installer explanation of behavior. (scootergrisen, #3310)
|
||||
|
||||
Set g:actual_curbuf when evaluating 'statusline', not just with an expression.
|
||||
(Daniel Hahler, 2018 Aug 8, #3299)
|
||||
|
||||
Using an external diff is inefficient. Not all systems have a good diff
|
||||
program available (esp. MS-Windows). Would be nice to have in internal diff
|
||||
implementation. Can then also use this for displaying changes within a line.
|
||||
Olaf Dabrunz is working on this. (10 Jan 2016)
|
||||
9 Instead invoking an external diff program, use builtin code. One can be
|
||||
found here: http://www.ioplex.com/~miallen/libmba/dl/src/diff.c
|
||||
It's complicated and badly documented.
|
||||
Alternative: use the xdiff library. Unfinished Patch from Christian Brabandt,
|
||||
2018 Mar 20, #2732)
|
||||
ml_get error. (Dominique Pelle, 2018 Sep 14, #3434)
|
||||
|
||||
Patch to use forward slash for completion even when 'shellslash' is set.
|
||||
Adds 'completepathslash'. (Yasuhiro Matsumoto, 2018 Nov 15, #3612)
|
||||
|
||||
Only output t_Cs when t_Ce is also set. do not use Cs and Ce termcap entries. (Daniel Hahler, 2018 Sep 25)
|
||||
Add t_cS and t_cR for cursor color select and reset. Use Cs and Cr terminfo
|
||||
values.
|
||||
|
||||
Further xdiff changes:
|
||||
- More options, e.g. different kind of whitespace diff.
|
||||
- when editing text, update the surrounding diff blocks.
|
||||
- omit diff.exe from distribution
|
||||
- Can we make this show differences within a line?
|
||||
- add option to use external diff above a certain size.
|
||||
|
||||
Difference between two regexp engines: #3373
|
||||
|
||||
Patch to add arguments to argc() and argv(). (Yegappan Lakshmanan, 2016 Jan
|
||||
24, #832) Also need a way to get the global arg list? Update later on Jan 24
|
||||
Update Mar 5. Update Apr 7. Update Jun 5.
|
||||
Patch to add ch_listen() (Yasuhiro Matsumoto, 2018 Nov 26, #3639)
|
||||
What is the practical use for this?
|
||||
|
||||
When the last line wraps, selecting with the mouse below that line only
|
||||
includes the first screen line. (2018 Aug 23, #3368)
|
||||
|
||||
Refactored HTML indent file. (Michael Lee, #1821)
|
||||
Ask to write a test first.
|
||||
|
||||
Patch to add getregpoint() and setreg() with an option to set "".
|
||||
(Andy Massimino, 2018 Aug 24, #3370)
|
||||
Better name?
|
||||
|
||||
MS-Windows: .lnk file not resolved properly when 'encoding' is set.
|
||||
(lkintact, 2018 Sep 22, #3473)
|
||||
|
||||
Script generated by :mksession does not work well if there are windows with
|
||||
modified buffers
|
||||
change "silent only" into "silent only!"
|
||||
@ -222,6 +346,16 @@ Compiler warnings (geeknik, 2017 Oct 26):
|
||||
Win32 console: <F11> and <F12> typed in Insert mode don't result in normal
|
||||
characters. (#3246)
|
||||
|
||||
'foldtext' is evaluated too often. (Daniel Hahler, #2773)
|
||||
|
||||
Add Native language protocol server (LSP) support. (Yegappan Lakshmanan, 2018
|
||||
Oct 28)
|
||||
|
||||
ml_get error when using a Python script. (Yggdroot, 2017 Jun 1, #1737)
|
||||
Lemonboy can reproduce (2017 Jun 5)
|
||||
Also reproduced by Benjamin Doherty, 2018 Oct 4.
|
||||
Simpler way: Ken Takata, Oct 6.
|
||||
|
||||
Height of quickfix window is not retained with vertical splits. (Lifepillar,
|
||||
2018 Aug 24, #2998)
|
||||
|
||||
@ -237,6 +371,14 @@ is cleared, to avoid going back to the list of errors buffer (would have two
|
||||
windows with it). Can we just remove the jump list entries for the quickfix
|
||||
buffer?
|
||||
|
||||
Patch to fix that executable() may fail on very long filename in MS-Windows.
|
||||
(Ken Takata, 2016 Feb 1, update 2018 Oct 7)
|
||||
|
||||
Patch to be able to use hex numbers with :digraph. (Lcd, 2015 Sep 6)
|
||||
Update Sep 7. Update by Christian Brabandt, 2015 Sep 8, 2016 Feb 1.
|
||||
Patch to be able to disable default digraphs (incomplete) (Eric Pruitt, 2018
|
||||
Nov 22).
|
||||
|
||||
Make balloon_show() work outside of 'balloonexpr'? Users expect it to work:
|
||||
#2948. (related to #1512?)
|
||||
On Win32 it stops showing, because showState is already ShS_SHOWING.
|
||||
@ -244,9 +386,8 @@ balloon_show() does not work properly in the terminal. (Ben Jackson, 2017 Dec
|
||||
20, #2481)
|
||||
Also see #2352, want better control over balloon, perhaps set the position.
|
||||
Should also be possible to add highlighting, like in the status line?
|
||||
|
||||
Patch to fix that executable() may fail on very long filename in MS-Windows.
|
||||
(Ken Takata, 2016 Feb 1)
|
||||
balloonexpr() on MS-Windows GUI doesn't handle accented chars? (nivaemail,
|
||||
2018 Sep 14)
|
||||
|
||||
Try out background make plugin:
|
||||
https://github.com/AndrewVos/vim-make-background
|
||||
@ -254,7 +395,7 @@ or asyncmake:
|
||||
https://github.com/yegappan/asyncmake
|
||||
|
||||
Add a ModeChanged autocommand that has an argument indicating the old and new
|
||||
mode. Also used for switching Terminal mode.
|
||||
mode, as what's returned from mode(). Also used for switching Terminal mode.
|
||||
|
||||
Add an option with file patterns, to be used when unloading a buffer: If there
|
||||
is a match, remove entries for the buffer from marks, jumplist, etc. To be
|
||||
@ -265,6 +406,10 @@ Cursor in wrong position when line wraps. (#2540)
|
||||
Patch to parse ":line" in tags file and use it for search. (Daniel Hahler,
|
||||
#2546) Fixes #1057. Missing a test.
|
||||
|
||||
Setting 'columns' in a BufEnter autocommand causes a second tab width to
|
||||
behave strangely, as if there is a gap and a vertical window separator.
|
||||
(Michael Soyka, 2018 Sep 23, #3477)
|
||||
|
||||
Make {skip} argument of searchpair() consistent with other places where we
|
||||
pass an expression to evaluate. Allow passing zero for "never skip".
|
||||
|
||||
@ -285,6 +430,11 @@ If 'readonly' is not set but the file appears to be readonly later, try again
|
||||
(wait a little while).
|
||||
CreateFile() returns ERROR_SHARING_VIOLATION (Linwei, 2018 May 5)
|
||||
|
||||
Using --remote to open a file in which a # appears does not work on
|
||||
MS-Windows. Perhaps in \# the \ is seen as a path separator. (Axel Bender,
|
||||
2017 Feb 9) Can we expand wildcards first and send the path literally to the
|
||||
receiving Vim? Or make an exception for #, it's not useful remotely.
|
||||
|
||||
Should add a test for every command line argument. Check coverage for what is
|
||||
missing: --nofork, -A , -b, -h, etc.
|
||||
|
||||
@ -295,7 +445,7 @@ Quickfix window height is not kept with a vertical split. (Lifepillar, 2018
|
||||
Jun 10, #2998)
|
||||
|
||||
Improve the installer for MS-Windows. There are a few alternatives:
|
||||
- Add silent install option. (Shane Lee, #751)
|
||||
- mui2 installer improved by Ken Takata (2018 Sep 29)
|
||||
- Installer from Cream (Steve Hall).
|
||||
- Modern UI 2.0 for the Nsis installer. (Guopeng Wen)
|
||||
https://github.com/gpwen/vim-installer-mui2
|
||||
@ -309,13 +459,9 @@ How to test that it works well for all Vim users?
|
||||
|
||||
Alternative manpager.vim. (Enno, 2018 Jan 5, #2529)
|
||||
|
||||
Delete all the speficic stuff for the Borland compiler? (#3374)
|
||||
Delete all the specific stuff for the Borland compiler? (#3374)
|
||||
Patch in #3377 (Thomas Dziedzic)
|
||||
|
||||
Does setting 'cursorline' cause syntax highlighting to slow down? Perhaps is
|
||||
mess up the cache? (Mike Lee Williams, 2018 Jan 27, #2539)
|
||||
Also: 'foldtext' is evaluated too often. (Daniel Hahler, #2773)
|
||||
|
||||
With 'foldmethod' "indent" and appending an empty line, what follows isn't
|
||||
included in the existing fold. Deleting the empty line and undo fixes it.
|
||||
(Oleg Koshovetc, 2018 Jul 15, #3214)
|
||||
@ -345,16 +491,6 @@ confusing error message. (Wang Shidong, 2018 Jan 2, #2519)
|
||||
|
||||
Add the debug command line history to viminfo.
|
||||
|
||||
Avoid that "sign unplace id" does a redraw right away, esp. when there is a
|
||||
sequence of these commands. (Andy Stewart, 2018 Mar 16)
|
||||
|
||||
ch_sendraw() with long string does not try to read in between, which may cause
|
||||
a deadlock if the reading side is waiting for the write to finish. (Nate
|
||||
Bosch, 2018 Jan 13, #2548)
|
||||
Perhaps just make chunks of 1024 bytes?
|
||||
Probably better: Make the write non-blocking
|
||||
Also a problem on MS-Windows: #2828.
|
||||
|
||||
Add Makefiles to the runtime/spell directory tree, since nobody uses Aap.
|
||||
Will have to explain the manual steps (downloading the .aff and .dic files,
|
||||
applying the diff, etc.
|
||||
@ -399,14 +535,15 @@ option_save({list}) *option_save()*
|
||||
values are handled and the script ID is restored, so that
|
||||
`:verbose set` will show where the option was originally set,
|
||||
not where it was restored.
|
||||
Alternatively: save and restore ALL options. Implementation needs to use
|
||||
copy-on-write. Return an ID from option_save(), when
|
||||
option_restore(ID) is called give an error if another option_save()
|
||||
was called in the mean time, they must be balanced.
|
||||
|
||||
"gvim --remote" from a directory with non-word characters changes the current
|
||||
directory (Paulo Marcel Coelho Arabic, 2017 Oct 30, #2266)
|
||||
Also see #1689.
|
||||
|
||||
ml_get error when using a Python script. (Yggdroot, 2017 Jun 1, #1737)
|
||||
Lemonboy can reproduce (2017 Jun 5)
|
||||
|
||||
crash when removing an element while inside map(). (Nikolai Pavlov, 2018 Feb
|
||||
17, #2652)
|
||||
|
||||
@ -425,9 +562,6 @@ Add script number to profile? (#3330 breaks tests).
|
||||
A function defined locally and lambda's are not easily recognized.
|
||||
Mention where they were defined somewhere.
|
||||
|
||||
Get a "No Name" buffer when 'hidden' is set and opening a new window from the
|
||||
quickfix list. (bfrg, 2018 Jan 22, #2574)
|
||||
|
||||
CTRL-X on zero gets stuck on 0xfffffffffffffffe. (Hengyang Zhao, #2746)
|
||||
|
||||
Invalid range error when using BufWinLeave for closing terminal.
|
||||
@ -481,6 +615,9 @@ Problem with 'delcombine'. (agguser, 2017 Nov 10, #2313)
|
||||
MS-Windows: buffer completion doesn't work when using backslash (or slash)
|
||||
for a path separator. (xtal8, #2201)
|
||||
|
||||
Would be nice for insert mode completion to highlight the text that was added
|
||||
(and may change when picking another completion).
|
||||
|
||||
Test runtime files.
|
||||
Start with filetype detection: testdir/test_filetype.vim
|
||||
|
||||
@ -587,9 +724,6 @@ stack trace. (Yggdroot, 2017 Jul 28, #1887)
|
||||
Profile of a dict function is lost when the dict is deleted. Would it be
|
||||
possible to collect this? (Daniel Hahler, #2350)
|
||||
|
||||
Add `:filter` support for various commands (Marcin Szamotulski, 2017 Nov 12
|
||||
#2322) Patch now in #2856.
|
||||
|
||||
When checking if a bufref is valid, also check the buffer number, to catch the
|
||||
case of :bwipe followed by :new.
|
||||
|
||||
@ -641,9 +775,6 @@ Is it possible to keep the complete menu open when calling complete()?
|
||||
|
||||
Memory leak in test97? The string is actually freed. Weird.
|
||||
|
||||
Patch to add configure flags to skip rtl, farsi and arabic support.
|
||||
(Diego Carrión, #1867)
|
||||
|
||||
assert_fails() can only check for the first error. Make it possible to have
|
||||
it catch multiple errors and check all of them.
|
||||
|
||||
@ -764,11 +895,6 @@ Or point to nightly builds: https://github.com/vim/vim-win32-installer/releases
|
||||
Problem passing non-UTF-8 strings to Python 3. (Björn Linse, 2016 Sep 11,
|
||||
#1053) With patch, does it work?
|
||||
|
||||
Using --remote to open a file in which a # appears does not work on
|
||||
MS-Windows. Perhaps in \# the \ is seen as a path separator. (Axel Bender,
|
||||
2017 Feb 9) Can we expand wildcards first and send the path literally to the
|
||||
receiving Vim? Or make an exception for #, it's not useful remotely.
|
||||
|
||||
":sbr" docs state it respects 'switchbuf', but "vsplit" does not cause a
|
||||
vertical split. (Haldean Brown, 2017 Mar 1)
|
||||
|
||||
@ -793,9 +919,6 @@ Does this also fix #1408 ?
|
||||
|
||||
Patch for 'cursorlinenr' option. (Ozaki Kiichi, 2016 Nov 30)
|
||||
|
||||
Patch to be able to separately map CTRL-H and BS on Windows.
|
||||
(Linwei, 2017 Jul 11, #1833)
|
||||
|
||||
When 'completeopt' has "noselect" does not insert a newline. (Lifepillar, 2017
|
||||
Apr 23, #1653)
|
||||
|
||||
@ -1104,9 +1227,6 @@ Patch to avoid redrawing tabline when the popup menu is visible.
|
||||
Patch to add {skip} argument to search(). (Christian Brabandt, 2016 Feb 24)
|
||||
Update 2016 Jun 10, #861
|
||||
|
||||
Patch to be able to use hex numbers with :digraph. (Lcd, 2015 Sep 6)
|
||||
Update Sep 7. Update by Christian Brabandt, 2015 Sep 8, 2016 Feb 1.
|
||||
|
||||
Patch to show search statistics. (Christian Brabandt, 2016 Jul 22)
|
||||
|
||||
When the CursorMovedI event triggers, and CTRL-X was typed, a script cannot
|
||||
@ -1448,8 +1568,6 @@ possible. (Christian Brabandt, 2014 Mar 12, update Aug 22)
|
||||
|
||||
Updated spec ftplugin. (Matěj Cepl, 2013 Oct 16)
|
||||
|
||||
Patch to right-align signs. (James Kolb (email james), 2013 Sep 23)
|
||||
|
||||
Patch to handle integer overflow. (Aaron Burrow, 2013 Dec 12)
|
||||
|
||||
Patch to add "ntab" item in 'listchars' to repeat first character. (Nathaniel
|
||||
@ -1517,9 +1635,6 @@ Two highlighting bugs. (ZyX, 2013 Aug 18)
|
||||
Patch to support 'u' in interactive substitute. (Christian Brabandt, 2012 Sep
|
||||
28) With tests: Oct 9.
|
||||
|
||||
Patch from Christian Brabandt to make the "buffer" argument for ":sign place"
|
||||
optional. (2013 Jul 12)
|
||||
|
||||
Dialog is too big on Linux too. (David Fishburn, 2013 Sep 2)
|
||||
|
||||
Patch to make fold updates much faster. (Christian Brabandt, 2012 Dec)
|
||||
@ -1544,8 +1659,6 @@ Or use expand('<sid>')?
|
||||
|
||||
Patch to make confirm() display colors. (Christian Brabandt, 2012 Nov 9)
|
||||
|
||||
Patch to add functions for signs. (Christian Brabandt, 2013 Jan 27)
|
||||
|
||||
Patch to remove flicker from popup menu. (Yasuhiro Matsumoto, 2013 Aug 15)
|
||||
|
||||
Problem with refresh:always in completion. (Tyler Wade, 2013 Mar 17)
|
||||
@ -2175,16 +2288,11 @@ still delete them. Also convert all buffer file names?
|
||||
"gqip" in Insert mode has an off-by-one error, causing it to reflow text.
|
||||
(Raul Coronado, 2009 Nov 2)
|
||||
|
||||
Update src/testdir/main.aap.
|
||||
|
||||
Something wrong with session that has "cd" commands and "badd", in such a way
|
||||
that Vim doesn't find the edited file in the buffer list, causing the
|
||||
ATTENTION message? (Tony Mechelynck, 2008 Dec 1)
|
||||
Also: swap files are in ~/tmp/ One has relative file name ".mozilla/...".
|
||||
|
||||
Add v:motion_force. (Kana Natsuno, 2008 Dec 6)
|
||||
Maybe call it v:motiontype.
|
||||
|
||||
MS-Windows: editing the first, empty buffer, 'ffs' set to "unix,dos", ":enew"
|
||||
doesn't set 'ff' to "unix". (Ben Fritz, 2008 Dec 5) Reusing the old buffer
|
||||
probably causes this.
|
||||
@ -2374,9 +2482,6 @@ Syntax highlighting wrong for transparent region. (Doug Kearns, 2007 Feb 26)
|
||||
Bug in using a transparent syntax region. (Hanlen in vim-dev maillist, 2007
|
||||
Jul 31)
|
||||
|
||||
C syntax: {} inside () causes following {} to be highlighted as error.
|
||||
(Michalis Giannakidis, 2006 Jun 1)
|
||||
|
||||
When 'diffopt' has "context:0" a single deleted line causes two folds to merge
|
||||
and mess up syncing. (Austin Jennings, 2008 Jan 31)
|
||||
|
||||
@ -2839,8 +2944,6 @@ More patches:
|
||||
- Another patch for Javascript indenting. (Hari Kumar, 2010 Jul 11)
|
||||
Needs a few tests.
|
||||
- Add 'cscopeignorecase' option. (Liang Wenzhi, 2006 Sept 3)
|
||||
- Load intl.dll too, not only libintl.dll. (Mike Williams, 2006 May 9, docs
|
||||
patch May 10)
|
||||
- Extra argument to strtrans() to translate special keys to their name (Eric
|
||||
Arnold, 2006 May 22)
|
||||
- 'threglookexp' option: only match with first word in thesaurus file.
|
||||
@ -3664,6 +3767,7 @@ Most interesting new features to be added when all bugs have been fixed:
|
||||
Alternative: Make a function for Ex commands: cmd_edit().
|
||||
- Add COLUMN NUMBERS to ":" commands ":line1,line2[col1,col2]cmd". Block
|
||||
can be selected with CTRL-V. Allow '$' (end of line) for col2.
|
||||
(issue #3292)
|
||||
- ECLIPSE plugin. Problem is: the interface is very complicated. Need to
|
||||
implement part in Java and then connect to Vim. Some hints from Alexandru
|
||||
Roman, 2004 Dec 15. Should then also work with Oracle Jdeveloper, see JSR
|
||||
@ -5536,9 +5640,6 @@ Options:
|
||||
that marks if the option was set. Useful to keep the effect of setting
|
||||
'compatible' after ":syntax on" has been used.
|
||||
7 There is 'titleold', why is there no 'iconold'? (Chazelas)
|
||||
7 Make 'scrolloff' a global-local option, so that it can be different in the
|
||||
quickfix window, for example. (Gary Holloway)
|
||||
Also do 'sidescrolloff'.
|
||||
|
||||
|
||||
External commands:
|
||||
@ -5719,7 +5820,6 @@ Debug mode:
|
||||
7 Store the history from debug mode in viminfo.
|
||||
7 Make the debug mode history available with histget() et al.
|
||||
|
||||
|
||||
Various improvements:
|
||||
7 Add plugins for formatting? Should be able to make a choice depending on
|
||||
the language of a file (English/Korean/Japanese/etc.).
|
||||
|
@ -208,15 +208,17 @@ encryption key, just like the "-x" argument did: >
|
||||
|
||||
LIMITS ON ENCRYPTION
|
||||
|
||||
The encryption algorithm used by Vim is weak. It is good enough to keep out
|
||||
the casual prowler, but not good enough to keep out a cryptology expert with
|
||||
lots of time on his hands. Also you should be aware that the swap file is not
|
||||
encrypted; so while you are editing, people with superuser privileges can read
|
||||
the unencrypted text from this file.
|
||||
One way to avoid letting people read your swap file is to avoid using one.
|
||||
If the -n argument is supplied on the command line, no swap file is used
|
||||
(instead, Vim puts everything in memory). For example, to edit the encrypted
|
||||
file "file.txt" without a swap file use the following command: >
|
||||
The encryption algorithm used by Vim is not very strong. It is good enough to
|
||||
keep out the casual prowler, but not good enough to keep out a cryptology
|
||||
expert with lots of time on his hands. The text in the swap file and the undo
|
||||
file is also encrypted. However, this is done block-by-block and may reduce
|
||||
the time needed to crack a password. You can disable the swap file, but then
|
||||
a crash will cause you to lose your work, since Vim keeps all the text in
|
||||
memory only. The undo file can be disabled with the only disadvantage that
|
||||
you can't undo after unloading the buffer.
|
||||
To avoid using a swap file, supply the -n argument on the command line.
|
||||
For example, to edit the encrypted file "file.txt" without a swap file use the
|
||||
following command: >
|
||||
|
||||
vim -x -n file.txt
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 8.1. Last change: 2018 Apr 11
|
||||
*usr_41.txt* For Vim version 8.1. Last change: 2018 Dec 18
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -612,6 +612,7 @@ String manipulation: *string-functions*
|
||||
repeat() repeat a string multiple times
|
||||
eval() evaluate a string expression
|
||||
execute() execute an Ex command and get the output
|
||||
trim() trim characters from a string
|
||||
|
||||
List manipulation: *list-functions*
|
||||
get() get an item without error for wrong index
|
||||
@ -799,6 +800,9 @@ Buffers, windows and the argument list:
|
||||
bufwinnr() get the window number of a specific buffer
|
||||
winbufnr() get the buffer number of a specific window
|
||||
getbufline() get a list of lines from the specified buffer
|
||||
setbufline() replace a line in the specified buffer
|
||||
appendbufline() append a list of lines in the specified buffer
|
||||
deletebufline() delete lines from a specified buffer
|
||||
win_findbuf() find windows containing a buffer
|
||||
win_getid() get window ID of a window
|
||||
win_gotoid() go to window with ID
|
||||
@ -810,6 +814,7 @@ Buffers, windows and the argument list:
|
||||
getchangelist() get a list of change list entries
|
||||
getjumplist() get a list of jump list entries
|
||||
swapinfo() information about a swap file
|
||||
swapname() get the swap file path of a buffer
|
||||
|
||||
Command line: *command-line-functions*
|
||||
getcmdline() get the current command line
|
||||
@ -907,6 +912,7 @@ Window size and position: *window-size-functions*
|
||||
winheight() get height of a specific window
|
||||
winwidth() get width of a specific window
|
||||
win_screenpos() get screen position of a window
|
||||
winlayout() get layout of windows in a tab page
|
||||
winrestcmd() return command to restore window sizes
|
||||
winsaveview() get view of current window
|
||||
winrestview() restore saved view of current window
|
||||
@ -919,6 +925,7 @@ Mappings: *mapping-functions*
|
||||
|
||||
Testing: *test-functions*
|
||||
assert_equal() assert that two expressions values are equal
|
||||
assert_equalfile() assert that two file contents are equal
|
||||
assert_notequal() assert that two expressions values are not equal
|
||||
assert_inrange() assert that an expression is inside a range
|
||||
assert_match() assert that a pattern matches the value
|
||||
@ -941,6 +948,9 @@ Testing: *test-functions*
|
||||
test_null_partial() return a null Partial function
|
||||
test_null_string() return a null String
|
||||
test_settime() set the time Vim uses internally
|
||||
test_feedinput() add key sequence to input buffer
|
||||
test_option_not_set() reset flag indicating option was set
|
||||
test_scrollbar() simulate scrollbar movement in the GUI
|
||||
|
||||
Inter-process communication: *channel-functions*
|
||||
ch_canread() check if there is something to read
|
||||
@ -973,6 +983,14 @@ Jobs: *job-functions*
|
||||
job_info() get information about a job
|
||||
job_setoptions() set options for a job
|
||||
|
||||
Signs: *sign-functions*
|
||||
sign_define() define or update a sign
|
||||
sign_getdefined() get a list of defined signs
|
||||
sign_getplaced() get a list of placed signs
|
||||
sign_place() place a sign
|
||||
sign_undefine() undefine a sign
|
||||
sign_unplace() unplace a sign
|
||||
|
||||
Terminal window: *terminal-functions*
|
||||
term_start() open a terminal window and run a job
|
||||
term_list() get the list of terminal buffers
|
||||
@ -991,6 +1009,12 @@ Terminal window: *terminal-functions*
|
||||
term_gettty() get the tty name of a terminal
|
||||
term_setansicolors() set 16 ANSI colors, used for GUI
|
||||
term_getansicolors() get 16 ANSI colors, used for GUI
|
||||
term_dumpdiff() display difference between two screen dumps
|
||||
term_dumpload() load a terminal screen dump in a window
|
||||
term_dumpwrite() dump contents of a terminal screen to a file
|
||||
term_setkill() set signal to stop job in a terminal
|
||||
term_setrestore() set command to restore a terminal
|
||||
term_setsize() set the size of a terminal
|
||||
|
||||
Timers: *timer-functions*
|
||||
timer_start() create a timer
|
||||
@ -999,6 +1023,17 @@ Timers: *timer-functions*
|
||||
timer_stopall() stop all timers
|
||||
timer_info() get information about timers
|
||||
|
||||
Tags: *tag-functions*
|
||||
taglist() get list of matching tags
|
||||
tagfiles() get a list of tags files
|
||||
gettagstack() get the tag stack of a window
|
||||
settagstack() modify the tag stack of a window
|
||||
|
||||
Prompt Buffer: *promptbuffer-functions*
|
||||
prompt_setcallback() set prompt callback for a buffer
|
||||
prompt_setinterrupt() set interrupt callback for a buffer
|
||||
prompt_setprompt() set the prompt text for a buffer
|
||||
|
||||
Various: *various-functions*
|
||||
mode() get current editing mode
|
||||
visualmode() last visual mode used
|
||||
@ -1026,15 +1061,13 @@ Various: *various-functions*
|
||||
|
||||
wordcount() get byte/word/char count of buffer
|
||||
|
||||
taglist() get list of matching tags
|
||||
tagfiles() get a list of tags files
|
||||
|
||||
luaeval() evaluate Lua expression
|
||||
mzeval() evaluate |MzScheme| expression
|
||||
perleval() evaluate Perl expression (|+perl|)
|
||||
py3eval() evaluate Python expression (|+python3|)
|
||||
pyeval() evaluate Python expression (|+python|)
|
||||
pyxeval() evaluate |python_x| expression
|
||||
debugbreak() interrupt a program being debugged
|
||||
|
||||
==============================================================================
|
||||
*41.7* Defining a function
|
||||
|
@ -150,7 +150,8 @@ like the variations on the ":map" command:
|
||||
:menu! Insert and Command-line mode
|
||||
:imenu Insert mode
|
||||
:cmenu Command-line mode
|
||||
:amenu All modes
|
||||
:tlmenu Terminal mode
|
||||
:amenu All modes (except for Terminal mode)
|
||||
|
||||
To avoid that the commands of a menu item are being mapped, use the command
|
||||
":noremenu", ":nnoremenu", ":anoremenu", etc.
|
||||
|
@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 8.1. Last change: 2018 Mar 29
|
||||
*various.txt* For Vim version 8.1. Last change: 2018 Dec 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -448,6 +448,7 @@ m *+terminal* Support for terminal window |terminal|
|
||||
N *+termresponse* support for |t_RV| and |v:termresponse|
|
||||
B *+termguicolors* 24-bit color in xterm-compatible terminals support
|
||||
N *+textobjects* |text-objects| selection
|
||||
N *+textprop* |text-properties|
|
||||
*+tgetent* non-Unix only: able to use external termcap
|
||||
N *+timers* the |timer_start()| function
|
||||
N *+title* Setting the window 'title' and 'icon'
|
||||
@ -565,7 +566,18 @@ N *+X11* Unix only: can restore window title |X11|
|
||||
The pattern is matched against the relevant part of
|
||||
the output, not necessarily the whole line. Only some
|
||||
commands support filtering, try it out to check if it
|
||||
works.
|
||||
works. Some of the commands that support filtering:
|
||||
|:#| - filter whole line
|
||||
|:command| - filter by command name
|
||||
|:files| - filter by file name
|
||||
|:highlight| - filter by highlight group
|
||||
|:jumps| - filter by file name
|
||||
|:let| - filter by variable name
|
||||
|:list| - filter whole line
|
||||
|:llist| - filter by file name or module name
|
||||
|:oldfiles| - filter by file name
|
||||
|:clist| - filter by file name or module name
|
||||
|:set| - filter by variable name
|
||||
|
||||
Only normal messages are filtered, error messages are
|
||||
not.
|
||||
|
@ -321,13 +321,13 @@ N
|
||||
.TP
|
||||
\-R
|
||||
Skrivebeskyttet tilstand.
|
||||
'readonly'-valgmuligheden s<>ttes.
|
||||
\&'readonly'-valgmuligheden s<>ttes.
|
||||
Du kan stadig redigere bufferen, men vil v<>re forhindret i
|
||||
fejlagtigt at overskrive en fil.
|
||||
Hvis du vil overskrive en fil, s<> tilf<6C>j et
|
||||
udr<EFBFBD>bstegn til Ex-kommandoen, som i ":w!".
|
||||
\-R-tilvalget indeb<65>rer ogs<67> \-n-tilvalget (se ovenfor).
|
||||
'readonly'-valgmuligheden kan sl<73>s fra med ":set noro".
|
||||
\&'readonly'-valgmuligheden kan sl<73>s fra med ":set noro".
|
||||
Se ":help 'readonly'".
|
||||
.TP
|
||||
\-r
|
||||
|
@ -321,13 +321,13 @@ Når N udelades, så åbnes én fanebladsside pr. fil.
|
||||
.TP
|
||||
\-R
|
||||
Skrivebeskyttet tilstand.
|
||||
'readonly'-valgmuligheden sættes.
|
||||
\&'readonly'-valgmuligheden sættes.
|
||||
Du kan stadig redigere bufferen, men vil være forhindret i
|
||||
fejlagtigt at overskrive en fil.
|
||||
Hvis du vil overskrive en fil, så tilføj et
|
||||
udråbstegn til Ex-kommandoen, som i ":w!".
|
||||
\-R-tilvalget indebærer også \-n-tilvalget (se ovenfor).
|
||||
'readonly'-valgmuligheden kan slås fra med ":set noro".
|
||||
\&'readonly'-valgmuligheden kan slås fra med ":set noro".
|
||||
Se ":help 'readonly'".
|
||||
.TP
|
||||
\-r
|
||||
|
@ -81,6 +81,10 @@ will not change within a Vim session. The |win_getid()| and |win_id2tabwin()|
|
||||
functions can be used to convert between the window/tab number and the
|
||||
identifier. There is also the window number, which may change whenever
|
||||
windows are opened or closed, see |winnr()|.
|
||||
The window number is only valid in one specific tab. The window ID is valid
|
||||
across tabs. For most functions that take a window ID or a window number, the
|
||||
window number only applies to the current tab, while the window ID can refer
|
||||
to a window in any tab.
|
||||
|
||||
Each buffer has a unique number and the number will not change within a Vim
|
||||
session. The |bufnr()| and |bufname()| functions can be used to convert
|
||||
@ -218,9 +222,11 @@ CTRL-W CTRL_N *CTRL-W_CTRL-N*
|
||||
|:find|. Doesn't split if {file} is not found.
|
||||
|
||||
CTRL-W CTRL-^ *CTRL-W_CTRL-^* *CTRL-W_^*
|
||||
CTRL-W ^ Does ":split #", split window in two and edit alternate file.
|
||||
When a count is given, it becomes ":split #N", split window
|
||||
and edit buffer N.
|
||||
CTRL-W ^ Split the current window in two and edit the alternate file.
|
||||
When a count N is given, split the current window and edit
|
||||
buffer N. Similar to ":sp #" and ":sp #N", but it allows the
|
||||
other buffer to be unnamed. This command matches the behavior
|
||||
of |CTRL-^|, except that it splits a window first.
|
||||
|
||||
*CTRL-W_:*
|
||||
CTRL-W : Does the same as typing |:| - enter a command line. Useful in a
|
||||
|
@ -258,7 +258,7 @@ ligne.
|
||||
.br
|
||||
0000030: 2e5c 220a 2e5c 2220 3231 7374 .\"..\" 21st
|
||||
.br
|
||||
000003c: 204d 6179 2031 3939 360a 2e5c May 1996..\
|
||||
000003c: 204d 6179 2031 3939 360a 2e5c May 1996..\\
|
||||
.br
|
||||
0000048: 2220 4d61 6e20 7061 6765 2061 " Man page a
|
||||
.br
|
||||
|
@ -258,7 +258,7 @@ ligne.
|
||||
.br
|
||||
0000030: 2e5c 220a 2e5c 2220 3231 7374 .\"..\" 21st
|
||||
.br
|
||||
000003c: 204d 6179 2031 3939 360a 2e5c May 1996..\
|
||||
000003c: 204d 6179 2031 3939 360a 2e5c May 1996..\\
|
||||
.br
|
||||
0000048: 2220 4d61 6e20 7061 6765 2061 " Man page a
|
||||
.br
|
||||
|
@ -257,15 +257,15 @@ Stampa i primi 120 byte della pagina di manuale vim.1 a 12 byte per linea.
|
||||
.br
|
||||
0000018: 224d 616e 7561 6c20 7061 6765 "Manual page
|
||||
.br
|
||||
0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\
|
||||
0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\\
|
||||
.br
|
||||
0000030: 220a 2e5c 2220 3231 7374 204d "..\" 21st M
|
||||
0000030: 220a 2e5c 2220 3231 7374 204d "..\\" 21st M
|
||||
.br
|
||||
000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\"
|
||||
000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\\"
|
||||
.br
|
||||
0000048: 4d61 6e20 7061 6765 2061 7574 Man page aut
|
||||
.br
|
||||
0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\"
|
||||
0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\\"
|
||||
.br
|
||||
0000060: 546f 6e79 204e 7567 656e 7420 Tony Nugent
|
||||
.br
|
||||
|
@ -257,15 +257,15 @@ Stampa i primi 120 byte della pagina di manuale vim.1 a 12 byte per linea.
|
||||
.br
|
||||
0000018: 224d 616e 7561 6c20 7061 6765 "Manual page
|
||||
.br
|
||||
0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\
|
||||
0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\\
|
||||
.br
|
||||
0000030: 220a 2e5c 2220 3231 7374 204d "..\" 21st M
|
||||
0000030: 220a 2e5c 2220 3231 7374 204d "..\\" 21st M
|
||||
.br
|
||||
000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\"
|
||||
000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\\"
|
||||
.br
|
||||
0000048: 4d61 6e20 7061 6765 2061 7574 Man page aut
|
||||
.br
|
||||
0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\"
|
||||
0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\\"
|
||||
.br
|
||||
0000060: 546f 6e79 204e 7567 656e 7420 Tony Nugent
|
||||
.br
|
||||
|
@ -613,12 +613,12 @@ au BufNewFile,BufRead *.mo,*.gdmo setf gdmo
|
||||
au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom
|
||||
|
||||
" Git
|
||||
au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit
|
||||
au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
|
||||
au BufNewFile,BufRead *.git/modules/*/config setf gitconfig
|
||||
au BufNewFile,BufRead */.config/git/config setf gitconfig
|
||||
au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit
|
||||
au BufNewFile,BufRead *.git/config,.gitconfig,/etc/gitconfig setf gitconfig
|
||||
au BufNewFile,BufRead */.config/git/config setf gitconfig
|
||||
au BufNewFile,BufRead .gitmodules,*.git/modules/*/config setf gitconfig
|
||||
if !empty($XDG_CONFIG_HOME)
|
||||
au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config setf gitconfig
|
||||
au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config setf gitconfig
|
||||
endif
|
||||
au BufNewFile,BufRead git-rebase-todo setf gitrebase
|
||||
au BufRead,BufNewFile .gitsendemail.msg.?????? setf gitsendemail
|
||||
@ -1129,7 +1129,7 @@ au BufNewFile,BufRead *.dpr setf pascal
|
||||
" PDF
|
||||
au BufNewFile,BufRead *.pdf setf pdf
|
||||
|
||||
" PCMK - HAE - crm configure edit
|
||||
" PCMK - HAE - crm configure edit
|
||||
au BufNewFile,BufRead *.pcmk setf pcmk
|
||||
|
||||
" Perl
|
||||
@ -1263,9 +1263,9 @@ au BufNewFile,BufRead */etc/protocols setf protocols
|
||||
" Pyrex
|
||||
au BufNewFile,BufRead *.pyx,*.pxd setf pyrex
|
||||
|
||||
" Python, Python Shell Startup Files
|
||||
" Python, Python Shell Startup and Python Stub Files
|
||||
" Quixote (Python-based web framework)
|
||||
au BufNewFile,BufRead *.py,*.pyw,.pythonstartup,.pythonrc,*.ptl setf python
|
||||
au BufNewFile,BufRead *.py,*.pyw,.pythonstartup,.pythonrc,*.ptl,*.pyi setf python
|
||||
|
||||
" Radiance
|
||||
au BufNewFile,BufRead *.rad,*.mat setf radiance
|
||||
@ -1414,8 +1414,8 @@ au BufNewFile,BufRead *.sdl,*.pr setf sdl
|
||||
" sed
|
||||
au BufNewFile,BufRead *.sed setf sed
|
||||
|
||||
" Sieve (RFC 3028)
|
||||
au BufNewFile,BufRead *.siv setf sieve
|
||||
" Sieve (RFC 3028, 5228)
|
||||
au BufNewFile,BufRead *.siv,*.sieve setf sieve
|
||||
|
||||
" Sendmail
|
||||
au BufNewFile,BufRead sendmail.cf setf sm
|
||||
@ -1893,8 +1893,11 @@ au BufNewFile,BufRead *.yy,*.yxx,*.y++ setf yacc
|
||||
" Yacc or racc
|
||||
au BufNewFile,BufRead *.y call dist#ft#FTy()
|
||||
|
||||
" Yaml or Raml
|
||||
au BufNewFile,BufRead *.yaml,*.yml,*.raml setf yaml
|
||||
" Yaml
|
||||
au BufNewFile,BufRead *.yaml,*.yml setf yaml
|
||||
|
||||
" Raml
|
||||
au BufNewFile,BufRead *.raml setf raml
|
||||
|
||||
" yum conf (close enough to dosini)
|
||||
au BufNewFile,BufRead */etc/yum.conf setf dosini
|
||||
@ -2107,7 +2110,7 @@ au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh')
|
||||
au BufNewFile,BufRead *.text,README setf text
|
||||
|
||||
" Help files match *.txt but should have a last line that is a modeline.
|
||||
au BufNewFile,BufRead *.txt
|
||||
au BufNewFile,BufRead *.txt
|
||||
\ if getline('$') !~ 'vim:.*ft=help'
|
||||
\| setf text
|
||||
\| endif
|
||||
|
19
runtime/ftplugin/cfg.vim
Normal file
19
runtime/ftplugin/cfg.vim
Normal file
@ -0,0 +1,19 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Configuration File
|
||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||
" Latest Revision: 2018-12-24
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let b:undo_ftplugin = "setl cms< fo<"
|
||||
|
||||
setlocal commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Vim help file
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2008-07-09
|
||||
" Latest Revision: 2018-12-29
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@ -11,9 +11,9 @@ let b:did_ftplugin = 1
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let b:undo_ftplugin = "setl fo< tw< cole< cocu<"
|
||||
let b:undo_ftplugin = "setl fo< tw< cole< cocu< keywordprg<"
|
||||
|
||||
setlocal formatoptions+=tcroql textwidth=78
|
||||
setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help
|
||||
if has("conceal")
|
||||
setlocal cole=2 cocu=nc
|
||||
endif
|
||||
|
@ -1,16 +1,16 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Logcheck
|
||||
" Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
|
||||
" Last Change: 2012 Jan 15
|
||||
" Maintainer: Debian Vim Maintainers
|
||||
" Last Change: 2018 Dec 27
|
||||
" License: Vim License
|
||||
" URL: http://hg.debian.org/hg/pkg-vim/vim/file/unstable/runtime/ftplugin/logcheck.vim
|
||||
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/ftplugin/logcheck.vim
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let b:undo_ftplugin = "setl fo<"
|
||||
let b:undo_ftplugin = 'setl fo<'
|
||||
|
||||
" Do not hard-wrap non-comment lines since each line is a self-contained
|
||||
" regular expression
|
||||
|
@ -3,7 +3,7 @@
|
||||
" Maintainer: Marshall Ward <marshall.ward@gmail.com>
|
||||
" Original Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Website: https://github.com/marshallward/vim-restructuredtext
|
||||
" Latest Revision: 2018-01-07
|
||||
" Latest Revision: 2018-12-29
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@ -13,6 +13,11 @@ let b:did_ftplugin = 1
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
"Disable folding
|
||||
if !exists('g:rst_fold_enabled')
|
||||
let g:rst_fold_enabled = 0
|
||||
endif
|
||||
|
||||
let b:undo_ftplugin = "setl com< cms< et< fo<"
|
||||
|
||||
setlocal comments=fb:.. commentstring=..\ %s expandtab
|
||||
|
@ -67,10 +67,10 @@ if !exists("no_plugin_maps") && !exists("no_vim_maps")
|
||||
vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR>
|
||||
nnoremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR>
|
||||
vnoremap <silent><buffer> ]] m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "W")<CR>
|
||||
nnoremap <silent><buffer> [] m':call search('^\s*endf*\%[unction]\>', "bW")<CR>
|
||||
vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf*\%[unction]\>', "bW")<CR>
|
||||
nnoremap <silent><buffer> ][ m':call search('^\s*endf*\%[unction]\>', "W")<CR>
|
||||
vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf*\%[unction]\>', "W")<CR>
|
||||
nnoremap <silent><buffer> [] m':call search('^\s*endf\%[unction]\>', "bW")<CR>
|
||||
vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf\%[unction]\>', "bW")<CR>
|
||||
nnoremap <silent><buffer> ][ m':call search('^\s*endf\%[unction]\>', "W")<CR>
|
||||
vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf\%[unction]\>', "W")<CR>
|
||||
|
||||
" Move around comments
|
||||
nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR>
|
||||
@ -87,8 +87,7 @@ if exists("loaded_matchit")
|
||||
\ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' .
|
||||
\ '\<if\>:\<el\%[seif]\>:\<en\%[dif]\>,' .
|
||||
\ '\<try\>:\<cat\%[ch]\>:\<fina\%[lly]\>:\<endt\%[ry]\>,' .
|
||||
\ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,' .
|
||||
\ '(:)'
|
||||
\ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,'
|
||||
" Ignore syntax region commands and settings, any 'en*' would clobber
|
||||
" if-endif.
|
||||
" - set spl=de,en
|
||||
|
@ -1,8 +1,8 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: xml
|
||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||
" Last Changed: May 08th, 2018
|
||||
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
|
||||
" Language: xml
|
||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||
" Last Changed: Dec 07th, 2018
|
||||
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
|
||||
" Previous Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
|
||||
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
|
||||
|
||||
|
14
runtime/indent/Makefile
Normal file
14
runtime/indent/Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
# Portable Makefile for running indent tests.
|
||||
|
||||
VIM = vim
|
||||
VIMRUNTIME = ..
|
||||
|
||||
# Run the tests that didn't run yet or failed previously.
|
||||
# If a test succeeds a testdir/*.out file will be written.
|
||||
# If a test fails a testdir/*.fail file will be written.
|
||||
test:
|
||||
VIMRUNTIME=$(VIMRUNTIME) $(VIM) --clean --not-a-term -u testdir/runtest.vim
|
||||
|
||||
|
||||
clean:
|
||||
VIMRUNTIME=$(VIMRUNTIME) $(VIM) --clean --not-a-term -u testdir/cleantest.vim
|
@ -43,3 +43,5 @@ running. Add a test if the function exists and use ":finish", like this:
|
||||
The user may have several options set unlike you, try to write the file such
|
||||
that it works with any option settings. Also be aware of certain features not
|
||||
being compiled in.
|
||||
|
||||
To test the indent file, see testdir/README.txt.
|
||||
|
@ -1,15 +1,73 @@
|
||||
" Vim indent file
|
||||
" Language: C#
|
||||
" Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: Fri, 15 Mar 2002 07:53:54 CET
|
||||
" Language: C#
|
||||
" Maintainer: Nick Jensen <nickspoon@gmail.com>
|
||||
" Former Maintainers: Aquila Deus
|
||||
" Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: 2018-11-21
|
||||
" Filenames: *.cs
|
||||
" License: Vim (see :h license)
|
||||
" Repository: https://github.com/nickspoons/vim-cs
|
||||
"
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
|
||||
" C# is like indenting C
|
||||
setlocal cindent
|
||||
let s:save_cpo = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
let b:undo_indent = "setl cin<"
|
||||
|
||||
setlocal indentexpr=GetCSIndent(v:lnum)
|
||||
|
||||
function! s:IsCompilerDirective(line)
|
||||
return a:line =~? '^\s*#'
|
||||
endf
|
||||
|
||||
function! s:IsAttributeLine(line)
|
||||
return a:line =~? '^\s*\[[A-Za-z]' && a:line =~? '\]$'
|
||||
endf
|
||||
|
||||
function! s:FindPreviousNonCompilerDirectiveLine(start_lnum)
|
||||
for delta in range(0, a:start_lnum)
|
||||
let lnum = a:start_lnum - delta
|
||||
let line = getline(lnum)
|
||||
let is_directive = s:IsCompilerDirective(line)
|
||||
if !is_directive
|
||||
return lnum
|
||||
endif
|
||||
endfor
|
||||
return 0
|
||||
endf
|
||||
|
||||
function! GetCSIndent(lnum) abort
|
||||
" Hit the start of the file, use zero indent.
|
||||
if a:lnum == 0
|
||||
return 0
|
||||
endif
|
||||
|
||||
let this_line = getline(a:lnum)
|
||||
|
||||
" Compiler directives use zero indent if so configured.
|
||||
let is_first_col_macro = s:IsCompilerDirective(this_line) && stridx(&l:cinkeys, '0#') >= 0
|
||||
if is_first_col_macro
|
||||
return cindent(a:lnum)
|
||||
endif
|
||||
|
||||
let lnum = s:FindPreviousNonCompilerDirectiveLine(a:lnum - 1)
|
||||
let previous_code_line = getline(lnum)
|
||||
if s:IsAttributeLine(previous_code_line)
|
||||
let ind = indent(lnum)
|
||||
return ind
|
||||
else
|
||||
return cindent(a:lnum)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
let b:undo_indent = 'setlocal indentexpr<'
|
||||
|
||||
let &cpoptions = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim:et:sw=2:sts=2
|
||||
|
@ -368,7 +368,7 @@ function FalconGetIndent(...)
|
||||
return indent('.')
|
||||
endif
|
||||
else
|
||||
call cursor(clnum, vcol)
|
||||
call cursor(clnum, 0) " FIXME: column was vcol
|
||||
end
|
||||
endif
|
||||
|
||||
|
@ -216,8 +216,9 @@ endfunc "}}}
|
||||
" Add known tag pairs.
|
||||
" Self-closing tags and tags that are sometimes {{{
|
||||
" self-closing (e.g., <p>) are not here (when encountering </p> we can find
|
||||
" the matching <p>, but not the other way around). Known self-closing tags:
|
||||
" 'p', 'img', 'source'.
|
||||
" the matching <p>, but not the other way around).
|
||||
" Known self-closing tags: " 'p', 'img', 'source', 'area', 'keygen', 'track',
|
||||
" 'wbr'.
|
||||
" Old HTML tags:
|
||||
call s:AddITags(s:indent_tags, [
|
||||
\ 'a', 'abbr', 'acronym', 'address', 'b', 'bdo', 'big',
|
||||
@ -232,11 +233,11 @@ call s:AddITags(s:indent_tags, [
|
||||
|
||||
" New HTML5 elements:
|
||||
call s:AddITags(s:indent_tags, [
|
||||
\ 'area', 'article', 'aside', 'audio', 'bdi', 'canvas',
|
||||
\ 'command', 'data', 'datalist', 'details', 'embed', 'figcaption',
|
||||
\ 'figure', 'footer', 'header', 'keygen', 'main', 'mark', 'meter',
|
||||
\ 'nav', 'output', 'picture', 'progress', 'rp', 'rt', 'ruby', 'section',
|
||||
\ 'summary', 'svg', 'time', 'track', 'video', 'wbr'])
|
||||
\ 'article', 'aside', 'audio', 'bdi', 'canvas', 'command', 'data',
|
||||
\ 'datalist', 'details', 'dialog', 'embed', 'figcaption', 'figure',
|
||||
\ 'footer', 'header', 'hgroup', 'main', 'mark', 'meter', 'nav', 'output',
|
||||
\ 'picture', 'progress', 'rp', 'rt', 'ruby', 'section', 'summary',
|
||||
\ 'svg', 'time', 'video'])
|
||||
|
||||
" Tags added for web components:
|
||||
call s:AddITags(s:indent_tags, [
|
||||
@ -625,7 +626,7 @@ func! s:CSSIndent()
|
||||
return eval(b:hi_css1indent)
|
||||
endif
|
||||
|
||||
" If the current line starts with "}" align with it's match.
|
||||
" If the current line starts with "}" align with its match.
|
||||
if curtext =~ '^\s*}'
|
||||
call cursor(v:lnum, 1)
|
||||
try
|
||||
@ -934,7 +935,7 @@ func! s:InsideTag(foundHtmlString)
|
||||
let idx = match(text, '<' . s:tagname . '\s\+\zs\w')
|
||||
endif
|
||||
if idx == -1
|
||||
" after just <tag indent one level more
|
||||
" after just "<tag" indent one level more
|
||||
let idx = match(text, '<' . s:tagname . '$')
|
||||
if idx >= 0
|
||||
call cursor(lnum, idx)
|
||||
|
@ -1,74 +1,121 @@
|
||||
" Matlab indent file
|
||||
" Language: Matlab
|
||||
" Maintainer: Christophe Poucet <christophe.poucet@pandora.be>
|
||||
" Last Change: 6 January, 2001
|
||||
" Vim indent file
|
||||
" Language: MATLAB
|
||||
" Maintainer: Axel Forsman <axelsfor@gmail.com>
|
||||
" Previous maintainer: Christophe Poucet <christophe.poucet@pandora.be>
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
" Only load if no other indent file is loaded
|
||||
if exists('b:did_indent') | finish | endif
|
||||
let b:did_indent = 1
|
||||
|
||||
" Some preliminary setting
|
||||
setlocal indentkeys=!,o,O=end,=case,=else,=elseif,=otherwise,=catch
|
||||
setlocal indentexpr=GetMatlabIndent()
|
||||
setlocal indentkeys=!,o,O,e,0=end,0=elseif,0=case,0=otherwise,0=catch,0=function,0=elsei
|
||||
|
||||
" The value of the Function indenting format in
|
||||
" MATLAB Editor/Debugger Language Preferences.
|
||||
" The possible values are 0 for Classic, 1 for Indent nested functions
|
||||
" and 2 for Indent all functions (default).
|
||||
let b:MATLAB_function_indent = get(g:, 'MATLAB_function_indent', 2)
|
||||
" The previous value of b:changedtick
|
||||
let b:MATLAB_lasttick = -1
|
||||
" The previously indented line
|
||||
let b:MATLAB_lastline = -1
|
||||
" Whether the line above was a line continuation
|
||||
let b:MATLAB_waslc = 0
|
||||
let b:MATLAB_bracketlevel = 0
|
||||
|
||||
setlocal indentexpr=GetMatlabIndent(v:lnum)
|
||||
" Only define the function once
|
||||
if exists("*GetMatlabIndent") | finish | endif
|
||||
|
||||
" Only define the function once.
|
||||
if exists("*GetMatlabIndent")
|
||||
finish
|
||||
endif
|
||||
let s:keepcpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function GetMatlabIndent(lnum)
|
||||
" Give up if this line is explicitly joined.
|
||||
if getline(a:lnum - 1) =~ '\\$'
|
||||
return -1
|
||||
endif
|
||||
let s:end = '\<end\>\%([^(]*)\)\@!' " Array indexing heuristic
|
||||
let s:open_pat = 'for\|if\|parfor\|spmd\|switch\|try\|while\|classdef\|properties\|methods\|events\|enumeration'
|
||||
let s:dedent_pat = '\C^\s*\zs\<\%(end\|else\|elseif\|catch\|\(case\|otherwise\|function\)\)\>'
|
||||
let s:start_pat = '\C\<\%(function\|' . s:open_pat . '\)\>'
|
||||
let s:bracket_pair_pat = '\(\[\|{\)\|\(\]\|}\)'
|
||||
let s:zflag = has('patch-7.4.984') ? 'z' : ''
|
||||
|
||||
" Search backwards for the first non-empty line.
|
||||
let plnum = a:lnum - 1
|
||||
while plnum > 0 && getline(plnum) =~ '^\s*$'
|
||||
let plnum = plnum - 1
|
||||
endwhile
|
||||
|
||||
if plnum == 0
|
||||
" This is the first non-empty line, use zero indent.
|
||||
return 0
|
||||
endif
|
||||
|
||||
let curind = indent(plnum)
|
||||
|
||||
" If the current line is a stop-block statement...
|
||||
if getline(v:lnum) =~ '^\s*\(end\|else\|elseif\|case\|otherwise\|catch\)\>'
|
||||
" See if this line does not follow the line right after an openblock
|
||||
if getline(plnum) =~ '^\s*\(for\|if\|else\|elseif\|case\|while\|switch\|try\|otherwise\|catch\)\>'
|
||||
" See if the user has already dedented
|
||||
elseif indent(v:lnum) > curind - shiftwidth()
|
||||
" If not, recommend one dedent
|
||||
let curind = curind - shiftwidth()
|
||||
else
|
||||
" Otherwise, trust the user
|
||||
return -1
|
||||
endif
|
||||
" endif
|
||||
|
||||
" If the previous line opened a block
|
||||
elseif getline(plnum) =~ '^\s*\(for\|if\|else\|elseif\|case\|while\|switch\|try\|otherwise\|catch\)\>'
|
||||
" See if the user has already indented
|
||||
if indent(v:lnum) < curind + shiftwidth()
|
||||
"If not, recommend indent
|
||||
let curind = curind + shiftwidth()
|
||||
else
|
||||
" Otherwise, trust the user
|
||||
return -1
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
|
||||
" If we got to here, it means that the user takes the standardversion, so we return it
|
||||
return curind
|
||||
" Returns whether a comment or string envelops the specified column.
|
||||
function! s:IsCommentOrString(lnum, col)
|
||||
return synIDattr(synID(a:lnum, a:col, 1), "name") =~# 'matlabComment\|matlabMultilineComment\|matlabString'
|
||||
endfunction
|
||||
|
||||
" vim:sw=2
|
||||
" Returns whether the specified line continues on the next line.
|
||||
function! s:IsLineContinuation(lnum)
|
||||
let l = getline(a:lnum) | let c = -3
|
||||
while 1
|
||||
let c = match(l, '\.\{3}', c + 3)
|
||||
if c == -1 | return 0
|
||||
elseif !s:IsCommentOrString(a:lnum, c) | return 1 | endif
|
||||
endwhile
|
||||
endfunction
|
||||
|
||||
function! s:SubmatchCount(lnum, pattern, ...)
|
||||
let endcol = a:0 >= 1 ? a:1 : 1 / 0 | let x = [0, 0, 0, 0]
|
||||
call cursor(a:lnum, 1)
|
||||
while 1
|
||||
let [lnum, c, submatch] = searchpos(a:pattern, 'cpe' . s:zflag, a:lnum)
|
||||
if !submatch || c >= endcol | break | endif
|
||||
if !s:IsCommentOrString(lnum, c) | let x[submatch - 2] += 1 | endif
|
||||
if cursor(0, c + 1) == -1 || col('.') == c | break | endif
|
||||
endwhile
|
||||
return x
|
||||
endfunction
|
||||
|
||||
function! s:GetOpenCloseCount(lnum, pattern, ...)
|
||||
let counts = call('s:SubmatchCount', [a:lnum, a:pattern] + a:000)
|
||||
return counts[0] - counts[1]
|
||||
endfunction
|
||||
|
||||
function! GetMatlabIndent()
|
||||
let prevlnum = prevnonblank(v:lnum - 1)
|
||||
|
||||
if b:MATLAB_lasttick != b:changedtick || b:MATLAB_lastline != prevlnum
|
||||
" Recalculate bracket count (only have to check same block and line above)
|
||||
let b:MATLAB_bracketlevel = 0
|
||||
let previndent = indent(prevlnum) | let l = prevlnum
|
||||
while 1
|
||||
let l = prevnonblank(l - 1) | let indent = indent(l)
|
||||
if l <= 0 || previndent < indent | break | endif
|
||||
let b:MATLAB_bracketlevel += s:GetOpenCloseCount(l, s:bracket_pair_pat)
|
||||
if previndent != indent | break | endif
|
||||
endwhile
|
||||
|
||||
let b:MATLAB_waslc = s:IsLineContinuation(prevlnum - 1)
|
||||
endif
|
||||
" If line above was blank it can impossibly have been a LC
|
||||
let above_lc = b:MATLAB_lasttick == b:changedtick && prevlnum != v:lnum - 1 && b:MATLAB_lastline == prevlnum ? 0 : s:IsLineContinuation(v:lnum - 1)
|
||||
|
||||
let pair_pat = '\C\<\(' . s:open_pat . '\|'
|
||||
\ . (b:MATLAB_function_indent == 1 ? '^\@<!' : '')
|
||||
\ . (b:MATLAB_function_indent >= 1 ? 'function\|' : '')
|
||||
\ . '\|\%(^\s*\)\@<=\%(else\|elseif\|case\|otherwise\|catch\)\)\>'
|
||||
\ . '\|\S\s*\zs\(' . s:end . '\)'
|
||||
let [open, close, b_open, b_close] = prevlnum ? s:SubmatchCount(prevlnum,
|
||||
\ pair_pat . '\|' . s:bracket_pair_pat) : [0, 0, 0, 0]
|
||||
let curbracketlevel = b:MATLAB_bracketlevel + b_open - b_close
|
||||
|
||||
call cursor(v:lnum, 1)
|
||||
let submatch = search(s:dedent_pat, 'cp' . s:zflag, v:lnum)
|
||||
if submatch && !s:IsCommentOrString(v:lnum, col('.'))
|
||||
" Align end, et cetera with start of block
|
||||
let [lnum, col] = searchpairpos(s:start_pat, '', '\C' . s:end, 'bW', 's:IsCommentOrString(line("."), col("."))')
|
||||
let result = lnum ? indent(lnum) + shiftwidth() * (s:GetOpenCloseCount(lnum, pair_pat, col) + submatch == 2) : 0
|
||||
else
|
||||
" Count how many blocks the previous line opens/closes
|
||||
" Line continuations/brackets indent once per statement
|
||||
let result = indent(prevlnum) + shiftwidth() * (open - close
|
||||
\ + (b:MATLAB_bracketlevel ? -!curbracketlevel : !!curbracketlevel)
|
||||
\ + (curbracketlevel <= 0) * (above_lc - b:MATLAB_waslc))
|
||||
endif
|
||||
|
||||
let b:MATLAB_waslc = above_lc
|
||||
let b:MATLAB_bracketlevel = curbracketlevel
|
||||
let b:MATLAB_lasttick = b:changedtick
|
||||
let b:MATLAB_lastline = v:lnum
|
||||
return result
|
||||
endfunction
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
@ -2,6 +2,7 @@
|
||||
" Maintainer : Gergely Kontra <kgergely@mcl.hu>
|
||||
" Revised on : 2002.02.18. 23:34:05
|
||||
" Language : Prolog
|
||||
" Last change by: Takuya Fujiwara, 2018 Sep 23
|
||||
|
||||
" TODO:
|
||||
" checking with respect to syntax highlighting
|
||||
@ -37,10 +38,18 @@ function! GetPrologIndent()
|
||||
let ind = indent(pnum)
|
||||
" Previous line was comment -> use previous line's indent
|
||||
if pline =~ '^\s*%'
|
||||
retu ind
|
||||
return ind
|
||||
endif
|
||||
" Previous line was the start of block comment -> +1 after '/*' comment
|
||||
if pline =~ '^\s*/\*'
|
||||
return ind + 1
|
||||
endif
|
||||
" Previous line was the end of block comment -> -1 after '*/' comment
|
||||
if pline =~ '^\s*\*/'
|
||||
return ind - 1
|
||||
endif
|
||||
" Check for clause head on previous line
|
||||
if pline =~ ':-\s*\(%.*\)\?$'
|
||||
if pline =~ '\%(:-\|-->\)\s*\(%.*\)\?$'
|
||||
let ind = ind + shiftwidth()
|
||||
" Check for end of clause on previous line
|
||||
elseif pline =~ '\.\s*\(%.*\)\?$'
|
||||
|
@ -53,6 +53,11 @@ function GetPythonIndent(lnum)
|
||||
return 0
|
||||
endif
|
||||
|
||||
" searchpair() can be slow sometimes, limit the time to 100 msec or what is
|
||||
" put in g:pyindent_searchpair_timeout
|
||||
let searchpair_stopline = 0
|
||||
let searchpair_timeout = get(g:, 'pyindent_searchpair_timeout', 150)
|
||||
|
||||
" If the previous line is inside parenthesis, use the indent of the starting
|
||||
" line.
|
||||
" Trick: use the non-existing "dummy" variable to break out of the loop when
|
||||
@ -61,7 +66,8 @@ function GetPythonIndent(lnum)
|
||||
let parlnum = searchpair('(\|{\|\[', '', ')\|}\|\]', 'nbW',
|
||||
\ "line('.') < " . (plnum - s:maxoff) . " ? dummy :"
|
||||
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
|
||||
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'")
|
||||
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'",
|
||||
\ searchpair_stopline, searchpair_timeout)
|
||||
if parlnum > 0
|
||||
let plindent = indent(parlnum)
|
||||
let plnumstart = parlnum
|
||||
@ -80,14 +86,16 @@ function GetPythonIndent(lnum)
|
||||
let p = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
|
||||
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
|
||||
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
|
||||
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'")
|
||||
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'",
|
||||
\ searchpair_stopline, searchpair_timeout)
|
||||
if p > 0
|
||||
if p == plnum
|
||||
" When the start is inside parenthesis, only indent one 'shiftwidth'.
|
||||
let pp = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
|
||||
\ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
|
||||
\ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
|
||||
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'")
|
||||
\ . " =~ '\\(Comment\\|Todo\\|String\\)$'",
|
||||
\ searchpair_stopline, searchpair_timeout)
|
||||
if pp > 0
|
||||
return indent(plnum) + (exists("g:pyindent_nested_paren") ? eval(g:pyindent_nested_paren) : shiftwidth())
|
||||
endif
|
||||
|
12
runtime/indent/raml.vim
Normal file
12
runtime/indent/raml.vim
Normal file
@ -0,0 +1,12 @@
|
||||
" Vim indent file
|
||||
" Language: RAML (RESTful API Modeling Language)
|
||||
" Maintainer: mucheng <leisurelicht@gmail.com>
|
||||
" License: VIM LICENSE
|
||||
" Latest Revision: 2018-11-03
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Same as yaml indenting.
|
||||
runtime! indent/yaml.vim
|
@ -1,7 +1,8 @@
|
||||
" Vim indent file
|
||||
" Language: Tcl
|
||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2006-12-20
|
||||
" Language: Tcl
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Update: Chris Heithoff <chrisheithoff@gmail.com>
|
||||
" Latest Revision: 2018-12-05
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@ -28,6 +29,15 @@ function s:prevnonblanknoncomment(lnum)
|
||||
return lnum
|
||||
endfunction
|
||||
|
||||
function s:ends_with_backslash(lnum)
|
||||
let line = getline(a:lnum)
|
||||
if line =~ '\\\s*$'
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function s:count_braces(lnum, count_open)
|
||||
let n_open = 0
|
||||
let n_close = 0
|
||||
@ -53,23 +63,39 @@ endfunction
|
||||
|
||||
function GetTclIndent()
|
||||
let line = getline(v:lnum)
|
||||
if line =~ '^\s*\*'
|
||||
return cindent(v:lnum)
|
||||
elseif line =~ '^\s*}'
|
||||
return indent(v:lnum) - shiftwidth()
|
||||
endif
|
||||
|
||||
" Get the line number of the previous non-blank or non-comment line.
|
||||
let pnum = s:prevnonblanknoncomment(v:lnum - 1)
|
||||
if pnum == 0
|
||||
return 0
|
||||
endif
|
||||
|
||||
let ind = indent(pnum) + s:count_braces(pnum, 1) * shiftwidth()
|
||||
" ..and the previous line before the previous line.
|
||||
let pnum2 = s:prevnonblanknoncomment(pnum-1)
|
||||
|
||||
let pline = getline(pnum)
|
||||
if pline =~ '}\s*$'
|
||||
let ind -= (s:count_braces(pnum, 0) - (pline =~ '^\s*}' ? 1 : 0)) * shiftwidth()
|
||||
" Default indentation is to preserve the previous indentation.
|
||||
let ind = indent(pnum)
|
||||
|
||||
" ...but if previous line introduces an open brace, then increase current line's indentation
|
||||
if s:count_braces(pnum, 1) > 0
|
||||
let ind += shiftwidth()
|
||||
else
|
||||
" Look for backslash line continuation on the previous two lines.
|
||||
let slash1 = s:ends_with_backslash(pnum)
|
||||
let slash2 = s:ends_with_backslash(pnum2)
|
||||
if slash1 && !slash2
|
||||
" If the previous line begins a line continuation.
|
||||
let ind += shiftwidth()
|
||||
elseif !slash1 && slash2
|
||||
" If two lines ago was the end of a line continuation group of lines.
|
||||
let ind -= shiftwidth()
|
||||
endif
|
||||
endif
|
||||
|
||||
" If the current line begins with a closed brace, then decrease the indentation by one.
|
||||
if line =~ '^\s*}'
|
||||
let ind -= shiftwidth()
|
||||
endif
|
||||
|
||||
return ind
|
||||
endfunction
|
||||
|
97
runtime/indent/testdir/README.txt
Normal file
97
runtime/indent/testdir/README.txt
Normal file
@ -0,0 +1,97 @@
|
||||
TESTING INDENT SCRIPTS
|
||||
|
||||
We'll use FILETYPE for the filetype name here.
|
||||
|
||||
|
||||
FORMAT OF THE FILETYPE.IN FILE
|
||||
|
||||
First of all, create a FILETYPE.in file. It should contain:
|
||||
|
||||
- A modeline setting the 'filetype' and any other option values.
|
||||
This must work like a comment for FILETYPE. E.g. for vim:
|
||||
" vim: set ft=vim sw=4 :
|
||||
|
||||
- At least one block of lines to indent, prefixed with START_INDENT and
|
||||
followed by END_INDENT. These lines must also look like a comment for your
|
||||
FILETYPE. You would normally leave out all indent, so that the effect of
|
||||
the indent command results in adding indent. Example:
|
||||
|
||||
" START_INDENT
|
||||
func Some()
|
||||
let x = 1
|
||||
endfunc
|
||||
" END_INDENT
|
||||
|
||||
If you just want to test normal indenting with default options, you can make
|
||||
this a large number of lines. Just add all kinds of language constructs,
|
||||
nested statements, etc. with valid syntax.
|
||||
|
||||
- Optionally, add lines with INDENT_EXE after START_INDENT, followed by a Vim
|
||||
command. This will be executed before indenting the lines. Example:
|
||||
|
||||
" START_INDENT
|
||||
" INDENT_EXE let g:vim_indent_cont = 6
|
||||
let cmd =
|
||||
\ 'some '
|
||||
\ 'string'
|
||||
" END_INDENT
|
||||
|
||||
Note that the command is not undone, you may need to reverse the effect for
|
||||
the next block of lines.
|
||||
|
||||
- Alternatively to indenting all the lines between START_INDENT and
|
||||
END_INDENT, use an INDENT_AT line, which specifies a pattern to find the
|
||||
line to indent. Example:
|
||||
|
||||
" START_INDENT
|
||||
" INDENT_AT this-line
|
||||
func Some()
|
||||
let f = x " this-line
|
||||
endfunc
|
||||
" END_INDENT
|
||||
|
||||
Alternatively you can use INDENT_NEXT to indent the line below the matching
|
||||
pattern. Keep in mind that quite often it will indent relative to the
|
||||
matching line:
|
||||
|
||||
" START_INDENT
|
||||
" INDENT_NEXT next-line
|
||||
func Some()
|
||||
" next-line
|
||||
let f = x
|
||||
endfunc
|
||||
" END_INDENT
|
||||
|
||||
Or use INDENT_PREV to indent the line above the matching pattern:
|
||||
|
||||
" START_INDENT
|
||||
" INDENT_PREV prev-line
|
||||
func Some()
|
||||
let f = x
|
||||
" prev-line
|
||||
endfunc
|
||||
" END_INDENT
|
||||
|
||||
It's best to keep the whole file valid for FILETYPE, so that syntax
|
||||
highlighting works normally, and any indenting that depends on the syntax
|
||||
highlighting also works.
|
||||
|
||||
|
||||
RUNNING THE TEST
|
||||
|
||||
Before running the test, create a FILETYPE.ok file. You can leave it empty at
|
||||
first.
|
||||
|
||||
Now run "make test". After Vim has done the indenting you will see a
|
||||
FILETYPE.fail file. This contains the actual result of indenting, and it's
|
||||
different from the FILETYPE.ok file.
|
||||
|
||||
Check the contents of the FILETYPE.fail file. If it is perfectly OK, then
|
||||
rename it to overwrite the FILETYPE.ok file. If you now run "make test" again,
|
||||
the test will pass and create a FILETYPE.out file, which is identical to the
|
||||
FILETYPE.ok file. The FILETYPE.fail file will be deleted.
|
||||
|
||||
If you try to run "make test" again you will notice that nothing happens,
|
||||
because the FILETYPE.out file already exists. Delete it, or do "make clean",
|
||||
so that the text runs again. If you edit the FILETYPE.in file, so that it's
|
||||
newer than the FILETYPE.out file, the test will also run.
|
11
runtime/indent/testdir/cleantest.vim
Normal file
11
runtime/indent/testdir/cleantest.vim
Normal file
@ -0,0 +1,11 @@
|
||||
" Only do this with the +eval feature
|
||||
if 1
|
||||
|
||||
" Deletes all the test output files: *.fail and *.out
|
||||
for fname in glob('testdir/*.out', 1, 1) + glob('testdir/*.fail', 1, 1)
|
||||
call delete(fname)
|
||||
endfor
|
||||
|
||||
endif
|
||||
|
||||
quit
|
26
runtime/indent/testdir/html.in
Normal file
26
runtime/indent/testdir/html.in
Normal file
@ -0,0 +1,26 @@
|
||||
" vim: set ft=html sw=4 :
|
||||
|
||||
|
||||
" START_INDENT
|
||||
<div>
|
||||
<div>
|
||||
text
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="foo bar">
|
||||
text
|
||||
</div>
|
||||
|
||||
<div class="foo bar"
|
||||
data="something">
|
||||
text
|
||||
</div>
|
||||
|
||||
<div class="foo
|
||||
bar">
|
||||
text
|
||||
</div>
|
||||
|
||||
" END_INDENT
|
26
runtime/indent/testdir/html.ok
Normal file
26
runtime/indent/testdir/html.ok
Normal file
@ -0,0 +1,26 @@
|
||||
" vim: set ft=html sw=4 :
|
||||
|
||||
|
||||
" START_INDENT
|
||||
<div>
|
||||
<div>
|
||||
text
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="foo bar">
|
||||
text
|
||||
</div>
|
||||
|
||||
<div class="foo bar"
|
||||
data="something">
|
||||
text
|
||||
</div>
|
||||
|
||||
<div class="foo
|
||||
bar">
|
||||
text
|
||||
</div>
|
||||
|
||||
" END_INDENT
|
80
runtime/indent/testdir/matlab.in
Normal file
80
runtime/indent/testdir/matlab.in
Normal file
@ -0,0 +1,80 @@
|
||||
% vim: set ft=matlab sw=4 :
|
||||
|
||||
% START_INDENT
|
||||
if true
|
||||
disp foo
|
||||
elseif false
|
||||
disp bar
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
try
|
||||
statements
|
||||
catch exception
|
||||
statements
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true, ...
|
||||
if true
|
||||
disp hello
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
switch a
|
||||
case expr
|
||||
if true, foo; end
|
||||
disp hello
|
||||
otherwise
|
||||
disp bar
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true
|
||||
A(1:end - 1)
|
||||
disp foo
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
A = [{
|
||||
}
|
||||
] ...
|
||||
disp foo
|
||||
disp bar
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 0
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 1
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 2
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
80
runtime/indent/testdir/matlab.ok
Normal file
80
runtime/indent/testdir/matlab.ok
Normal file
@ -0,0 +1,80 @@
|
||||
% vim: set ft=matlab sw=4 :
|
||||
|
||||
% START_INDENT
|
||||
if true
|
||||
disp foo
|
||||
elseif false
|
||||
disp bar
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
try
|
||||
statements
|
||||
catch exception
|
||||
statements
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true, ...
|
||||
if true
|
||||
disp hello
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
switch a
|
||||
case expr
|
||||
if true, foo; end
|
||||
disp hello
|
||||
otherwise
|
||||
disp bar
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true
|
||||
A(1:end - 1)
|
||||
disp foo
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
A = [{
|
||||
}
|
||||
] ...
|
||||
disp foo
|
||||
disp bar
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 0
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 1
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 2
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
126
runtime/indent/testdir/runtest.vim
Normal file
126
runtime/indent/testdir/runtest.vim
Normal file
@ -0,0 +1,126 @@
|
||||
" Runs all the indent tests for which there is no .out file.
|
||||
"
|
||||
" Current directory must be runtime/indent.
|
||||
|
||||
" Only do this with the +eval feature
|
||||
if 1
|
||||
|
||||
set nocp
|
||||
filetype indent on
|
||||
set nowrapscan
|
||||
set report=9999
|
||||
|
||||
au! SwapExists * call HandleSwapExists()
|
||||
func HandleSwapExists()
|
||||
" Ignore finding a swap file for the test input and output, the user might be
|
||||
" editing them and that's OK.
|
||||
if expand('<afile>') =~ '.*\.\(in\|out\|fail\|ok\)'
|
||||
let v:swapchoice = 'e'
|
||||
endif
|
||||
endfunc
|
||||
|
||||
for fname in glob('testdir/*.in', 1, 1)
|
||||
let root = substitute(fname, '\.in', '', '')
|
||||
|
||||
" Execute the test if the .out file does not exist of when the .in file is
|
||||
" newer.
|
||||
let in_time = getftime(fname)
|
||||
let out_time = getftime(root . '.out')
|
||||
if out_time < 0 || in_time > out_time
|
||||
call delete(root . '.fail')
|
||||
call delete(root . '.out')
|
||||
|
||||
set sw& ts& filetype=
|
||||
exe 'split ' . fname
|
||||
|
||||
let did_some = 0
|
||||
let failed = 0
|
||||
let end = 1
|
||||
while 1
|
||||
" Indent all the lines between "START_INDENT" and "END_INDENT"
|
||||
exe end
|
||||
let start = search('\<START_INDENT\>')
|
||||
let end = search('\<END_INDENT\>')
|
||||
if start <= 0 || end <= 0 || end <= start
|
||||
if did_some == 0
|
||||
call append(0, 'ERROR: START_INDENT and/or END_INDENT not found')
|
||||
let failed = 1
|
||||
endif
|
||||
break
|
||||
else
|
||||
let did_some = 1
|
||||
|
||||
" Execute all commands marked with INDENT_EXE and find any pattern.
|
||||
let lnum = start
|
||||
let pattern = ''
|
||||
let at = ''
|
||||
while 1
|
||||
exe lnum + 1
|
||||
let lnum_exe = search('\<INDENT_EXE\>')
|
||||
exe lnum + 1
|
||||
let indent_at = search('\<INDENT_\(AT\|NEXT\|PREV\)\>')
|
||||
if lnum_exe > 0 && lnum_exe < end && (indent_at <= 0 || lnum_exe < indent_at)
|
||||
exe substitute(getline(lnum_exe), '.*INDENT_EXE', '', '')
|
||||
let lnum = lnum_exe
|
||||
let start = lnum
|
||||
elseif indent_at > 0 && indent_at < end
|
||||
if pattern != ''
|
||||
call append(indent_at, 'ERROR: duplicate pattern')
|
||||
let failed = 1
|
||||
break
|
||||
endif
|
||||
let text = getline(indent_at)
|
||||
let pattern = substitute(text, '.*INDENT_\S*\s*', '', '')
|
||||
let at = substitute(text, '.*INDENT_\(\S*\).*', '\1', '')
|
||||
let lnum = indent_at
|
||||
let start = lnum
|
||||
else
|
||||
break
|
||||
endif
|
||||
endwhile
|
||||
|
||||
exe start + 1
|
||||
if pattern == ''
|
||||
exe 'normal =' . (end - 1) . 'G'
|
||||
else
|
||||
let lnum = search(pattern)
|
||||
if lnum <= 0
|
||||
call append(indent_at, 'ERROR: pattern not found: ' . pattern)
|
||||
let failed = 1
|
||||
break
|
||||
endif
|
||||
if at == 'AT'
|
||||
exe lnum
|
||||
elseif at == 'NEXT'
|
||||
exe lnum + 1
|
||||
else
|
||||
exe lnum - 1
|
||||
endif
|
||||
normal ==
|
||||
endif
|
||||
endif
|
||||
endwhile
|
||||
|
||||
if !failed
|
||||
" Check the resulting text equals the .ok file.
|
||||
if getline(1, '$') != readfile(root . '.ok')
|
||||
let failed = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
if failed
|
||||
exe 'write ' . root . '.fail'
|
||||
echoerr 'Test ' . fname . ' FAILED!'
|
||||
sleep 2
|
||||
else
|
||||
exe 'write ' . root . '.out'
|
||||
endif
|
||||
|
||||
quit! " close the indented file
|
||||
endif
|
||||
endfor
|
||||
|
||||
" Matching "if 1" at the start.
|
||||
endif
|
||||
|
||||
qall!
|
19
runtime/indent/testdir/tcl.in
Normal file
19
runtime/indent/testdir/tcl.in
Normal file
@ -0,0 +1,19 @@
|
||||
# vim: set filetype=tcl shiftwidth=4 tabstop=8 expandtab :
|
||||
|
||||
# START_INDENT
|
||||
proc abc {} {
|
||||
set a 5
|
||||
if {[some_cmd]==1} {
|
||||
foreach i [list {1 2 3}] {
|
||||
# Does this comment affect anything?
|
||||
puts $i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
command_with_a_long_time -arg1 "First" \
|
||||
-arg2 "Second" \
|
||||
-arg3 "Third"
|
||||
|
||||
puts "Move indent back after line continuation is complete"
|
||||
# END_INDENT
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user