Compare commits
432 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb861e293e | ||
|
|
c82dd86084 | ||
|
|
48af321a33 | ||
|
|
4fdb8bd054 | ||
|
|
5b157fe2ed | ||
|
|
673fc3e23f | ||
|
|
a9c0104947 | ||
|
|
e928366de5 | ||
|
|
975a880a13 | ||
|
|
adc17a5f9d | ||
|
|
d8df304c59 | ||
|
|
439c036ed0 | ||
|
|
11f1ffd182 | ||
|
|
9b7cce28d5 | ||
|
|
87fda407f8 | ||
|
|
fe712ced6e | ||
|
|
8f1dde5021 | ||
|
|
002bc79991 | ||
|
|
3fffa97159 | ||
|
|
07188fc5ef | ||
|
|
ea563cc22b | ||
|
|
e0c3c3d6cb | ||
|
|
46cd43bda1 | ||
|
|
852ea366d6 | ||
|
|
442a85369f | ||
|
|
e52702f003 | ||
|
|
9155825b24 | ||
|
|
30cc44a97f | ||
|
|
6b0e528368 | ||
|
|
ebacddbc16 | ||
|
|
14681627f3 | ||
|
|
408c23b079 | ||
|
|
59f88fbf24 | ||
|
|
fb517bac23 | ||
|
|
c5acc0f7fe | ||
|
|
cc836556d9 | ||
|
|
1e5f8f6d65 | ||
|
|
791fb1bcda | ||
|
|
441d60efd8 | ||
|
|
57f75a5a36 | ||
|
|
c17e66c5c0 | ||
|
|
3ac498c8a1 | ||
|
|
ea6561af92 | ||
|
|
5fbf3bc3f9 | ||
|
|
48b1c21809 | ||
|
|
d6a77f95ee | ||
|
|
109aece79d | ||
|
|
f9ca08e95f | ||
|
|
85629985b7 | ||
|
|
e8f5ec0d30 | ||
|
|
950587242c | ||
|
|
6c9ba04280 | ||
|
|
d14fd5285e | ||
|
|
2891459b81 | ||
|
|
f15c8b6eb3 | ||
|
|
f17e7ea67a | ||
|
|
ad772a63ec | ||
|
|
858ba06d5f | ||
|
|
2245ae18e3 | ||
|
|
fccd93f091 | ||
|
|
494e9069cb | ||
|
|
e35a52aee7 | ||
|
|
d881b516da | ||
|
|
e023e88bed | ||
|
|
b10090928c | ||
|
|
cfb4b47de0 | ||
|
|
aaad995f83 | ||
|
|
f09715bc5c | ||
|
|
788fbb4707 | ||
|
|
5cd1cb9ff9 | ||
|
|
928eec649b | ||
|
|
ebe9d34aa0 | ||
|
|
363d6148df | ||
|
|
ca70c07b72 | ||
|
|
d6cd5ffade | ||
|
|
f4ae6b245a | ||
|
|
95da136142 | ||
|
|
041c7107f2 | ||
|
|
06b7b58455 | ||
|
|
367d59e6ba | ||
|
|
d5c2c7763d | ||
|
|
87be9be1db | ||
|
|
a9d4b84d97 | ||
|
|
0016fd2e29 | ||
|
|
208534d9ae | ||
|
|
823654bc06 | ||
|
|
6cb0726215 | ||
|
|
b42c0d5427 | ||
|
|
09307e3bc1 | ||
|
|
b60db8ba14 | ||
|
|
14798ab9a5 | ||
|
|
c998370562 | ||
|
|
3f65c66df9 | ||
|
|
ca5bc74607 | ||
|
|
a55ba06f69 | ||
|
|
f4b68e9056 | ||
|
|
80a20df86a | ||
|
|
388a5d4f20 | ||
|
|
fcb0b61d15 | ||
|
|
92c098d18e | ||
|
|
285b189260 | ||
|
|
ebc3de634f | ||
|
|
a14e697547 | ||
|
|
1919371b2b | ||
|
|
25e0f5863e | ||
|
|
2eec37926d | ||
|
|
45a1508a22 | ||
|
|
6ff71d8b7f | ||
|
|
f40e51a880 | ||
|
|
822ba24743 | ||
|
|
f7271e8316 | ||
|
|
87202264f8 | ||
|
|
9c65253fe7 | ||
|
|
3718427ba3 | ||
|
|
591cec8366 | ||
|
|
c94c1467b9 | ||
|
|
9cdcd1d0dc | ||
|
|
2e61e2d083 | ||
|
|
5a80f8ad5d | ||
|
|
98f1671cc0 | ||
|
|
4c9243f9fb | ||
|
|
74fae513f8 | ||
|
|
fe81389d60 | ||
|
|
e5886ccb51 | ||
|
|
83a52533b2 | ||
|
|
d863728913 | ||
|
|
eaa3e0dae5 | ||
|
|
a09195f29e | ||
|
|
74c6963656 | ||
|
|
be593bf135 | ||
|
|
904e48a22b | ||
|
|
37ebd42f16 | ||
|
|
88d68de95d | ||
|
|
d098b824c1 | ||
|
|
1e1d2e89fa | ||
|
|
c33b3216c8 | ||
|
|
b5383b174b | ||
|
|
843700875e | ||
|
|
66b3101672 | ||
|
|
deb17451ed | ||
|
|
a2e408f598 | ||
|
|
0b39ec3c7d | ||
|
|
6fc3b59ee9 | ||
|
|
94d729cbe8 | ||
|
|
c4c9f7e43e | ||
|
|
df1643a6a7 | ||
|
|
9309eb2f28 | ||
|
|
2d2970ea59 | ||
|
|
f4e16ae041 | ||
|
|
d4a5f40c0c | ||
|
|
ed37d9b324 | ||
|
|
79ea680e6b | ||
|
|
e178ba3654 | ||
|
|
eb04f0893a | ||
|
|
26e86445bf | ||
|
|
3b1f18f785 | ||
|
|
df671b4629 | ||
|
|
6f5b6dfb16 | ||
|
|
aa5fc4ec51 | ||
|
|
129d6bf6b3 | ||
|
|
e75ba268b3 | ||
|
|
645e3fe3fe | ||
|
|
e882f7a73c | ||
|
|
fd615a3c90 | ||
|
|
a6e67e4f41 | ||
|
|
4457e1d98f | ||
|
|
76cb683097 | ||
|
|
4aeeb63938 | ||
|
|
4dac32caf3 | ||
|
|
270d0388d2 | ||
|
|
cb7904016e | ||
|
|
4902ab16cb | ||
|
|
7e6f3fcc3c | ||
|
|
227a69de1e | ||
|
|
a5d0077efb | ||
|
|
32e351179e | ||
|
|
e06a28f5e3 | ||
|
|
2b72821924 | ||
|
|
7e9f351b2e | ||
|
|
37d1b4f941 | ||
|
|
55ba4b844f | ||
|
|
ef6b979bfa | ||
|
|
03a9f84817 | ||
|
|
d502aa4c10 | ||
|
|
06f0853cb0 | ||
|
|
47e13953ff | ||
|
|
9e6ba8cbef | ||
|
|
5aed0ccb96 | ||
|
|
48a687148c | ||
|
|
c3fd98cf8e | ||
|
|
86181df9f5 | ||
|
|
b415168a98 | ||
|
|
91689ea8ae | ||
|
|
5c3128efe6 | ||
|
|
aacc6afdb8 | ||
|
|
bc38f25c02 | ||
|
|
04816717df | ||
|
|
cb2bdb1c6d | ||
|
|
f163bd5e41 | ||
|
|
7e5bd91dc9 | ||
|
|
1cc2a94f80 | ||
|
|
89483d4043 | ||
|
|
69212b11d1 | ||
|
|
d695ba732d | ||
|
|
3b6a6eb7b4 | ||
|
|
09689a0284 | ||
|
|
396f3138ca | ||
|
|
1c74721233 | ||
|
|
7f14155f42 | ||
|
|
497f76bfbf | ||
|
|
b1062eb23e | ||
|
|
a5565e4189 | ||
|
|
7d3664df90 | ||
|
|
7d131b0715 | ||
|
|
5c2fe64443 | ||
|
|
cca34aa4be | ||
|
|
f0eefce93b | ||
|
|
2cfb4a2a72 | ||
|
|
6115481053 | ||
|
|
0ff5dedf0f | ||
|
|
b2d0e51366 | ||
|
|
4a070cc82e | ||
|
|
ea554ca4fa | ||
|
|
61a8981699 | ||
|
|
f391586f3f | ||
|
|
8a1c101315 | ||
|
|
3657686a0e | ||
|
|
f821ddaa0c | ||
|
|
b68b346e6d | ||
|
|
54ed0dff29 | ||
|
|
2a1381c305 | ||
|
|
40ee466c36 | ||
|
|
015f4267f4 | ||
|
|
f9ab52e155 | ||
|
|
221fcc741a | ||
|
|
0e65d3de0a | ||
|
|
04b1269783 | ||
|
|
80a8d3889b | ||
|
|
2fd4cd755c | ||
|
|
4515bcdec8 | ||
|
|
7779ee30d9 | ||
|
|
5125874951 | ||
|
|
a38b2b737e | ||
|
|
647a530b33 | ||
|
|
41d4299f26 | ||
|
|
2eaeaf3c31 | ||
|
|
3df02f507f | ||
|
|
f7779c63d4 | ||
|
|
5adc55cb74 | ||
|
|
1c0d44f8ef | ||
|
|
0b6849e9e3 | ||
|
|
01f731e97c | ||
|
|
bf67ea1af0 | ||
|
|
d58a662f44 | ||
|
|
c8cd2b34d1 | ||
|
|
37addecc42 | ||
|
|
7ceefb35c8 | ||
|
|
b84a381c75 | ||
|
|
11abd09521 | ||
|
|
4cfde1d273 | ||
|
|
6ab0953fef | ||
|
|
9e175141f3 | ||
|
|
6adb9ea0a6 | ||
|
|
4e5534fab7 | ||
|
|
7f6f56f43c | ||
|
|
2c5c1638a9 | ||
|
|
88e6cc2539 | ||
|
|
a161cb5ddd | ||
|
|
8dbafd0790 | ||
|
|
512fe833c3 | ||
|
|
dfc33a665d | ||
|
|
339d60c89b | ||
|
|
ed8ce057b7 | ||
|
|
939b5db480 | ||
|
|
affc8fd2cd | ||
|
|
a0a9f43ab2 | ||
|
|
7ed8f59ae0 | ||
|
|
224a5f17c6 | ||
|
|
a14bb7e113 | ||
|
|
03afdcf1f4 | ||
|
|
909ed7e902 | ||
|
|
57700ee4ac | ||
|
|
4c17ad94ec | ||
|
|
db93495d27 | ||
|
|
0e71704b77 | ||
|
|
bc970da807 | ||
|
|
759d81549c | ||
|
|
07b761a012 | ||
|
|
99fa721944 | ||
|
|
e297802d6d | ||
|
|
7d41aa8874 | ||
|
|
6378c4fef3 | ||
|
|
cfe435d7fe | ||
|
|
49b2fb36ca | ||
|
|
47a1a8baf9 | ||
|
|
333015a46e | ||
|
|
41f6918bf4 | ||
|
|
e93c968f52 | ||
|
|
92b83ccfda | ||
|
|
9d8d0b5c64 | ||
|
|
92c461ef1b | ||
|
|
b52575f9cf | ||
|
|
7714d7b31f | ||
|
|
65d032c779 | ||
|
|
e71ebb46a2 | ||
|
|
b8ce6b0005 | ||
|
|
f93c7fea08 | ||
|
|
1df8b3fb04 | ||
|
|
a72cfb80cd | ||
|
|
f7b398c6a9 | ||
|
|
beae4084fd | ||
|
|
95a467e7ee | ||
|
|
0d6fe631f7 | ||
|
|
ea04a6e8ba | ||
|
|
db950e4c03 | ||
|
|
d2662ad2de | ||
|
|
e770598f31 | ||
|
|
ad48e6c159 | ||
|
|
ff06f283e3 | ||
|
|
1966c24881 | ||
|
|
2c7f8c574f | ||
|
|
2c5ed4e330 | ||
|
|
faac410409 | ||
|
|
08f4157c5c | ||
|
|
ad4dc83389 | ||
|
|
4da6df40f5 | ||
|
|
2bb76accc6 | ||
|
|
fbf2122cf9 | ||
|
|
7bdaea6e0d | ||
|
|
eb58a24658 | ||
|
|
f49e564082 | ||
|
|
7e0868efcf | ||
|
|
d72c1bf0a6 | ||
|
|
d3aac2917d | ||
|
|
173d841e86 | ||
|
|
61fbb3371e | ||
|
|
90455cfa87 | ||
|
|
ec9749f33d | ||
|
|
a26b9700d7 | ||
|
|
b6fb0516ec | ||
|
|
a494f56f88 | ||
|
|
2695de63e3 | ||
|
|
aa82259fef | ||
|
|
aa0489e12d | ||
|
|
0fc1288aef | ||
|
|
314ca7cbb4 | ||
|
|
21cfe500f3 | ||
|
|
4a8d9f2ed8 | ||
|
|
7a09224583 | ||
|
|
c5f33db888 | ||
|
|
cb711abf0f | ||
|
|
b4a549fb16 | ||
|
|
81ccbf199f | ||
|
|
edd327cc07 | ||
|
|
4d5d0dfe94 | ||
|
|
6c2b7b8055 | ||
|
|
7a1637f4c0 | ||
|
|
067297e16a | ||
|
|
e3242346cf | ||
|
|
352f554b85 | ||
|
|
278e83863b | ||
|
|
df1956075d | ||
|
|
0015795baa | ||
|
|
6e949784be | ||
|
|
fbda69b309 | ||
|
|
55b0fb7001 | ||
|
|
2c330432cf | ||
|
|
1a2f4bf6c8 | ||
|
|
675f716efb | ||
|
|
23e032523e | ||
|
|
5e774c7579 | ||
|
|
9c7e6dd653 | ||
|
|
e6085c5350 | ||
|
|
2196bce56f | ||
|
|
a80faa8930 | ||
|
|
82de464f76 | ||
|
|
bfe13ccc58 | ||
|
|
c5f1ef53c2 | ||
|
|
4fdae9996f | ||
|
|
acc770a10f | ||
|
|
cd630becc8 | ||
|
|
99aaf0ce7c | ||
|
|
1363a30cef | ||
|
|
88c1ee84d6 | ||
|
|
3b922f1138 | ||
|
|
08938eeba4 | ||
|
|
e7f234120f | ||
|
|
fe27081724 | ||
|
|
d19a8f97ad | ||
|
|
880e4d9117 | ||
|
|
1378fbc459 | ||
|
|
8832a34578 | ||
|
|
81ea1dfb97 | ||
|
|
004a6781b3 | ||
|
|
d1caa941d8 | ||
|
|
7b293c730b | ||
|
|
9c8bb7c0e2 | ||
|
|
cab2767874 | ||
|
|
5da356e073 | ||
|
|
4d23c52824 | ||
|
|
25d5700952 | ||
|
|
6a2c5a7dd5 | ||
|
|
7035fd9d90 | ||
|
|
476a613135 | ||
|
|
a65c288134 | ||
|
|
49cf7cc8d2 | ||
|
|
0b76b42d0a | ||
|
|
ec5929d0fe | ||
|
|
86b9a3e8cd | ||
|
|
40655d5016 | ||
|
|
c74fbfedfa | ||
|
|
00d253e2b2 | ||
|
|
ee4e0c1e9a | ||
|
|
15352dc6ec | ||
|
|
6c307dcd55 | ||
|
|
8922860afb | ||
|
|
5ba8d3578c | ||
|
|
4c68375057 | ||
|
|
f87a0400fd | ||
|
|
b8ed3aa9e7 | ||
|
|
bdff012f44 | ||
|
|
5d905c2b96 | ||
|
|
5deeb3f1f9 | ||
|
|
d7ffc0ba8c | ||
|
|
8d4ed11da6 | ||
|
|
cde0ff39da | ||
|
|
d77a8525d5 | ||
|
|
5259275347 | ||
|
|
d1e9dc2723 | ||
|
|
01603a9970 | ||
|
|
3cca299520 | ||
|
|
585fea7b98 |
@@ -13,5 +13,4 @@ freebsd_12_task:
|
||||
- make -j${NPROC}
|
||||
- src/vim --version
|
||||
test_script:
|
||||
# Runtime Indent tests do not work, run only the normal test suite
|
||||
- cd src && make test
|
||||
- make test
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/feature_request.md
vendored
2
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -8,7 +8,7 @@ labels: enhancement
|
||||
|
||||
_Instructions: Replace the template text and remove irrelevant text (including this line)_
|
||||
|
||||
**Is your feature request related something that is currently hard to do? Please describe.**
|
||||
**Is your feature request about something that is currently impossible or hard to do? Please describe the problem.**
|
||||
A clear and concise description of what is hard to do. Ex. It is difficult to [...] when [...]
|
||||
(If it is related to runtime files, please check their header for where to discuss enhancements.)
|
||||
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,7 @@ src/xxd/xxd
|
||||
src/auto/if_perl.c
|
||||
src/auto/gui_gtk_gresources.c
|
||||
src/auto/gui_gtk_gresources.h
|
||||
src/auto/os_haiku.rdef
|
||||
src/objects/.dirstamp
|
||||
src/objects
|
||||
src/tags
|
||||
|
||||
42
.travis.yml
42
.travis.yml
@@ -3,7 +3,7 @@ language: c
|
||||
_anchors:
|
||||
envs:
|
||||
- &tiny-nogui
|
||||
BUILD=yes TEST=test FEATURES=tiny "CONFOPT='--disable-gui'" SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
BUILD=yes TEST=test FEATURES=tiny CONFOPT="--disable-gui" SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
- &tiny
|
||||
BUILD=yes TEST=test FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
- &small
|
||||
@@ -11,13 +11,13 @@ _anchors:
|
||||
- &normal
|
||||
BUILD=yes TEST=test FEATURES=normal CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
- &linux-huge
|
||||
BUILD=yes TEST="scripttests test_libvterm" 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=yes TEST="scripttests test_libvterm" CFLAGS="--coverage -DUSE_GCOV_FLUSH" LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
CONFOPT="--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
|
||||
- &osx-huge # macOS build
|
||||
BUILD=yes TEST=test FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
|
||||
"CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
|
||||
CONFOPT="--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
|
||||
- &unittests
|
||||
BUILD=no TEST=unittests CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||
BUILD=no TEST=unittests CFLAGS="--coverage -DUSE_GCOV_FLUSH" LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
|
||||
- &asan # ASAN build
|
||||
SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
|
||||
ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
|
||||
@@ -62,9 +62,7 @@ _anchors:
|
||||
sudo update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 10
|
||||
fi
|
||||
before_script:
|
||||
# On travis bionic-amd64 gethostbyname() resolves "localhost" to 127.0.1.1
|
||||
# so that makes various channel tests fail.
|
||||
- sudo sed -i '/^127\.0\.1\.1\s/s/\blocalhost\b//g' /etc/hosts
|
||||
- sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0
|
||||
- sudo bash ci/load-snd-dummy.sh || true
|
||||
- sudo usermod -a -G audio $USER
|
||||
- do_test() { sg audio "sg $(id -gn) '$*'"; }
|
||||
@@ -124,6 +122,15 @@ script:
|
||||
- echo -e "\\033[33;1mBuilding Vim\\033[0m" && echo -en "travis_fold:start:build\\r\\033[0K"
|
||||
- |
|
||||
if [[ "${BUILD}" = "yes" ]]; then
|
||||
# Append various warning flags to CFLAGS.
|
||||
# BSD sed needs backup extension specified.
|
||||
sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
|
||||
if [[ "${TRAVIS_OS_NAME}" = "osx" ]]; then
|
||||
# On macOS, the entity of gcc is clang.
|
||||
sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk
|
||||
else
|
||||
sed -i.bak -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
|
||||
fi
|
||||
make ${SHADOWOPT} -j${NPROC}
|
||||
fi
|
||||
- echo -en "travis_fold:end:build\\r\\033[0K"
|
||||
@@ -139,11 +146,10 @@ script:
|
||||
- do_test make ${SHADOWOPT} ${TEST} && FOLD_MARKER=travis_fold
|
||||
- echo -en "${FOLD_MARKER}:end:test\\r\\033[0K"
|
||||
|
||||
|
||||
# instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env),
|
||||
# exclude some builds on mac os x and linux
|
||||
# on mac os x "tiny" is always without GUI
|
||||
# linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
|
||||
# Instead of using all environments with both compilers on both systems,
|
||||
# exclude some builds on mac os x and linux.
|
||||
# On mac os x "tiny" is always without GUI, use 2 compilers in 2 environments.
|
||||
# Linux: 2 compilers on some of the environments + gcc on os390
|
||||
jobs:
|
||||
include:
|
||||
- <<: *osx
|
||||
@@ -215,11 +221,6 @@ jobs:
|
||||
compiler: gcc
|
||||
env: *linux-huge
|
||||
after_success: *coverage
|
||||
- <<: *linux
|
||||
name: unittests+coverage/gcc
|
||||
compiler: gcc
|
||||
env: *unittests
|
||||
after_success: *coverage
|
||||
- <<: *linux # ASAN
|
||||
name: huge+asan/gcc
|
||||
compiler: gcc
|
||||
@@ -234,6 +235,11 @@ jobs:
|
||||
- *linux-huge
|
||||
- TEST="-C src testgui"
|
||||
after_success: *coverage
|
||||
- <<: *linux
|
||||
name: unittests+coverage/gcc
|
||||
compiler: gcc
|
||||
env: *unittests
|
||||
after_success: *coverage
|
||||
- <<: *linux
|
||||
name: vimtags/gcc
|
||||
compiler: gcc
|
||||
|
||||
50
Filelist
50
Filelist
@@ -13,6 +13,7 @@ SRC_ALL = \
|
||||
ci/appveyor.bat \
|
||||
ci/if_ver*.vim \
|
||||
ci/load-snd-dummy.sh \
|
||||
ci/config.mk*.sed \
|
||||
src/Make_all.mak \
|
||||
src/README.md \
|
||||
src/alloc.h \
|
||||
@@ -30,6 +31,7 @@ SRC_ALL = \
|
||||
src/channel.c \
|
||||
src/charset.c \
|
||||
src/cindent.c \
|
||||
src/clientserver.c \
|
||||
src/clipboard.c \
|
||||
src/cmdexpand.c \
|
||||
src/cmdhist.c \
|
||||
@@ -127,8 +129,11 @@ SRC_ALL = \
|
||||
src/term.h \
|
||||
src/termlib.c \
|
||||
src/testing.c \
|
||||
src/textformat.c \
|
||||
src/textobject.c \
|
||||
src/textprop.c \
|
||||
src/time.c \
|
||||
src/typval.c \
|
||||
src/ui.c \
|
||||
src/undo.c \
|
||||
src/usercmd.c \
|
||||
@@ -152,6 +157,7 @@ SRC_ALL = \
|
||||
src/testdir/*.py \
|
||||
src/testdir/lsan-suppress.txt \
|
||||
src/testdir/sautest/autoload/*.vim \
|
||||
src/testdir/testluaplugin/lua/testluaplugin/*.lua \
|
||||
src/testdir/check.vim \
|
||||
src/testdir/gui_init.vim \
|
||||
src/testdir/gui_preinit.vim \
|
||||
@@ -161,12 +167,12 @@ SRC_ALL = \
|
||||
src/testdir/setup.vim \
|
||||
src/testdir/setup_gui.vim \
|
||||
src/testdir/shared.vim \
|
||||
src/testdir/vim9.vim \
|
||||
src/testdir/summarize.vim \
|
||||
src/testdir/term_util.vim \
|
||||
src/testdir/view_util.vim \
|
||||
src/testdir/test[0-9]*.ok \
|
||||
src/testdir/test[0-9]*a.ok \
|
||||
src/testdir/test_[a-z]*.ok \
|
||||
src/testdir/test49.vim \
|
||||
src/testdir/test83-tags? \
|
||||
src/testdir/test77a.com \
|
||||
@@ -181,8 +187,6 @@ SRC_ALL = \
|
||||
src/testdir/python_after/*.py \
|
||||
src/testdir/python_before/*.py \
|
||||
src/testdir/pyxfile/*.py \
|
||||
src/testdir/bench*.in \
|
||||
src/testdir/bench*.vim \
|
||||
src/testdir/dumps/*.dump \
|
||||
src/testdir/samples/*.txt \
|
||||
src/testdir/samples/test000 \
|
||||
@@ -203,6 +207,7 @@ SRC_ALL = \
|
||||
src/proto/channel.pro \
|
||||
src/proto/charset.pro \
|
||||
src/proto/cindent.pro \
|
||||
src/proto/clientserver.pro \
|
||||
src/proto/clipboard.pro \
|
||||
src/proto/cmdexpand.pro \
|
||||
src/proto/cmdhist.pro \
|
||||
@@ -278,8 +283,11 @@ SRC_ALL = \
|
||||
src/proto/terminal.pro \
|
||||
src/proto/termlib.pro \
|
||||
src/proto/testing.pro \
|
||||
src/proto/textformat.pro \
|
||||
src/proto/textobject.pro \
|
||||
src/proto/textprop.pro \
|
||||
src/proto/time.pro \
|
||||
src/proto/typval.pro \
|
||||
src/proto/ui.pro \
|
||||
src/proto/undo.pro \
|
||||
src/proto/usercmd.pro \
|
||||
@@ -296,10 +304,12 @@ SRC_ALL = \
|
||||
src/libvterm/LICENSE \
|
||||
src/libvterm/Makefile \
|
||||
src/libvterm/README \
|
||||
src/libvterm/CONTRIBUTING \
|
||||
src/libvterm/tbl2inc_c.pl \
|
||||
src/libvterm/vterm.pc.in \
|
||||
src/libvterm/doc/URLs \
|
||||
src/libvterm/doc/seqs.txt \
|
||||
src/libvterm/find-wide-chars.pl \
|
||||
src/libvterm/include/vterm.h \
|
||||
src/libvterm/include/vterm_keycodes.h \
|
||||
src/libvterm/src/encoding.c \
|
||||
@@ -307,6 +317,7 @@ SRC_ALL = \
|
||||
src/libvterm/src/encoding/DECdrawing.tbl \
|
||||
src/libvterm/src/encoding/uk.inc \
|
||||
src/libvterm/src/encoding/uk.tbl \
|
||||
src/libvterm/src/fullwidth.inc \
|
||||
src/libvterm/src/keyboard.c \
|
||||
src/libvterm/src/mouse.c \
|
||||
src/libvterm/src/parser.c \
|
||||
@@ -337,16 +348,18 @@ SRC_ALL = \
|
||||
src/libvterm/t/27state_reset.test \
|
||||
src/libvterm/t/28state_dbl_wh.test \
|
||||
src/libvterm/t/29state_fallback.test \
|
||||
src/libvterm/t/30pen.test \
|
||||
src/libvterm/t/40screen_ascii.test \
|
||||
src/libvterm/t/41screen_unicode.test \
|
||||
src/libvterm/t/42screen_damage.test \
|
||||
src/libvterm/t/43screen_resize.test \
|
||||
src/libvterm/t/44screen_pen.test \
|
||||
src/libvterm/t/45screen_protect.test \
|
||||
src/libvterm/t/46screen_extent.test \
|
||||
src/libvterm/t/47screen_dbl_wh.test \
|
||||
src/libvterm/t/48screen_termprops.test \
|
||||
src/libvterm/t/30state_pen.test \
|
||||
src/libvterm/t/31state_rep.test \
|
||||
src/libvterm/t/32state_flow.test \
|
||||
src/libvterm/t/60screen_ascii.test \
|
||||
src/libvterm/t/61screen_unicode.test \
|
||||
src/libvterm/t/62screen_damage.test \
|
||||
src/libvterm/t/63screen_resize.test \
|
||||
src/libvterm/t/64screen_pen.test \
|
||||
src/libvterm/t/65screen_protect.test \
|
||||
src/libvterm/t/66screen_extent.test \
|
||||
src/libvterm/t/67screen_dbl_wh.test \
|
||||
src/libvterm/t/68screen_termprops.test \
|
||||
src/libvterm/t/90vttest_01-movement-1.test \
|
||||
src/libvterm/t/90vttest_01-movement-2.test \
|
||||
src/libvterm/t/90vttest_01-movement-3.test \
|
||||
@@ -406,6 +419,7 @@ SRC_UNIX = \
|
||||
src/gui_gtk_x11.c \
|
||||
src/gui_gtk_res.xml \
|
||||
src/gui_motif.c \
|
||||
src/gui_xim.c \
|
||||
src/gui_xmdlg.c \
|
||||
src/gui_xmebw.c \
|
||||
src/gui_xmebw.h \
|
||||
@@ -429,6 +443,7 @@ SRC_UNIX = \
|
||||
src/proto/gui_gtk_x11.pro \
|
||||
src/proto/gui_gtk_gresources.pro \
|
||||
src/proto/gui_motif.pro \
|
||||
src/proto/gui_xim.pro \
|
||||
src/proto/gui_xmdlg.pro \
|
||||
src/proto/gui_x11.pro \
|
||||
src/proto/if_xcmdsrv.pro \
|
||||
@@ -605,8 +620,9 @@ SRC_AMI = \
|
||||
|
||||
# source files for Haiku (also in the extra archive)
|
||||
SRC_HAIKU = \
|
||||
README_haiku.txt \
|
||||
src/os_haiku.h \
|
||||
src/os_haiku.rdef \
|
||||
src/os_haiku.rdef.in \
|
||||
src/gui_haiku.cc \
|
||||
src/gui_haiku.h \
|
||||
src/proto/gui_haiku.pro \
|
||||
@@ -660,10 +676,6 @@ SRC_EXTRA = \
|
||||
src/Make_mint.mak \
|
||||
src/infplist.xml \
|
||||
src/link.390 \
|
||||
src/os_beos.c \
|
||||
src/os_beos.h \
|
||||
src/os_beos.rsrc \
|
||||
src/proto/os_beos.pro \
|
||||
src/os_mint.h \
|
||||
src/os_vms_fix.com \
|
||||
src/toolbar.phi \
|
||||
@@ -960,6 +972,8 @@ LANG_GEN = \
|
||||
runtime/doc/*-pl.UTF-8.1 \
|
||||
runtime/doc/*-ru.1 \
|
||||
runtime/doc/*-ru.UTF-8.1 \
|
||||
runtime/doc/*-tr.1 \
|
||||
runtime/doc/*-tr.UTF-8.1 \
|
||||
runtime/lang/README.txt \
|
||||
runtime/lang/menu_*.vim \
|
||||
runtime/keymap/README.txt \
|
||||
|
||||
@@ -26,8 +26,8 @@ All commands are given with normal keyboard characters, so those who can type
|
||||
with ten fingers can work very fast. Additionally, function keys can be
|
||||
mapped to commands by the user, and the mouse can be used.
|
||||
|
||||
Vim runs under MS-Windows (XP, Vista, 7, 8, 10), macOS, VMS and almost all
|
||||
flavours of UNIX. Porting to other systems should not be very difficult.
|
||||
Vim runs under MS-Windows (XP, Vista, 7, 8, 10), macOS, Haiku, VMS and almost
|
||||
all flavours of UNIX. Porting to other systems should not be very difficult.
|
||||
Older versions of Vim run on MS-DOS, MS-Windows 95/98/Me/NT/2000, Amiga DOS,
|
||||
Atari MiNT, BeOS, RISC OS and OS/2. These are no longer maintained.
|
||||
|
||||
@@ -72,6 +72,7 @@ archive):
|
||||
README_unix.txt Unix
|
||||
README_dos.txt MS-DOS and MS-Windows
|
||||
README_mac.txt Macintosh
|
||||
README_haiku.txt Haiku
|
||||
README_vms.txt VMS
|
||||
|
||||
There are other `README_*.txt` files, depending on the distribution you used.
|
||||
|
||||
13
READMEdir/README_haiku.txt
Normal file
13
READMEdir/README_haiku.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
README_haiku.txt for version 8.2 of Vim: Vi IMproved.
|
||||
|
||||
This file explains the installation of Vim on Haiku operating system.
|
||||
See "README.txt" for general information about Vim.
|
||||
|
||||
Preferred (and easy) way to get Vim on Haiku is to use default Haiku
|
||||
software repository HaikuPorts. To get Vim:
|
||||
|
||||
- Open HaikuDepot application and search for "vim" package, then install,
|
||||
- Open a Terminal and type "pkgman install vim", then follow instructions.
|
||||
|
||||
If you prefer to install Vim from source, follow the instructions on
|
||||
"runtime/doc/os_haiku.txt", "Compiling Vim" section.
|
||||
2
ci/config.mk.clang.sed
Normal file
2
ci/config.mk.clang.sed
Normal file
@@ -0,0 +1,2 @@
|
||||
/^CFLAGS[[:blank:]]*=/s/$/ -Wno-error=missing-field-initializers/
|
||||
/^RUBY_CFLAGS[[:blank:]]*=/s/$/ -Wno-error=unknown-attributes -Wno-error=ignored-attributes/
|
||||
1
ci/config.mk.gcc.sed
Normal file
1
ci/config.mk.gcc.sed
Normal file
@@ -0,0 +1 @@
|
||||
/^CFLAGS[[:blank:]]*=/s/$/ -Wno-error=maybe-uninitialized/
|
||||
2
ci/config.mk.sed
Normal file
2
ci/config.mk.sed
Normal file
@@ -0,0 +1,2 @@
|
||||
/^CFLAGS[[:blank:]]*=/s/$/ -Wall -Wextra -Wshadow -Werror/
|
||||
/^PERL_CFLAGS[[:blank:]]*=/s/$/ -Wno-error=unused-function/
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim completion script
|
||||
" Language: C
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2018 Aug 20
|
||||
" Last Change: 2020 Apr 08
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
@@ -635,3 +635,5 @@ endfunc
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: noet sw=2 sts=2
|
||||
|
||||
4
runtime/autoload/dist/ft.vim
vendored
4
runtime/autoload/dist/ft.vim
vendored
@@ -1,7 +1,7 @@
|
||||
" Vim functions for file type detection
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2020 Jan 02
|
||||
" Last Change: 2020 Mar 30
|
||||
|
||||
" These functions are moved here from runtime/filetype.vim to make startup
|
||||
" faster.
|
||||
@@ -325,7 +325,7 @@ endfunc
|
||||
|
||||
func dist#ft#FTmm()
|
||||
let n = 1
|
||||
while n < 10
|
||||
while n < 20
|
||||
let line = getline(n)
|
||||
if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)'
|
||||
setf objcpp
|
||||
|
||||
16
runtime/compiler/eslint.vim
Normal file
16
runtime/compiler/eslint.vim
Normal file
@@ -0,0 +1,16 @@
|
||||
" Vim compiler file
|
||||
" Compiler: ESLint for JavaScript
|
||||
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||
" Last Change: 2020 May 17
|
||||
|
||||
if exists("current_compiler")
|
||||
finish
|
||||
endif
|
||||
let current_compiler = "eslint"
|
||||
|
||||
if exists(":CompilerSet") != 2
|
||||
command -nargs=* CompilerSet setlocal <args>
|
||||
endif
|
||||
|
||||
CompilerSet makeprg=eslint\ --format\ compact
|
||||
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
|
||||
16
runtime/compiler/standard.vim
Normal file
16
runtime/compiler/standard.vim
Normal file
@@ -0,0 +1,16 @@
|
||||
" Vim compiler file
|
||||
" Compiler: Standard for JavaScript
|
||||
" Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
|
||||
" Last Change: 2020 May 17
|
||||
|
||||
if exists("current_compiler")
|
||||
finish
|
||||
endif
|
||||
let current_compiler = "standard"
|
||||
|
||||
if exists(":CompilerSet") != 2
|
||||
command -nargs=* CompilerSet setlocal <args>
|
||||
endif
|
||||
|
||||
CompilerSet makeprg=standard
|
||||
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
|
||||
@@ -317,7 +317,11 @@ CONVERTED = \
|
||||
evim-ru.UTF-8.1 \
|
||||
vimdiff-ru.UTF-8.1 \
|
||||
vimtutor-ru.UTF-8.1 \
|
||||
xxd-ru.UTF-8.1
|
||||
xxd-ru.UTF-8.1 \
|
||||
vim-tr.UTF-8.1 \
|
||||
evim-tr.UTF-8.1 \
|
||||
vimdiff-tr.UTF-8.1 \
|
||||
vimtutor-tr.UTF-8.1
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .txt .html
|
||||
@@ -509,3 +513,15 @@ vimtutor-ru.UTF-8.1: vimtutor-ru.1
|
||||
|
||||
xxd-ru.UTF-8.1: xxd-ru.1
|
||||
iconv -f KOI8-R -t utf-8 $< >$@
|
||||
|
||||
vim-tr.UTF-8.1: vim-tr.1
|
||||
iconv -f latin5 -t utf-8 $< >$@
|
||||
|
||||
evim-tr.UTF-8.1: evim-tr.1
|
||||
iconv -f latin5 -t utf-8 $< >$@
|
||||
|
||||
vimdiff-tr.UTF-8.1: vimdiff-tr.1
|
||||
iconv -f latin5 -t utf-8 $< >$@
|
||||
|
||||
vimtutor-tr.UTF-8.1: vimtutor-tr.1
|
||||
iconv -f latin5 -t utf-8 $< >$@
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 8.2. Last change: 2020 Feb 09
|
||||
*change.txt* For Vim version 8.2. Last change: 2020 Apr 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -209,7 +209,7 @@ gR Enter Virtual Replace mode: Each character you type
|
||||
start insert (for {Visual} see |Visual-mode|).
|
||||
|
||||
*v_r*
|
||||
{Visual}["x]r{char} Replace all selected characters by {char}.
|
||||
{Visual}r{char} Replace all selected characters by {char}.
|
||||
|
||||
*v_C*
|
||||
{Visual}["x]C Delete the highlighted lines [into register x] and
|
||||
@@ -996,9 +996,9 @@ inside of strings can change! Also see 'softtabstop' option. >
|
||||
5. Copying and moving text *copy-move*
|
||||
|
||||
*quote*
|
||||
"{a-zA-Z0-9.%#:-"} Use register {a-zA-Z0-9.%#:-"} for next delete, yank
|
||||
or put (use uppercase character to append with
|
||||
delete and yank) ({.%#:} only work with put).
|
||||
"{register} Use {register} for next delete, yank or put. Use
|
||||
an uppercase character to append with delete and yank.
|
||||
Registers ".", "%", "#" and ":" only work with put.
|
||||
|
||||
*:reg* *:registers*
|
||||
:reg[isters] Display the type and contents of all numbered and
|
||||
@@ -1458,7 +1458,7 @@ text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
|
||||
func! format#Format()
|
||||
" only reformat on explicit gq command
|
||||
if mode() != 'n'
|
||||
" fall back to Vims internal reformatting
|
||||
" fall back to Vim's internal reformatting
|
||||
return 1
|
||||
endif
|
||||
let lines = getline(v:lnum, v:lnum + v:count - 1)
|
||||
@@ -1688,6 +1688,10 @@ B When joining lines, don't insert a space between two multi-byte
|
||||
characters. Overruled by the 'M' flag.
|
||||
1 Don't break a line after a one-letter word. It's broken before it
|
||||
instead (if possible).
|
||||
] Respect textwidth rigorously. With this flag set, no line can be
|
||||
longer than textwidth, unless line-break-prohibition rules make this
|
||||
impossible. Mainly for CJK scripts and works only if 'encoding' is
|
||||
"utf-8".
|
||||
j Where it makes sense, remove a comment leader when joining lines. For
|
||||
example, joining:
|
||||
int i; // the index ~
|
||||
|
||||
@@ -120,6 +120,9 @@ Use |ch_status()| to see if the channel could be opened.
|
||||
|
||||
{address} has the form "hostname:port". E.g., "localhost:8765".
|
||||
|
||||
When using an IPv6 address, enclose it within square brackets. E.g.,
|
||||
"[2001:db8::1]:8765".
|
||||
|
||||
{options} is a dictionary with optional entries: *channel-open-options*
|
||||
|
||||
"mode" can be: *channel-mode*
|
||||
@@ -621,6 +624,9 @@ ch_open({address} [, {options}]) *ch_open()*
|
||||
{address} has the form "hostname:port", e.g.,
|
||||
"localhost:8765".
|
||||
|
||||
When using an IPv6 address, enclose it within square brackets.
|
||||
E.g., "[2001:db8::1]:8765".
|
||||
|
||||
If {options} is given it must be a |Dictionary|.
|
||||
See |channel-open-options|.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*cmdline.txt* For Vim version 8.2. Last change: 2020 Feb 29
|
||||
*cmdline.txt* For Vim version 8.2. Last change: 2020 Apr 23
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -615,6 +615,7 @@ followed by another Vim command:
|
||||
:tcl
|
||||
:tcldo
|
||||
:tclfile
|
||||
:terminal
|
||||
:vglobal
|
||||
:windo
|
||||
:write !
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*develop.txt* For Vim version 8.2. Last change: 2019 Nov 22
|
||||
*develop.txt* For Vim version 8.2. Last change: 2020 Apr 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -151,7 +151,8 @@ VIM IS... NOT *design-not*
|
||||
A satirical way to say this: "Unlike Emacs, Vim does not attempt to include
|
||||
everything but the kitchen sink, but some people say that you can clean one
|
||||
with it. ;-)"
|
||||
To use Vim with gdb see: http://www.agide.org and http://clewn.sf.net.
|
||||
To use Vim with gdb see |terminal-debugger|. Other (older) tools can be
|
||||
found at http://www.agide.org and http://clewn.sf.net.
|
||||
- Vim is not a fancy GUI editor that tries to look nice at the cost of
|
||||
being less consistent over all platforms. But functional GUI features are
|
||||
welcomed.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*editing.txt* For Vim version 8.2. Last change: 2019 Dec 22
|
||||
*editing.txt* For Vim version 8.2. Last change: 2020 May 12
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -475,6 +475,9 @@ This edits the same file again with 'fileformat' set to "unix". >
|
||||
:w ++enc=latin1 newfile
|
||||
This writes the current buffer to "newfile" in latin1 format.
|
||||
|
||||
The message given when writing a file will show "[converted]" when
|
||||
'fileencoding' or the value specified with ++enc differs from 'encoding'.
|
||||
|
||||
There may be several ++opt arguments, separated by white space. They must all
|
||||
appear before any |+cmd| argument.
|
||||
|
||||
@@ -1079,9 +1082,9 @@ The names can be in upper- or lowercase.
|
||||
|
||||
*:q* *:quit*
|
||||
:q[uit] Quit the current window. Quit Vim if this is the last
|
||||
window. This fails when changes have been made and
|
||||
Vim refuses to |abandon| the current buffer, and when
|
||||
the last file in the argument list has not been
|
||||
|edit-window|. This fails when changes have been made
|
||||
and Vim refuses to |abandon| the current buffer, and
|
||||
when the last file in the argument list has not been
|
||||
edited.
|
||||
If there are other tab pages and quitting the last
|
||||
window in the current tab page the current tab page is
|
||||
@@ -1107,18 +1110,22 @@ The names can be in upper- or lowercase.
|
||||
|quickfix|).
|
||||
|
||||
*:wq*
|
||||
:wq [++opt] Write the current file and quit. Writing fails when
|
||||
the file is read-only or the buffer does not have a
|
||||
name. Quitting fails when the last file in the
|
||||
argument list has not been edited.
|
||||
:wq [++opt] Write the current file and close the window. If this
|
||||
was the last |edit-window| Vim quits.
|
||||
Writing fails when the file is read-only or the buffer
|
||||
does not have a name. Quitting fails when the last
|
||||
file in the argument list has not been edited.
|
||||
|
||||
:wq! [++opt] Write the current file and quit. Writing fails when
|
||||
the current buffer does not have a name.
|
||||
:wq! [++opt] Write the current file and close the window. If this
|
||||
was the last |edit-window| Vim quits. Writing fails
|
||||
when the current buffer does not have a name.
|
||||
|
||||
:wq [++opt] {file} Write to {file} and quit. Quitting fails when the
|
||||
:wq [++opt] {file} Write to {file} and close the window. If this was the
|
||||
last |edit-window| Vim quits. Quitting fails when the
|
||||
last file in the argument list has not been edited.
|
||||
|
||||
:wq! [++opt] {file} Write to {file} and quit.
|
||||
:wq! [++opt] {file} Write to {file} and close the current window. Quit
|
||||
Vim if this was the last |edit-window|.
|
||||
|
||||
:[range]wq[!] [++opt] [file]
|
||||
Same as above, but only write the lines in [range].
|
||||
@@ -1135,10 +1142,10 @@ The names can be in upper- or lowercase.
|
||||
Same as :xit.
|
||||
|
||||
*ZZ*
|
||||
ZZ Write current file, if modified, and quit (same as
|
||||
":x"). (Note: If there are several windows for the
|
||||
current file, the file is written if it was modified
|
||||
and the window is closed).
|
||||
ZZ Write current file, if modified, and close the current
|
||||
window (same as ":x").
|
||||
If there are several windows for the current file,
|
||||
only the current window is closed.
|
||||
|
||||
*ZQ*
|
||||
ZQ Quit without checking for changes (same as ":q!").
|
||||
@@ -1319,6 +1326,10 @@ present in 'cpoptions' and "!" is not used in the command.
|
||||
*:tch* *:tchdir*
|
||||
:tch[dir][!] Same as |:tcd|.
|
||||
|
||||
*:tcd-*
|
||||
:tcd[!] - Change to the previous current directory, before the
|
||||
last ":tcd {path}" command.
|
||||
|
||||
*:lc* *:lcd*
|
||||
:lc[d][!] {path} Like |:cd|, but only set the current directory when
|
||||
the cursor is in the current window. The current
|
||||
@@ -1328,9 +1339,28 @@ present in 'cpoptions' and "!" is not used in the command.
|
||||
*:lch* *:lchdir*
|
||||
:lch[dir][!] Same as |:lcd|.
|
||||
|
||||
*:lcd-*
|
||||
:lcd[!] - Change to the previous current directory, before the
|
||||
last ":lcd {path}" command.
|
||||
|
||||
*:pw* *:pwd* *E187*
|
||||
:pw[d] Print the current directory name.
|
||||
Also see |getcwd()|.
|
||||
*:pwd-verbose*
|
||||
When 'verbose' is non-zero, |:pwd| will also display
|
||||
what scope the current directory was set. Example: >
|
||||
|
||||
" Set by :cd
|
||||
:verbose pwd
|
||||
[global] /path/to/current
|
||||
|
||||
" Set by :lcd
|
||||
:verbose pwd
|
||||
[window] /path/to/current
|
||||
|
||||
" Set by :tcd
|
||||
:verbose pwd
|
||||
[tabpage] /path/to/current
|
||||
|
||||
So long as no |:lcd| or |:tcd| command has been used, all windows share the
|
||||
same current directory. Using a command to jump to another window doesn't
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 8.2. Last change: 2020 Mar 26
|
||||
*eval.txt* For Vim version 8.2. Last change: 2020 Jun 03
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -95,15 +95,17 @@ the Number. Examples:
|
||||
Number -1 --> String "-1" ~
|
||||
*octal*
|
||||
Conversion from a String to a Number is done by converting the first digits to
|
||||
a number. Hexadecimal "0xf9", Octal "017", and Binary "0b10" numbers are
|
||||
recognized (NOTE: when using |scriptversion-4| octal is not recognized). If
|
||||
the String doesn't start with digits, the result is zero.
|
||||
a number. Hexadecimal "0xf9", Octal "017" or "0o17", and Binary "0b10"
|
||||
numbers are recognized (NOTE: when using |scriptversion-4| octal with a
|
||||
leading "0" is not recognized). If the String doesn't start with digits, the
|
||||
result is zero.
|
||||
Examples:
|
||||
String "456" --> Number 456 ~
|
||||
String "6bar" --> Number 6 ~
|
||||
String "foo" --> Number 0 ~
|
||||
String "0xf1" --> Number 241 ~
|
||||
String "0100" --> Number 64 ~
|
||||
String "0o100" --> Number 64 ~
|
||||
String "0b101" --> Number 5 ~
|
||||
String "-8" --> Number -8 ~
|
||||
String "+8" --> Number 0 ~
|
||||
@@ -584,6 +586,8 @@ adict.
|
||||
Weeding out entries from a Dictionary can be done with |filter()|: >
|
||||
:call filter(dict, 'v:val =~ "x"')
|
||||
This removes all entries from "dict" with a value not matching 'x'.
|
||||
This can also be used to remove all entries: >
|
||||
call filter(dict, 0)
|
||||
|
||||
|
||||
Dictionary function ~
|
||||
@@ -1262,7 +1266,7 @@ number number constant *expr-number*
|
||||
*hex-number* *octal-number* *binary-number*
|
||||
|
||||
Decimal, Hexadecimal (starting with 0x or 0X), Binary (starting with 0b or 0B)
|
||||
and Octal (starting with 0).
|
||||
and Octal (starting with 0, 0o or 0O).
|
||||
|
||||
*floating-point-format*
|
||||
Floating point numbers can be written in two forms:
|
||||
@@ -1351,6 +1355,9 @@ A string constant accepts these special characters:
|
||||
To use the double quote character it must be escaped: "<M-\">".
|
||||
Don't use <Char-xxxx> to get a utf-8 character, use \uxxxx as
|
||||
mentioned above.
|
||||
\<*xxx> Like \<xxx> but prepends a modifier instead of including it in the
|
||||
character. E.g. "\<C-w>" is one character 0x17 while "\<*C-w>" is four
|
||||
bytes: 3 for the CTRL modifier and then character "W".
|
||||
|
||||
Note that "\xff" is stored as the byte 255, which may be invalid in some
|
||||
encodings. Use "\u00ff" to store character 255 according to the current value
|
||||
@@ -1485,7 +1492,7 @@ the function returns: >
|
||||
:echo Bar(6)
|
||||
< 5
|
||||
|
||||
Note that the variables must exist in the outer scope before the lamba is
|
||||
Note that the variables must exist in the outer scope before the lambda is
|
||||
defined for this to work. See also |:func-closure|.
|
||||
|
||||
Lambda and closure support can be checked with: >
|
||||
@@ -1809,10 +1816,12 @@ v:errors Errors found by assert functions, such as |assert_true()|.
|
||||
v:event Dictionary containing information about the current
|
||||
|autocommand|. See the specific event for what it puts in
|
||||
this dictionary.
|
||||
The dictionary is emptied when the |autocommand|
|
||||
finishes, please refer to |dict-identity| for how to get an
|
||||
independent copy of it.
|
||||
|
||||
The dictionary is emptied when the |autocommand| finishes,
|
||||
please refer to |dict-identity| for how to get an independent
|
||||
copy of it. Use |deepcopy()| if you want to keep the
|
||||
information after the event triggers. Example: >
|
||||
au TextYankPost * let g:foo = deepcopy(v:event)
|
||||
<
|
||||
*v:exception* *exception-variable*
|
||||
v:exception The value of the exception most recently caught and not
|
||||
finished. See also |v:throwpoint| and |throw-variables|.
|
||||
@@ -2315,11 +2324,12 @@ argidx() Number current index in the argument list
|
||||
arglistid([{winnr} [, {tabnr}]]) Number argument list id
|
||||
argv({nr} [, {winid}]) String {nr} entry of the argument list
|
||||
argv([-1, {winid}]) List the argument list
|
||||
asin({expr}) Float arc sine of {expr}
|
||||
assert_beeps({cmd}) Number assert {cmd} causes a beep
|
||||
assert_equal({exp}, {act} [, {msg}])
|
||||
Number assert {exp} is equal to {act}
|
||||
assert_equalfile({fname-one}, {fname-two})
|
||||
Number assert file contents is equal
|
||||
assert_equalfile({fname-one}, {fname-two} [, {msg}])
|
||||
Number assert file contents are equal
|
||||
assert_exception({error} [, {msg}])
|
||||
Number assert {error} is in v:exception
|
||||
assert_fails({cmd} [, {error} [, {msg}]])
|
||||
@@ -2336,7 +2346,6 @@ assert_notmatch({pat}, {text} [, {msg}])
|
||||
Number assert {pat} not matches {text}
|
||||
assert_report({msg}) Number report a test failure
|
||||
assert_true({actual} [, {msg}]) Number assert {actual} is true
|
||||
asin({expr}) Float arc sine of {expr}
|
||||
atan({expr}) Float arc tangent of {expr}
|
||||
atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
|
||||
balloon_gettext() String current text in the balloon
|
||||
@@ -2427,12 +2436,12 @@ executable({expr}) Number 1 if executable {expr} exists
|
||||
execute({command}) String execute {command} and get the output
|
||||
exepath({expr}) String full path of the command {expr}
|
||||
exists({expr}) Number |TRUE| if {expr} exists
|
||||
extend({expr1}, {expr2} [, {expr3}])
|
||||
List/Dict insert items of {expr2} into {expr1}
|
||||
exp({expr}) Float exponential of {expr}
|
||||
expand({expr} [, {nosuf} [, {list}]])
|
||||
any expand special keywords in {expr}
|
||||
expandcmd({expr}) String expand {expr} like with `:edit`
|
||||
extend({expr1}, {expr2} [, {expr3}])
|
||||
List/Dict insert items of {expr2} into {expr1}
|
||||
feedkeys({string} [, {mode}]) Number add key sequence to typeahead buffer
|
||||
filereadable({file}) Number |TRUE| if {file} is a readable file
|
||||
filewritable({file}) Number |TRUE| if {file} is a writable file
|
||||
@@ -2490,14 +2499,16 @@ getjumplist([{winnr} [, {tabnr}]])
|
||||
getline({lnum}) String line {lnum} of current buffer
|
||||
getline({lnum}, {end}) List lines {lnum} to {end} of current buffer
|
||||
getloclist({nr} [, {what}]) List list of location list items
|
||||
getmarklist([{expr}]) List list of global/local marks
|
||||
getmatches([{win}]) List list of current matches
|
||||
getmousepos() Dict last known mouse position
|
||||
getpid() Number process ID of Vim
|
||||
getpos({expr}) List position of cursor, mark, etc.
|
||||
getqflist([{what}]) List list of quickfix items
|
||||
getreg([{regname} [, 1 [, {list}]]])
|
||||
String or List contents of register
|
||||
getregtype([{regname}]) String type of register
|
||||
String or List contents of a register
|
||||
getreginfo([{regname}]) Dict information about a register
|
||||
getregtype([{regname}]) String type of a register
|
||||
gettabinfo([{expr}]) List list of tab pages
|
||||
gettabvar({nr}, {varname} [, {def}])
|
||||
any variable {varname} in tab {nr} or {def}
|
||||
@@ -2526,8 +2537,8 @@ histadd({history}, {item}) Number add an item to a history
|
||||
histdel({history} [, {item}]) Number remove an item from a history
|
||||
histget({history} [, {index}]) String get the item {index} from a history
|
||||
histnr({history}) Number highest index of a history
|
||||
hlexists({name}) Number |TRUE| if highlight group {name} exists
|
||||
hlID({name}) Number syntax ID of highlight group {name}
|
||||
hlexists({name}) Number |TRUE| if highlight group {name} exists
|
||||
hostname() String name of the machine Vim is running on
|
||||
iconv({expr}, {from}, {to}) String convert encoding of {expr}
|
||||
indent({lnum}) Number indent of line {lnum}
|
||||
@@ -2584,6 +2595,8 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]])
|
||||
rhs of mapping {name} in mode {mode}
|
||||
mapcheck({name} [, {mode} [, {abbr}]])
|
||||
String check for mappings matching {name}
|
||||
mapset({mode}, {abbr}, {dict})
|
||||
none restore mapping from |maparg()| result
|
||||
match({expr}, {pat} [, {start} [, {count}]])
|
||||
Number position where {pat} matches in {expr}
|
||||
matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]])
|
||||
@@ -2625,14 +2638,16 @@ popup_findpreview() Number get window ID of preview popup window
|
||||
popup_getoptions({id}) Dict get options of popup window {id}
|
||||
popup_getpos({id}) Dict get position of popup window {id}
|
||||
popup_hide({id}) none hide popup menu {id}
|
||||
popup_list() List get a list of window IDs of all popups
|
||||
popup_locate({row}, {col}) Number get window ID of popup at position
|
||||
popup_menu({what}, {options}) Number create a popup window used as a menu
|
||||
popup_move({id}, {options}) none set position of popup window {id}
|
||||
popup_notification({what}, {options})
|
||||
Number create a notification popup window
|
||||
popup_show({id}) none unhide popup window {id}
|
||||
popup_setoptions({id}, {options})
|
||||
none set options for popup window {id}
|
||||
popup_settext({id}, {text}) none set the text of popup window {id}
|
||||
popup_show({id}) none unhide popup window {id}
|
||||
pow({x}, {y}) Float {x} to the power of {y}
|
||||
prevnonblank({lnum}) Number line nr of non-blank line <= {lnum}
|
||||
printf({fmt}, {expr1}...) String format text
|
||||
@@ -2644,7 +2659,7 @@ prop_clear({lnum} [, {lnum-end} [, {props}]])
|
||||
none remove all text properties
|
||||
prop_find({props} [, {direction}])
|
||||
Dict search for a text property
|
||||
prop_list({lnum} [, {props}) List text properties in {lnum}
|
||||
prop_list({lnum} [, {props}]) List text properties in {lnum}
|
||||
prop_remove({props} [, {lnum} [, {lnum-end}]])
|
||||
Number remove a text property
|
||||
prop_type_add({name}, {props}) none define a new property type
|
||||
@@ -2652,20 +2667,23 @@ prop_type_change({name}, {props})
|
||||
none change an existing property type
|
||||
prop_type_delete({name} [, {props}])
|
||||
none delete a property type
|
||||
prop_type_get([{name} [, {props}])
|
||||
prop_type_get([{name} [, {props}]])
|
||||
Dict get property type values
|
||||
prop_type_list([{props}]) List get list of property types
|
||||
pum_getpos() Dict position and size of pum if visible
|
||||
pumvisible() Number whether popup menu is visible
|
||||
pyeval({expr}) any evaluate |Python| expression
|
||||
py3eval({expr}) any evaluate |python3| expression
|
||||
pyeval({expr}) any evaluate |Python| expression
|
||||
pyxeval({expr}) any evaluate |python_x| expression
|
||||
rand([{expr}]) Number get pseudo-random number
|
||||
range({expr} [, {max} [, {stride}]])
|
||||
List items from {expr} to {max}
|
||||
readdir({dir} [, {expr}]) List file names in {dir} selected by {expr}
|
||||
readdirex({dir} [, {expr}]) List file info in {dir} selected by {expr}
|
||||
readfile({fname} [, {type} [, {max}]])
|
||||
List get list of lines from file {fname}
|
||||
reduce({object}, {func} [, {initial}])
|
||||
any reduce {object} using {func}
|
||||
reg_executing() String get the executing register name
|
||||
reg_recording() String get the recording register name
|
||||
reltime([{start} [, {end}]]) List get time value
|
||||
@@ -2699,15 +2717,16 @@ screencol() Number current cursor column
|
||||
screenpos({winid}, {lnum}, {col}) Dict screen row and col of a text character
|
||||
screenrow() Number current cursor row
|
||||
screenstring({row}, {col}) String characters at screen position
|
||||
search({pattern} [, {flags} [, {stopline} [, {timeout}]]])
|
||||
search({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
|
||||
Number search for {pattern}
|
||||
searchcount([{options}]) Dict get or update search stats
|
||||
searchdecl({name} [, {global} [, {thisblock}]])
|
||||
Number search for variable declaration
|
||||
searchpair({start}, {middle}, {end} [, {flags} [, {skip} [...]]])
|
||||
Number search for other end of start/end pair
|
||||
searchpairpos({start}, {middle}, {end} [, {flags} [, {skip} [...]]])
|
||||
List search for other end of start/end pair
|
||||
searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]])
|
||||
searchpos({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
|
||||
List search for {pattern}
|
||||
server2client({clientid}, {string})
|
||||
Number send reply string
|
||||
@@ -2781,9 +2800,9 @@ str2list({expr} [, {utf8}]) List convert each character of {expr} to
|
||||
ASCII/UTF8 value
|
||||
str2nr({expr} [, {base} [, {quoted}]])
|
||||
Number convert String to Number
|
||||
strchars({expr} [, {skipcc}]) Number character length of the String {expr}
|
||||
strcharpart({str}, {start} [, {len}])
|
||||
String {len} characters of {str} at {start}
|
||||
strchars({expr} [, {skipcc}]) Number character length of the String {expr}
|
||||
strdisplaywidth({expr} [, {col}]) Number display length of the String {expr}
|
||||
strftime({format} [, {time}]) String format time with a specified format
|
||||
strgetchar({str}, {index}) Number get char {index} from {str}
|
||||
@@ -2816,8 +2835,8 @@ systemlist({expr} [, {input}]) List output of shell command/filter {expr}
|
||||
tabpagebuflist([{arg}]) List list of buffer numbers in tab page
|
||||
tabpagenr([{arg}]) Number number of current or last tab page
|
||||
tabpagewinnr({tabarg} [, {arg}]) Number number of current window in tab page
|
||||
taglist({expr} [, {filename}]) List list of tags matching {expr}
|
||||
tagfiles() List tags files used
|
||||
taglist({expr} [, {filename}]) List list of tags matching {expr}
|
||||
tan({expr}) Float tangent of {expr}
|
||||
tanh({expr}) Float hyperbolic tangent of {expr}
|
||||
tempname() String name for a temporary file
|
||||
@@ -2841,9 +2860,9 @@ term_gettty({buf}, [{input}]) String get the tty name of a terminal
|
||||
term_list() List get the list of terminal buffers
|
||||
term_scrape({buf}, {row}) List get row of a terminal screen
|
||||
term_sendkeys({buf}, {keys}) none send keystrokes to a terminal
|
||||
term_setapi({buf}, {expr}) none set |terminal-api| function name prefix
|
||||
term_setansicolors({buf}, {colors})
|
||||
none set ANSI palette in GUI color mode
|
||||
term_setapi({buf}, {expr}) none set |terminal-api| function name prefix
|
||||
term_setkill({buf}, {how}) none set signal to stop job in terminal
|
||||
term_setrestore({buf}, {command}) none set command to restore terminal
|
||||
term_setsize({buf}, {rows}, {cols})
|
||||
@@ -2866,16 +2885,16 @@ test_null_job() Job null value for testing
|
||||
test_null_list() List null value for testing
|
||||
test_null_partial() Funcref null value for testing
|
||||
test_null_string() String null value for testing
|
||||
test_unknown() any unknown value for testing
|
||||
test_void() any void value for testing
|
||||
test_option_not_set({name}) none reset flag indicating option was set
|
||||
test_override({expr}, {val}) none test with Vim internal overrides
|
||||
test_refcount({expr}) Number get the reference count of {expr}
|
||||
test_scrollbar({which}, {value}, {dragging})
|
||||
none scroll in the GUI for testing
|
||||
test_setmouse({row}, {col}) none set the mouse position for testing
|
||||
test_srand_seed([seed]) none set seed for testing srand()
|
||||
test_settime({expr}) none set current time for testing
|
||||
test_srand_seed([seed]) none set seed for testing srand()
|
||||
test_unknown() any unknown value for testing
|
||||
test_void() any void value for testing
|
||||
timer_info([{id}]) List information about timers
|
||||
timer_pause({id}, {pause}) none pause or unpause a timer
|
||||
timer_start({time}, {callback} [, {options}])
|
||||
@@ -2886,7 +2905,8 @@ tolower({expr}) String the String {expr} switched to lowercase
|
||||
toupper({expr}) String the String {expr} switched to uppercase
|
||||
tr({src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
|
||||
to chars in {tostr}
|
||||
trim({text} [, {mask}]) String trim characters in {mask} from {text}
|
||||
trim({text} [, {mask} [, {dir}]])
|
||||
String trim characters in {mask} from {text}
|
||||
trunc({expr}) Float truncate Float {expr}
|
||||
type({name}) Number type of variable {name}
|
||||
undofile({name}) String undo file name for {name}
|
||||
@@ -2901,15 +2921,16 @@ win_execute({id}, {command} [, {silent}])
|
||||
String execute {command} in window {id}
|
||||
win_findbuf({bufnr}) List find windows containing {bufnr}
|
||||
win_getid([{win} [, {tab}]]) Number get window ID for {win} in {tab}
|
||||
win_gettype([{nr}]) String type of window {nr}
|
||||
win_gotoid({expr}) Number go to window with ID {expr}
|
||||
win_id2tabwin({expr}) List get tab and window nr from window ID
|
||||
win_id2win({expr}) Number get window nr from window ID
|
||||
win_screenpos({nr}) List get screen position of window {nr}
|
||||
win_splitmove({nr}, {target} [, {options}])
|
||||
Number move window {nr} to split of {target}
|
||||
win_type([{nr}]) String type of window {nr}
|
||||
winbufnr({nr}) Number buffer number of window {nr}
|
||||
wincol() Number window column of the cursor
|
||||
windowsversion() String MS-Windows OS version
|
||||
winheight({nr}) Number height of window {nr}
|
||||
winlayout([{tabnr}]) List layout of windows in tab {tabnr}
|
||||
winline() Number window line of the cursor
|
||||
@@ -3048,7 +3069,7 @@ arglistid([{winnr} [, {tabnr}]])
|
||||
{winnr} can be the window number or the |window-ID|.
|
||||
|
||||
*argv()*
|
||||
argv([{nr} [, {winid}])
|
||||
argv([{nr} [, {winid}]])
|
||||
The result is the {nr}th file in the argument list. See
|
||||
|arglist|. "argv(0)" is the first one. Example: >
|
||||
:let i = 0
|
||||
@@ -4025,7 +4046,7 @@ executable({expr}) *executable()*
|
||||
On MS-Windows the ".exe", ".bat", etc. can optionally be
|
||||
included. Then the extensions in $PATHEXT are tried. Thus if
|
||||
"foo.exe" does not exist, "foo.exe.bat" can be found. If
|
||||
$PATHEXT is not set then ".exe;.com;.bat;.cmd" is used. A dot
|
||||
$PATHEXT is not set then ".com;.exe;.bat;.cmd" is used. A dot
|
||||
by itself can be used in $PATHEXT to try using the name
|
||||
without an extension. When 'shell' looks like a Unix shell,
|
||||
then the name is also tried without adding an extension.
|
||||
@@ -4376,7 +4397,7 @@ feedkeys({string} [, {mode}]) *feedkeys()*
|
||||
script continues.
|
||||
Note that if you manage to call feedkeys() while
|
||||
executing commands, thus calling it recursively, then
|
||||
all typehead will be consumed by the last call.
|
||||
all typeahead will be consumed by the last call.
|
||||
'!' When used with 'x' will not end Insert mode. Can be
|
||||
used in a test when a timer is set to exit Insert mode
|
||||
a little later. Useful for testing CursorHoldI.
|
||||
@@ -4412,7 +4433,7 @@ filewritable({file}) *filewritable()*
|
||||
directory, and we can write to it, the result is 2.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetName()->filewriteable()
|
||||
GetName()->filewritable()
|
||||
|
||||
|
||||
filter({expr1}, {expr2}) *filter()*
|
||||
@@ -5137,10 +5158,11 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
||||
<
|
||||
*getcurpos()*
|
||||
getcurpos() Get the position of the cursor. This is like getpos('.'), but
|
||||
includes an extra item in the list:
|
||||
[bufnum, lnum, col, off, curswant] ~
|
||||
includes an extra "curswant" item in the list:
|
||||
[0, lnum, col, off, curswant] ~
|
||||
The "curswant" number is the preferred column when moving the
|
||||
cursor vertically. Also see |getpos()|.
|
||||
The first "bufnum" item is always zero.
|
||||
|
||||
This can be used to save and restore the cursor position: >
|
||||
let save_cursor = getcurpos()
|
||||
@@ -5352,6 +5374,27 @@ getloclist({nr} [, {what}]) *getloclist()*
|
||||
|location-list-file-window| for more
|
||||
details.
|
||||
|
||||
getmarklist([{expr}] *getmarklist()*
|
||||
Without the {expr} argument returns a |List| with information
|
||||
about all the global marks. |mark|
|
||||
|
||||
If the optional {expr} argument is specified, returns the
|
||||
local marks defined in buffer {expr}. For the use of {expr},
|
||||
see |bufname()|.
|
||||
|
||||
Each item in the retuned List is a |Dict| with the following:
|
||||
name - name of the mark prefixed by "'"
|
||||
pos - a |List| with the position of the mark:
|
||||
[bufnum, lnum, col, off]
|
||||
Refer to |getpos()| for more information.
|
||||
file - file name
|
||||
|
||||
Refer to |getpos()| for getting information about a specific
|
||||
mark.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetBufnr()->getmarklist()
|
||||
|
||||
getmatches([{win}]) *getmatches()*
|
||||
Returns a |List| with all matches previously defined for the
|
||||
current window by |matchadd()| and the |:match| commands.
|
||||
@@ -5391,7 +5434,7 @@ getmousepos() *getmousepos()*
|
||||
"screenrow" and "screencol" are valid, the others are zero.
|
||||
|
||||
When on the status line below a window or the vertical
|
||||
separater right of a window, the "line" and "column" values
|
||||
separator right of a window, the "line" and "column" values
|
||||
are zero.
|
||||
|
||||
When the position is after the text then "column" is the
|
||||
@@ -5474,8 +5517,9 @@ getqflist([{what}]) *getqflist()*
|
||||
id get information for the quickfix list with
|
||||
|quickfix-ID|; zero means the id for the
|
||||
current list or the list specified by "nr"
|
||||
idx index of the current entry in the quickfix
|
||||
list specified by 'id' or 'nr'.
|
||||
idx get information for the quickfix entry at this
|
||||
index in the list specified by 'id' or 'nr'.
|
||||
If set to zero, then uses the current entry.
|
||||
See |quickfix-index|
|
||||
items quickfix list entries
|
||||
lines parse a list of lines using 'efm' and return
|
||||
@@ -5511,7 +5555,7 @@ getqflist([{what}]) *getqflist()*
|
||||
If not present, set to "".
|
||||
id quickfix list ID |quickfix-ID|. If not
|
||||
present, set to 0.
|
||||
idx index of the current entry in the list. If not
|
||||
idx index of the quickfix entry in the list. If not
|
||||
present, set to 0.
|
||||
items quickfix list entries. If not present, set to
|
||||
an empty list.
|
||||
@@ -5553,6 +5597,31 @@ getreg([{regname} [, 1 [, {list}]]]) *getreg()*
|
||||
Can also be used as a |method|: >
|
||||
GetRegname()->getreg()
|
||||
|
||||
getreginfo([{regname}]) *getreginfo()*
|
||||
Returns detailed information about register {regname} as a
|
||||
Dictionary with the following entries:
|
||||
regcontents List of lines contained in register
|
||||
{regname}, like
|
||||
|getreg|({regname}, 1, 1).
|
||||
regtype the type of register {regname}, as in
|
||||
|getregtype()|.
|
||||
isunnamed Boolean flag, v:true if this register
|
||||
is currently pointed to by the unnamed
|
||||
register.
|
||||
points_to for the unnamed register, gives the
|
||||
single letter name of the register
|
||||
currently pointed to (see |quotequote|).
|
||||
For example, after deleting a line
|
||||
with `dd`, this field will be "1",
|
||||
which is the register that got the
|
||||
deleted text.
|
||||
|
||||
If {regname} is invalid or not set, an empty Dictionary
|
||||
will be returned.
|
||||
If {regname} is not specified, |v:register| is used.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetRegname()->getreginfo()
|
||||
|
||||
getregtype([{regname}]) *getregtype()*
|
||||
The result is a String, which is type of register {regname}.
|
||||
@@ -5851,7 +5920,7 @@ has({feature} [, {check}])
|
||||
|
||||
Note that to skip code that has a syntax error when the
|
||||
feature is not available, Vim may skip the rest of the line
|
||||
and miss a following `endif`. Therfore put the `endif` on a
|
||||
and miss a following `endif`. Therefore put the `endif` on a
|
||||
separate line: >
|
||||
if has('feature')
|
||||
let x = this->breaks->without->the->feature
|
||||
@@ -6789,6 +6858,7 @@ map({expr1}, {expr2}) *map()*
|
||||
Can also be used as a |method|: >
|
||||
mylist->map(expr2)
|
||||
|
||||
|
||||
maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
|
||||
When {dict} is omitted or zero: Return the rhs of mapping
|
||||
{name} in mode {mode}. The returned String has special
|
||||
@@ -6821,7 +6891,10 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
|
||||
When {dict} is there and it is |TRUE| return a dictionary
|
||||
containing all the information of the mapping with the
|
||||
following items:
|
||||
"lhs" The {lhs} of the mapping.
|
||||
"lhs" The {lhs} of the mapping as it would be typed
|
||||
"lhsraw" The {lhs} of the mapping as raw bytes
|
||||
"lhsrawalt" The {lhs} of the mapping as raw bytes, alternate
|
||||
form, only present when it differs from "lhsraw"
|
||||
"rhs" The {rhs} of the mapping as typed.
|
||||
"silent" 1 for a |:map-silent| mapping, else 0.
|
||||
"noremap" 1 if the {rhs} of the mapping is not remappable.
|
||||
@@ -6840,6 +6913,9 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
|
||||
"nowait" Do not wait for other, longer mappings.
|
||||
(|:map-<nowait>|).
|
||||
|
||||
The dictionary can be used to restore a mapping with
|
||||
|mapset()|.
|
||||
|
||||
The mappings local to the current buffer are checked first,
|
||||
then the global mappings.
|
||||
This function can be used to map a key even when it's already
|
||||
@@ -6885,6 +6961,23 @@ mapcheck({name} [, {mode} [, {abbr}]]) *mapcheck()*
|
||||
Can also be used as a |method|: >
|
||||
GetKey()->mapcheck('n')
|
||||
|
||||
|
||||
mapset({mode}, {abbr}, {dict}) *mapset()*
|
||||
Restore a mapping from a dictionary returned by |maparg()|.
|
||||
{mode} and {abbr} should be the same as for the call to
|
||||
|maparg()|. *E460*
|
||||
{mode} is used to define the mode in which the mapping is set,
|
||||
not the "mode" entry in {dict}.
|
||||
Example for saving and restoring a mapping: >
|
||||
let save_map = maparg('K', 'n', 0, 1)
|
||||
nnoremap K somethingelse
|
||||
...
|
||||
call mapset('n', 0, save_map)
|
||||
< Note that if you are going to replace a map in several modes,
|
||||
e.g. with `:map!`, you need to save the mapping for all of
|
||||
them, since they can differ.
|
||||
|
||||
|
||||
match({expr}, {pat} [, {start} [, {count}]]) *match()*
|
||||
When {expr} is a |List| then this returns the index of the
|
||||
first item where {pat} matches. Each item is used as a
|
||||
@@ -7765,7 +7858,7 @@ range({expr} [, {max} [, {stride}]]) *range()*
|
||||
GetExpr()->range()
|
||||
<
|
||||
|
||||
rand([{expr}]) *rand()*
|
||||
rand([{expr}]) *rand()* *random*
|
||||
Return a pseudo-random Number generated with an xoshiro128**
|
||||
algorithm using seed {expr}. The returned number is 32 bits,
|
||||
also on 64 bits systems, for consistency.
|
||||
@@ -7779,11 +7872,11 @@ rand([{expr}]) *rand()*
|
||||
:echo rand(seed)
|
||||
:echo rand(seed) % 16 " random number 0 - 15
|
||||
<
|
||||
*readdir()*
|
||||
readdir({directory} [, {expr}])
|
||||
readdir({directory} [, {expr}]) *readdir()*
|
||||
Return a list with file and directory names in {directory}.
|
||||
You can also use |glob()| if you don't need to do complicated
|
||||
things, such as limiting the number of matches.
|
||||
The list will be sorted (case sensitive).
|
||||
|
||||
When {expr} is omitted all entries are included.
|
||||
When {expr} is given, it is evaluated to check what to do:
|
||||
@@ -7793,6 +7886,7 @@ readdir({directory} [, {expr}])
|
||||
added to the list.
|
||||
If {expr} results in 1 then this entry will be added
|
||||
to the list.
|
||||
The entries "." and ".." are always excluded.
|
||||
Each time {expr} is evaluated |v:val| is set to the entry name.
|
||||
When {expr} is a function the name is passed as the argument.
|
||||
For example, to get a list of files ending in ".txt": >
|
||||
@@ -7810,6 +7904,59 @@ readdir({directory} [, {expr}])
|
||||
<
|
||||
Can also be used as a |method|: >
|
||||
GetDirName()->readdir()
|
||||
<
|
||||
readdirex({directory} [, {expr}]) *readdirex()*
|
||||
Extended version of |readdir()|.
|
||||
Return a list of Dictionaries with file and directory
|
||||
information in {directory}.
|
||||
This is useful if you want to get the attributes of file and
|
||||
directory at the same time as getting a list of a directory.
|
||||
This is much faster than calling |readdir()| then calling
|
||||
|getfperm()|, |getfsize()|, |getftime()| and |getftype()| for
|
||||
each file and directory especially on MS-Windows.
|
||||
The list will be sorted by name (case sensitive).
|
||||
|
||||
The Dictionary for file and directory information has the
|
||||
following items:
|
||||
group Group name of the entry. (Only on Unix)
|
||||
name Name of the entry.
|
||||
perm Permissions of the entry. See |getfperm()|.
|
||||
size Size of the entry. See |getfsize()|.
|
||||
time Timestamp of the entry. See |getftime()|.
|
||||
type Type of the entry.
|
||||
On Unix, almost same as |getftype()| except:
|
||||
Symlink to a dir "linkd"
|
||||
Other symlink "link"
|
||||
On MS-Windows:
|
||||
Normal file "file"
|
||||
Directory "dir"
|
||||
Junction "junction"
|
||||
Symlink to a dir "linkd"
|
||||
Other symlink "link"
|
||||
Other reparse point "reparse"
|
||||
user User name of the entry's owner. (Only on Unix)
|
||||
On Unix, if the entry is a symlink, the Dictionary includes
|
||||
the information of the target (except the "type" item).
|
||||
On MS-Windows, it includes the information of the symlink
|
||||
itself because of performance reasons.
|
||||
|
||||
When {expr} is omitted all entries are included.
|
||||
When {expr} is given, it is evaluated to check what to do:
|
||||
If {expr} results in -1 then no further entries will
|
||||
be handled.
|
||||
If {expr} results in 0 then this entry will not be
|
||||
added to the list.
|
||||
If {expr} results in 1 then this entry will be added
|
||||
to the list.
|
||||
The entries "." and ".." are always excluded.
|
||||
Each time {expr} is evaluated |v:val| is set to a Dictionary
|
||||
of the entry.
|
||||
When {expr} is a function the entry is passed as the argument.
|
||||
For example, to get a list of files ending in ".txt": >
|
||||
readdirex(dirname, {e -> e.name =~ '.txt$'})
|
||||
<
|
||||
Can also be used as a |method|: >
|
||||
GetDirName()->readdirex()
|
||||
<
|
||||
*readfile()*
|
||||
readfile({fname} [, {type} [, {max}]])
|
||||
@@ -7848,6 +7995,26 @@ readfile({fname} [, {type} [, {max}]])
|
||||
Can also be used as a |method|: >
|
||||
GetFileName()->readfile()
|
||||
|
||||
reduce({object}, {func} [, {initial}]) *reduce()* *E998*
|
||||
{func} is called for every item in {object}, which can be a
|
||||
|List| or a |Blob|. {func} is called with two arguments: the
|
||||
result so far and current item. After processing all items
|
||||
the result is returned.
|
||||
|
||||
{initial} is the initial result. When omitted, the first item
|
||||
in {object} is used and {func} is first called for the second
|
||||
item. If {initial} is not given and {object} is empty no
|
||||
result can be computed, an E998 error is given.
|
||||
|
||||
Examples: >
|
||||
echo reduce([1, 3, 5], { acc, val -> acc + val })
|
||||
echo reduce(['x', 'y'], { acc, val -> acc .. val }, 'a')
|
||||
echo reduce(0z1122, { acc, val -> 2 * acc + val })
|
||||
<
|
||||
Can also be used as a |method|: >
|
||||
echo mylist->reduce({ acc, val -> acc + val }, 0)
|
||||
|
||||
|
||||
reg_executing() *reg_executing()*
|
||||
Returns the single letter name of the register being executed.
|
||||
Returns an empty string when no register is being executed.
|
||||
@@ -8223,8 +8390,9 @@ screenstring({row}, {col}) *screenstring()*
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetRow()->screenstring(col)
|
||||
|
||||
search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
|
||||
<
|
||||
*search()*
|
||||
search({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
|
||||
Search for regexp pattern {pattern}. The search starts at the
|
||||
cursor position (you can use |cursor()| to set it).
|
||||
|
||||
@@ -8272,6 +8440,15 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
|
||||
giving the argument.
|
||||
{only available when compiled with the |+reltime| feature}
|
||||
|
||||
If the {skip} expression is given it is evaluated with the
|
||||
cursor positioned on the start of a match. If it evaluates to
|
||||
non-zero this match is skipped. This can be used, for
|
||||
example, to skip a match in a comment or a string.
|
||||
{skip} can be a string, which is evaluated as an expression, a
|
||||
function reference or a lambda.
|
||||
When {skip} is omitted or empty, every match is accepted.
|
||||
When evaluating {skip} causes an error the search is aborted
|
||||
and -1 returned.
|
||||
*search()-sub-match*
|
||||
With the 'p' flag the returned value is one more than the
|
||||
first sub-match in \(\). One if none of them matched but the
|
||||
@@ -8313,6 +8490,128 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
|
||||
Can also be used as a |method|: >
|
||||
GetPattern()->search()
|
||||
|
||||
searchcount([{options}]) *searchcount()*
|
||||
Get or update the last search count, like what is displayed
|
||||
without the "S" flag in 'shortmess'. This works even if
|
||||
'shortmess' does contain the "S" flag.
|
||||
|
||||
This returns a Dictionary. The dictionary is empty if the
|
||||
previous pattern was not set and "pattern" was not specified.
|
||||
|
||||
key type meaning ~
|
||||
current |Number| current position of match;
|
||||
0 if the cursor position is
|
||||
before the first match
|
||||
exact_match |Boolean| 1 if "current" is matched on
|
||||
"pos", otherwise 0
|
||||
total |Number| total count of matches found
|
||||
incomplete |Number| 0: search was fully completed
|
||||
1: recomputing was timed out
|
||||
2: max count exceeded
|
||||
|
||||
For {options} see further down.
|
||||
|
||||
To get the last search count when |n| or |N| was pressed, call
|
||||
this function with `recompute: 0` . This sometimes returns
|
||||
wrong information because |n| and |N|'s maximum count is 99.
|
||||
If it exceeded 99 the result must be max count + 1 (100). If
|
||||
you want to get correct information, specify `recompute: 1`: >
|
||||
|
||||
" result == maxcount + 1 (100) when many matches
|
||||
let result = searchcount(#{recompute: 0})
|
||||
|
||||
" Below returns correct result (recompute defaults
|
||||
" to 1)
|
||||
let result = searchcount()
|
||||
<
|
||||
The function is useful to add the count to |statusline|: >
|
||||
function! LastSearchCount() abort
|
||||
let result = searchcount(#{recompute: 0})
|
||||
if empty(result)
|
||||
return ''
|
||||
endif
|
||||
if result.incomplete ==# 1 " timed out
|
||||
return printf(' /%s [?/??]', @/)
|
||||
elseif result.incomplete ==# 2 " max count exceeded
|
||||
if result.total > result.maxcount &&
|
||||
\ result.current > result.maxcount
|
||||
return printf(' /%s [>%d/>%d]', @/,
|
||||
\ result.current, result.total)
|
||||
elseif result.total > result.maxcount
|
||||
return printf(' /%s [%d/>%d]', @/,
|
||||
\ result.current, result.total)
|
||||
endif
|
||||
endif
|
||||
return printf(' /%s [%d/%d]', @/,
|
||||
\ result.current, result.total)
|
||||
endfunction
|
||||
let &statusline .= '%{LastSearchCount()}'
|
||||
|
||||
" Or if you want to show the count only when
|
||||
" 'hlsearch' was on
|
||||
" let &statusline .=
|
||||
" \ '%{v:hlsearch ? LastSearchCount() : ""}'
|
||||
<
|
||||
You can also update the search count, which can be useful in a
|
||||
|CursorMoved| or |CursorMovedI| autocommand: >
|
||||
|
||||
autocmd CursorMoved,CursorMovedI *
|
||||
\ let s:searchcount_timer = timer_start(
|
||||
\ 200, function('s:update_searchcount'))
|
||||
function! s:update_searchcount(timer) abort
|
||||
if a:timer ==# s:searchcount_timer
|
||||
call searchcount(#{
|
||||
\ recompute: 1, maxcount: 0, timeout: 100})
|
||||
redrawstatus
|
||||
endif
|
||||
endfunction
|
||||
<
|
||||
This can also be used to count matched texts with specified
|
||||
pattern in the current buffer using "pattern": >
|
||||
|
||||
" Count '\<foo\>' in this buffer
|
||||
" (Note that it also updates search count)
|
||||
let result = searchcount(#{pattern: '\<foo\>'})
|
||||
|
||||
" To restore old search count by old pattern,
|
||||
" search again
|
||||
call searchcount()
|
||||
<
|
||||
{options} must be a Dictionary. It can contain:
|
||||
key type meaning ~
|
||||
recompute |Boolean| if |TRUE|, recompute the count
|
||||
like |n| or |N| was executed.
|
||||
otherwise returns the last
|
||||
computed result (when |n| or
|
||||
|N| was used when "S" is not
|
||||
in 'shortmess', or this
|
||||
function was called).
|
||||
(default: |TRUE|)
|
||||
pattern |String| recompute if this was given
|
||||
and different with |@/|.
|
||||
this works as same as the
|
||||
below command is executed
|
||||
before calling this function >
|
||||
let @/ = pattern
|
||||
< (default: |@/|)
|
||||
timeout |Number| 0 or negative number is no
|
||||
timeout. timeout milliseconds
|
||||
for recomputing the result
|
||||
(default: 0)
|
||||
maxcount |Number| 0 or negative number is no
|
||||
limit. max count of matched
|
||||
text while recomputing the
|
||||
result. if search exceeded
|
||||
total count, "total" value
|
||||
becomes `maxcount + 1`
|
||||
(default: 0)
|
||||
pos |List| `[lnum, col, off]` value
|
||||
when recomputing the result.
|
||||
this changes "current" result
|
||||
value. see |cursor()|, |getpos()
|
||||
(default: cursor's position)
|
||||
|
||||
|
||||
searchdecl({name} [, {global} [, {thisblock}]]) *searchdecl()*
|
||||
Search for the declaration of {name}.
|
||||
|
||||
@@ -8433,7 +8732,8 @@ searchpairpos({start}, {middle}, {end} [, {flags} [, {skip}
|
||||
<
|
||||
See |match-parens| for a bigger and more useful example.
|
||||
|
||||
searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *searchpos()*
|
||||
*searchpos()*
|
||||
searchpos({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
|
||||
Same as |search()|, but returns a |List| with the line and
|
||||
column position of the match. The first element of the |List|
|
||||
is the line number and the second element is the byte index of
|
||||
@@ -8638,8 +8938,8 @@ setloclist({nr}, {list} [, {action} [, {what}]]) *setloclist()*
|
||||
GetLoclist()->setloclist(winnr)
|
||||
|
||||
setmatches({list} [, {win}]) *setmatches()*
|
||||
Restores a list of matches saved by |getmatches() for the
|
||||
current window|. Returns 0 if successful, otherwise -1. All
|
||||
Restores a list of matches saved by |getmatches()| for the
|
||||
current window. Returns 0 if successful, otherwise -1. All
|
||||
current matches are cleared before the list is restored. See
|
||||
example for |getmatches()|.
|
||||
If {win} is specified, use the window with this number or
|
||||
@@ -8783,6 +9083,11 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
|
||||
nr list number in the quickfix stack; zero
|
||||
means the current quickfix list and "$" means
|
||||
the last quickfix list.
|
||||
quickfixtextfunc
|
||||
function to get the text to display in the
|
||||
quickfix window. Refer to
|
||||
|quickfix-window-function| for an explanation
|
||||
of how to write the function and an example.
|
||||
title quickfix list title text. See |quickfix-title|
|
||||
Unsupported keys in {what} are ignored.
|
||||
If the "nr" item is not present, then the current quickfix list
|
||||
@@ -8811,8 +9116,8 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
|
||||
setreg({regname}, {value} [, {options}])
|
||||
Set the register {regname} to {value}.
|
||||
If {regname} is "" or "@", the unnamed register '"' is used.
|
||||
{value} may be any value returned by |getreg()|, including
|
||||
a |List|.
|
||||
{value} may be any value returned by |getreg()| or
|
||||
|getreginfo()|, including a |List| or |Dict|.
|
||||
If {options} contains "a" or {regname} is upper case,
|
||||
then the value is appended.
|
||||
{options} can also contain a register type specification:
|
||||
@@ -8839,9 +9144,13 @@ setreg({regname}, {value} [, {options}])
|
||||
:call setreg(v:register, @*)
|
||||
:call setreg('*', @%, 'ac')
|
||||
:call setreg('a', "1\n2\n3", 'b5')
|
||||
:call setreg('"', { 'points_to': 'a'})
|
||||
|
||||
< This example shows using the functions to save and restore a
|
||||
register: >
|
||||
:let var_a = getreginfo()
|
||||
:call setreg('a', var_a)
|
||||
< or:
|
||||
:let var_a = getreg('a', 1, 1)
|
||||
:let var_amode = getregtype('a')
|
||||
....
|
||||
@@ -8917,18 +9226,10 @@ settagstack({nr}, {dict} [, {action}]) *settagstack()*
|
||||
|
||||
Returns zero for success, -1 for failure.
|
||||
|
||||
Examples:
|
||||
Set current index of the tag stack to 4: >
|
||||
call settagstack(1005, {'curidx' : 4})
|
||||
|
||||
< Empty the tag stack of window 3: >
|
||||
Examples (for more examples see |tagstack-examples||):
|
||||
Empty the tag stack of window 3: >
|
||||
call settagstack(3, {'items' : []})
|
||||
|
||||
< Push a new item onto the tag stack: >
|
||||
let pos = [bufnr('myfile.txt'), 10, 1, 0]
|
||||
let newtag = [{'tagname' : 'mytag', 'from' : pos}]
|
||||
call settagstack(2, {'items' : newtag}, 'a')
|
||||
|
||||
< Save and restore the tag stack: >
|
||||
let stack = gettagstack(1003)
|
||||
" do something else
|
||||
@@ -9024,6 +9325,8 @@ simplify({filename}) *simplify()*
|
||||
directory. In order to resolve all the involved symbolic
|
||||
links before simplifying the path name, use |resolve()|.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetName()->simplify()
|
||||
|
||||
sin({expr}) *sin()*
|
||||
Return the sine of {expr}, measured in radians, as a |Float|.
|
||||
@@ -9384,8 +9687,8 @@ str2nr({expr} [, {base} [, {quoted}]]) *str2nr()*
|
||||
<
|
||||
When {base} is 16 a leading "0x" or "0X" is ignored. With a
|
||||
different base the result will be zero. Similarly, when
|
||||
{base} is 8 a leading "0" is ignored, and when {base} is 2 a
|
||||
leading "0b" or "0B" is ignored.
|
||||
{base} is 8 a leading "0", "0o" or "0O" is ignored, and when
|
||||
{base} is 2 a leading "0b" or "0B" is ignored.
|
||||
Text after the number is silently ignored.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
@@ -10194,13 +10497,22 @@ tr({src}, {fromstr}, {tostr}) *tr()*
|
||||
Can also be used as a |method|: >
|
||||
GetText()->tr(from, to)
|
||||
|
||||
trim({text} [, {mask}]) *trim()*
|
||||
trim({text} [, {mask} [, {dir}]]) *trim()*
|
||||
Return {text} as a String where any character in {mask} is
|
||||
removed from the beginning and end of {text}.
|
||||
removed from the beginning and/or end of {text}.
|
||||
|
||||
If {mask} is not given, {mask} is all characters up to 0x20,
|
||||
which includes Tab, space, NL and CR, plus the non-breaking
|
||||
space character 0xa0.
|
||||
This code deals with multibyte characters properly.
|
||||
|
||||
The optional {dir} argument specifies where to remove the
|
||||
characters:
|
||||
0 remove from the beginning and end of {text}
|
||||
1 remove only at the beginning of {text}
|
||||
2 remove only at the end of {text}
|
||||
When omitted both ends are trimmed.
|
||||
|
||||
This function deals with multibyte characters properly.
|
||||
|
||||
Examples: >
|
||||
echo trim(" some text ")
|
||||
@@ -10208,7 +10520,9 @@ trim({text} [, {mask}]) *trim()*
|
||||
echo trim(" \r\t\t\r RESERVE \t\n\x0B\xA0") . "_TAIL"
|
||||
< returns "RESERVE_TAIL" >
|
||||
echo trim("rm<Xrm<>X>rrm", "rm<>")
|
||||
< returns "Xrm<>X" (characters in the middle are not removed)
|
||||
< returns "Xrm<>X" (characters in the middle are not removed) >
|
||||
echo trim(" vim ", " ", 2)
|
||||
< returns " vim"
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetText()->trim()
|
||||
@@ -10874,6 +11188,8 @@ hpux HP-UX version of Vim.
|
||||
iconv Can use iconv() for conversion.
|
||||
insert_expand Compiled with support for CTRL-X expansion commands in
|
||||
Insert mode. (always true)
|
||||
job Compiled with support for |channel| and |job|
|
||||
ipv6 Compiled with support for IPv6 networking in |channel|.
|
||||
jumplist Compiled with |jumplist| support.
|
||||
keymap Compiled with 'keymap' support.
|
||||
lambda Compiled with |lambda| support.
|
||||
@@ -11117,6 +11433,8 @@ See |:verbose-cmd| for more information.
|
||||
NOTE: Use ! wisely. If used without care it can cause
|
||||
an existing function to be replaced unexpectedly,
|
||||
which is hard to debug.
|
||||
NOTE: In Vim9 script script-local functions cannot be
|
||||
deleted or redefined.
|
||||
|
||||
For the {arguments} see |function-argument|.
|
||||
|
||||
@@ -11238,8 +11556,8 @@ It is allowed to define another function inside a function body.
|
||||
You can provide default values for positional named arguments. This makes
|
||||
them optional for function calls. When a positional argument is not
|
||||
specified at a call, the default expression is used to initialize it.
|
||||
This only works for functions declared with `:function`, not for lambda
|
||||
expressions |expr-lambda|.
|
||||
This only works for functions declared with `:function` or `:def`, not for
|
||||
lambda expressions |expr-lambda|.
|
||||
|
||||
Example: >
|
||||
function Something(key, value = 10)
|
||||
@@ -11277,9 +11595,10 @@ Example that does NOT work: >
|
||||
:function NoGood(first = a:second, second = 10)
|
||||
:endfunction
|
||||
<
|
||||
When not using "...", the number of arguments in a function call must be equal
|
||||
to the number of mandatory named arguments. When using "...", the number of
|
||||
arguments may be larger.
|
||||
When not using "...", the number of arguments in a function call must be at
|
||||
least equal to the number of mandatory named arguments. When using "...", the
|
||||
number of arguments may be larger than the total of mandatory and optional
|
||||
arguments.
|
||||
|
||||
*local-variables*
|
||||
Inside a function local variables can be used. These will disappear when the
|
||||
@@ -11636,7 +11955,7 @@ This does NOT work: >
|
||||
Like above, but append/add/subtract the value for each
|
||||
|List| item.
|
||||
|
||||
:let [{name}, ..., ; {lastname}] = {expr1}
|
||||
:let [{name}, ..., ; {lastname}] = {expr1} *E452*
|
||||
Like |:let-unpack| above, but the |List| may have more
|
||||
items than there are names. A list of the remaining
|
||||
items is assigned to {lastname}. If there are no
|
||||
@@ -13319,13 +13638,16 @@ instead of failing in mysterious ways.
|
||||
<
|
||||
*scriptversion-4* >
|
||||
:scriptversion 4
|
||||
< Numbers with a leading zero are not recognized as octal. With the
|
||||
< Numbers with a leading zero are not recognized as octal. "0o" or "0O"
|
||||
is still recognized as octal. With the
|
||||
previous version you get: >
|
||||
echo 017 " displays 15
|
||||
echo 018 " displays 18
|
||||
echo 017 " displays 15 (octal)
|
||||
echo 0o17 " displays 15 (octal)
|
||||
echo 018 " displays 18 (decimal)
|
||||
< with script version 4: >
|
||||
echo 017 " displays 17
|
||||
echo 018 " displays 18
|
||||
echo 017 " displays 17 (decimal)
|
||||
echo 0o17 " displays 15 (octal)
|
||||
echo 018 " displays 18 (decimal)
|
||||
< Also, it is possible to use single quotes inside numbers to make them
|
||||
easier to read: >
|
||||
echo 1'000'000
|
||||
|
||||
48
runtime/doc/evim-tr.1
Normal file
48
runtime/doc/evim-tr.1
Normal file
@@ -0,0 +1,48 @@
|
||||
.TH EVIM 1 "16 Şubat 2002"
|
||||
.SH AD
|
||||
evim \- kolay Vim, bir dosyayı Vim ile herhangi bir kip olmadan düzenleyin
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B evim
|
||||
[seçenekler] [dosya ..]
|
||||
.br
|
||||
.B eview
|
||||
.SH TANIM
|
||||
.B eVim,
|
||||
.B Vim'i
|
||||
başlatır ve onu herhangi bir kipsiz düzenleyici gibi davranmasını sağlar.
|
||||
Bu bildiğiniz Vim'dir, ancak bir tıkla ve yaz düzenleyicisi gibi çalışır.
|
||||
Bir örnek vermek gerekirse MS-Windows üzerindeki Not Defteri gibi düşünün.
|
||||
.B eVim
|
||||
menülere ve araç çubuklarına erişim sağlayabilmeniz için grafik arabirimde çalışır.
|
||||
.PP
|
||||
Yalnızca Vim ile normal biçimde çalışamayan kişilerin kullanımı içindir.
|
||||
Dosya düzenleme işi çok daha verimsiz olacaktır.
|
||||
.PP
|
||||
.B eview'ün
|
||||
aynısıdır, ancak saltokunur kipte başlar. evim \-R ile de başlatılabilir.
|
||||
.PP
|
||||
Vim hakkında ayrıntılı bilgi için: vim(1)
|
||||
.PP
|
||||
Doğrudan metin girişini sağlayabilmek için 'insertmode' seçeneği açılır.
|
||||
.br
|
||||
Eşlemlemeler Kopyala ve Yapıştır MS-Windows ile aynı olacak biçimde ayarlanır.
|
||||
CTRL-X metni keser, CTRL-C metni kopyalar ve CTRL-V metni yapıştırır.
|
||||
CTRL-V'nin orijinal işlevi için CTRL-Q kullanın.
|
||||
.SH SEÇENEKLER
|
||||
Bilgi için: vim(1).
|
||||
.SH DOSYALAR
|
||||
.TP 15
|
||||
/usr/local/lib/vim/evim.vim
|
||||
eVim'i ilklendirmek için kullanılan betik.
|
||||
.SH NAM-I DİĞER
|
||||
Nam-ı diğer "Lastik Çizmeliler için Vim" (Gumbies, Monty Python).
|
||||
eVim'i kullanırken bir mendili alıp iki ucundan birer düğüm yapmanız
|
||||
ve kafanıza takmanız beklenir.
|
||||
.SH AYRICA BAKINIZ
|
||||
vim(1)
|
||||
.SH YAZAR
|
||||
.B Vim'in
|
||||
büyük çoğunluğu Bram Moolenaar tarafından başkalarının kayda değer
|
||||
yardımlarıyla yazılmıştır.
|
||||
Ek bilgi için Yardım/Teşekkürler menüsüne bakın.
|
||||
48
runtime/doc/evim-tr.UTF-8.1
Normal file
48
runtime/doc/evim-tr.UTF-8.1
Normal file
@@ -0,0 +1,48 @@
|
||||
.TH EVIM 1 "16 Şubat 2002"
|
||||
.SH AD
|
||||
evim \- kolay Vim, bir dosyayı Vim ile herhangi bir kip olmadan düzenleyin
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B evim
|
||||
[seçenekler] [dosya ..]
|
||||
.br
|
||||
.B eview
|
||||
.SH TANIM
|
||||
.B eVim,
|
||||
.B Vim'i
|
||||
başlatır ve onu herhangi bir kipsiz düzenleyici gibi davranmasını sağlar.
|
||||
Bu bildiğiniz Vim'dir, ancak bir tıkla ve yaz düzenleyicisi gibi çalışır.
|
||||
Bir örnek vermek gerekirse MS-Windows üzerindeki Not Defteri gibi düşünün.
|
||||
.B eVim
|
||||
menülere ve araç çubuklarına erişim sağlayabilmeniz için grafik arabirimde çalışır.
|
||||
.PP
|
||||
Yalnızca Vim ile normal biçimde çalışamayan kişilerin kullanımı içindir.
|
||||
Dosya düzenleme işi çok daha verimsiz olacaktır.
|
||||
.PP
|
||||
.B eview'ün
|
||||
aynısıdır, ancak saltokunur kipte başlar. evim \-R ile de başlatılabilir.
|
||||
.PP
|
||||
Vim hakkında ayrıntılı bilgi için: vim(1)
|
||||
.PP
|
||||
Doğrudan metin girişini sağlayabilmek için 'insertmode' seçeneği açılır.
|
||||
.br
|
||||
Eşlemlemeler Kopyala ve Yapıştır MS-Windows ile aynı olacak biçimde ayarlanır.
|
||||
CTRL-X metni keser, CTRL-C metni kopyalar ve CTRL-V metni yapıştırır.
|
||||
CTRL-V'nin orijinal işlevi için CTRL-Q kullanın.
|
||||
.SH SEÇENEKLER
|
||||
Bilgi için: vim(1).
|
||||
.SH DOSYALAR
|
||||
.TP 15
|
||||
/usr/local/lib/vim/evim.vim
|
||||
eVim'i ilklendirmek için kullanılan betik.
|
||||
.SH NAM-I DİĞER
|
||||
Nam-ı diğer "Lastik Çizmeliler için Vim" (Gumbies, Monty Python).
|
||||
eVim'i kullanırken bir mendili alıp iki ucundan birer düğüm yapmanız
|
||||
ve kafanıza takmanız beklenir.
|
||||
.SH AYRICA BAKINIZ
|
||||
vim(1)
|
||||
.SH YAZAR
|
||||
.B Vim'in
|
||||
büyük çoğunluğu Bram Moolenaar tarafından başkalarının kayda değer
|
||||
yardımlarıyla yazılmıştır.
|
||||
Ek bilgi için Yardım/Teşekkürler menüsüne bakın.
|
||||
@@ -199,7 +199,7 @@ With..." menu. This means you can use Vim to edit many files. Not every file
|
||||
One reason to add this is to be able to edit HTML files directly from Internet
|
||||
Explorer. To enable this use the "Tools" menu, "Internet Options..." entry.
|
||||
In the dialog select the "Programs" tab and select Vim in the "HTML editor"
|
||||
choice. If it's not there than installing didn't work properly.
|
||||
choice. If it's not there then installing didn't work properly.
|
||||
|
||||
Doing this manually can be done with this script:
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*help.txt* For Vim version 8.2. Last change: 2019 Jul 21
|
||||
*help.txt* For Vim version 8.2. Last change: 2020 Apr 05
|
||||
|
||||
VIM - main help file
|
||||
k
|
||||
@@ -31,7 +31,7 @@ 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
|
||||
Getting started: Do the Vim tutor, a 30-minute interactive course for the
|
||||
basic commands, see |vimtutor|.
|
||||
Read the user manual from start to end: |usr_01.txt|
|
||||
|
||||
@@ -41,7 +41,7 @@ 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| 20 minutes training course for beginners
|
||||
|tutor| 30-minute interactive course for beginners
|
||||
|copying| About copyrights
|
||||
|iccf| Helping poor children in Uganda
|
||||
|sponsor| Sponsor Vim development, become a registered Vim user
|
||||
@@ -144,7 +144,7 @@ Special issues ~
|
||||
|remote.txt| using Vim as a server or client
|
||||
|term.txt| using different terminals and mice
|
||||
|terminal.txt| Terminal window support
|
||||
|popup.txt| popop window support
|
||||
|popup.txt| popup window support
|
||||
|
||||
Programming language support ~
|
||||
|indent.txt| automatic indenting for C and other languages
|
||||
@@ -198,13 +198,13 @@ Remarks about specific systems ~
|
||||
|os_amiga.txt| Amiga
|
||||
|os_beos.txt| BeOS and BeBox
|
||||
|os_dos.txt| MS-DOS and MS-Windows common items
|
||||
|os_haiku.txt| Haiku
|
||||
|os_mac.txt| Macintosh
|
||||
|os_mint.txt| Atari MiNT
|
||||
|os_msdos.txt| MS-DOS (plain DOS and DOS box under Windows)
|
||||
|os_os2.txt| OS/2
|
||||
|os_qnx.txt| QNX
|
||||
|os_risc.txt| RISC-OS
|
||||
|os_haiku.txt| Haiku
|
||||
|os_unix.txt| Unix
|
||||
|os_vms.txt| VMS
|
||||
|os_win32.txt| MS-Windows
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_lua.txt* For Vim version 8.2. Last change: 2019 Jul 21
|
||||
*if_lua.txt* For Vim version 8.2. Last change: 2020 May 17
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Luis Carvalho
|
||||
@@ -32,7 +32,7 @@ Examples:
|
||||
:lua local curbuf = vim.buffer() curbuf[7] = "line #7"
|
||||
<
|
||||
|
||||
:[range]lua << [endmarker]
|
||||
:[range]lua << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
Execute Lua script {script}.
|
||||
@@ -40,10 +40,9 @@ Examples:
|
||||
feature wasn't compiled in. To avoid errors, see
|
||||
|script-here|.
|
||||
|
||||
The {endmarker} must NOT be preceded by any white space.
|
||||
|
||||
If [endmarker] is omitted from after the "<<", a dot '.' must be used after
|
||||
{script}, like for the |:append| and |:insert| commands.
|
||||
{script}, like for the |:append| and |:insert| commands. Refer to
|
||||
|:let-heredoc| for more information.
|
||||
|
||||
This form of the |:lua| command is mainly useful for including Lua code
|
||||
in Vim scripts.
|
||||
@@ -200,6 +199,15 @@ Vim evaluation and command execution, and others.
|
||||
returns it. Note that the buffer is not set as
|
||||
current.
|
||||
|
||||
vim.call({name} [,{args}])
|
||||
Proxy to call Vim function named {name} with
|
||||
arguments {args}. Example: >
|
||||
:lua print(vim.call('has', 'timers'))
|
||||
<
|
||||
vim.fn Proxy to call Vim functions. Proxy methods are
|
||||
created on demand. Example: >
|
||||
:lua print(vim.fn.has('timers'))
|
||||
<
|
||||
|
||||
==============================================================================
|
||||
3. List userdata *lua-list*
|
||||
|
||||
@@ -39,7 +39,7 @@ To speed up the process, you might also want to use --disable-gracket and
|
||||
:[range]mz[scheme] {stmt}
|
||||
Execute MzScheme statement {stmt}.
|
||||
|
||||
:[range]mz[scheme] << [endmarker]
|
||||
:[range]mz[scheme] << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
Execute inlined MzScheme script {script}.
|
||||
@@ -47,12 +47,11 @@ To speed up the process, you might also want to use --disable-gracket and
|
||||
feature wasn't compiled in. To avoid errors, see
|
||||
|script-here|.
|
||||
|
||||
The {endmarker} below the {script} must NOT be
|
||||
preceded by any white space.
|
||||
|
||||
If [endmarker] is omitted from after the "<<", a dot
|
||||
'.' must be used after {script}, like for the
|
||||
|:append| and |:insert| commands.
|
||||
|:append| and |:insert| commands. Refer to
|
||||
|:let-heredoc| for more information.
|
||||
|
||||
|
||||
*:mzfile* *:mzf*
|
||||
:[range]mzf[ile] {file} Execute the MzScheme script in {file}.
|
||||
|
||||
@@ -55,7 +55,7 @@ The ActiveState one should work, Strawberry Perl is a good alternative.
|
||||
working: >
|
||||
:perl VIM::Msg("Hello")
|
||||
|
||||
:pe[rl] << [endmarker]
|
||||
:pe[rl] << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
Execute Perl script {script}.
|
||||
|
||||
@@ -34,7 +34,7 @@ Both can be available at the same time, but read |python-2-and-3|.
|
||||
the `:python` command is working: >
|
||||
:python print "Hello"
|
||||
|
||||
:[range]py[thon] << [endmarker]
|
||||
:[range]py[thon] << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
Execute Python script {script}.
|
||||
@@ -42,10 +42,9 @@ Both can be available at the same time, but read |python-2-and-3|.
|
||||
feature wasn't compiled in. To avoid errors, see
|
||||
|script-here|.
|
||||
|
||||
The {endmarker} below the {script} must NOT be preceded by any white space.
|
||||
|
||||
If [endmarker] is omitted from after the "<<", a dot '.' must be used after
|
||||
{script}, like for the |:append| and |:insert| commands.
|
||||
{script}, like for the |:append| and |:insert| commands. Refer to
|
||||
|:let-heredoc| for more information.
|
||||
|
||||
This form of the |:python| command is mainly useful for including python code
|
||||
in Vim scripts.
|
||||
@@ -768,12 +767,12 @@ match the Python 2.x or Python 3 version Vim was compiled with.
|
||||
|
||||
*:py3* *:python3*
|
||||
:[range]py3 {stmt}
|
||||
:[range]py3 << [endmarker]
|
||||
:[range]py3 << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
|
||||
:[range]python3 {stmt}
|
||||
:[range]python3 << [endmarker]
|
||||
:[range]python3 << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
The `:py3` and `:python3` commands work similar to `:python`. A
|
||||
|
||||
@@ -28,15 +28,15 @@ downloading Ruby there.
|
||||
:rub[y] {cmd} Execute Ruby command {cmd}. A command to try it out: >
|
||||
:ruby print "Hello"
|
||||
|
||||
:rub[y] << [endmarker]
|
||||
:rub[y] << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
Execute Ruby script {script}.
|
||||
The {endmarker} after {script} must NOT be preceded by
|
||||
any white space.
|
||||
|
||||
If [endmarker] is omitted, it defaults to a dot '.'
|
||||
like for the |:append| and |:insert| commands.
|
||||
like for the |:append| and |:insert| commands. Refer
|
||||
to |:let-heredoc| for more information.
|
||||
|
||||
|
||||
This form of the |:ruby| command is mainly useful for
|
||||
including ruby code in vim scripts.
|
||||
|
||||
@@ -30,7 +30,7 @@ comments, ideas etc to <Ingo.Wilken@informatik.uni-oldenburg.de>
|
||||
is working: >
|
||||
:tcl puts "Hello"
|
||||
|
||||
:[range]tc[l] << [endmarker]
|
||||
:[range]tc[l] << [trim] [{endmarker}]
|
||||
{script}
|
||||
{endmarker}
|
||||
Execute Tcl script {script}.
|
||||
@@ -38,10 +38,9 @@ comments, ideas etc to <Ingo.Wilken@informatik.uni-oldenburg.de>
|
||||
wasn't compiled in. To avoid errors, see
|
||||
|script-here|.
|
||||
|
||||
The {endmarker} after {script} must NOT be preceded by any white space.
|
||||
|
||||
If [endmarker] is omitted from after the "<<", a dot '.' must be used after
|
||||
{script}, like for the |:append| and |:insert| commands.
|
||||
{script}, like for the |:append| and |:insert| commands. Refer to
|
||||
|:let-heredoc| for more information.
|
||||
|
||||
This form of the |:tcl| command is mainly useful for including tcl code in Vim
|
||||
scripts.
|
||||
|
||||
@@ -570,9 +570,15 @@ The examples below assume a 'shiftwidth' of 4.
|
||||
with "#" does not work.
|
||||
|
||||
|
||||
PN When N is non-zero recognize C pragmas, and indent them like any
|
||||
other code; does not concern other preprocessor directives.
|
||||
When N is zero (default): don't recognize C pragmas, treating
|
||||
them like every other preprocessor directive.
|
||||
|
||||
|
||||
The defaults, spelled out in full, are:
|
||||
cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,E0,ps,ts,is,+s,
|
||||
c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0
|
||||
c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0,P0
|
||||
|
||||
Vim puts a line in column 1 if:
|
||||
- It starts with '#' (preprocessor directives), if 'cinkeys' contains '#0'.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 8.2. Last change: 2020 Mar 27
|
||||
*index.txt* For Vim version 8.2. Last change: 2020 May 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -246,8 +246,7 @@ tag char note action in Normal mode ~
|
||||
2 filter Nmove text through the {filter}
|
||||
command
|
||||
|!!| !!{filter} 2 filter N lines through the {filter} command
|
||||
|quote| "{a-zA-Z0-9.%#:-"} use register {a-zA-Z0-9.%#:-"} for next
|
||||
delete, yank or put (uppercase to append)
|
||||
|quote| "{register} use {register} for next delete, yank or put
|
||||
({.%#:} only work with put)
|
||||
|#| # 1 search backward for the Nth occurrence of
|
||||
the ident under the cursor
|
||||
@@ -365,8 +364,8 @@ tag char note action in Normal mode ~
|
||||
register x]
|
||||
|Y| ["x]Y yank N lines [into register x]; synonym for
|
||||
"yy"
|
||||
|ZZ| ZZ store current file if modified, and exit
|
||||
|ZQ| ZQ exit current file always
|
||||
|ZZ| ZZ write if buffer changed and close window
|
||||
|ZQ| ZQ close window without writing
|
||||
|[| [{char} square bracket command (see |[| below)
|
||||
\ not used
|
||||
|]| ]{char} square bracket command (see |]| below)
|
||||
@@ -829,7 +828,7 @@ tag char note action in Normal mode ~
|
||||
|zD| zD delete folds recursively
|
||||
|zE| zE eliminate all folds
|
||||
|zF| zF create a fold for N lines
|
||||
|zG| zG mark word as good spelled word
|
||||
|zG| zG temporarily mark word as good spelled word
|
||||
|zH| zH when 'wrap' off scroll half a screenwidth
|
||||
to the right
|
||||
|zL| zL when 'wrap' off scroll half a screenwidth
|
||||
@@ -838,7 +837,7 @@ tag char note action in Normal mode ~
|
||||
|zN| zN set 'foldenable'
|
||||
|zO| zO open folds recursively
|
||||
|zR| zR set 'foldlevel' to the deepest fold
|
||||
|zW| zW mark word as wrong (bad) spelled word
|
||||
|zW| zW temporarily mark word as bad spelled word
|
||||
|zX| zX re-apply 'foldlevel'
|
||||
|z^| z^ cursor on line N (default line above
|
||||
window), otherwise like "z-"
|
||||
@@ -850,7 +849,7 @@ tag char note action in Normal mode ~
|
||||
position the cursor at the end (right side)
|
||||
of the screen
|
||||
|zf| zf{motion} create a fold for Nmove text
|
||||
|zg| zg mark word as good spelled word
|
||||
|zg| zg permanently mark word as good spelled word
|
||||
|zh| zh when 'wrap' off scroll screen N characters
|
||||
to the right
|
||||
|zi| zi toggle 'foldenable'
|
||||
@@ -871,7 +870,7 @@ tag char note action in Normal mode ~
|
||||
|zuW| zuW undo |zW|
|
||||
|zuG| zuG undo |zG|
|
||||
|zv| zv open enough folds to view the cursor line
|
||||
|zw| zw mark word as wrong (bad) spelled word
|
||||
|zw| zw permanently mark word as bad spelled word
|
||||
|zx| zx re-apply 'foldlevel' and do "zv"
|
||||
|zz| zz redraw, cursor line at center of window
|
||||
|z<Left>| z<Left> same as "zh"
|
||||
@@ -1115,7 +1114,7 @@ tag char action in Terminal-Job mode ~
|
||||
|t_CTRL-W_:| CTRL-W : enter an Ex command
|
||||
|t_CTRL-W_.| CTRL-W . type CTRL-W in the terminal
|
||||
CTRL-W CTRL-\ send a CTRL-\ to the job in the terminal
|
||||
|t_CTRL-W_quote| CTRL-W " {0-9a-z"%#*:=}
|
||||
|t_CTRL-W_quote| CTRL-W " {register}
|
||||
paste register in the terminal
|
||||
|t_CTRL-W_CTRL-C| CTRL-W CTRL-C forcefully ends the job
|
||||
|t_CTRL-W_CTRL-W| CTRL-W CTRL-W move focus to the next window
|
||||
@@ -1263,6 +1262,7 @@ tag command action ~
|
||||
|:debug| :deb[ug] run a command in debugging mode
|
||||
|:debuggreedy| :debugg[reedy] read debug mode commands from normal input
|
||||
|:def| :def define a Vim9 user function
|
||||
|:defcompile| :defc[ompile] compile Vim9 user functions in current script
|
||||
|:delcommand| :delc[ommand] delete user-defined command
|
||||
|:delfunction| :delf[unction] delete a user function
|
||||
|:delmarks| :delm[arks] delete marks
|
||||
@@ -1722,7 +1722,7 @@ tag command action ~
|
||||
|:wqall| :wqa[ll] write all changed buffers and quit Vim
|
||||
|:wundo| :wu[ndo] write undo information to a file
|
||||
|:wviminfo| :wv[iminfo] write to viminfo file
|
||||
|:xit| :x[it] write if buffer changed and quit window or Vim
|
||||
|:xit| :x[it] write if buffer changed and close window
|
||||
|:xall| :xa[ll] same as ":wqall"
|
||||
|:xmapclear| :xmapc[lear] remove all mappings for Visual mode
|
||||
|:xmap| :xm[ap] like ":map" but for Visual mode
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*insert.txt* For Vim version 8.2. Last change: 2020 Mar 25
|
||||
*insert.txt* For Vim version 8.2. Last change: 2020 Apr 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -154,6 +154,8 @@ CTRL-R CTRL-R {register} *i_CTRL-R_CTRL-R*
|
||||
you also want to avoid these, use CTRL-R CTRL-O, see below.
|
||||
The '.' register (last inserted text) is still inserted as
|
||||
typed.
|
||||
After this command, the '.' register contains the text from
|
||||
the register as if it was inserted by typing it.
|
||||
|
||||
CTRL-R CTRL-O {register} *i_CTRL-R_CTRL-O*
|
||||
Insert the contents of a register literally and don't
|
||||
@@ -163,6 +165,9 @@ CTRL-R CTRL-O {register} *i_CTRL-R_CTRL-O*
|
||||
Does not replace characters!
|
||||
The '.' register (last inserted text) is still inserted as
|
||||
typed.
|
||||
After this command, the '.' register contains the command
|
||||
typed and not the text. I.e., the literals "^R^O" and not the
|
||||
text from the register.
|
||||
|
||||
CTRL-R CTRL-P {register} *i_CTRL-R_CTRL-P*
|
||||
Insert the contents of a register literally and fix the
|
||||
@@ -170,6 +175,9 @@ CTRL-R CTRL-P {register} *i_CTRL-R_CTRL-P*
|
||||
Does not replace characters!
|
||||
The '.' register (last inserted text) is still inserted as
|
||||
typed.
|
||||
After this command, the '.' register contains the command
|
||||
typed and not the text. I.e., the literals "^R^P" and not the
|
||||
text from the register.
|
||||
|
||||
*i_CTRL-T*
|
||||
CTRL-T Insert one shiftwidth of indent at the start of the current
|
||||
@@ -658,8 +666,10 @@ Note: The keys that are valid in CTRL-X mode are not mapped. This allows for
|
||||
ends CTRL-X mode (any key that is not a valid CTRL-X mode command) is mapped.
|
||||
Also, when doing completion with 'complete' mappings apply as usual.
|
||||
|
||||
Note: While completion is active Insert mode can't be used recursively.
|
||||
Mappings that somehow invoke ":normal i.." will generate an E523 error.
|
||||
*E578* *E565*
|
||||
Note: While completion is active Insert mode can't be used recursively and
|
||||
buffer text cannot be changed. Mappings that somehow invoke ":normal i.."
|
||||
will generate an E565 error.
|
||||
|
||||
The following mappings are suggested to make typing the completion commands
|
||||
a bit easier (although they will hide other commands): >
|
||||
|
||||
@@ -58,7 +58,7 @@ substr($0,length($0),1) == "~" { print "<B><FONT COLOR=\"PURPLE\">" substr($0,1,
|
||||
#
|
||||
#ad hoc code
|
||||
#
|
||||
/^"\|\& / {gsub(/\|/,"\\|"); }
|
||||
/^"\|& / {gsub(/\|/,"\\|"); }
|
||||
/ = b / {gsub(/ b /," \\b "); }
|
||||
#
|
||||
# one letter tag
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*map.txt* For Vim version 8.2. Last change: 2019 Dec 19
|
||||
*map.txt* For Vim version 8.2. Last change: 2020 Apr 23
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1492,7 +1492,7 @@ The valid escape sequences are
|
||||
<bang> (See the '-bang' attribute) Expands to a ! if the
|
||||
command was executed with a ! modifier, otherwise
|
||||
expands to nothing.
|
||||
*<mods>*
|
||||
*<mods>* *:command-modifiers*
|
||||
<mods> The command modifiers, if specified. Otherwise, expands to
|
||||
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
|
||||
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*netbeans.txt* For Vim version 8.2. Last change: 2019 May 05
|
||||
*netbeans.txt* For Vim version 8.2. Last change: 2020 Apr 19
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
||||
@@ -40,21 +40,26 @@ or environment providing a socket interface can control Vim using this
|
||||
protocol. There are existing implementations in C, C++, Python and Java. The
|
||||
name NetBeans is kept today for historical reasons.
|
||||
|
||||
Current projects using the NetBeans protocol of Vim are:
|
||||
- VimIntegration, description of various projects doing Vim Integration:
|
||||
Active project using the NetBeans protocol of Vim:
|
||||
- Eclim, http://eclim.org/
|
||||
|
||||
VimIntegration, description of various projects doing Vim Integration:
|
||||
http://www.freehackers.org/VimIntegration
|
||||
- Agide, an IDE for the AAP project, written in Python:
|
||||
http://www.a-a-p.org
|
||||
|
||||
Projects using the NetBeans protocol of Vim are or were:
|
||||
- Agide, an IDE for the AAP project, written in Python (now replaced by
|
||||
|:Termdebug|): http://www.a-a-p.org
|
||||
- Clewn, a gdb integration into Vim, written in C:
|
||||
http://clewn.sourceforge.net/
|
||||
- Pyclewn, a gdb integration into Vim, written in Python:
|
||||
http://pyclewn.sourceforge.net/
|
||||
- VimWrapper, library to easy Vim integration into IDE:
|
||||
http://www.freehackers.org/VimWrapper
|
||||
Outdated projects (links don't work):
|
||||
- VimPlugin, integration of Vim inside Eclipse:
|
||||
http://vimplugin.sourceforge.net/wiki/pmwiki.php
|
||||
- PIDA, IDE written in Python integrating Vim:
|
||||
http://pida.co.uk/
|
||||
- VimWrapper, library to easy Vim integration into IDE:
|
||||
http://www.freehackers.org/VimWrapper
|
||||
|
||||
Check the specific project pages to see how to use Vim with these projects.
|
||||
|
||||
@@ -461,11 +466,13 @@ guard off len
|
||||
initDone Mark the buffer as ready for use. Implicitly makes the buffer
|
||||
the current buffer. Fires the BufReadPost autocommand event.
|
||||
|
||||
insertDone
|
||||
insertDone starteol readonly
|
||||
Sent by Vim Controller to tell Vim an initial file insert is
|
||||
done. This triggers a read message being printed. Prior to
|
||||
version 2.3, no read messages were displayed after opening a
|
||||
file. New in version 2.3.
|
||||
done. This triggers a read message being printed. If
|
||||
"starteol" is "F" then the last line doesn't have a EOL. If
|
||||
"readonly" is "T" then the file is marked as readonly. Prior
|
||||
to version 2.3, no read messages were displayed after opening
|
||||
a file. New in version 2.3.
|
||||
|
||||
moveAnnoToFront serNum
|
||||
Not implemented.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 8.2. Last change: 2020 Mar 02
|
||||
*options.txt* For Vim version 8.2. Last change: 2020 May 03
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -915,6 +915,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
eol allow backspacing over line breaks (join lines)
|
||||
start allow backspacing over the start of insert; CTRL-W and CTRL-U
|
||||
stop once at the start of insert.
|
||||
nostop like start, except CTRL-W and CTRL-U do not stop at the start of
|
||||
insert.
|
||||
|
||||
When the value is empty, Vi compatible backspacing is used.
|
||||
|
||||
@@ -923,6 +925,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
0 same as ":set backspace=" (Vi compatible)
|
||||
1 same as ":set backspace=indent,eol"
|
||||
2 same as ":set backspace=indent,eol,start"
|
||||
3 same as ":set backspace=indent,eol,nostop"
|
||||
|
||||
See |:fixdel| if your <BS> or <Del> key does not do what you want.
|
||||
NOTE: This option is set to "" when 'compatible' is set.
|
||||
@@ -5424,6 +5427,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
bin If included, numbers starting with "0b" or "0B" will be
|
||||
considered to be binary. Example: Using CTRL-X on
|
||||
"0b1000" subtracts one, resulting in "0b0111".
|
||||
unsigned If included, numbers are recognized as unsigned. Thus a
|
||||
leading dash or negative sign won't be considered as part of
|
||||
the number. Examples:
|
||||
Using CTRL-X on "2020" in "9-2020" results in "9-2019"
|
||||
(without "unsigned" it would become "9-2021").
|
||||
Using CTRL-A on "2020" in "9-2020" results in "9-2021"
|
||||
(without "unsigned" it would become "9-2019").
|
||||
Using CTRL-X on "0" or "18446744073709551615" (2^64) has
|
||||
no effect, overflow is prevented.
|
||||
Numbers which simply begin with a digit in the range 1-9 are always
|
||||
considered decimal. This also happens for numbers that are not
|
||||
recognized as octal or hex.
|
||||
@@ -5886,6 +5898,21 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'pyxversion' has no effect. The pyx* functions and commands are
|
||||
always the same as the compiled version.
|
||||
|
||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||
security reasons.
|
||||
|
||||
*'quickfixtextfunc'* *'qftf'*
|
||||
'quickfixtextfunc' 'qftf' string (default "")
|
||||
global
|
||||
{only available when compiled with the |+quickfix|
|
||||
feature}
|
||||
This option specifies a function to be used to get the text to display
|
||||
in the quickfix and location list windows. This can be used to
|
||||
customize the information displayed in the quickfix or location window
|
||||
for each entry in the corresponding quickfix or location list. See
|
||||
|quickfix-window-function| for an explanation of how to write the
|
||||
function and an example.
|
||||
|
||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||
security reasons.
|
||||
|
||||
@@ -7957,7 +7984,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
- VIM the server name |v:servername| or "VIM"
|
||||
Only works if the terminal supports setting window titles
|
||||
(currently Amiga console, Win32 console, all GUI versions and
|
||||
terminals with a non- empty 't_ts' option - these are Unix xterm and
|
||||
terminals with a non-empty 't_ts' option - these are Unix xterm and
|
||||
iris-ansi by default, where 't_ts' is taken from the builtin termcap).
|
||||
*X11*
|
||||
When Vim was compiled with HAVE_X11 defined, the original title will
|
||||
@@ -8320,13 +8347,17 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
Currently, these messages are given:
|
||||
>= 1 When the viminfo file is read or written.
|
||||
>= 2 When a file is ":source"'ed.
|
||||
>= 4 Shell commands.
|
||||
>= 5 Every searched tags file and include file.
|
||||
>= 8 Files for which a group of autocommands is executed.
|
||||
>= 9 Every executed autocommand.
|
||||
>= 11 Finding items in a path
|
||||
>= 12 Every executed function.
|
||||
>= 13 When an exception is thrown, caught, finished, or discarded.
|
||||
>= 14 Anything pending in a ":finally" clause.
|
||||
>= 15 Every executed Ex command (truncated at 200 characters).
|
||||
>= 15 Every executed Ex command from a script (truncated at 200
|
||||
characters).
|
||||
>= 16 Every executed Ex command
|
||||
|
||||
This option can also be set with the "-V" argument. See |-V|.
|
||||
This option is also set by the |:verbose| command.
|
||||
|
||||
@@ -138,7 +138,7 @@ and merge it back in.
|
||||
|
||||
6. The $VIM directory *beos-vimdir*
|
||||
|
||||
$VIM is the symbolic name for the place where Vims support files are stored.
|
||||
$VIM is the symbolic name for the place where Vim's support files are stored.
|
||||
The default value for $VIM is set at compile time and can be determined with >
|
||||
|
||||
:version
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_haiku.txt* For Vim version 8.2. Last change: 2020 Mar 19
|
||||
*os_haiku.txt* For Vim version 8.2. Last change: 2020 May 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -25,8 +25,9 @@ targets personal computing.
|
||||
9. The meta key modifier |haiku-meta|
|
||||
10. Mouse key mappings |haiku-mouse|
|
||||
11. Color names |haiku-colors|
|
||||
12. Credits |haiku-support-credits|
|
||||
13. Bugs & to-do |haiku-bugs|
|
||||
12. GUI Toolbar Images |haiku-toolbar-images|
|
||||
13. Credits |haiku-support-credits|
|
||||
14. Bugs & to-do |haiku-bugs|
|
||||
|
||||
|
||||
1. General *haiku-general*
|
||||
@@ -46,12 +47,11 @@ features you can enable/disable.
|
||||
|
||||
Haiku uses "ncurses6" as its terminal library, therefore you need to have
|
||||
"ncurses6_devel" package installed from HaikuDepot in order to configure
|
||||
the Haiku build. Just append "--with-tlib=ncurses6" to ./configure command
|
||||
below for the initial build.
|
||||
the Haiku build. Just append "--with-tlib=ncurses6" to ./configure command
|
||||
|
||||
Now you should use "make" to compile Vim, then "make install" to install it.
|
||||
For seamless integration into Haiku, the GUI-less vim binary should be
|
||||
additionally installed over the GUI version. Typical build commands are: >
|
||||
additionally installed over the GUI version. Typical build commands are:
|
||||
|
||||
./configure --prefix=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY` \
|
||||
--datarootdir=`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY` \
|
||||
@@ -71,25 +71,25 @@ additionally installed over the GUI version. Typical build commands are: >
|
||||
|
||||
Normally Vim starts with the GUI if you start it as gvim or vim -g. The vim
|
||||
version with GUI tries to determine if it was started from the Tracker instead
|
||||
of the Terminal, and if so, uses the GUI anyway. However, the current detection
|
||||
of the Terminal, and if so, uses the GUI anyway. However, the current detection
|
||||
scheme is fooled if you use the command "vim - </dev/null".
|
||||
|
||||
Stuff that does not work yet:
|
||||
|
||||
- Mouse up events are not generated when outside the window. This may be a bug in
|
||||
Haiku. You can notice this when selecting text and moving the cursor outside
|
||||
the window, then letting go of the mouse button. Another way is when you
|
||||
drag the scrollbar and do the same thing. Because Vim still thinks you are
|
||||
still playing with the scrollbar it won't change it itself. I provided a
|
||||
workaround which kicks in when the window is activated or deactivated (so it
|
||||
works best with focus- follows-mouse turned on).
|
||||
- Mouse up events are not generated when outside the window. You can notice
|
||||
this when selecting text and moving the cursor outside the window, then
|
||||
letting go of the mouse button. Another way is when you drag the scrollbar
|
||||
and do the same thing. Because Vim still thinks you are still playing with
|
||||
the scrollbar it won't change it itself. There is a workaround which kicks
|
||||
in when the window is activated or deactivated (so it works best with focus-
|
||||
follows-mouse turned on).
|
||||
- The cursor does not flash.
|
||||
|
||||
|
||||
4. The $VIM directory *haiku-vimdir*
|
||||
|
||||
$VIM is the symbolic name for the place where Vims support files are stored.
|
||||
The default value for $VIM is set at compile time and can be determined with >
|
||||
$VIM is the symbolic name for the place where Vim's support files are stored.
|
||||
The default value for $VIM is set at compile time and can be determined with:
|
||||
|
||||
:version
|
||||
|
||||
@@ -117,7 +117,7 @@ The normal value is /boot/home/config/settings.
|
||||
You can drop files and directories on either the Vim icon (starts a new Vim
|
||||
session, unless you use the File Types application to set Vim to be "Single
|
||||
Launch") or on the Vim window (starts editing the files). Dropping a folder
|
||||
sets Vim's current working directory. |:cd| |:pwd| If you drop files or
|
||||
sets Vim's current working directory |:cd| |:pwd|. If you drop files or
|
||||
folders with either SHIFT key pressed, Vim changes directory to the folder
|
||||
that contains the first item dropped. When starting Vim, there is no need to
|
||||
press shift: Vim behaves as if you do.
|
||||
@@ -164,7 +164,7 @@ isn't a dotted-y, then for this font the encoding does not work.
|
||||
|
||||
If the font you specify is unavailable, you get the system fixed font.
|
||||
|
||||
GUI Font Selection Dialog is available at giving the >
|
||||
GUI Font Selection Dialog is available at giving the:
|
||||
|
||||
:set guifont=*
|
||||
|
||||
@@ -221,7 +221,7 @@ All the changes and patches released under vim-license.
|
||||
Thank you, all!
|
||||
|
||||
|
||||
13. Bugs & to-do *haiku-bugs*
|
||||
14. Bugs & to-do *haiku-bugs*
|
||||
|
||||
The port is under development now and far away from the perfect state. For bug
|
||||
reports, patches and wishes, please use the Vim mailing list or Vim Github
|
||||
|
||||
@@ -230,7 +230,7 @@ A. VisionFS can't handle certain dot (.) three letter extension file names.
|
||||
SCO declares this behavior required for backwards compatibility with 16bit
|
||||
DOS/Windows environments. The two commands below demonstrate the behavior:
|
||||
>
|
||||
echo Hello > file.bat~
|
||||
echo Hello > file.bat~
|
||||
dir > file.bat
|
||||
<
|
||||
The result is that the "dir" command updates the "file.bat~" file, instead
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*popup.txt* For Vim version 8.2. Last change: 2020 Mar 21
|
||||
*popup.txt* For Vim version 8.2. Last change: 2020 May 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -150,6 +150,7 @@ different: *E863*
|
||||
- When the job ends, the popup window closes.
|
||||
- The popup window can be closed with `popup_close()`, the terminal buffer
|
||||
then becomes hidden.
|
||||
- It is not possible to open a second popup window with a terminal. *E861*
|
||||
- The default Pmenu color is only used for the border and padding. To change
|
||||
the color of the terminal itself set the Terminal highlight group before
|
||||
creating the terminal. Setting 'wincolor' later can work but requires the
|
||||
@@ -197,6 +198,7 @@ Other:
|
||||
|popup_getoptions()| get current options for a popup
|
||||
|popup_getpos()| get actual position and size of a popup
|
||||
|popup_locate()| find popup window at a screen position
|
||||
|popup_list()| get list of all popups
|
||||
|
||||
|
||||
DETAILS *popup-function-details*
|
||||
@@ -235,8 +237,15 @@ popup_beval({what}, {options}) *popup_beval()*
|
||||
GetText()->popup_beval({})
|
||||
<
|
||||
*popup_clear()*
|
||||
popup_clear() Emergency solution to a misbehaving plugin: close all popup
|
||||
popup_clear([{force}])
|
||||
Emergency solution to a misbehaving plugin: close all popup
|
||||
windows for the current tab and global popups.
|
||||
Close callbacks are not invoked.
|
||||
When {force} is not present this will fail if the current
|
||||
window is a popup.
|
||||
When {force} is present and |TRUE| the popup is also closed
|
||||
when it is the current window. If a terminal is running in a
|
||||
popup it is killed.
|
||||
|
||||
|
||||
popup_close({id} [, {result}]) *popup_close()*
|
||||
@@ -415,6 +424,10 @@ popup_hide({id}) *popup_hide()*
|
||||
Can also be used as a |method|: >
|
||||
GetPopup()->popup_hide()
|
||||
|
||||
popup_list() *popup_list()*
|
||||
Return a List with the |window-ID| of all existing popups.
|
||||
|
||||
|
||||
popup_locate({row}, {col}) *popup_locate()*
|
||||
Return the |window-ID| of the popup at screen position {row}
|
||||
and {col}. If there are multiple popups the one with the
|
||||
@@ -535,6 +548,8 @@ popup_setoptions({id}, {options}) *popup_setoptions()*
|
||||
wrap
|
||||
zindex
|
||||
The options from |popup_move()| can also be used.
|
||||
Generally, setting an option to zero or an empty string resets
|
||||
it to the default value, but there are exceptions.
|
||||
For "hidden" use |popup_hide()| and |popup_show()|.
|
||||
"tabpage" cannot be changed.
|
||||
|
||||
@@ -579,15 +594,15 @@ The second argument of |popup_create()| is a dictionary with options:
|
||||
line Screen line where to position the popup. Can use a
|
||||
number or "cursor", "cursor+1" or "cursor-1" to use
|
||||
the line of the cursor and add or subtract a number of
|
||||
lines. If omitted the popup is vertically centered.
|
||||
The first line is 1.
|
||||
lines. If omitted or zero the popup is vertically
|
||||
centered. The first line is 1.
|
||||
When using "textprop" the number is relative to the
|
||||
text property and can be negative.
|
||||
col Screen column where to position the popup. Can use a
|
||||
number or "cursor" to use the column of the cursor,
|
||||
"cursor+9" or "cursor-9" to add or subtract a number
|
||||
of columns. If omitted the popup is horizontally
|
||||
centered. The first column is 1.
|
||||
of columns. If omitted or zero the popup is
|
||||
horizontally centered. The first column is 1.
|
||||
When using "textprop" the number is relative to the
|
||||
text property and can be negative.
|
||||
pos "topleft", "topright", "botleft" or "botright":
|
||||
|
||||
@@ -15,6 +15,7 @@ This subject is introduced in section |30.1| of the user manual.
|
||||
7. The error format |error-file-format|
|
||||
8. The directory stack |quickfix-directory-stack|
|
||||
9. Specific error file formats |errorformats|
|
||||
10. Customizing the quickfix window |quickfix-window-function|
|
||||
|
||||
The quickfix commands are not available when the |+quickfix| feature was
|
||||
disabled at compile time.
|
||||
@@ -1374,7 +1375,11 @@ Basic items
|
||||
%v virtual column number (finds a number representing
|
||||
screen column of the error (1 <tab> == 8 screen
|
||||
columns))
|
||||
%t error type (finds a single character)
|
||||
%t error type (finds a single character):
|
||||
e - error message
|
||||
w - warning message
|
||||
i - info message
|
||||
n - note message
|
||||
%n error number (finds a number)
|
||||
%m error message (finds a string)
|
||||
%r matches the "rest" of a single-line file message %O/P/Q
|
||||
@@ -1445,6 +1450,7 @@ prefixes are:
|
||||
%E start of a multi-line error message
|
||||
%W start of a multi-line warning message
|
||||
%I start of a multi-line informational message
|
||||
%N start of a multi-line note message
|
||||
%A start of a multi-line message (unspecified type)
|
||||
%> for next line start with current pattern again |efm-%>|
|
||||
%C continuation of a multi-line message
|
||||
@@ -1921,6 +1927,59 @@ error messages into a format that quickfix mode will understand. See the
|
||||
start of the file about how to use it. (This script is deprecated, see
|
||||
|compiler-perl|.)
|
||||
|
||||
=============================================================================
|
||||
10. Customizing the quickfix window *quickfix-window-function*
|
||||
|
||||
The default format for the lines displayed in the quickfix window and location
|
||||
list window is:
|
||||
|
||||
<filename>|<lnum> col <col>|<text>
|
||||
|
||||
The values displayed in each line correspond to the "bufnr", "lnum", "col" and
|
||||
"text" fields returned by the |getqflist()| function.
|
||||
|
||||
For some quickfix/location lists, the displayed text need to be customized.
|
||||
For example, if only the filename is present for a quickfix entry, then the
|
||||
two "|" field separator characters after the filename are not needed. Another
|
||||
use case is to customize the path displayed for a filename. By default, the
|
||||
complete path (which may be too long) is displayed for files which are not
|
||||
under the current directory tree. The file path may need to be simplified to a
|
||||
common parent directory.
|
||||
|
||||
The displayed text can be customized by setting the 'quickfixtextfunc' option
|
||||
to a Vim function. This function will be called with a dict argument for
|
||||
every entry in a quickfix or a location list. The dict argument will have the
|
||||
following fields:
|
||||
|
||||
quickfix set to 1 when called for a quickfix list and 0 when called for
|
||||
a location list.
|
||||
id quickfix or location list identifier
|
||||
idx index of the entry in the quickfix or location list
|
||||
|
||||
The function should return a single line of text to display in the quickfix
|
||||
window for the entry identified by idx. The function can obtain information
|
||||
about the current entry using the |getqflist()| function and specifying the
|
||||
quickfix list identifier "id" and the entry index "idx".
|
||||
|
||||
If a quickfix or location list specific customization is needed, then the
|
||||
'quickfixtextfunc' attribute of the list can be set using the |setqflist()| or
|
||||
|setloclist()| function. This overrides the global 'quickfixtextfunc' option.
|
||||
|
||||
The example below displays the list of old files (|v:oldfiles|) in a quickfix
|
||||
window. As there is no line, column number and error text information
|
||||
associated with each entry, the 'quickfixtextfunc' function returns only the
|
||||
filename.
|
||||
Example: >
|
||||
" create a quickfix list from v:oldfiles
|
||||
call setqflist([], ' ', {'lines' : v:oldfiles, 'efm' : '%f',
|
||||
\ 'quickfixtextfunc' : 'QfOldFiles'})
|
||||
func QfOldFiles(info)
|
||||
" get information about the specific quickfix entry
|
||||
let e = getqflist({'id' : a:info.id, 'idx' : a:info.idx,
|
||||
\ 'items' : 1}).items[0]
|
||||
" return the simplified file name
|
||||
return fnamemodify(bufname(e.bufnr), ':p:.')
|
||||
endfunc
|
||||
<
|
||||
|
||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*recover.txt* For Vim version 8.2. Last change: 2020 Mar 24
|
||||
*recover.txt* For Vim version 8.2. Last change: 2020 May 09
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -125,12 +125,12 @@ If you want to make sure that your changes are in the swap file use this
|
||||
command:
|
||||
|
||||
*:pre* *:preserve* *E313* *E314*
|
||||
:pre[serve] Write all text for all buffers into swap files. The
|
||||
original file is no longer needed for recovery.
|
||||
This sets a flag in the current buffer. When the '&'
|
||||
flag is present in 'cpoptions' the swap file will not
|
||||
be deleted for this buffer when Vim exits and the
|
||||
buffer is still loaded |cpo-&|.
|
||||
:pre[serve] Write all text for the current buffer into its swap
|
||||
file. The original file is no longer needed for
|
||||
recovery. This sets a flag in the current buffer.
|
||||
When the '&' flag is present in 'cpoptions' the swap
|
||||
file will not be deleted for this buffer when Vim
|
||||
exits and the buffer is still loaded |cpo-&|.
|
||||
|
||||
A Vim swap file can be recognized by the first six characters: "b0VIM ".
|
||||
After that comes the version number, e.g., "3.0".
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*repeat.txt* For Vim version 8.2. Last change: 2019 Dec 07
|
||||
*repeat.txt* For Vim version 8.2. Last change: 2020 May 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -126,6 +126,11 @@ q{0-9a-zA-Z"} Record typed characters into register {0-9a-zA-Z"}
|
||||
recorded macro and the yank will overwrite the
|
||||
recorded macro.
|
||||
|
||||
Note: The recording happens while you type, replaying
|
||||
the register happens as if the keys come from a
|
||||
mapping. This matters, for example, for undo, which
|
||||
only syncs when commands were typed.
|
||||
|
||||
q Stops recording. (Implementation note: The 'q' that
|
||||
stops recording is not stored in the register, unless
|
||||
it was the result of a mapping)
|
||||
@@ -137,7 +142,7 @@ q Stops recording. (Implementation note: The 'q' that
|
||||
used.
|
||||
The register is executed like a mapping, that means
|
||||
that the difference between 'wildchar' and 'wildcharm'
|
||||
applies.
|
||||
applies, and undo might not be synced in the same way.
|
||||
For "@=" you are prompted to enter an expression. The
|
||||
result of the expression is then executed.
|
||||
See also |@:|.
|
||||
@@ -166,7 +171,7 @@ q Stops recording. (Implementation note: The 'q' that
|
||||
[addr] (default is current line).
|
||||
|
||||
:[addr]@ *:@@*
|
||||
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
|
||||
:[addr]@@ Repeat the previous :@{register}. First set cursor at
|
||||
line [addr] (default is current line).
|
||||
|
||||
==============================================================================
|
||||
|
||||
@@ -3636,6 +3636,26 @@ DEFINING CASE *:syn-case* *E390*
|
||||
:sy[ntax] case
|
||||
Show either "syntax case match" or "syntax case ignore" (translated).
|
||||
|
||||
|
||||
DEFINING FOLDLEVEL *:syn-foldlevel*
|
||||
|
||||
:sy[ntax] foldlevel [start | minimum]
|
||||
This defines how the foldlevel of a line is computed when using
|
||||
foldmethod=syntax (see |fold-syntax| and |:syn-fold|):
|
||||
|
||||
start: Use level of item containing start of line.
|
||||
minimum: Use lowest local-minimum level of items on line.
|
||||
|
||||
The default is 'start'. Use 'minimum' to search a line horizontally
|
||||
for the lowest level contained on the line that is followed by a
|
||||
higher level. This produces more natural folds when syntax items
|
||||
may close and open horizontally within a line.
|
||||
|
||||
:sy[ntax] foldlevel
|
||||
Show either "syntax foldlevel start" or "syntax foldlevel minimum".
|
||||
|
||||
{not meaningful when Vim was compiled without |+folding| feature}
|
||||
|
||||
SPELL CHECKING *:syn-spell*
|
||||
|
||||
:sy[ntax] spell [toplevel | notoplevel | default]
|
||||
@@ -4099,6 +4119,8 @@ This will make each {} block form one fold.
|
||||
The fold will start on the line where the item starts, and end where the item
|
||||
ends. If the start and end are within the same line, there is no fold.
|
||||
The 'foldnestmax' option limits the nesting of syntax folds.
|
||||
See |:syn-foldlevel| to control how the foldlevel of a line is computed
|
||||
from its syntax items.
|
||||
{not available when Vim was compiled without |+folding| feature}
|
||||
|
||||
|
||||
@@ -4901,6 +4923,10 @@ cterm={attr-list} *highlight-cterm*
|
||||
|
||||
ctermfg={color-nr} *highlight-ctermfg* *E421*
|
||||
ctermbg={color-nr} *highlight-ctermbg*
|
||||
ctermul={color-nr} *highlight-ctermul*
|
||||
These give the foreground (ctermfg), background (ctermbg) and
|
||||
underline (ctermul) color to use in the terminal.
|
||||
|
||||
The {color-nr} argument is a color number. Its range is zero to
|
||||
(not including) the number given by the termcap entry "Co".
|
||||
The actual color with this number depends on the type of terminal
|
||||
@@ -4978,11 +5004,11 @@ ctermbg={color-nr} *highlight-ctermbg*
|
||||
needs to reset the color when exiting. This is done with the "op"
|
||||
termcap entry |t_op|. If this doesn't work correctly, try setting the
|
||||
't_op' option in your .vimrc.
|
||||
*E419* *E420*
|
||||
When Vim knows the normal foreground and background colors, "fg" and
|
||||
"bg" can be used as color names. This only works after setting the
|
||||
colors for the Normal group and for the MS-Windows console. Example,
|
||||
for reverse video: >
|
||||
*E419* *E420* *E453*
|
||||
When Vim knows the normal foreground, background and underline colors,
|
||||
"fg", "bg" and "ul" can be used as color names. This only works after
|
||||
setting the colors for the Normal group and for the MS-Windows
|
||||
console. Example, for reverse video: >
|
||||
:highlight Visual ctermfg=bg ctermbg=fg
|
||||
< Note that the colors are used that are valid at the moment this
|
||||
command are given. If the Normal group colors are changed later, the
|
||||
|
||||
@@ -1315,6 +1315,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
+iconv various.txt /*+iconv*
|
||||
+iconv/dyn various.txt /*+iconv\/dyn*
|
||||
+insert_expand various.txt /*+insert_expand*
|
||||
+ipv6 various.txt /*+ipv6*
|
||||
+job various.txt /*+job*
|
||||
+jumplist various.txt /*+jumplist*
|
||||
+keymap various.txt /*+keymap*
|
||||
@@ -2271,6 +2272,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:command-completion-custom map.txt /*:command-completion-custom*
|
||||
:command-completion-customlist map.txt /*:command-completion-customlist*
|
||||
:command-count map.txt /*:command-count*
|
||||
:command-modifiers map.txt /*:command-modifiers*
|
||||
:command-nargs map.txt /*:command-nargs*
|
||||
:command-range map.txt /*:command-range*
|
||||
:command-register map.txt /*:command-register*
|
||||
@@ -2315,6 +2317,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:debugg repeat.txt /*:debugg*
|
||||
:debuggreedy repeat.txt /*:debuggreedy*
|
||||
:def vim9.txt /*:def*
|
||||
:defc vim9.txt /*:defc*
|
||||
:defcompile vim9.txt /*:defcompile*
|
||||
:del change.txt /*:del*
|
||||
:delc map.txt /*:delc*
|
||||
:delcommand map.txt /*:delcommand*
|
||||
@@ -4244,12 +4248,14 @@ E447 editing.txt /*E447*
|
||||
E448 various.txt /*E448*
|
||||
E449 eval.txt /*E449*
|
||||
E45 message.txt /*E45*
|
||||
E452 eval.txt /*E452*
|
||||
E455 print.txt /*E455*
|
||||
E456 print.txt /*E456*
|
||||
E457 print.txt /*E457*
|
||||
E458 message.txt /*E458*
|
||||
E459 message.txt /*E459*
|
||||
E46 message.txt /*E46*
|
||||
E460 eval.txt /*E460*
|
||||
E461 eval.txt /*E461*
|
||||
E462 editing.txt /*E462*
|
||||
E463 netbeans.txt /*E463*
|
||||
@@ -4361,6 +4367,7 @@ E561 if_cscop.txt /*E561*
|
||||
E562 if_cscop.txt /*E562*
|
||||
E563 if_cscop.txt /*E563*
|
||||
E564 if_cscop.txt /*E564*
|
||||
E565 insert.txt /*E565*
|
||||
E566 if_cscop.txt /*E566*
|
||||
E567 if_cscop.txt /*E567*
|
||||
E568 if_cscop.txt /*E568*
|
||||
@@ -4372,6 +4379,7 @@ E574 starting.txt /*E574*
|
||||
E575 starting.txt /*E575*
|
||||
E576 starting.txt /*E576*
|
||||
E577 starting.txt /*E577*
|
||||
E578 insert.txt /*E578*
|
||||
E579 eval.txt /*E579*
|
||||
E580 eval.txt /*E580*
|
||||
E581 eval.txt /*E581*
|
||||
@@ -4673,6 +4681,7 @@ E855 autocmd.txt /*E855*
|
||||
E858 eval.txt /*E858*
|
||||
E859 eval.txt /*E859*
|
||||
E86 windows.txt /*E86*
|
||||
E861 popup.txt /*E861*
|
||||
E862 eval.txt /*E862*
|
||||
E863 popup.txt /*E863*
|
||||
E864 pattern.txt /*E864*
|
||||
@@ -6122,6 +6131,7 @@ edit-files editing.txt /*edit-files*
|
||||
edit-intro editing.txt /*edit-intro*
|
||||
edit-no-break usr_25.txt /*edit-no-break*
|
||||
edit-paragraph-join usr_25.txt /*edit-paragraph-join*
|
||||
edit-window windows.txt /*edit-window*
|
||||
editing.txt editing.txt /*editing.txt*
|
||||
efm-%> quickfix.txt /*efm-%>*
|
||||
efm-entries quickfix.txt /*efm-entries*
|
||||
@@ -7694,6 +7704,7 @@ mapmode-v map.txt /*mapmode-v*
|
||||
mapmode-x map.txt /*mapmode-x*
|
||||
mapping map.txt /*mapping*
|
||||
mapping-functions usr_41.txt /*mapping-functions*
|
||||
mapset() eval.txt /*mapset()*
|
||||
mark motion.txt /*mark*
|
||||
mark-functions usr_41.txt /*mark-functions*
|
||||
mark-motions motion.txt /*mark-motions*
|
||||
@@ -8377,6 +8388,7 @@ popup_findpreview() popup.txt /*popup_findpreview()*
|
||||
popup_getoptions() popup.txt /*popup_getoptions()*
|
||||
popup_getpos() popup.txt /*popup_getpos()*
|
||||
popup_hide() popup.txt /*popup_hide()*
|
||||
popup_list() popup.txt /*popup_list()*
|
||||
popup_locate() popup.txt /*popup_locate()*
|
||||
popup_menu() popup.txt /*popup_menu()*
|
||||
popup_menu-shortcut-example popup.txt /*popup_menu-shortcut-example*
|
||||
@@ -8578,6 +8590,7 @@ quote~ change.txt /*quote~*
|
||||
r change.txt /*r*
|
||||
r.vim syntax.txt /*r.vim*
|
||||
rand() eval.txt /*rand()*
|
||||
random eval.txt /*random*
|
||||
range() eval.txt /*range()*
|
||||
raw-terminal-mode term.txt /*raw-terminal-mode*
|
||||
rcp pi_netrw.txt /*rcp*
|
||||
@@ -9348,6 +9361,7 @@ tags-file-format tagsrch.txt /*tags-file-format*
|
||||
tags-option tagsrch.txt /*tags-option*
|
||||
tagsrch.txt tagsrch.txt /*tagsrch.txt*
|
||||
tagstack tagsrch.txt /*tagstack*
|
||||
tagstack-examples tagsrch.txt /*tagstack-examples*
|
||||
tan() eval.txt /*tan()*
|
||||
tanh() eval.txt /*tanh()*
|
||||
tar pi_tar.txt /*tar*
|
||||
@@ -9452,6 +9466,7 @@ termdebug-prompt terminal.txt /*termdebug-prompt*
|
||||
termdebug-starting terminal.txt /*termdebug-starting*
|
||||
termdebug-stepping terminal.txt /*termdebug-stepping*
|
||||
termdebug-variables terminal.txt /*termdebug-variables*
|
||||
termdebug_map_K terminal.txt /*termdebug_map_K*
|
||||
termdebug_popup terminal.txt /*termdebug_popup*
|
||||
termdebug_shortcuts terminal.txt /*termdebug_shortcuts*
|
||||
termdebug_use_prompt terminal.txt /*termdebug_use_prompt*
|
||||
@@ -9503,6 +9518,7 @@ test_ignore_error() testing.txt /*test_ignore_error()*
|
||||
test_null_blob() testing.txt /*test_null_blob()*
|
||||
test_null_channel() testing.txt /*test_null_channel()*
|
||||
test_null_dict() testing.txt /*test_null_dict()*
|
||||
test_null_function() testing.txt /*test_null_function()*
|
||||
test_null_job() testing.txt /*test_null_job()*
|
||||
test_null_list() testing.txt /*test_null_list()*
|
||||
test_null_partial() testing.txt /*test_null_partial()*
|
||||
@@ -9954,6 +9970,7 @@ vim-variable eval.txt /*vim-variable*
|
||||
vim.vim syntax.txt /*vim.vim*
|
||||
vim7 version7.txt /*vim7*
|
||||
vim8 version8.txt /*vim8*
|
||||
vim9 vim9.txt /*vim9*
|
||||
vim9-differences vim9.txt /*vim9-differences*
|
||||
vim9-export vim9.txt /*vim9-export*
|
||||
vim9-import vim9.txt /*vim9-import*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*tagsrch.txt* For Vim version 8.2. Last change: 2020 Jan 30
|
||||
*tagsrch.txt* For Vim version 8.2. Last change: 2020 Apr 19
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -185,6 +185,29 @@ commands explained above the tag stack will look like this:
|
||||
The |gettagstack()| function returns the tag stack of a specified window. The
|
||||
|settagstack()| function modifies the tag stack of a window.
|
||||
|
||||
*tagstack-examples*
|
||||
Write to the tag stack just like `:tag` but with a user-defined
|
||||
jumper#jump_to_tag function: >
|
||||
" Store where we're jumping from before we jump.
|
||||
let tag = expand('<cword>')
|
||||
let pos = [bufnr()] + getcurpos()[1:]
|
||||
let item = {'bufnr': pos[0], 'from': pos, 'tagname': tag}
|
||||
if jumper#jump_to_tag(tag)
|
||||
" Jump was successful, write previous location to tag stack.
|
||||
let winid = win_getid()
|
||||
let stack = gettagstack(winid)
|
||||
let stack['items'] = [item]
|
||||
call settagstack(winid, stack, 't')
|
||||
endif
|
||||
<
|
||||
Set current index of the tag stack to 4: >
|
||||
call settagstack(1005, {'curidx' : 4})
|
||||
<
|
||||
Push a new item onto the tag stack: >
|
||||
let pos = [bufnr('myfile.txt'), 10, 1, 0]
|
||||
let newtag = [{'tagname' : 'mytag', 'from' : pos}]
|
||||
call settagstack(2, {'items' : newtag}, 'a')
|
||||
<
|
||||
*E73*
|
||||
When you try to use the tag stack while it doesn't contain anything you will
|
||||
get an error message.
|
||||
@@ -504,10 +527,13 @@ a tag for each "#defined" macro, typedefs, enums, etc.
|
||||
Some programs that generate tags files:
|
||||
ctags As found on most Unix systems. Only supports C. Only
|
||||
does the basic work.
|
||||
universal ctags A maintained version of ctags based on exuberant
|
||||
ctags. See https://ctags.io.
|
||||
*Exuberant_ctags*
|
||||
exuberant ctags This is a very good one. It works for C, C++, Java,
|
||||
Fortran, Eiffel and others. It can generate tags for
|
||||
many items. See http://ctags.sourceforge.net.
|
||||
No new version since 2009.
|
||||
etags Connected to Emacs. Supports many languages.
|
||||
JTags For Java, in Java. It can be found at
|
||||
http://www.fleiner.com/jtags/.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*term.txt* For Vim version 8.2. Last change: 2019 Dec 07
|
||||
*term.txt* For Vim version 8.2. Last change: 2020 Apr 12
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -322,6 +322,7 @@ OUTPUT CODES *terminal-output-codes*
|
||||
t_ZR italics end *t_ZR* *'t_ZR'*
|
||||
|
||||
Added by Vim (there are no standard codes for these):
|
||||
t_AU set underline color (ANSI) *t_AU* *'t_AU'*
|
||||
t_Ce undercurl end *t_Ce* *'t_Ce'*
|
||||
t_Cs undercurl mode *t_Cs* *'t_Cs'*
|
||||
t_Te strikethrough end *t_Te* *'t_Te'*
|
||||
@@ -350,6 +351,7 @@ Added by Vim (there are no standard codes for these):
|
||||
|xterm-true-color|
|
||||
t_8b set background color (R, G, B) *t_8b* *'t_8b'*
|
||||
|xterm-true-color|
|
||||
t_8u set underline color (R, G, B) *t_8u* *'t_8u'*
|
||||
t_BE enable bracketed paste mode *t_BE* *'t_BE'*
|
||||
|xterm-bracketed-paste|
|
||||
t_BD disable bracketed paste mode *t_BD* *'t_BD'*
|
||||
@@ -545,6 +547,7 @@ Note about colors: The 't_Co' option tells Vim the number of colors available.
|
||||
When it is non-zero, the 't_AB' and 't_AF' options are used to set the color.
|
||||
If one of these is not available, 't_Sb' and 't_Sf' are used. 't_me' is used
|
||||
to reset to the default colors. Also see 'termguicolors'.
|
||||
When the GUI is running 't_Co' is set to 16777216.
|
||||
|
||||
*termcap-cursor-shape* *termcap-cursor-color*
|
||||
When Vim enters Insert mode the 't_SI' escape sequence is sent. When Vim
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*terminal.txt* For Vim version 8.2. Last change: 2020 Mar 26
|
||||
*terminal.txt* For Vim version 8.2. Last change: 2020 May 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -120,7 +120,7 @@ break (cursor keys start with an Esc, so they may break): >
|
||||
You can also create menus similar to terminal mode mappings, but you have to
|
||||
use |:tlmenu| instead of |:tmenu|.
|
||||
|
||||
< *options-in-terminal*
|
||||
*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
|
||||
options specifically for the window and buffer. Example: >
|
||||
@@ -161,6 +161,7 @@ terminal windows may be configured using the variable
|
||||
hexadecimal color codes, similar to those accepted by |highlight-guifg|. When
|
||||
not using GUI colors, the terminal window always uses the 16 ANSI colors of
|
||||
the underlying terminal.
|
||||
When using `term_start()` the colors can be set with the "ansi_colors" option.
|
||||
The |term_setansicolors()| function can be used to change the colors, and
|
||||
|term_getansicolors()| to get the currently used colors.
|
||||
|
||||
@@ -183,6 +184,10 @@ Command syntax ~
|
||||
keep the terminal open in Terminal-Normal mode. This
|
||||
can be changed with the ++close argument.
|
||||
|
||||
No Vim command can follow, any | is included in
|
||||
[command]. Use `:execute` if you must have a Vim
|
||||
command following in the same line.
|
||||
|
||||
A new buffer will be created, using [command] or
|
||||
'shell' as the name, prefixed with a "!". If a buffer
|
||||
by this name already exists a number is added in
|
||||
@@ -960,7 +965,7 @@ Currently supported commands:
|
||||
directory, thus it's best to use the full path.
|
||||
|
||||
[options] is only used when opening a new window. If present,
|
||||
it must be a Dict. Similarly to |++opt|, These entries are
|
||||
it must be a Dict. Similarly to |++opt|, these entries are
|
||||
recognized:
|
||||
"ff" file format: "dos", "mac" or "unix"
|
||||
"fileformat" idem
|
||||
@@ -1301,7 +1306,7 @@ breakpoint, or use the "Clear breakpoint" right-click menu entry.
|
||||
Inspecting variables ~
|
||||
*termdebug-variables* *:Evaluate*
|
||||
`:Evaluate` evaluate the expression under the cursor
|
||||
`K` same
|
||||
`K` same (see |termdebug_map_K| to disable)
|
||||
`:Evaluate` {expr} evaluate {expr}
|
||||
`:'<,'>Evaluate` evaluate the Visually selected text
|
||||
|
||||
@@ -1332,6 +1337,10 @@ in a buffer with 'buftype' set to "prompt". This works slightly differently:
|
||||
*termdebug_use_prompt*
|
||||
Prompt mode can be used even when the |+terminal| feature is present with: >
|
||||
let g:termdebug_use_prompt = 1
|
||||
<
|
||||
*termdebug_map_K*
|
||||
The K key is normally mapped to :Evaluate. If you do not want this use: >
|
||||
let g:termdebug_map_K = 0
|
||||
|
||||
|
||||
Communication ~
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*testing.txt* For Vim version 8.2. Last change: 2020 Feb 22
|
||||
*testing.txt* For Vim version 8.2. Last change: 2020 Apr 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -107,7 +107,7 @@ test_null_dict() *test_null_dict()*
|
||||
|
||||
|
||||
test_null_function() *test_null_function()*
|
||||
Return a |FuncRef| that is null. Only useful for testing.
|
||||
Return a |Funcref| that is null. Only useful for testing.
|
||||
|
||||
|
||||
test_null_job() *test_null_job()*
|
||||
@@ -263,9 +263,8 @@ assert_equal({expected}, {actual} [, {msg}])
|
||||
Can also be used as a |method|: >
|
||||
mylist->assert_equal([1, 2, 3])
|
||||
|
||||
|
||||
< *assert_equalfile()*
|
||||
assert_equalfile({fname-one}, {fname-two})
|
||||
assert_equalfile({fname-one}, {fname-two} [, {msg}])
|
||||
When the files {fname-one} and {fname-two} do not contain
|
||||
exactly the same text an error message is added to |v:errors|.
|
||||
Also see |assert-return|.
|
||||
@@ -276,7 +275,6 @@ assert_equalfile({fname-one}, {fname-two})
|
||||
Can also be used as a |method|: >
|
||||
GetLog()->assert_equalfile('expected.log')
|
||||
|
||||
|
||||
assert_exception({error} [, {msg}]) *assert_exception()*
|
||||
When v:exception does not contain the string {error} an error
|
||||
message is added to |v:errors|. Also see |assert-return|.
|
||||
|
||||
@@ -101,7 +101,7 @@ 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_get([{name} [, {props}]]) get property type values
|
||||
prop_type_list([{props}]) get list of property types
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ 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_list({lnum} [, {props}]) text properties in {lnum}
|
||||
prop_remove({props} [, {lnum} [, {lnum-end}]])
|
||||
remove a text property
|
||||
|
||||
@@ -291,7 +291,7 @@ prop_type_delete({name} [, {props}]) *prop_type_delete()*
|
||||
Can also be used as a |method|: >
|
||||
GetPropName()->prop_type_delete()
|
||||
|
||||
prop_type_get([{name} [, {props}]) *prop_type_get()*
|
||||
prop_type_get([{name} [, {props}]]) *prop_type_get()*
|
||||
Returns the properties of property type {name}. This is a
|
||||
dictionary with the same fields as was given to
|
||||
prop_type_add().
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 8.2. Last change: 2020 Mar 27
|
||||
*todo.txt* For Vim version 8.2. Last change: 2020 May 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -38,20 +38,59 @@ browser use: https://github.com/vim/vim/issues/1234
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Include src/po/vim.pot ?
|
||||
|
||||
Vim9 script:
|
||||
- "func" inside "vim9script" doesn't work? (Ben Jackson, #5670)
|
||||
- "let x = x + 1" should say that "x" is not defined (declare local after
|
||||
evaluating expresion).
|
||||
Making everything work:
|
||||
- possible memory leak in test_vim9_func through compile_nested_function.
|
||||
- memory leaks in test_vim9_expr
|
||||
- memory leaks in test_vim9_script
|
||||
- Test that a script-local function in Vim9 script cannot be deleted.
|
||||
- Make "true" and "false" work in vim9script
|
||||
- Test that a function defined inside a :def function is local to that
|
||||
function, g: functions can be defined and script-local functions cannot be
|
||||
defined.
|
||||
- make 0 == 'string' fail on the script level, like inside :def.
|
||||
- Check that when using a user function name without prefix, it does not find
|
||||
a global function. Prefixing g: is required.
|
||||
- Compile: let [var, var] = expr
|
||||
- Compile: for [key, value] in items(map)
|
||||
- Assignment to dict doesn't work:
|
||||
let ret: dict<string> = #{}
|
||||
ret[i] = string(i)
|
||||
- Appending to dict item doesn't work:
|
||||
let d[i] ..= value
|
||||
- Compile replacement of :s command: s/pat/\=expr/
|
||||
- Compile redir to local variable: var_redir_start().
|
||||
- Compile builtin functions that access local variables:
|
||||
islocked()
|
||||
- Expand `=expr` in :next, :argedit, :argadd, :argdelete, :drop
|
||||
- Expand `=expr` in :vimgrep, :vimgrepadd, :lvimgrep, :lvimgrepadd
|
||||
- Expand `=expr` in :mkspell
|
||||
- When evaluating constants for script variables, some functions could work:
|
||||
has('asdf'), len('string')
|
||||
- Support type for ":let"/":const" at script level for Vim9 script.
|
||||
(Ben Jackson, #5671)
|
||||
Can we share the code from ex_let_const() between direct execution and
|
||||
compiling?
|
||||
- Disallow unlet for local/script/imported vars
|
||||
- Make "++nr" work.
|
||||
- Make closures work:
|
||||
- Create closure in a loop. Need to make a list of them.
|
||||
- expandcmd() with `=expr` in filename uses legacy expression.
|
||||
- eval_expr() in ex_cexpr()
|
||||
- eval_expr() call in dbg_parsearg() and debuggy_find()
|
||||
- has() is compiled as a constant, but some checks are dynamic.
|
||||
Check for dynamic values, such as "gui_running".
|
||||
New syntax and functionality:
|
||||
Improve error checking:
|
||||
- "echo Func()" is an error if Func() does not return anything.
|
||||
Also:
|
||||
- For range: make table of first ASCII character with flag to quickly check if
|
||||
it can be a Vim9 command. E.g. "+" can, but "." can't.
|
||||
- better implementation for partial and tests for that.
|
||||
- Make "g:imported = Export.exported" work in Vim9 script.
|
||||
- Make Foo.Bar() work to call the dict function. (#5676)
|
||||
- make "let var: string" work in a vim9script.
|
||||
- Disallow unlet for local/script/imported vars
|
||||
- Support type for ":let"/":const" at script level for Vim9 script.
|
||||
(Ben Jackson, #5671)
|
||||
- :func inside vim9script must still use a:arg
|
||||
- Make "++nr" work.
|
||||
- Check that import in legacy script works and puts item in s:
|
||||
- Error in any command in "vim9script" aborts sourcing.
|
||||
- Find a way to test expressions in legacy and Vim9 script without duplication
|
||||
@@ -60,34 +99,43 @@ Vim9 script:
|
||||
- Test try/catch and throw better, also nested.
|
||||
Test return inside try/finally jumps to finally and then returns.
|
||||
- call autoload function.
|
||||
- Type checking arguments when calling :def function
|
||||
- Implement more expressions, e.g. [a:b]
|
||||
- can use func as reference:
|
||||
def SomeFunc() ...
|
||||
map(list, SomeFunc)
|
||||
- define function and create funcref in one step:
|
||||
let ref = def(arg: type): rettype
|
||||
Also extends lambda
|
||||
- Test: Function declared inside a :def function is local, disappears at the
|
||||
end of the function. Unless g: is used, just like with variables.
|
||||
- Can we omit \ for line continuation inside (), {}, ?
|
||||
Requires parsing while reading a function. Like fgetline in do_one_cmd()?
|
||||
- implement :type
|
||||
- import type declaration?
|
||||
- implement class
|
||||
- implement interface
|
||||
- predefined class: Promise<T>
|
||||
- import statement for type declaration?
|
||||
- implement enum
|
||||
- Make accessing varargs faster: arg[expr]
|
||||
EVAL expr
|
||||
LOADVARARG (varags idx)
|
||||
Further improvements:
|
||||
- compile options that are an expression, e.g. "expr:" in 'spellsuggest',
|
||||
'foldexpr', 'foldtext', 'printexpr', 'diffexpr', 'patchexpr', 'charconvert',
|
||||
'balloonexpr', 'includeexpr', 'indentexpr', 'formatexpr'.
|
||||
- Make inline function work, to be used as a funcref:
|
||||
let ref = def(arg: type): rettype
|
||||
body
|
||||
enddef
|
||||
- compile get_lambda_tv() in popup_add_timeout()
|
||||
- inline call to map() and filter()
|
||||
- compile "skip" argument of searchpair()
|
||||
- compile "expr" and "call" expression of a channel in channel_exe_cmd()?
|
||||
|
||||
Popup windows:
|
||||
- Can put focus in another window using API and "drop". (#6077)
|
||||
- With some sequence get get hidden finished terminal buffer. (#5768)
|
||||
Cannot close popup terminal (#5744)
|
||||
Buffer can't be wiped, gets status "aF". (#5764)
|
||||
Is buf->nwindows incorrect?
|
||||
- popup_clear() and popup_close() should close the terminal popup, and
|
||||
make the buffer hidden. #5745
|
||||
- Cursor not updated before a redraw, making it jump. (#5943)
|
||||
- With terminal in popup, allow for popup_hide() to temporarily hide it.?
|
||||
- Fire some autocommand event after a new popup window was created and
|
||||
positioned? PopupNew? Could be used to set some options or move it out of
|
||||
@@ -106,6 +154,10 @@ Popup windows:
|
||||
- Figure out the size and position better if wrapping inserts indent
|
||||
|
||||
Text properties:
|
||||
- Patch to fix that split / join does not update properties properly (Axel
|
||||
Forsman, #5839) Alternative: #5875.
|
||||
- :goto does not go to the right place when test properties are present.
|
||||
(#5930)
|
||||
- "cc" does not call inserted_bytes(). (Axel Forsman, #5763)
|
||||
- Get E685 with a sequence of commands. (#5674)
|
||||
- Combining text property with 'cursorline' does not always work (Billie
|
||||
@@ -145,8 +197,16 @@ Terminal debugger:
|
||||
with another Vim instance.
|
||||
|
||||
Terminal emulator window:
|
||||
- When started with ":terminal ++close" and the shell exits but there is a
|
||||
background process, the window remains open, because the channel still
|
||||
exists (and output still shows). Perhaps close the window when an explicit
|
||||
++close was used? (#5931)
|
||||
- Using "CTRL-W :confirm quite" and selecting "yes" should work like ":quit!".
|
||||
(Harm te Hennepe, #6129)
|
||||
- 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
|
||||
A bit like using CTRL-W N first.
|
||||
Jump back like with "a" when any key is typed.
|
||||
And use modeless selection. #2962
|
||||
- Use CTRL-W CTRL-K to enter a digraph? #5371
|
||||
- When Vim runs in the terminal and changes the title, the statusline needs to
|
||||
@@ -176,36 +236,65 @@ Terminal emulator window:
|
||||
conversions.
|
||||
|
||||
Error numbers available:
|
||||
E451, E452, E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
|
||||
E654, E856, E857, E861, E900
|
||||
E453, E454, E489, E610, E611, E653, E856, E857, E861, E900
|
||||
|
||||
Patch to fix that typval related code is spread out. (Yegappan Lakshmanan,
|
||||
#6093)
|
||||
|
||||
Buffer autocommands are a bit inconsistent. Add a separate set of
|
||||
autocommands for the buffer lifecycle:
|
||||
BufIsCreated (after buffer ID exists)
|
||||
BufIsLoaded (after buffer ID has content)
|
||||
BufIsUnloaded (after buffer ID no longer has)
|
||||
BufIsWiped (after buffer ID was wiped)
|
||||
BufIsRenamed (after buffer ID gets another name)
|
||||
The buffer list and windows are locked, no changes possible
|
||||
|
||||
Patch to fix drawing error with DirectX. (James Grant, #5688)
|
||||
Causes flicker on resizing.
|
||||
|
||||
Patch to make lambda functions faster (Ken Takata)
|
||||
https://github.com/vim/vim/pull/5727
|
||||
LGTM remark: size derived from user input (getenv). Don't see how.
|
||||
|
||||
Patch to use more FOR_ALL_ macros and use them. (Yegappan Lakshmanan, #5339)
|
||||
Patch to support ipv6 for channel. (Ozaki Kiichi, #5893)
|
||||
|
||||
Patch to explain use of "%" in :!. (David Briscoe, #5591)
|
||||
|
||||
Patch to improve Windows terminal support. (Nobuhiro Takasaki, #5546)
|
||||
Ready to include.
|
||||
|
||||
Patch to improve use of Lua path. (Prabir Shrestha, #6098)
|
||||
|
||||
Patch to make exepath() work better on MS-Windows. (#6115)
|
||||
|
||||
Patch to add "-d" to xxd. (#5616)
|
||||
|
||||
Patch for the Haiku port: #5961
|
||||
|
||||
Patch to add Turkish manual. (Emir Sarı, #5641)
|
||||
|
||||
Patch to add lua sleep function. (Prabir Shrestha, #6057)
|
||||
Alternative: use vim.call and vim.fn: #6063
|
||||
|
||||
Patch to add getmarklist() (Yegappan, #6032)
|
||||
|
||||
Patch to support different color for undercurl in cterm.
|
||||
(Timur Celik, #6011)
|
||||
|
||||
Patch to support cindent option to handle pragmas differently.
|
||||
(Max Rumpf, #5468)
|
||||
|
||||
Patch to add ":syn foldlevel" to use fold level further down the line.
|
||||
(Brad King, 2016 Oct 19, update 2017 Jan 30, now in #6087)
|
||||
|
||||
File marks merging has duplicates since 7.4.1925. (Ingo Karkat, #5733)
|
||||
|
||||
Running test_gui and test_gui_init with Motif sometimes kills the window
|
||||
manager. Problem with Motif? Now test_gui crashes in submenu_change().
|
||||
"make test_gui" crashed in submenu_change(). Fix and remove workaround in
|
||||
add_pixmap_args().
|
||||
Athena is OK.
|
||||
Motif: Build on Ubuntu can't enter any text in dialog text fields.
|
||||
Running test_gui and test_gui_init with Motif sometimes kills the window
|
||||
manager. Problem with Motif?
|
||||
|
||||
:map output does not clear the reset of the command line.
|
||||
(#5623, also see #5962)
|
||||
|
||||
Patch to properly break CJK lines: Anton Kochkov, #3875
|
||||
Flag in 'formatoptions' is not used in the tests.
|
||||
@@ -213,6 +302,9 @@ Flag in 'formatoptions' is not used in the tests.
|
||||
Patch to add 'vtp' option. (#5344)
|
||||
Needs better docs. Is there a better name?
|
||||
|
||||
Patch to add argument to trim() to only trim start or end of a string.
|
||||
(Yegappan, #6126)
|
||||
|
||||
undo result wrong: Masato Nishihata, #4798
|
||||
|
||||
Patch for Template string: #4491. New pull: #4634
|
||||
@@ -221,7 +313,22 @@ Ready to include? Review the code.
|
||||
When 'lazyredraw' is set sometimes the title is not updated.
|
||||
(Jason Franklin, 2020 Feb 3) Looks like a race condition.
|
||||
|
||||
Patch to delete BeOS code. (#5817)
|
||||
Patch to delete BeOS code. (#5817) Anyone who wants to keep it?
|
||||
|
||||
With bash ":make" does not set v:shell_error. Possible solution: set
|
||||
'shellpipe' to "2>&1| tee %s; exit ${PIPESTATUS[0]}" #5994
|
||||
|
||||
Using mode() when "/pat" is used in Visual mode returns "v" instead of "c",
|
||||
which is not useful. Return "c/v" instead. And "c/o" when using "d/pat".
|
||||
#6127
|
||||
|
||||
When 'fileignorecase' is set ":e testfile.c" works to edit TestFile.c, but
|
||||
":find testfile.c" does not ignore case.
|
||||
Might be related to #6088.
|
||||
|
||||
When changing the crypt key the buffer should be considered modified.
|
||||
Like when changing 'fileformat'. Save the old key in save_file_ff().
|
||||
(Ninu-Ciprian Marginean)
|
||||
|
||||
Strange sequence of BufWipeout and BufNew events while doing omni-complete.
|
||||
(Paul Jolly, #5656)
|
||||
@@ -238,6 +345,8 @@ Patch to add function to return the text used in the quickfix window.
|
||||
|
||||
Patch to add readdirex() (Ken Takata, #5619)
|
||||
|
||||
Wrong error when using local arglist. (Harm te Hennepe, #6133)
|
||||
|
||||
Request to support <Cmd> in mappings, similar to how Neovim does this.
|
||||
(Daniel Hahler, #4784)
|
||||
|
||||
@@ -304,15 +413,13 @@ Python 3.8 doesn't work. (Antonios Hadjigeorgalis, #5509)
|
||||
The :syntax cchar value can only be a single character. It would be useful to
|
||||
support combining characters. (Charles Campbell) Also #4687
|
||||
|
||||
Include Haiku port. (Adrien Destugues, Siarzhuk Zharski, 2013 Oct 24)
|
||||
It can replace the BeOS code, which is likely not used anymore.
|
||||
Now on github: #1856. Updated Oct 2017
|
||||
Got permission to include this under the Vim license.
|
||||
|
||||
"--cleanFOO" does not result in an error. (#5537)
|
||||
|
||||
Add "t" action to settagstack(): truncate and add new entries. (#5405)
|
||||
|
||||
When 'relativenumber' is set the line just below a diff change doesn't get
|
||||
updated. (#6138)
|
||||
|
||||
Result of synID() sometimes wrong in help files. (#5252)
|
||||
|
||||
Status line is nut updated when splitting windows. (Marcin Szamotulski, #5496)
|
||||
@@ -1253,6 +1360,8 @@ sort() is not stable when using numeric/float sort (Nikolay Pavlov, 2016 Sep
|
||||
- Add ch_readlines(): for a channel in NL mode, reads as many lines as are
|
||||
available. Should be more efficient than looping over ch_read() with
|
||||
ch_status() to check for more.
|
||||
- If buffer contents is changed in a callback, set w_redr_status so that it
|
||||
gets redrawn in redraw_after_callback(). #6120
|
||||
- Add a separate timeout for opening a socket. Currently it's fixed at 50
|
||||
msec, which is too small for a remote connection. (tverniquet, #2130)
|
||||
- Problem with stderr on Windows? (Vincent Rischmann, 2016 Aug 31, #1026)
|
||||
@@ -1376,9 +1485,6 @@ Also with latest version.
|
||||
|
||||
Cannot delete a file with square brackets with delete(). (#696)
|
||||
|
||||
Patch to add ":syn foldlevel" to use fold level further down the line.
|
||||
(Brad King, 2016 Oct 19, update 2017 Jan 30)
|
||||
|
||||
Completion for input() does not expand environment variables. (chdiza, 2016
|
||||
Jul 25, #948)
|
||||
|
||||
|
||||
@@ -402,7 +402,7 @@ Another way to start in diff mode can be done from inside Vim. Edit the
|
||||
"main.c" file, then make a split and show the differences: >
|
||||
|
||||
:edit main.c
|
||||
:vertical diffsplit main.c~
|
||||
:vertical diffsplit main.c~
|
||||
|
||||
The ":vertical" command is used to make the window split vertically. If you
|
||||
omit this, you will get a horizontal split.
|
||||
|
||||
@@ -687,7 +687,7 @@ with any motion command, with text objects and in Visual mode.
|
||||
lowercase. This can be shortened to "guu". "gUgU" is shortened to "gUU" and
|
||||
"g~g~" to "g~~". Example: >
|
||||
|
||||
g~~
|
||||
g~~
|
||||
< Some GIRLS have Fun ----> sOME girls HAVE fUN ~
|
||||
|
||||
==============================================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_22.txt* For Vim version 8.2. Last change: 2019 Dec 07
|
||||
*usr_22.txt* For Vim version 8.2. Last change: 2020 Mar 28
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -84,7 +84,7 @@ browser. This is what you get: >
|
||||
a................Hiding Files or Directories................|netrw-a|
|
||||
mb...............Bookmarking a Directory....................|netrw-mb|
|
||||
gb...............Changing to a Bookmarked Directory.........|netrw-gb|
|
||||
c................Make Browsing Directory The Current Dir....|netrw-c|
|
||||
cd...............Make Browsing Directory The Current Dir....|netrw-c|
|
||||
d................Make A New Directory.......................|netrw-d|
|
||||
D................Deleting Files or Directories..............|netrw-D|
|
||||
<c-h>............Edit File/Directory Hiding List............|netrw-ctrl-h|
|
||||
@@ -121,7 +121,7 @@ The following normal-mode commands may be used to control the browser display:
|
||||
|
||||
As a sampling of extra normal-mode commands:
|
||||
|
||||
c Change Vim's notion of the current directory to be
|
||||
cd Change Vim's notion of the current directory to be
|
||||
the same as the browser directory. (see
|
||||
|g:netrw_keepdir| to control this, too)
|
||||
R Rename the file or directory under the cursor; a
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 8.2. Last change: 2020 Mar 15
|
||||
*usr_41.txt* For Vim version 8.2. Last change: 2020 Jun 01
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -41,6 +41,11 @@ prefer. And you can use any colon command in it (commands that start with a
|
||||
specific file type. A complicated macro can be defined by a separate Vim
|
||||
script file. You can think of other uses yourself.
|
||||
|
||||
Note: if you are familiar with Python, you can find a comparison between
|
||||
Python and Vim script here, with pointers to other documents:
|
||||
https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0
|
||||
|
||||
|
||||
Let's start with a simple example: >
|
||||
|
||||
:let i = 1
|
||||
@@ -631,6 +636,7 @@ List manipulation: *list-functions*
|
||||
deepcopy() make a full copy of a List
|
||||
filter() remove selected items from a List
|
||||
map() change each List item
|
||||
reduce() reduce a List to a value
|
||||
sort() sort a List
|
||||
reverse() reverse the order of a List
|
||||
uniq() remove copies of repeated adjacent items
|
||||
@@ -687,6 +693,7 @@ Floating point computation: *float-functions*
|
||||
sinh() hyperbolic sine
|
||||
cosh() hyperbolic cosine
|
||||
tanh() hyperbolic tangent
|
||||
isinf() check for infinity
|
||||
isnan() check for not a number
|
||||
|
||||
Other computation: *bitwise-function*
|
||||
@@ -695,6 +702,8 @@ Other computation: *bitwise-function*
|
||||
or() bitwise OR
|
||||
xor() bitwise XOR
|
||||
sha256() SHA-256 hash
|
||||
rand() get a pseudo-random number
|
||||
srand() initialize seed used by rand()
|
||||
|
||||
Variables: *var-functions*
|
||||
type() type of a variable
|
||||
@@ -724,6 +733,7 @@ Cursor and mark position: *cursor-functions* *mark-functions*
|
||||
getcurpos() get position of the cursor
|
||||
getpos() get position of cursor, mark, etc.
|
||||
setpos() set position of cursor, mark, etc.
|
||||
getmarklist() list of global/local marks
|
||||
byte2line() get line number at a specific byte count
|
||||
line2byte() byte count at a specific line
|
||||
diff_filler() get the number of filler lines above a line
|
||||
@@ -743,6 +753,7 @@ Working with text in the current buffer: *text-functions*
|
||||
prevnonblank() find previous non-blank line
|
||||
search() find a match for a pattern
|
||||
searchpos() find a match for a pattern
|
||||
searchcount() get number of matches before/after the cursor
|
||||
searchpair() find the other end of a start/skip/end
|
||||
searchpairpos() find the other end of a start/skip/end
|
||||
searchdecl() search for the declaration of a name
|
||||
@@ -790,6 +801,7 @@ System functions and manipulation of files:
|
||||
hostname() name of the system
|
||||
readfile() read a file into a List of lines
|
||||
readdir() get a List of file names in a directory
|
||||
readdirex() get a List of file information in a directory
|
||||
writefile() write a List of lines or Blob into a file
|
||||
|
||||
Date and Time: *date-functions* *time-functions*
|
||||
@@ -826,9 +838,11 @@ Buffers, windows and the argument list:
|
||||
listener_remove() remove a listener callback
|
||||
win_findbuf() find windows containing a buffer
|
||||
win_getid() get window ID of a window
|
||||
win_gettype() get type of window
|
||||
win_gotoid() go to window with ID
|
||||
win_id2tabwin() get tab and window nr from window ID
|
||||
win_id2win() get window nr from window ID
|
||||
win_splitmove() move window to a split of another window
|
||||
getbufinfo() get a list with buffer information
|
||||
gettabinfo() get a list with tab page information
|
||||
getwininfo() get a list with window information
|
||||
@@ -905,6 +919,7 @@ Interactive: *interactive-functions*
|
||||
getchar() get a character from the user
|
||||
getcharmod() get modifiers for the last typed character
|
||||
getmousepos() get last known mouse position
|
||||
echoraw() output characters as-is
|
||||
feedkeys() put characters in the typeahead queue
|
||||
input() get a line from the user
|
||||
inputlist() let the user pick an entry from a list
|
||||
@@ -946,6 +961,7 @@ Mappings and Menus: *mapping-functions*
|
||||
hasmapto() check if a mapping exists
|
||||
mapcheck() check if a matching mapping exists
|
||||
maparg() get rhs of a mapping
|
||||
mapset() restore a mapping
|
||||
menu_info() get information about a menu item
|
||||
wildmenumode() check if the wildmode is active
|
||||
|
||||
@@ -966,11 +982,13 @@ Testing: *test-functions*
|
||||
test_autochdir() enable 'autochdir' during startup
|
||||
test_override() test with Vim internal overrides
|
||||
test_garbagecollect_now() free memory right now
|
||||
test_garbagecollect_soon() set a flag to free memory soon
|
||||
test_getvalue() get value of an internal variable
|
||||
test_ignore_error() ignore a specific error message
|
||||
test_null_blob() return a null Blob
|
||||
test_null_channel() return a null Channel
|
||||
test_null_dict() return a null Dict
|
||||
test_null_function() return a null Funcref
|
||||
test_null_job() return a null Job
|
||||
test_null_list() return a null List
|
||||
test_null_partial() return a null Partial function
|
||||
@@ -980,6 +998,10 @@ Testing: *test-functions*
|
||||
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
|
||||
test_refcount() return an expression's reference count
|
||||
test_srand_seed() set the seed value for srand()
|
||||
test_unknown() return a value with unknown type
|
||||
test_void() return a value with void type
|
||||
|
||||
Inter-process communication: *channel-functions*
|
||||
ch_canread() check if there is something to read
|
||||
@@ -991,8 +1013,8 @@ Inter-process communication: *channel-functions*
|
||||
ch_readraw() read a raw message from a channel
|
||||
ch_sendexpr() send a JSON message over a channel
|
||||
ch_sendraw() send a raw message over a channel
|
||||
ch_evalexpr() evaluates an expression over channel
|
||||
ch_evalraw() evaluates a raw string over channel
|
||||
ch_evalexpr() evaluate an expression over channel
|
||||
ch_evalraw() evaluate a raw string over channel
|
||||
ch_status() get status of a channel
|
||||
ch_getbufnr() get the buffer number of a channel
|
||||
ch_getjob() get the job associated with a channel
|
||||
@@ -1005,7 +1027,7 @@ Inter-process communication: *channel-functions*
|
||||
js_encode() encode an expression to a JSON string
|
||||
js_decode() decode a JSON string to Vim types
|
||||
|
||||
Jobs: *job-functions*
|
||||
Jobs: *job-functions*
|
||||
job_start() start a job
|
||||
job_stop() stop a job
|
||||
job_status() get the status of a job
|
||||
@@ -1048,6 +1070,7 @@ Terminal window: *terminal-functions*
|
||||
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
|
||||
term_setapi() set terminal JSON API function name prefix
|
||||
|
||||
Popup window: *popup-window-functions*
|
||||
popup_create() create popup centered in the screen
|
||||
@@ -1066,9 +1089,13 @@ Popup window: *popup-window-functions*
|
||||
popup_close() close one popup
|
||||
popup_clear() close all popups
|
||||
popup_filter_menu() select from a list of items
|
||||
popup_filter_yesno() blocks until 'y' or 'n' is pressed
|
||||
popup_filter_yesno() block until 'y' or 'n' is pressed
|
||||
popup_getoptions() get current options for a popup
|
||||
popup_getpos() get actual position and size of a popup
|
||||
popup_findinfo() get window ID for popup info window
|
||||
popup_findpreview() get window ID for popup preview window
|
||||
popup_list() get list of all popup window IDs
|
||||
popup_locate() get popup window ID from its screen position
|
||||
|
||||
Timers: *timer-functions*
|
||||
timer_start() create a timer
|
||||
@@ -1088,8 +1115,27 @@ Prompt Buffer: *promptbuffer-functions*
|
||||
prompt_setinterrupt() set interrupt callback for a buffer
|
||||
prompt_setprompt() set the prompt text for a buffer
|
||||
|
||||
Text Properties: *text-property-functions*
|
||||
prop_add() attach a property at a position
|
||||
prop_clear() remove all properties from a line or lines
|
||||
prop_find() search for a property
|
||||
prop_list() return a list of all properties in a line
|
||||
prop_remove() remove a property from a line
|
||||
prop_type_add() add/define a property type
|
||||
prop_type_change() change properties of a type
|
||||
prop_type_delete() remove a text property type
|
||||
prop_type_get() return the properties of a type
|
||||
prop_type_list() return a list of all property types
|
||||
|
||||
Sound: *sound-functions*
|
||||
sound_clear() stop playing all sounds
|
||||
sound_playevent() play an event's sound
|
||||
sound_playfile() play a sound file
|
||||
sound_stop() stop playing a sound
|
||||
|
||||
Various: *various-functions*
|
||||
mode() get current editing mode
|
||||
state() get current busy state
|
||||
visualmode() last visual mode used
|
||||
exists() check if a variable, function, etc. exists
|
||||
has() check if a feature is supported in Vim
|
||||
@@ -1098,6 +1144,9 @@ Various: *various-functions*
|
||||
did_filetype() check if a FileType autocommand was used
|
||||
eventhandler() check if invoked by an event handler
|
||||
getpid() get process ID of Vim
|
||||
getimstatus() check if IME status is active
|
||||
interrupt() interrupt script execution
|
||||
windowsversion() get MS-Windows version
|
||||
|
||||
libcall() call a function in an external library
|
||||
libcallnr() idem, returning a number
|
||||
@@ -1106,6 +1155,7 @@ Various: *various-functions*
|
||||
undotree() return the state of the undo tree
|
||||
|
||||
getreg() get contents of a register
|
||||
getreginfo() get information about a register
|
||||
getregtype() get type of a register
|
||||
setreg() set contents and type of a register
|
||||
reg_executing() return the name of the register being executed
|
||||
@@ -1115,12 +1165,14 @@ Various: *various-functions*
|
||||
|
||||
wordcount() get byte/word/char count of buffer
|
||||
|
||||
luaeval() evaluate Lua expression
|
||||
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
|
||||
rubyeval() evaluate |Ruby| expression
|
||||
|
||||
debugbreak() interrupt a program being debugged
|
||||
|
||||
==============================================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 8.2. Last change: 2020 Mar 19
|
||||
*various.txt* For Vim version 8.2. Last change: 2020 Apr 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -375,6 +375,7 @@ m *+hangul_input* Hangul input support |hangul|
|
||||
*+iconv* Compiled with the |iconv()| function
|
||||
*+iconv/dyn* Likewise |iconv-dynamic| |/dyn|
|
||||
T *+insert_expand* |insert_expand| Insert mode completion
|
||||
m *+ipv6* Support for IPv6 networking |channel|
|
||||
m *+job* starting and stopping jobs |job|
|
||||
S *+jumplist* |jumplist|
|
||||
B *+keymap* |'keymap'|
|
||||
@@ -542,7 +543,7 @@ N *+X11* Unix only: can restore window title |X11|
|
||||
locked or the variable type is changed, then further
|
||||
command output messages will cause errors.
|
||||
To get the output of one command the |execute()|
|
||||
function can be used.
|
||||
function can be used instead of redirection.
|
||||
|
||||
:redi[r] =>> {var} Append messages to an existing variable. Only string
|
||||
variables can be used.
|
||||
|
||||
544
runtime/doc/vim-tr.1
Normal file
544
runtime/doc/vim-tr.1
Normal file
@@ -0,0 +1,544 @@
|
||||
.TH VIM 1 "11 Nisan 2006"
|
||||
.SH AD
|
||||
vim \- Vi IMproved, bir programcının metin düzenleyicisi
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] [dosya ..]
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] \-
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] \-t etiket
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] \-q [hatadosyası]
|
||||
.PP
|
||||
.br
|
||||
.B ex
|
||||
.br
|
||||
.B view
|
||||
.br
|
||||
.B gvim
|
||||
.B gview
|
||||
.B evim
|
||||
.B eview
|
||||
.br
|
||||
.B rvim
|
||||
.B rview
|
||||
.B rgvim
|
||||
.B rgview
|
||||
.SH TANIM
|
||||
.B Vim,
|
||||
Vi ile yukarıya doğru uyumlu olan bir metin düzenleyicisidir.
|
||||
Her tür düz metni düzenlemede kullanılabilir.
|
||||
Özellikle programları düzenlemede yararlıdır.
|
||||
.PP
|
||||
Vi üzerine yapılmış birçok geliştirme ve iyileştirmeyi içerir:
|
||||
Çok düzeyli geri alma, çoklu pencereler ve arabellekler, sözdizim vurgulama,
|
||||
komut satırı düzenleme, dosya adı tamamlama, çevrimiçi yardım, görsel seçim vb.
|
||||
.B Vim
|
||||
ve Vi arasındaki değişikliklerin bir özeti için ":help vi_diff.txt"
|
||||
dosyasına bir göz atın.
|
||||
.PP
|
||||
.B Vim'i
|
||||
çalıştırırken gerekli olan yardımın çoğu çevrimiçi yardım sisteminden elde
|
||||
edilebilir. Bunun için ":help" komutunu kullanabilirsiniz.
|
||||
Aşağıda ÇEVRİMİÇİ YARDIM bölümüne bakın.
|
||||
.PP
|
||||
Genelde
|
||||
.B Vim
|
||||
tek bir dosyayı düzenlemek için şu komutla çalıştırılır:
|
||||
.PP
|
||||
vim dosya
|
||||
.PP
|
||||
Biraz daha açacak olursak:
|
||||
.PP
|
||||
vim [seçenekler] [dosyalistesi]
|
||||
.PP
|
||||
Eğer dosya listesi sağlanmamışsa, düzenleyici boş bir arabellek açar.
|
||||
Bunun dışında aşağıdaki dört seçenekten bir tanesi de bir veya birden çok
|
||||
dosyayı düzenlemek için kullanılabilir.
|
||||
.TP 12
|
||||
dosya ..
|
||||
Dosya adlarının bir listesi.
|
||||
Bunlardan ilki ekrana getirilip arabelleğe yüklenir.
|
||||
İmleç arabelleğin ilk satırında konumlandırılır.
|
||||
Diğer dosyalara ":next" komutu ile geçebilirsiniz.
|
||||
Adı tire ile başlayan bir dosyayı düzenlemek için dosya listesinin başına
|
||||
"\-\-" koyun.
|
||||
.TP
|
||||
\-
|
||||
Düzenlenecek dosya stdin'den okunur. Komutlar bir tty olması gereken
|
||||
stderr'den okunur.
|
||||
.TP
|
||||
\-t {etiket}
|
||||
Düzenlenecek dosya ve bu dosyanın başlangıç imleç konumu bir "etiket"e
|
||||
dayanır, bir tür bıraktığınız konumu belirten bir ayraç gibi.
|
||||
Etiket dosyasında {etiket} aranır, ilişkin dosya şu anki dosya olur ve
|
||||
ilişkin komut çalıştırılır.
|
||||
Bu genelde C programları için kullanılır, {etiket} bu durumda bir işlev
|
||||
olabilir.
|
||||
Bunun sonucunda bu işlevi içeren dosya o anki dosya olur ve imleç bu
|
||||
işlevin başlangıcına konumlandırılır.
|
||||
Ek bilgi için: ":help tag\-commands".
|
||||
.TP
|
||||
\-q [hatadosyası]
|
||||
Hızlı düzelt kipinde başlat
|
||||
[hatadosyası] okunur ve ilk hata görüntülenir.
|
||||
Eğer [hatadosyası] sağlanmazsa, dosya adı 'errorfile' seçeneğinden alınır
|
||||
(öntanımlı olarak Amiga için "AztecC.Err", diğer sistemlerde "errors.err").
|
||||
Sonraki hatalara ":cn" komutu ile geçilebilir.
|
||||
Ek bilgi için: ":help quickfix".
|
||||
.PP
|
||||
.B Vim
|
||||
girilen komutun adına göre değişik biçimde davranır (çalıştırılabilir hâlâ
|
||||
aynı dosya olarak kalabilir).
|
||||
.TP 10
|
||||
vim
|
||||
"Normal" kip, standart çalışma biçimi.
|
||||
.TP
|
||||
ex
|
||||
Ex kipinde başlat.
|
||||
"\-e" değişkeni ile de başlatılabilir.
|
||||
Normal kipe ":vi" komutu ile geçilebilir.
|
||||
.TP
|
||||
view
|
||||
Saltokunur kipte başlat. Bu kipte dosya yazımına izin verilmez.
|
||||
"\-R" değişkeni ile de başlatılabilir.
|
||||
.TP
|
||||
gvim gview
|
||||
Grafik arabirim sürümü.
|
||||
Yeni bir pencere açar.
|
||||
"\-g" değişkeni ile de başlatılabilir.
|
||||
.TP
|
||||
evim eview
|
||||
Kolay kipte başlatılan grafik arabirim sürümü.
|
||||
Yeni bir pencere açar.
|
||||
"\-y" değişkeni ile de başlatılabilir.
|
||||
.TP
|
||||
rvim rview rgvim rgview
|
||||
Yukarıdaki ile aynı, ancak sınırlamalar içerir. Kabuk komutları
|
||||
çalıştırılamaz veya
|
||||
.B Vim
|
||||
askıya alınamaz.
|
||||
"\-Z" değişkeni ile de başlatılabilir.
|
||||
.SH SEÇENEKLER
|
||||
Seçenekler bir sıra gözetmeksizin dosya adlarından önce veya sonra
|
||||
kullanılabilir.
|
||||
Herhangi bir değişken içermeyen seçenekler bir tirenin ardında sıralanabilir.
|
||||
.TP 12
|
||||
+[num]
|
||||
İlk dosya için imleç "num" satırında konumlandırılacaktır.
|
||||
Eğer "num" eksikse imleç en son satırda başlar.
|
||||
.TP
|
||||
+/{dizge}
|
||||
İlk dosya için imleç {dizgi}'nin ilk eşleşmesinin olduğu satırda
|
||||
konumlandırılacaktır.
|
||||
Kullanılabilir arama dizgileri için ":help search\-pattern" yazın.
|
||||
.TP
|
||||
+{komut}
|
||||
.TP
|
||||
\-c {komut}
|
||||
İlk dosya okunduktan sonra {komut} çalıştırılır.
|
||||
{komut} bir Ex komutu olarak işletilir.
|
||||
Eğer {komut} boşluk içeriyorsa çift tırnak içerisine alınmalıdır (bu
|
||||
kullanılan kabuğa bağlıdır).
|
||||
Örnek: Vim "+set si" main.c
|
||||
.br
|
||||
Not: 10 taneye kadar "+" veya "\-c" komutu kullanabilirsiniz.
|
||||
.TP
|
||||
\-S {dosya}
|
||||
İlk dosya okunduktan sonra {dosya} kaynak alınır.
|
||||
\-c "source {dosya}" bu komutun eşdeğeridir.
|
||||
{dosya}, '\-' ile başlayamaz.
|
||||
Eğer {dosya} sağlanmazsa "Session.vim" kullanılır (yalnızca \-S son
|
||||
değişken olarak kullanıldığında işe yarar).
|
||||
.TP
|
||||
\-\-cmd {komut}
|
||||
"\-c" komutu gibi, ancak komut herhangi bir vimrc dosyasını işletmeden
|
||||
önce çalıştırılır.
|
||||
"\-c" komutundan bağımsız olarak bu komutlardan 10 taneye kadar
|
||||
çalıştırabilirsiniz.
|
||||
.TP
|
||||
\-A
|
||||
Eğer
|
||||
.B Vim
|
||||
sağdan sola yazılan dosyaları ve Arapça klavye dizilimini kullanabilmesi için
|
||||
ARAPÇA desteği ile derlenmişe bu seçenek
|
||||
.B Vim'i
|
||||
Arapça kipinde başlatır ('arabic' seçeneği açılır). Aksi durumda
|
||||
.B Vim
|
||||
hata verip çıkar.
|
||||
.TP
|
||||
\-b
|
||||
İkili kip.
|
||||
Bir çalıştırılabiliri veya ikili dosyayı düzenlemeye olanacak sağlayacak
|
||||
birkaç seçenek ayarlanır.
|
||||
.TP
|
||||
\-C
|
||||
Uyumlu kip. 'compatible' seçeneğini ayarlar.
|
||||
Bu kipte
|
||||
.B Vim
|
||||
bir .vimrc dosyası var olsa bile genelde Vi gibi davranır.
|
||||
.TP
|
||||
\-d
|
||||
Karşılaştırma kipinde başlat.
|
||||
Bir, iki, üç veya dört adet dosya adı değişkeni olmalıdır.
|
||||
.B Vim
|
||||
bütün dosyaları yan yana açar ve aralarındaki değişiklikleri gösterir.
|
||||
vimdiff(1) gibi çalışır.
|
||||
.TP
|
||||
\-d {aygıt}
|
||||
{aygıt}'ı bir uçbirim olarak kullanmak için açar.
|
||||
Yalnızca Amiga'da çalışır.
|
||||
Örnek:
|
||||
"\-d con:20/30/600/150".
|
||||
.TP
|
||||
\-D
|
||||
Hata ayıklama kipi. Bir betiğin ilk komutunu çalıştırırken hata ayıklama
|
||||
kipine geçer.
|
||||
.TP
|
||||
\-e
|
||||
.B Vim'i
|
||||
Ex kipinde başlatır, "ex" çalıştırılabiliri ile aynı işlevi görür.
|
||||
.TP
|
||||
\-E
|
||||
.B Vim'i
|
||||
geliştirilmiş Ex kipinde başlatır, "exim" çalıştırılabiliri ile aynı
|
||||
işlevi görür.
|
||||
.TP
|
||||
\-f
|
||||
Önplan. Grafik arabirim sürümü için
|
||||
.B Vim
|
||||
başladığı kabuktan ayrılmayacak ve kendisini çatallamayacaktır.
|
||||
Amiga'da,
|
||||
.B Vim
|
||||
yeni bir pencere açmak için yeniden başlatılmaz.
|
||||
Bu seçenek
|
||||
.B Vim
|
||||
düzenleme oturumunun bitmesini bekleyecek bir program tarafından
|
||||
başlatıldığında kullanılmalıdır (örn. mail).
|
||||
Amiga'da ":sh" ve ":!" komutları çalışmayacaktır.
|
||||
.TP
|
||||
\-\-nofork
|
||||
Önplan. Grafik arabirim sürümü için
|
||||
.B Vim
|
||||
başladığı kabuktan ayrılmayacak ve kendisini çatallamayacaktır.
|
||||
.TP
|
||||
\-F
|
||||
Eğer
|
||||
.B Vim
|
||||
sağdan sola yazılan dosyaları ve Farsça klavye dizilimini kullanabilmesi için
|
||||
FKMAP desteği ile derlenmişse, bu seçenek
|
||||
.B Vim'i
|
||||
Farsça kipinde başlatır ('fkmap' ve 'rightleft' seçenekleri açılır).
|
||||
Aksi durumda
|
||||
.B Vim
|
||||
hata verip çıkar.
|
||||
.TP
|
||||
\-g
|
||||
Eğer
|
||||
.B Vim
|
||||
grafik arabirim desteği ile derlenmişse bu seçenek grafik arabirimi çalıştırır.
|
||||
Eğer grafik arabirim desteği eklenmemişse
|
||||
.B Vim
|
||||
hata verir ve çıkar.
|
||||
.TP
|
||||
\-h
|
||||
Komut satırı değişkenleri ve seçenekleri üzerine biraz yardım sağlar.
|
||||
Bu komuttan sonra
|
||||
.B Vim
|
||||
çıkar.
|
||||
.TP
|
||||
\-H
|
||||
Eğer
|
||||
.B Vim
|
||||
sağdan sola yazılan dosyaları ve İbranca klavye dizilimini kullanabilmesi için
|
||||
RIGHTLEFT desteği ile derlenmişse, bu seçenek
|
||||
.B Vim'i
|
||||
İbranca kipinde başlatır ('hkmap' ve 'rightleft' seçenekleri açılır).
|
||||
Aksi durumda
|
||||
.B Vim
|
||||
hata verir ve çıkar.
|
||||
.TP
|
||||
\-i {viminfo}
|
||||
Öntanımlı "~/.viminfo" dosyası yerine kullanılacak olan viminfo dosyasını
|
||||
belirtmek için kullanılır.
|
||||
Bu komut aynı zamanda viminfo kullanımını atlamak için de kullanılabilir.
|
||||
Bunun için dosya adı yerine "NONE" vermeniz yeterlidir.
|
||||
.TP
|
||||
\-L
|
||||
\-r ile aynı.
|
||||
.TP
|
||||
\-l
|
||||
Lisp kipi.
|
||||
Bu değişken 'lisp' ve 'showmatch' seçeneklerini açar.
|
||||
.TP
|
||||
\-m
|
||||
Dosya yazma seçeneği kapalıdır.
|
||||
\'write' seçeneğini sıfırlar.
|
||||
Arabelleği hâlâ değiştirebilirsiniz, ancak dosyayı yazmak olanaklı değildir.
|
||||
.TP
|
||||
\-M
|
||||
Değişikliklere izin verilmez. 'modifiable' ve 'write' seçenekleri kapatılır,
|
||||
böylece değişiklik yapılamaz ve dosyalar yazılamaz.
|
||||
Bu seçenekleri yeniden açıp değişiklik yapmayı etkinleştirebilirsiniz.
|
||||
.TP
|
||||
\-N
|
||||
Uyumsuz kip. 'no-compatible' seçeneğini sıfırlar.
|
||||
Bu seçenekle birlikte
|
||||
.B Vim
|
||||
biraz daha düzgünce çalışır, ancak bir .vimrc dosyası olmamasına rağmen
|
||||
Vi ile daha az uyumludur.
|
||||
.TP
|
||||
\-n
|
||||
Bir takas dosyası kullanılmaz.
|
||||
Çökme sonrası kurtarma olanaklı olmayacaktır.
|
||||
Eğer çok yavaş bir ortamda dosya çalışıyorsanız (örn. disket) yararlı olabilir.
|
||||
":set uc=0" ile de yapılabilir.
|
||||
Geri almak için ":set uc=200" yapın.
|
||||
.TP
|
||||
\-nb
|
||||
NetBeans için bir düzenleyici sunucusu olur. Ayrıntılar için belgelere bakın.
|
||||
.TP
|
||||
\-o[N]
|
||||
N sayıda pencereyi üst üste açar.
|
||||
N verilmezse, her dosya için bir pencere açar.
|
||||
.TP
|
||||
\-O[N]
|
||||
N sayıda pencereyi yan yana açar.
|
||||
N verilmezse, her dosya için bir pencere açar.
|
||||
.TP
|
||||
\-p[N]
|
||||
N sayıda sekme açar.
|
||||
N verilmezse, her dosya için bir sekme açar.
|
||||
.TP
|
||||
\-R
|
||||
Saltokunur kip.
|
||||
\'readonly' seçeneği açılır.
|
||||
Arabelleği hâlâ değiştirebilirsiniz, ancak yanlışlıkla dosyanın üzerine
|
||||
yazmaktan sizi korur.
|
||||
Dosyanın üzerine yazmak istemiyorsanız, Ex komutuna bir ünlem imi ekleyin,
|
||||
örn. ":w!".
|
||||
\-R seçeneği aynı zamanda \-n seçeneğini de uygular (yukarıda bakın).
|
||||
\'readonly' seçeneği ":set noro" ile sıfırlanabilir.
|
||||
Ek bilgi için: ":help 'readonly'".
|
||||
.TP
|
||||
\-r
|
||||
Takas dosyalarını içerdikleri kurtarma bilgilerini gösterecek biçimde listeler.
|
||||
.TP
|
||||
\-r {dosya}
|
||||
Kurtarma kipi.
|
||||
Çökmüş bir düzenleme oturumunu takas dosyasını kullanarak kurtarır.
|
||||
Takas dosyası dosya ile aynı ada iye olup sonuna ".swp" eklenmiştir.
|
||||
Ek bilgi için: ":help recovery".
|
||||
.TP
|
||||
\-s
|
||||
Sessiz kip. Yalnızca "Ex" olarak başlatıldığında veya "\-e" seçeneği
|
||||
"\-s" seçeneğinden önce verildiğinde çalışır.
|
||||
.TP
|
||||
\-s {betikgir}
|
||||
{betikgir} betik dosyası okunur.
|
||||
Dosyadaki karakterler onları siz girmişsiniz gibi kabul edilir.
|
||||
Aynısı ":source! {betikgir}" komutu ile de gerçekleştirilebilir.
|
||||
Eğer dosyanın sonuna düzenleyici çıkmadan önce gelinirse, sonraki karakterler
|
||||
klavyeden okunur.
|
||||
.TP
|
||||
\-T {uçbirim}
|
||||
.B Vim'e
|
||||
kullandığınız uçbirimin adını söyler.
|
||||
Yalnızca kendiliğinden okunamazsa gereklidir.
|
||||
.B Vim'in
|
||||
tanıdığı bir uçbirim olmalıdır veya termcap veya terminfo dosyasında
|
||||
tanımlı olmalıdır.
|
||||
.TP
|
||||
\-u {vimrc}
|
||||
İlklendirme için {vimrc} dosyasındaki komutları kullan.
|
||||
Diğer tüm ilklendirmeler atlanır.
|
||||
Bunu özel türde dosyaları düzenlemek için kullanın.
|
||||
Dosya adı olarak "NONE" verilirse tüm özelleştirmeler atlanır.
|
||||
Ek bilgi için vim içinde ":help initialization" bölümüne bakın.
|
||||
.TP
|
||||
\-U {gvimrc}
|
||||
Grafik arabirim ilklendirmesi için {gvimrc} dosyasındaki komutlara bakın.
|
||||
Diğer tüm grafik arabirim ilklendirmeleri atlanır.
|
||||
Dosya adı olarak "NONE" verilirse tüm özelleştirmeler atlanır.
|
||||
Ek bilgi için vim içinde ":help gui\-init" bölümüne bakın.
|
||||
.TP
|
||||
\-V[N]
|
||||
Sözlü anlatım. Hangi dosyaların kaynak alındığını ve viminfo dosyasından
|
||||
nelerin okunduğunu yazdırır. 'verbose' için isteğe bağlı N seçeneği
|
||||
kullanılabilir. Öntanımlı sayı 10'dur.
|
||||
.TP
|
||||
\-v
|
||||
.B Vim'i
|
||||
"vi" yazarak başlatırmış gibi Vi kipinde başlatır. Bu yalnızca
|
||||
çalıştırılabilir "ex" olduğunda bir işe yarar.
|
||||
.TP
|
||||
\-w {betikçık}
|
||||
Girdiğiniz tüm karakterler siz
|
||||
.B Vim'den
|
||||
çıkana değin {betikçık} dosyasında saklanır.
|
||||
Bu "vim \-s" veya ":source" komutu ile kullanılacak bir betik yaratmaya yarar.
|
||||
Eğer {betikçık} dosyası varsa karakterler dosyaya eklenir.
|
||||
.TP
|
||||
\-W {betikçık}
|
||||
\-w gibi, ancak var olan bir dosyanın üzerine yazar.
|
||||
.TP
|
||||
\-x
|
||||
Dosya yazarken şifreleme kullanır. Bir şifre girmeniz istenecektir.
|
||||
.TP
|
||||
\-X
|
||||
X sunucusuna bağlanmaz. Vim'in uçbirimde başlama süresini azaltır ancak pencere başlığı
|
||||
ve pano kullanılamaz.
|
||||
.TP
|
||||
\-y
|
||||
.B Vim'i
|
||||
"evim" veya "eview" yazarak başlatırmış gibi kolay kipte başlatır.
|
||||
.B Vim'i
|
||||
diğer tıkla ve yaz düzenleyicileri gibi çalıştırır.
|
||||
.TP
|
||||
\-Z
|
||||
Kısıtlı kip. Program "r" yazarak başlatılmış gibi davranır.
|
||||
.TP
|
||||
\-\-
|
||||
Seçeneklerin bittiğini belirtir.
|
||||
Bundan sonraki değişkenler artık bir dosya adı olarak işletilir.
|
||||
Aynı zamanda '\-' ile başlayan bir dosyayı tanıtmak için de kullanılabilir.
|
||||
.TP
|
||||
\-\-echo\-wid
|
||||
Yalnızca GTK grafik arabirimi: Pencere numarasını stdout'a yankıla.
|
||||
.TP
|
||||
\-\-help
|
||||
Yardım iletisini yazdırır ve çıkar, "\-h" gibi.
|
||||
.TP
|
||||
\-\-literal
|
||||
Dosya adı değişkenlerini gerçek anlamda işlet, joker karakterlerini
|
||||
genişletme. Bunun kabuğun karakterleri kendiliğinden genişlettiği Unix'te
|
||||
bir etkisi bulunmamaktadır.
|
||||
.TP
|
||||
\-\-noplugin
|
||||
Eklentileri yükleme. "\-u NONE" da aynı işlevi görür.
|
||||
.TP
|
||||
\-\-remote
|
||||
Bir Vim sunucusuna bağlan ve geri kalan değişkenlerde belirtilen dosyaları
|
||||
düzenle. Eğer bir sunucu bulunamazsa bir uyarı verilir ve dosyalar şu anki
|
||||
Vim'de düzenlenir.
|
||||
.TP
|
||||
\-\-remote\-expr {ifade}
|
||||
Bir Vim sunucusuna bağlan ve {ifade}'yi değerlendirip sonucu stdout'a yazdır.
|
||||
.TP
|
||||
\-\-remote\-send {anahtarlar}
|
||||
Bir Vim sunucusuna bağlan ve ona {anahtarlar} gönder.
|
||||
.TP
|
||||
\-\-remote\-silent
|
||||
\-\-remote gibi, ancak bir sunucu bulunamazsa uyarı vermez.
|
||||
.TP
|
||||
\-\-remote\-wait
|
||||
\-\-remote gibi, ancak Vim dosyalar düzenlenene kadar çıkmaz.
|
||||
.TP
|
||||
\-\-remote\-wait\-silent
|
||||
\-\-remote\-wait gibi, ancak bir sunucu bulunamazsa uyarı vermez.
|
||||
.TP
|
||||
\-\-serverlist
|
||||
Bulunabilecek bütün Vim sunucularını listeler.
|
||||
.TP
|
||||
\-\-servername {ad}
|
||||
{ad}'ı bir sunucu adı olarak kullanır. Bir \-\-remote değişkeni ve
|
||||
bağlanacağı sunucunun adı ile kullanılmadığı sürece şu anki Vim için
|
||||
kullanılır.
|
||||
.TP
|
||||
\-\-socketid {id}
|
||||
Yalnızca GTK grafik arabirimi: GtkPlug mekanizmasını kullanarak gvim'i başka
|
||||
bir pencerede çalıştır.
|
||||
.TP
|
||||
\-\-version
|
||||
Sürüm bilgisini yazdırır ve çıkar.
|
||||
.SH ÇEVRİMİÇİ YARDIM
|
||||
.B Vim
|
||||
içinde ":help" yazarak başlayın.
|
||||
Belirli bir konu üzerine yardım almak için ":help subject" yazın.
|
||||
Örneğin: "ZZ" komutu üzerine bilgi almak için ":help ZZ" yazın.
|
||||
<Tab> ve CTRL-D kullanarak konuları tamamlayın (":help cmdline\-completion").
|
||||
Bir konumdan diğerini atlamak için etiketler mevcuttur (bir tür köprü gibi),
|
||||
ek bilgi için ":help").
|
||||
Tüm belgelendirmeyi bu biçimde okuyabilirsiniz, örneğin: ":help syntax.txt".
|
||||
":help syntax.txt".
|
||||
.SH DOSYALAR
|
||||
.TP 15
|
||||
/usr/local/lib/vim/doc/*.txt
|
||||
.B Vim
|
||||
belgelendirme dosyaları.
|
||||
Tüm listeyi görmek için ":help doc\-file\-list" yazın.
|
||||
.TP
|
||||
/usr/local/lib/vim/doc/tags
|
||||
Belgelendirme içinde veri bulmak için kullanılan etiketler dosyası.
|
||||
.TP
|
||||
/usr/local/lib/vim/syntax/syntax.vim
|
||||
Sistem geneli sözdizim ilklendirmeleri.
|
||||
.TP
|
||||
/usr/local/lib/vim/syntax/*.vim
|
||||
Programlama dilleri için sözdizim dosyaları.
|
||||
.TP
|
||||
/usr/local/lib/vim/vimrc
|
||||
Sistem geneli
|
||||
.B Vim
|
||||
ilklendirmeleri.
|
||||
.TP
|
||||
~/.vimrc
|
||||
Sizin kişisel
|
||||
.B Vim
|
||||
ilklendirmeleriniz.
|
||||
.TP
|
||||
/usr/local/lib/vim/gvimrc
|
||||
Sistem geneli gvim ilklendirmeleri.
|
||||
.TP
|
||||
~/.gvimrc
|
||||
Sizin kişisel gvim ilklendirmeleriniz.
|
||||
.TP
|
||||
/usr/local/lib/vim/optwin.vim
|
||||
":options" komutu için kullanılan betik, görsel seçenek ayarları.
|
||||
.TP
|
||||
/usr/local/lib/vim/menu.vim
|
||||
gvim için sistem geneli menü ilklendirmeleri.
|
||||
.TP
|
||||
/usr/local/lib/vim/bugreport.vim
|
||||
Hata raporu oluşturmak için kullanılan betik. Ek bilgi için: ":help bugs".
|
||||
.TP
|
||||
/usr/local/lib/vim/filetype.vim
|
||||
Dosya türünü adından tanıyan betik. Ek bilgi için: ":help 'filetype'".
|
||||
.TP
|
||||
/usr/local/lib/vim/scripts.vim
|
||||
Dosya türünü içeriğinden tanıyan betik. Ek bilgi için: ":help 'filetype'".
|
||||
.TP
|
||||
/usr/local/lib/vim/print/*.ps
|
||||
PostScript yazdırması için kullanılan dosyalar.
|
||||
.PP
|
||||
En güncel bilgiler için VİM ana sayfasını ziyaret edin:
|
||||
.br
|
||||
<URL:http://www.vim.org/>
|
||||
.SH AYRICA BAKINIZ
|
||||
vimtutor(1)
|
||||
.SH YAZAR
|
||||
.B Vim'in
|
||||
büyük çoğunluğu Bram Moolenaar tarafından başkalarının kayda değer
|
||||
yardımlarıyla yazılmıştır.
|
||||
Ek bilgi için
|
||||
.B Vim
|
||||
içinde ":help credits" yazın.
|
||||
.br
|
||||
.B Vim
|
||||
Stevie tabanlıdır, yazarları: Tim Thompson,
|
||||
Tony Andrews ve G.R. (Fred) Walter.
|
||||
Orijinal koddan geriye pek bir şey kalmadığını söylemek yanlış olmaz.
|
||||
.SH HATALAR
|
||||
Bilinen hataların bir listesi için ":help todo" yazın.
|
||||
.PP
|
||||
Unutmayın ki, başkaları tarafından hata olarak değerlendirilebilecek konuların
|
||||
bir çoğu Vi'nin davranışlarına sadık kalınması nedeniyle vardır. Yine de
|
||||
bazı şeylerin "Vi bunu değişik biçimde yapıyor" diye hata olabileceğini
|
||||
düşünüyorsanız, "vi_diff.txt" dosyasını dikkatle okuyun (veya Vim içinde
|
||||
:help vi_diff.txt yazın.
|
||||
Ek olarak 'compatible' ve 'cpoptions' seçeneklerine de bakabilirsiniz.
|
||||
544
runtime/doc/vim-tr.UTF-8.1
Normal file
544
runtime/doc/vim-tr.UTF-8.1
Normal file
@@ -0,0 +1,544 @@
|
||||
.TH VIM 1 "11 Nisan 2006"
|
||||
.SH AD
|
||||
vim \- Vi IMproved, bir programcının metin düzenleyicisi
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] [dosya ..]
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] \-
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] \-t etiket
|
||||
.br
|
||||
.B vim
|
||||
[seçenekler] \-q [hatadosyası]
|
||||
.PP
|
||||
.br
|
||||
.B ex
|
||||
.br
|
||||
.B view
|
||||
.br
|
||||
.B gvim
|
||||
.B gview
|
||||
.B evim
|
||||
.B eview
|
||||
.br
|
||||
.B rvim
|
||||
.B rview
|
||||
.B rgvim
|
||||
.B rgview
|
||||
.SH TANIM
|
||||
.B Vim,
|
||||
Vi ile yukarıya doğru uyumlu olan bir metin düzenleyicisidir.
|
||||
Her tür düz metni düzenlemede kullanılabilir.
|
||||
Özellikle programları düzenlemede yararlıdır.
|
||||
.PP
|
||||
Vi üzerine yapılmış birçok geliştirme ve iyileştirmeyi içerir:
|
||||
Çok düzeyli geri alma, çoklu pencereler ve arabellekler, sözdizim vurgulama,
|
||||
komut satırı düzenleme, dosya adı tamamlama, çevrimiçi yardım, görsel seçim vb.
|
||||
.B Vim
|
||||
ve Vi arasındaki değişikliklerin bir özeti için ":help vi_diff.txt"
|
||||
dosyasına bir göz atın.
|
||||
.PP
|
||||
.B Vim'i
|
||||
çalıştırırken gerekli olan yardımın çoğu çevrimiçi yardım sisteminden elde
|
||||
edilebilir. Bunun için ":help" komutunu kullanabilirsiniz.
|
||||
Aşağıda ÇEVRİMİÇİ YARDIM bölümüne bakın.
|
||||
.PP
|
||||
Genelde
|
||||
.B Vim
|
||||
tek bir dosyayı düzenlemek için şu komutla çalıştırılır:
|
||||
.PP
|
||||
vim dosya
|
||||
.PP
|
||||
Biraz daha açacak olursak:
|
||||
.PP
|
||||
vim [seçenekler] [dosyalistesi]
|
||||
.PP
|
||||
Eğer dosya listesi sağlanmamışsa, düzenleyici boş bir arabellek açar.
|
||||
Bunun dışında aşağıdaki dört seçenekten bir tanesi de bir veya birden çok
|
||||
dosyayı düzenlemek için kullanılabilir.
|
||||
.TP 12
|
||||
dosya ..
|
||||
Dosya adlarının bir listesi.
|
||||
Bunlardan ilki ekrana getirilip arabelleğe yüklenir.
|
||||
İmleç arabelleğin ilk satırında konumlandırılır.
|
||||
Diğer dosyalara ":next" komutu ile geçebilirsiniz.
|
||||
Adı tire ile başlayan bir dosyayı düzenlemek için dosya listesinin başına
|
||||
"\-\-" koyun.
|
||||
.TP
|
||||
\-
|
||||
Düzenlenecek dosya stdin'den okunur. Komutlar bir tty olması gereken
|
||||
stderr'den okunur.
|
||||
.TP
|
||||
\-t {etiket}
|
||||
Düzenlenecek dosya ve bu dosyanın başlangıç imleç konumu bir "etiket"e
|
||||
dayanır, bir tür bıraktığınız konumu belirten bir ayraç gibi.
|
||||
Etiket dosyasında {etiket} aranır, ilişkin dosya şu anki dosya olur ve
|
||||
ilişkin komut çalıştırılır.
|
||||
Bu genelde C programları için kullanılır, {etiket} bu durumda bir işlev
|
||||
olabilir.
|
||||
Bunun sonucunda bu işlevi içeren dosya o anki dosya olur ve imleç bu
|
||||
işlevin başlangıcına konumlandırılır.
|
||||
Ek bilgi için: ":help tag\-commands".
|
||||
.TP
|
||||
\-q [hatadosyası]
|
||||
Hızlı düzelt kipinde başlat
|
||||
[hatadosyası] okunur ve ilk hata görüntülenir.
|
||||
Eğer [hatadosyası] sağlanmazsa, dosya adı 'errorfile' seçeneğinden alınır
|
||||
(öntanımlı olarak Amiga için "AztecC.Err", diğer sistemlerde "errors.err").
|
||||
Sonraki hatalara ":cn" komutu ile geçilebilir.
|
||||
Ek bilgi için: ":help quickfix".
|
||||
.PP
|
||||
.B Vim
|
||||
girilen komutun adına göre değişik biçimde davranır (çalıştırılabilir hâlâ
|
||||
aynı dosya olarak kalabilir).
|
||||
.TP 10
|
||||
vim
|
||||
"Normal" kip, standart çalışma biçimi.
|
||||
.TP
|
||||
ex
|
||||
Ex kipinde başlat.
|
||||
"\-e" değişkeni ile de başlatılabilir.
|
||||
Normal kipe ":vi" komutu ile geçilebilir.
|
||||
.TP
|
||||
view
|
||||
Saltokunur kipte başlat. Bu kipte dosya yazımına izin verilmez.
|
||||
"\-R" değişkeni ile de başlatılabilir.
|
||||
.TP
|
||||
gvim gview
|
||||
Grafik arabirim sürümü.
|
||||
Yeni bir pencere açar.
|
||||
"\-g" değişkeni ile de başlatılabilir.
|
||||
.TP
|
||||
evim eview
|
||||
Kolay kipte başlatılan grafik arabirim sürümü.
|
||||
Yeni bir pencere açar.
|
||||
"\-y" değişkeni ile de başlatılabilir.
|
||||
.TP
|
||||
rvim rview rgvim rgview
|
||||
Yukarıdaki ile aynı, ancak sınırlamalar içerir. Kabuk komutları
|
||||
çalıştırılamaz veya
|
||||
.B Vim
|
||||
askıya alınamaz.
|
||||
"\-Z" değişkeni ile de başlatılabilir.
|
||||
.SH SEÇENEKLER
|
||||
Seçenekler bir sıra gözetmeksizin dosya adlarından önce veya sonra
|
||||
kullanılabilir.
|
||||
Herhangi bir değişken içermeyen seçenekler bir tirenin ardında sıralanabilir.
|
||||
.TP 12
|
||||
+[num]
|
||||
İlk dosya için imleç "num" satırında konumlandırılacaktır.
|
||||
Eğer "num" eksikse imleç en son satırda başlar.
|
||||
.TP
|
||||
+/{dizge}
|
||||
İlk dosya için imleç {dizgi}'nin ilk eşleşmesinin olduğu satırda
|
||||
konumlandırılacaktır.
|
||||
Kullanılabilir arama dizgileri için ":help search\-pattern" yazın.
|
||||
.TP
|
||||
+{komut}
|
||||
.TP
|
||||
\-c {komut}
|
||||
İlk dosya okunduktan sonra {komut} çalıştırılır.
|
||||
{komut} bir Ex komutu olarak işletilir.
|
||||
Eğer {komut} boşluk içeriyorsa çift tırnak içerisine alınmalıdır (bu
|
||||
kullanılan kabuğa bağlıdır).
|
||||
Örnek: Vim "+set si" main.c
|
||||
.br
|
||||
Not: 10 taneye kadar "+" veya "\-c" komutu kullanabilirsiniz.
|
||||
.TP
|
||||
\-S {dosya}
|
||||
İlk dosya okunduktan sonra {dosya} kaynak alınır.
|
||||
\-c "source {dosya}" bu komutun eşdeğeridir.
|
||||
{dosya}, '\-' ile başlayamaz.
|
||||
Eğer {dosya} sağlanmazsa "Session.vim" kullanılır (yalnızca \-S son
|
||||
değişken olarak kullanıldığında işe yarar).
|
||||
.TP
|
||||
\-\-cmd {komut}
|
||||
"\-c" komutu gibi, ancak komut herhangi bir vimrc dosyasını işletmeden
|
||||
önce çalıştırılır.
|
||||
"\-c" komutundan bağımsız olarak bu komutlardan 10 taneye kadar
|
||||
çalıştırabilirsiniz.
|
||||
.TP
|
||||
\-A
|
||||
Eğer
|
||||
.B Vim
|
||||
sağdan sola yazılan dosyaları ve Arapça klavye dizilimini kullanabilmesi için
|
||||
ARAPÇA desteği ile derlenmişe bu seçenek
|
||||
.B Vim'i
|
||||
Arapça kipinde başlatır ('arabic' seçeneği açılır). Aksi durumda
|
||||
.B Vim
|
||||
hata verip çıkar.
|
||||
.TP
|
||||
\-b
|
||||
İkili kip.
|
||||
Bir çalıştırılabiliri veya ikili dosyayı düzenlemeye olanacak sağlayacak
|
||||
birkaç seçenek ayarlanır.
|
||||
.TP
|
||||
\-C
|
||||
Uyumlu kip. 'compatible' seçeneğini ayarlar.
|
||||
Bu kipte
|
||||
.B Vim
|
||||
bir .vimrc dosyası var olsa bile genelde Vi gibi davranır.
|
||||
.TP
|
||||
\-d
|
||||
Karşılaştırma kipinde başlat.
|
||||
Bir, iki, üç veya dört adet dosya adı değişkeni olmalıdır.
|
||||
.B Vim
|
||||
bütün dosyaları yan yana açar ve aralarındaki değişiklikleri gösterir.
|
||||
vimdiff(1) gibi çalışır.
|
||||
.TP
|
||||
\-d {aygıt}
|
||||
{aygıt}'ı bir uçbirim olarak kullanmak için açar.
|
||||
Yalnızca Amiga'da çalışır.
|
||||
Örnek:
|
||||
"\-d con:20/30/600/150".
|
||||
.TP
|
||||
\-D
|
||||
Hata ayıklama kipi. Bir betiğin ilk komutunu çalıştırırken hata ayıklama
|
||||
kipine geçer.
|
||||
.TP
|
||||
\-e
|
||||
.B Vim'i
|
||||
Ex kipinde başlatır, "ex" çalıştırılabiliri ile aynı işlevi görür.
|
||||
.TP
|
||||
\-E
|
||||
.B Vim'i
|
||||
geliştirilmiş Ex kipinde başlatır, "exim" çalıştırılabiliri ile aynı
|
||||
işlevi görür.
|
||||
.TP
|
||||
\-f
|
||||
Önplan. Grafik arabirim sürümü için
|
||||
.B Vim
|
||||
başladığı kabuktan ayrılmayacak ve kendisini çatallamayacaktır.
|
||||
Amiga'da,
|
||||
.B Vim
|
||||
yeni bir pencere açmak için yeniden başlatılmaz.
|
||||
Bu seçenek
|
||||
.B Vim
|
||||
düzenleme oturumunun bitmesini bekleyecek bir program tarafından
|
||||
başlatıldığında kullanılmalıdır (örn. mail).
|
||||
Amiga'da ":sh" ve ":!" komutları çalışmayacaktır.
|
||||
.TP
|
||||
\-\-nofork
|
||||
Önplan. Grafik arabirim sürümü için
|
||||
.B Vim
|
||||
başladığı kabuktan ayrılmayacak ve kendisini çatallamayacaktır.
|
||||
.TP
|
||||
\-F
|
||||
Eğer
|
||||
.B Vim
|
||||
sağdan sola yazılan dosyaları ve Farsça klavye dizilimini kullanabilmesi için
|
||||
FKMAP desteği ile derlenmişse, bu seçenek
|
||||
.B Vim'i
|
||||
Farsça kipinde başlatır ('fkmap' ve 'rightleft' seçenekleri açılır).
|
||||
Aksi durumda
|
||||
.B Vim
|
||||
hata verip çıkar.
|
||||
.TP
|
||||
\-g
|
||||
Eğer
|
||||
.B Vim
|
||||
grafik arabirim desteği ile derlenmişse bu seçenek grafik arabirimi çalıştırır.
|
||||
Eğer grafik arabirim desteği eklenmemişse
|
||||
.B Vim
|
||||
hata verir ve çıkar.
|
||||
.TP
|
||||
\-h
|
||||
Komut satırı değişkenleri ve seçenekleri üzerine biraz yardım sağlar.
|
||||
Bu komuttan sonra
|
||||
.B Vim
|
||||
çıkar.
|
||||
.TP
|
||||
\-H
|
||||
Eğer
|
||||
.B Vim
|
||||
sağdan sola yazılan dosyaları ve İbranca klavye dizilimini kullanabilmesi için
|
||||
RIGHTLEFT desteği ile derlenmişse, bu seçenek
|
||||
.B Vim'i
|
||||
İbranca kipinde başlatır ('hkmap' ve 'rightleft' seçenekleri açılır).
|
||||
Aksi durumda
|
||||
.B Vim
|
||||
hata verir ve çıkar.
|
||||
.TP
|
||||
\-i {viminfo}
|
||||
Öntanımlı "~/.viminfo" dosyası yerine kullanılacak olan viminfo dosyasını
|
||||
belirtmek için kullanılır.
|
||||
Bu komut aynı zamanda viminfo kullanımını atlamak için de kullanılabilir.
|
||||
Bunun için dosya adı yerine "NONE" vermeniz yeterlidir.
|
||||
.TP
|
||||
\-L
|
||||
\-r ile aynı.
|
||||
.TP
|
||||
\-l
|
||||
Lisp kipi.
|
||||
Bu değişken 'lisp' ve 'showmatch' seçeneklerini açar.
|
||||
.TP
|
||||
\-m
|
||||
Dosya yazma seçeneği kapalıdır.
|
||||
\'write' seçeneğini sıfırlar.
|
||||
Arabelleği hâlâ değiştirebilirsiniz, ancak dosyayı yazmak olanaklı değildir.
|
||||
.TP
|
||||
\-M
|
||||
Değişikliklere izin verilmez. 'modifiable' ve 'write' seçenekleri kapatılır,
|
||||
böylece değişiklik yapılamaz ve dosyalar yazılamaz.
|
||||
Bu seçenekleri yeniden açıp değişiklik yapmayı etkinleştirebilirsiniz.
|
||||
.TP
|
||||
\-N
|
||||
Uyumsuz kip. 'no-compatible' seçeneğini sıfırlar.
|
||||
Bu seçenekle birlikte
|
||||
.B Vim
|
||||
biraz daha düzgünce çalışır, ancak bir .vimrc dosyası olmamasına rağmen
|
||||
Vi ile daha az uyumludur.
|
||||
.TP
|
||||
\-n
|
||||
Bir takas dosyası kullanılmaz.
|
||||
Çökme sonrası kurtarma olanaklı olmayacaktır.
|
||||
Eğer çok yavaş bir ortamda dosya çalışıyorsanız (örn. disket) yararlı olabilir.
|
||||
":set uc=0" ile de yapılabilir.
|
||||
Geri almak için ":set uc=200" yapın.
|
||||
.TP
|
||||
\-nb
|
||||
NetBeans için bir düzenleyici sunucusu olur. Ayrıntılar için belgelere bakın.
|
||||
.TP
|
||||
\-o[N]
|
||||
N sayıda pencereyi üst üste açar.
|
||||
N verilmezse, her dosya için bir pencere açar.
|
||||
.TP
|
||||
\-O[N]
|
||||
N sayıda pencereyi yan yana açar.
|
||||
N verilmezse, her dosya için bir pencere açar.
|
||||
.TP
|
||||
\-p[N]
|
||||
N sayıda sekme açar.
|
||||
N verilmezse, her dosya için bir sekme açar.
|
||||
.TP
|
||||
\-R
|
||||
Saltokunur kip.
|
||||
\'readonly' seçeneği açılır.
|
||||
Arabelleği hâlâ değiştirebilirsiniz, ancak yanlışlıkla dosyanın üzerine
|
||||
yazmaktan sizi korur.
|
||||
Dosyanın üzerine yazmak istemiyorsanız, Ex komutuna bir ünlem imi ekleyin,
|
||||
örn. ":w!".
|
||||
\-R seçeneği aynı zamanda \-n seçeneğini de uygular (yukarıda bakın).
|
||||
\'readonly' seçeneği ":set noro" ile sıfırlanabilir.
|
||||
Ek bilgi için: ":help 'readonly'".
|
||||
.TP
|
||||
\-r
|
||||
Takas dosyalarını içerdikleri kurtarma bilgilerini gösterecek biçimde listeler.
|
||||
.TP
|
||||
\-r {dosya}
|
||||
Kurtarma kipi.
|
||||
Çökmüş bir düzenleme oturumunu takas dosyasını kullanarak kurtarır.
|
||||
Takas dosyası dosya ile aynı ada iye olup sonuna ".swp" eklenmiştir.
|
||||
Ek bilgi için: ":help recovery".
|
||||
.TP
|
||||
\-s
|
||||
Sessiz kip. Yalnızca "Ex" olarak başlatıldığında veya "\-e" seçeneği
|
||||
"\-s" seçeneğinden önce verildiğinde çalışır.
|
||||
.TP
|
||||
\-s {betikgir}
|
||||
{betikgir} betik dosyası okunur.
|
||||
Dosyadaki karakterler onları siz girmişsiniz gibi kabul edilir.
|
||||
Aynısı ":source! {betikgir}" komutu ile de gerçekleştirilebilir.
|
||||
Eğer dosyanın sonuna düzenleyici çıkmadan önce gelinirse, sonraki karakterler
|
||||
klavyeden okunur.
|
||||
.TP
|
||||
\-T {uçbirim}
|
||||
.B Vim'e
|
||||
kullandığınız uçbirimin adını söyler.
|
||||
Yalnızca kendiliğinden okunamazsa gereklidir.
|
||||
.B Vim'in
|
||||
tanıdığı bir uçbirim olmalıdır veya termcap veya terminfo dosyasında
|
||||
tanımlı olmalıdır.
|
||||
.TP
|
||||
\-u {vimrc}
|
||||
İlklendirme için {vimrc} dosyasındaki komutları kullan.
|
||||
Diğer tüm ilklendirmeler atlanır.
|
||||
Bunu özel türde dosyaları düzenlemek için kullanın.
|
||||
Dosya adı olarak "NONE" verilirse tüm özelleştirmeler atlanır.
|
||||
Ek bilgi için vim içinde ":help initialization" bölümüne bakın.
|
||||
.TP
|
||||
\-U {gvimrc}
|
||||
Grafik arabirim ilklendirmesi için {gvimrc} dosyasındaki komutlara bakın.
|
||||
Diğer tüm grafik arabirim ilklendirmeleri atlanır.
|
||||
Dosya adı olarak "NONE" verilirse tüm özelleştirmeler atlanır.
|
||||
Ek bilgi için vim içinde ":help gui\-init" bölümüne bakın.
|
||||
.TP
|
||||
\-V[N]
|
||||
Sözlü anlatım. Hangi dosyaların kaynak alındığını ve viminfo dosyasından
|
||||
nelerin okunduğunu yazdırır. 'verbose' için isteğe bağlı N seçeneği
|
||||
kullanılabilir. Öntanımlı sayı 10'dur.
|
||||
.TP
|
||||
\-v
|
||||
.B Vim'i
|
||||
"vi" yazarak başlatırmış gibi Vi kipinde başlatır. Bu yalnızca
|
||||
çalıştırılabilir "ex" olduğunda bir işe yarar.
|
||||
.TP
|
||||
\-w {betikçık}
|
||||
Girdiğiniz tüm karakterler siz
|
||||
.B Vim'den
|
||||
çıkana değin {betikçık} dosyasında saklanır.
|
||||
Bu "vim \-s" veya ":source" komutu ile kullanılacak bir betik yaratmaya yarar.
|
||||
Eğer {betikçık} dosyası varsa karakterler dosyaya eklenir.
|
||||
.TP
|
||||
\-W {betikçık}
|
||||
\-w gibi, ancak var olan bir dosyanın üzerine yazar.
|
||||
.TP
|
||||
\-x
|
||||
Dosya yazarken şifreleme kullanır. Bir şifre girmeniz istenecektir.
|
||||
.TP
|
||||
\-X
|
||||
X sunucusuna bağlanmaz. Vim'in uçbirimde başlama süresini azaltır ancak pencere başlığı
|
||||
ve pano kullanılamaz.
|
||||
.TP
|
||||
\-y
|
||||
.B Vim'i
|
||||
"evim" veya "eview" yazarak başlatırmış gibi kolay kipte başlatır.
|
||||
.B Vim'i
|
||||
diğer tıkla ve yaz düzenleyicileri gibi çalıştırır.
|
||||
.TP
|
||||
\-Z
|
||||
Kısıtlı kip. Program "r" yazarak başlatılmış gibi davranır.
|
||||
.TP
|
||||
\-\-
|
||||
Seçeneklerin bittiğini belirtir.
|
||||
Bundan sonraki değişkenler artık bir dosya adı olarak işletilir.
|
||||
Aynı zamanda '\-' ile başlayan bir dosyayı tanıtmak için de kullanılabilir.
|
||||
.TP
|
||||
\-\-echo\-wid
|
||||
Yalnızca GTK grafik arabirimi: Pencere numarasını stdout'a yankıla.
|
||||
.TP
|
||||
\-\-help
|
||||
Yardım iletisini yazdırır ve çıkar, "\-h" gibi.
|
||||
.TP
|
||||
\-\-literal
|
||||
Dosya adı değişkenlerini gerçek anlamda işlet, joker karakterlerini
|
||||
genişletme. Bunun kabuğun karakterleri kendiliğinden genişlettiği Unix'te
|
||||
bir etkisi bulunmamaktadır.
|
||||
.TP
|
||||
\-\-noplugin
|
||||
Eklentileri yükleme. "\-u NONE" da aynı işlevi görür.
|
||||
.TP
|
||||
\-\-remote
|
||||
Bir Vim sunucusuna bağlan ve geri kalan değişkenlerde belirtilen dosyaları
|
||||
düzenle. Eğer bir sunucu bulunamazsa bir uyarı verilir ve dosyalar şu anki
|
||||
Vim'de düzenlenir.
|
||||
.TP
|
||||
\-\-remote\-expr {ifade}
|
||||
Bir Vim sunucusuna bağlan ve {ifade}'yi değerlendirip sonucu stdout'a yazdır.
|
||||
.TP
|
||||
\-\-remote\-send {anahtarlar}
|
||||
Bir Vim sunucusuna bağlan ve ona {anahtarlar} gönder.
|
||||
.TP
|
||||
\-\-remote\-silent
|
||||
\-\-remote gibi, ancak bir sunucu bulunamazsa uyarı vermez.
|
||||
.TP
|
||||
\-\-remote\-wait
|
||||
\-\-remote gibi, ancak Vim dosyalar düzenlenene kadar çıkmaz.
|
||||
.TP
|
||||
\-\-remote\-wait\-silent
|
||||
\-\-remote\-wait gibi, ancak bir sunucu bulunamazsa uyarı vermez.
|
||||
.TP
|
||||
\-\-serverlist
|
||||
Bulunabilecek bütün Vim sunucularını listeler.
|
||||
.TP
|
||||
\-\-servername {ad}
|
||||
{ad}'ı bir sunucu adı olarak kullanır. Bir \-\-remote değişkeni ve
|
||||
bağlanacağı sunucunun adı ile kullanılmadığı sürece şu anki Vim için
|
||||
kullanılır.
|
||||
.TP
|
||||
\-\-socketid {id}
|
||||
Yalnızca GTK grafik arabirimi: GtkPlug mekanizmasını kullanarak gvim'i başka
|
||||
bir pencerede çalıştır.
|
||||
.TP
|
||||
\-\-version
|
||||
Sürüm bilgisini yazdırır ve çıkar.
|
||||
.SH ÇEVRİMİÇİ YARDIM
|
||||
.B Vim
|
||||
içinde ":help" yazarak başlayın.
|
||||
Belirli bir konu üzerine yardım almak için ":help subject" yazın.
|
||||
Örneğin: "ZZ" komutu üzerine bilgi almak için ":help ZZ" yazın.
|
||||
<Tab> ve CTRL-D kullanarak konuları tamamlayın (":help cmdline\-completion").
|
||||
Bir konumdan diğerini atlamak için etiketler mevcuttur (bir tür köprü gibi),
|
||||
ek bilgi için ":help").
|
||||
Tüm belgelendirmeyi bu biçimde okuyabilirsiniz, örneğin: ":help syntax.txt".
|
||||
":help syntax.txt".
|
||||
.SH DOSYALAR
|
||||
.TP 15
|
||||
/usr/local/lib/vim/doc/*.txt
|
||||
.B Vim
|
||||
belgelendirme dosyaları.
|
||||
Tüm listeyi görmek için ":help doc\-file\-list" yazın.
|
||||
.TP
|
||||
/usr/local/lib/vim/doc/tags
|
||||
Belgelendirme içinde veri bulmak için kullanılan etiketler dosyası.
|
||||
.TP
|
||||
/usr/local/lib/vim/syntax/syntax.vim
|
||||
Sistem geneli sözdizim ilklendirmeleri.
|
||||
.TP
|
||||
/usr/local/lib/vim/syntax/*.vim
|
||||
Programlama dilleri için sözdizim dosyaları.
|
||||
.TP
|
||||
/usr/local/lib/vim/vimrc
|
||||
Sistem geneli
|
||||
.B Vim
|
||||
ilklendirmeleri.
|
||||
.TP
|
||||
~/.vimrc
|
||||
Sizin kişisel
|
||||
.B Vim
|
||||
ilklendirmeleriniz.
|
||||
.TP
|
||||
/usr/local/lib/vim/gvimrc
|
||||
Sistem geneli gvim ilklendirmeleri.
|
||||
.TP
|
||||
~/.gvimrc
|
||||
Sizin kişisel gvim ilklendirmeleriniz.
|
||||
.TP
|
||||
/usr/local/lib/vim/optwin.vim
|
||||
":options" komutu için kullanılan betik, görsel seçenek ayarları.
|
||||
.TP
|
||||
/usr/local/lib/vim/menu.vim
|
||||
gvim için sistem geneli menü ilklendirmeleri.
|
||||
.TP
|
||||
/usr/local/lib/vim/bugreport.vim
|
||||
Hata raporu oluşturmak için kullanılan betik. Ek bilgi için: ":help bugs".
|
||||
.TP
|
||||
/usr/local/lib/vim/filetype.vim
|
||||
Dosya türünü adından tanıyan betik. Ek bilgi için: ":help 'filetype'".
|
||||
.TP
|
||||
/usr/local/lib/vim/scripts.vim
|
||||
Dosya türünü içeriğinden tanıyan betik. Ek bilgi için: ":help 'filetype'".
|
||||
.TP
|
||||
/usr/local/lib/vim/print/*.ps
|
||||
PostScript yazdırması için kullanılan dosyalar.
|
||||
.PP
|
||||
En güncel bilgiler için VİM ana sayfasını ziyaret edin:
|
||||
.br
|
||||
<URL:http://www.vim.org/>
|
||||
.SH AYRICA BAKINIZ
|
||||
vimtutor(1)
|
||||
.SH YAZAR
|
||||
.B Vim'in
|
||||
büyük çoğunluğu Bram Moolenaar tarafından başkalarının kayda değer
|
||||
yardımlarıyla yazılmıştır.
|
||||
Ek bilgi için
|
||||
.B Vim
|
||||
içinde ":help credits" yazın.
|
||||
.br
|
||||
.B Vim
|
||||
Stevie tabanlıdır, yazarları: Tim Thompson,
|
||||
Tony Andrews ve G.R. (Fred) Walter.
|
||||
Orijinal koddan geriye pek bir şey kalmadığını söylemek yanlış olmaz.
|
||||
.SH HATALAR
|
||||
Bilinen hataların bir listesi için ":help todo" yazın.
|
||||
.PP
|
||||
Unutmayın ki, başkaları tarafından hata olarak değerlendirilebilecek konuların
|
||||
bir çoğu Vi'nin davranışlarına sadık kalınması nedeniyle vardır. Yine de
|
||||
bazı şeylerin "Vi bunu değişik biçimde yapıyor" diye hata olabileceğini
|
||||
düşünüyorsanız, "vi_diff.txt" dosyasını dikkatle okuyun (veya Vim içinde
|
||||
:help vi_diff.txt yazın.
|
||||
Ek olarak 'compatible' ve 'cpoptions' seçeneklerine de bakabilirsiniz.
|
||||
@@ -1,4 +1,4 @@
|
||||
*vim9.txt* For Vim version 8.2. Last change: 2020 Mar 01
|
||||
*vim9.txt* For Vim version 8.2. Last change: 2020 May 25
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
|
||||
|
||||
Vim9 script commands and expressions.
|
||||
Vim9 script commands and expressions. *vim9*
|
||||
|
||||
Most expression help is in |eval.txt|. This file is about the new syntax and
|
||||
features in Vim9 script.
|
||||
@@ -28,29 +28,33 @@ THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
|
||||
|
||||
THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
|
||||
|
||||
Vim script has been growing over time, while keeping backwards compatibility.
|
||||
That means bad choices from the past often can't be changed. Execution is
|
||||
quite slow, every line is parsed every time it is executed.
|
||||
Vim script has been growing over time, while preserving backwards
|
||||
compatibility. That means bad choices from the past often can't be changed
|
||||
and compability with Vi restricts possible solutions. Execution is quite
|
||||
slow, each line is parsed every time it is executed.
|
||||
|
||||
The main goal of Vim9 script is to drastically improve performance. An
|
||||
increase in execution speed of 10 to 100 times can be expected. A secondary
|
||||
goal is to avoid Vim-specific constructs and get closer to commonly used
|
||||
programming languages, such as JavaScript, TypeScript and Java.
|
||||
The main goal of Vim9 script is to drastically improve performance. This is
|
||||
accomplished by compiling commands into instructions that can be efficiently
|
||||
executed. An increase in execution speed of 10 to 100 times can be expected.
|
||||
|
||||
A secondary goal is to avoid Vim-specific constructs and get closer to
|
||||
commonly used programming languages, such as JavaScript, TypeScript and Java.
|
||||
|
||||
The performance improvements can only be achieved by not being 100% backwards
|
||||
compatible. For example, in a function the arguments are not available in the
|
||||
"a:" dictionary, as creating that dictionary adds quite a lot of overhead.
|
||||
Other differences are more subtle, such as how errors are handled.
|
||||
compatible. For example, making function arguments available in the
|
||||
"a:" dictionary adds quite a lot of overhead. In a Vim9 function this
|
||||
dictionary is not available. Other differences are more subtle, such as how
|
||||
errors are handled.
|
||||
|
||||
The Vim9 script syntax and semantics are used in:
|
||||
- a function defined with the `:def` command
|
||||
- a script file where the first command is `vim9script`
|
||||
|
||||
When using `:function` in a Vim9 script file the legacy syntax is used.
|
||||
However, this is discouraged.
|
||||
However, this can be confusing and is therefore discouraged.
|
||||
|
||||
Vim9 script and legacy Vim script can be mixed. There is no need to rewrite
|
||||
old scripts, they keep working as before.
|
||||
Vim9 script and legacy Vim script can be mixed. There is no requirement to
|
||||
rewrite old scripts, they keep working as before.
|
||||
|
||||
==============================================================================
|
||||
|
||||
@@ -58,21 +62,79 @@ old scripts, they keep working as before.
|
||||
|
||||
THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
|
||||
|
||||
Comments starting with # ~
|
||||
|
||||
In Vim script comments normally start with double quote. That can also be the
|
||||
start of a string, thus in many places it cannot be used. In Vim9 script a
|
||||
comment can also start with #. In Vi this is a command to list text with
|
||||
numbers, but you can also use `:number` for that. >
|
||||
let count = 0 # number of occurences
|
||||
|
||||
To improve readability there must be a space between the command and the #
|
||||
that starts a comment. Note that #{ is the start of a dictionary, therefore
|
||||
it cannot start a comment.
|
||||
|
||||
|
||||
Vim9 functions ~
|
||||
|
||||
`:def` has no extra arguments like `:function` does: "range", "abort", "dict"
|
||||
or "closure". A `:def` function always aborts on an error, does not get a
|
||||
range passed and cannot be a "dict" function.
|
||||
A function defined with `:def` is compiled. Execution is many times faster,
|
||||
often 10x to 100x times.
|
||||
|
||||
In the function body:
|
||||
- Arguments are accessed by name, without "a:".
|
||||
- There is no "a:" dictionary or "a:000" list. Variable arguments are defined
|
||||
with a name and have a list type: >
|
||||
def MyFunc(...itemlist: list<type>)
|
||||
Many errors are already found when compiling, before the function is executed.
|
||||
The syntax is strict, to enforce code that is easy to read and understand.
|
||||
|
||||
Compilation is done when the function is first called, or when the
|
||||
`:defcompile` command is encountered in the script where the function was
|
||||
defined.
|
||||
|
||||
`:def` has no options like `:function` does: "range", "abort", "dict" or
|
||||
"closure". A `:def` function always aborts on an error, does not get a range
|
||||
passed and cannot be a "dict" function.
|
||||
|
||||
The argument types and return type need to be specified. The "any" type can
|
||||
be used, type checking will then be done at runtime, like with legacy
|
||||
functions.
|
||||
|
||||
Arguments are accessed by name, without "a:". There is no "a:" dictionary or
|
||||
"a:000" list.
|
||||
|
||||
Variable arguments are defined as the last argument, with a name and have a
|
||||
list type, similar to Typescript. For example, a list of numbers: >
|
||||
def MyFunc(...itemlist: list<number>)
|
||||
for item in itemlist
|
||||
...
|
||||
|
||||
|
||||
Functions and variables are script-local by default ~
|
||||
|
||||
When using `:function` or `:def` to specify a new function at the script level
|
||||
in a Vim9 script, the function is local to the script, as if "s:" was
|
||||
prefixed. Using the "s:" prefix is optional.
|
||||
|
||||
To define or use a global function or variable the "g:" prefix must be used.
|
||||
|
||||
When using `:function` or `:def` to specify a new function inside a function,
|
||||
the function is local to the function. It is not possible to define a
|
||||
script-local function inside a function. It is possible to define a global
|
||||
function, using the "g:" prefix.
|
||||
|
||||
When referring to a function and no "s:" or "g:" prefix is used, Vim will
|
||||
search for the function in this order:
|
||||
- Local to the current scope and outer scopes up to the function scope.
|
||||
- Local to the current script file.
|
||||
- Imported functions, see `:import`.
|
||||
In all cases the function must be defined before used. That is when it is
|
||||
first called or when `:defcompile` causes the call to be compiled.
|
||||
|
||||
The result is that functions and variables without a namespace can always be
|
||||
found in the script, either defined there or imported. Global functions and
|
||||
variables could be defined anywhere (good luck finding where!).
|
||||
|
||||
Global functions can be still be defined and deleted at nearly any time. In
|
||||
Vim9 script script-local functions are defined once when the script is sourced
|
||||
and cannot be deleted or replaced.
|
||||
|
||||
|
||||
Variable declarations with :let and :const ~
|
||||
|
||||
Local variables need to be declared with `:let`. Local constants need to be
|
||||
@@ -105,8 +167,8 @@ The declaration must be done earlier: >
|
||||
endif
|
||||
echo inner
|
||||
|
||||
To intentionally use a variable that won't be available later, a block can be
|
||||
used: >
|
||||
To intentionally avoid a variable being available later, a block can be used:
|
||||
>
|
||||
{
|
||||
let temp = 'temp'
|
||||
...
|
||||
@@ -120,6 +182,13 @@ and without `:let`, because there is no rule about where they are declared.
|
||||
Variables cannot shadow previously defined variables.
|
||||
Variables may shadow Ex commands, rename the variable if needed.
|
||||
|
||||
Global variables and user defined functions must be prefixed with "g:", also
|
||||
at the script level. >
|
||||
vim9script
|
||||
let script_local = 'text'
|
||||
let g:global = 'value'
|
||||
let Funcref = g:ThatFunction
|
||||
|
||||
Since "&opt = value" is now assigning a value to option "opt", ":&" cannot be
|
||||
used to repeat a `:substitute` command.
|
||||
|
||||
@@ -156,6 +225,61 @@ since the function has to be looked up by name. And a typo in the function
|
||||
name will only be found when the call is executed.
|
||||
|
||||
|
||||
Omitting function() ~
|
||||
|
||||
A user defined function can be used as a function reference in an expression
|
||||
without `function()`. The argument types and return type will then be checked.
|
||||
The function must already have been defined. >
|
||||
|
||||
let Funcref = MyFunction
|
||||
|
||||
When using `function()` the resulting type is "func", a function with any
|
||||
number of arguments and any return type. The function can be defined later.
|
||||
|
||||
|
||||
Automatic line continuation ~
|
||||
|
||||
In many cases it is obvious that an expression continues on the next line. In
|
||||
those cases there is no need to prefix the line with a backslash. For
|
||||
example, when a list spans multiple lines: >
|
||||
let mylist = [
|
||||
'one',
|
||||
'two',
|
||||
]
|
||||
And when a dict spans multiple lines: >
|
||||
let mydict = #{
|
||||
one: 1,
|
||||
two: 2,
|
||||
}
|
||||
Function call: >
|
||||
let result = Func(
|
||||
arg1,
|
||||
arg2
|
||||
)
|
||||
|
||||
For binary operators iin expressions not in [], {} or () a line break is
|
||||
possible AFTER the operators. For example: >
|
||||
let text = lead ..
|
||||
middle ..
|
||||
end
|
||||
let total = start +
|
||||
end -
|
||||
correction
|
||||
let result = positive ?
|
||||
PosFunc(arg) :
|
||||
NegFunc(arg)
|
||||
|
||||
Note that "enddef" cannot be used at the start of a continuation line, it ends
|
||||
the current function.
|
||||
|
||||
It is also possible to split a function header over multiple lines, in between
|
||||
arguments: >
|
||||
def MyFunc(
|
||||
text: string,
|
||||
separator = '-'
|
||||
): string
|
||||
|
||||
|
||||
No curly braces expansion ~
|
||||
|
||||
|curly-braces-names| cannot be used.
|
||||
@@ -179,6 +303,9 @@ Vim9 script enforces proper use of white space. This is no longer allowed: >
|
||||
let var =234 " Error!
|
||||
There must be white space before and after the "=": >
|
||||
let var = 234 " OK
|
||||
White space must also be put before the # that starts a comment: >
|
||||
let var = 234# Error!
|
||||
let var = 234 # OK
|
||||
|
||||
White space is required around most operators.
|
||||
|
||||
@@ -213,8 +340,7 @@ few exceptions.
|
||||
blob non-empty
|
||||
list non-empty (different from JavaScript)
|
||||
dictionary non-empty (different from JavaScript)
|
||||
func when not NULL
|
||||
partial when not NULL
|
||||
func when there is a function name
|
||||
special v:true
|
||||
job when not NULL
|
||||
channel when not NULL
|
||||
@@ -249,8 +375,8 @@ THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
|
||||
the function follows in the next lines, until the
|
||||
matching `:enddef`.
|
||||
|
||||
When {return-type} is omitted the function is not
|
||||
expected to return anything.
|
||||
When {return-type} is omitted or is "void" the
|
||||
function is not expected to return anything.
|
||||
|
||||
{arguments} is a sequence of zero or more argument
|
||||
declarations. There are three forms:
|
||||
@@ -266,7 +392,9 @@ THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
|
||||
`:def`, but it is not possible to nest `:def` inside
|
||||
`:function`, for backwards compatibility.
|
||||
|
||||
[!] is used as with `:function`.
|
||||
[!] is used as with `:function`. Note that in Vim9
|
||||
script script-local functions cannot be deleted or
|
||||
redefined.
|
||||
|
||||
*:enddef*
|
||||
:enddef End of a function defined with `:def`.
|
||||
@@ -277,6 +405,10 @@ variables can be accessed without the "s:" prefix. They must be defined
|
||||
before the function. If the script the function is defined in is legacy
|
||||
script, then script-local variables must be accessed with the "s:" prefix.
|
||||
|
||||
*:defc* *:defcompile*
|
||||
:defc[ompile] Compile functions defined in the current script that
|
||||
were not compiled yet.
|
||||
This will report errors found during the compilation.
|
||||
|
||||
*:disa* *:disassemble*
|
||||
:disa[ssemble] {func} Show the instructions generated for {func}.
|
||||
@@ -296,29 +428,51 @@ The following builtin types are supported:
|
||||
float
|
||||
string
|
||||
blob
|
||||
list<type>
|
||||
dict<type>
|
||||
(a: type, b: type): type
|
||||
list<{type}>
|
||||
dict<{type}>
|
||||
job
|
||||
channel
|
||||
func
|
||||
partial
|
||||
func: {type}
|
||||
func({type}, ...)
|
||||
func({type}, ...): {type}
|
||||
|
||||
Not supported yet:
|
||||
tuple<a: type, b: type, ...>
|
||||
tuple<a: {type}, b: {type}, ...>
|
||||
|
||||
These types can be used in declarations, but no variable will have this type:
|
||||
type|type
|
||||
These types can be used in declarations, but no value will have this type:
|
||||
{type}|{type}
|
||||
void
|
||||
any
|
||||
|
||||
There is no array type, use list<type> instead. For a list constant an
|
||||
There is no array type, use list<{type}> instead. For a list constant an
|
||||
efficient implementation is used that avoids allocating lot of small pieces of
|
||||
memory.
|
||||
|
||||
A function defined with `:def` must declare the return type. If there is no
|
||||
type then the function doesn't return anything. "void" is used in type
|
||||
declarations.
|
||||
A partial and function can be declared in more or less specific ways:
|
||||
func any kind of function reference, no type
|
||||
checking for arguments or return value
|
||||
func: {type} any number and type of arguments with specific
|
||||
return type
|
||||
func({type}) function with argument type, does not return
|
||||
a value
|
||||
func({type}): {type} function with argument type and return type
|
||||
func(?{type}) function with type of optional argument, does
|
||||
not return a value
|
||||
func(...{type}) function with type of variable number of
|
||||
arguments, does not return a value
|
||||
func({type}, ?{type}, ...{type}): {type}
|
||||
function with:
|
||||
- type of mandatory argument
|
||||
- type of optional argument
|
||||
- type of variable number of arguments
|
||||
- return type
|
||||
|
||||
If the return type is "void" the function does not return a value.
|
||||
|
||||
The reference can also be a |Partial|, in which case it stores extra arguments
|
||||
and/or a dictionary, which are not visible to the caller. Since they are
|
||||
called in the same way the declaration is the same.
|
||||
|
||||
Custom types can be defined with `:type`: >
|
||||
:type MyList list<string>
|
||||
@@ -373,9 +527,12 @@ Then "myvar" will only exist in this file. While without `vim9script` it would
|
||||
be available as `g:myvar` from any other script and function.
|
||||
|
||||
The variables at the file level are very much like the script-local "s:"
|
||||
variables in legacy Vim script, but the "s:" is omitted.
|
||||
variables in legacy Vim script, but the "s:" is omitted. And they cannot be
|
||||
deleted.
|
||||
|
||||
In Vim9 script the global "g:" namespace can still be used as before.
|
||||
In Vim9 script the global "g:" namespace can still be used as before. And the
|
||||
"w:", "b:" and "t:" namespaces. These have in common that variables are not
|
||||
declared and they can be deleted.
|
||||
|
||||
A side effect of `:vim9script` is that the 'cpoptions' option is set to the
|
||||
Vim default value, like with: >
|
||||
|
||||
45
runtime/doc/vimdiff-tr.1
Normal file
45
runtime/doc/vimdiff-tr.1
Normal file
@@ -0,0 +1,45 @@
|
||||
.TH VIMDIFF 1 "30 Mart 2001"
|
||||
.SH AD
|
||||
vimdiff \- bir dosyanın dört adede kadar sürümlerini Vim ile düzenle
|
||||
ve ayrımlarını göster
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B vimdiff
|
||||
[seçenekler] dosya1 dosya2 [dosya3 [dosya4]]
|
||||
.PP
|
||||
.B gvimdiff
|
||||
.SH TANIM
|
||||
.B Vimdiff,
|
||||
.B Vim
|
||||
içinde iki (üç veya dört) dosyayı açar.
|
||||
Her dosya ayrı pencerelerde açılır.
|
||||
Dosyalar arasındaki ayrımlar vurgulanır.
|
||||
Böylece değişiklikler kolayca denetlenebilir ve aynı dosyanın başka bir
|
||||
sürümüne kolaylıkla aktarılabilir.
|
||||
.PP
|
||||
Vim hakkında ek bilgi için: vim(1)
|
||||
.PP
|
||||
.B gvimdiff
|
||||
olarak başlatılırsa varsa grafik arabirim açılır.
|
||||
.PP
|
||||
Her pencerede 'diff' seçeneği açılır, böylece değişiklikler vurgulanır.
|
||||
.br
|
||||
\'wrap' ve 'scrollbind' seçenekleri metnin düzgün görünmesi için açılır.
|
||||
.br
|
||||
\'foldmethod' seçeneği "diff"e, ayarlanır, böylece satır aralıkları
|
||||
kıvrılır. 'foldcolumn' seçeneği kıvırmaları kolay ayrımlama ve açıp kapama
|
||||
için iki olarak ayarlanır.
|
||||
.SH SEÇENEKLER
|
||||
Satırlar hizalama için "\-O" seçeneği kullanılmışçasına dikey bölüntüler
|
||||
içinde görüntülenir.
|
||||
Yatay bölüntüler kullanmak için "\-o" kullanın.
|
||||
Diğer tüm değişkenler için: vim(1).
|
||||
.SH AYRICA BAKINIZ
|
||||
vim(1)
|
||||
.SH YAZAR
|
||||
.B Vim'in
|
||||
büyük çoğunluğu Bram Moolenaar tarafından başkalarının kayda değer
|
||||
yardımlarıyla yazılmıştır.
|
||||
Ek bilgi için
|
||||
.B Vim
|
||||
içinde ":help credits" yazın.
|
||||
45
runtime/doc/vimdiff-tr.UTF-8.1
Normal file
45
runtime/doc/vimdiff-tr.UTF-8.1
Normal file
@@ -0,0 +1,45 @@
|
||||
.TH VIMDIFF 1 "30 Mart 2001"
|
||||
.SH AD
|
||||
vimdiff \- bir dosyanın dört adede kadar sürümlerini Vim ile düzenle
|
||||
ve ayrımlarını göster
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B vimdiff
|
||||
[seçenekler] dosya1 dosya2 [dosya3 [dosya4]]
|
||||
.PP
|
||||
.B gvimdiff
|
||||
.SH TANIM
|
||||
.B Vimdiff,
|
||||
.B Vim
|
||||
içinde iki (üç veya dört) dosyayı açar.
|
||||
Her dosya ayrı pencerelerde açılır.
|
||||
Dosyalar arasındaki ayrımlar vurgulanır.
|
||||
Böylece değişiklikler kolayca denetlenebilir ve aynı dosyanın başka bir
|
||||
sürümüne kolaylıkla aktarılabilir.
|
||||
.PP
|
||||
Vim hakkında ek bilgi için: vim(1)
|
||||
.PP
|
||||
.B gvimdiff
|
||||
olarak başlatılırsa varsa grafik arabirim açılır.
|
||||
.PP
|
||||
Her pencerede 'diff' seçeneği açılır, böylece değişiklikler vurgulanır.
|
||||
.br
|
||||
\'wrap' ve 'scrollbind' seçenekleri metnin düzgün görünmesi için açılır.
|
||||
.br
|
||||
\'foldmethod' seçeneği "diff"e, ayarlanır, böylece satır aralıkları
|
||||
kıvrılır. 'foldcolumn' seçeneği kıvırmaları kolay ayrımlama ve açıp kapama
|
||||
için iki olarak ayarlanır.
|
||||
.SH SEÇENEKLER
|
||||
Satırlar hizalama için "\-O" seçeneği kullanılmışçasına dikey bölüntüler
|
||||
içinde görüntülenir.
|
||||
Yatay bölüntüler kullanmak için "\-o" kullanın.
|
||||
Diğer tüm değişkenler için: vim(1).
|
||||
.SH AYRICA BAKINIZ
|
||||
vim(1)
|
||||
.SH YAZAR
|
||||
.B Vim'in
|
||||
büyük çoğunluğu Bram Moolenaar tarafından başkalarının kayda değer
|
||||
yardımlarıyla yazılmıştır.
|
||||
Ek bilgi için
|
||||
.B Vim
|
||||
içinde ":help credits" yazın.
|
||||
50
runtime/doc/vimtutor-tr.1
Normal file
50
runtime/doc/vimtutor-tr.1
Normal file
@@ -0,0 +1,50 @@
|
||||
.TH VIMTUTOR 1 "2 Nisan 2001"
|
||||
.SH AD
|
||||
vimtutor \- Vim eğitmeni
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B vimtutor [\-g] [dil]
|
||||
.SH TANIM
|
||||
.B Vimtutor,
|
||||
.B Vim
|
||||
eğitmenini başlatır.
|
||||
Önce orijinal eğitmen dosyasının bir kopyasını alır, böylece bir değişikliğe
|
||||
uğramadan değiştirilebilir.
|
||||
.PP
|
||||
.B Vimtutor
|
||||
ilk
|
||||
.B Vim
|
||||
komutlarını öğrenmek isteyen kişiler için yararlıdır.
|
||||
.PP
|
||||
İsteğe bağlı \-g değişkeni vimtutor'u vim yerine eğer yüklü ise gvim ile
|
||||
başlatır. Yüklü değilse açmak için Vim kullanılır.
|
||||
.PP
|
||||
İsteğe bağlı [dil] değişkeni iki harfli dil kodunu belirtir, örneğin "tr"
|
||||
veya "es". Eğer [dil] değişkeni verilmemişse mevcut yerelleştirme
|
||||
kullanılır.
|
||||
Eğer bu dilde bir eğitmen varsa kullanılır.
|
||||
Yoksa İngilizce sürüm kullanılacaktır.
|
||||
.PP
|
||||
.B Vim
|
||||
her zaman Vi uyumlu kipte başlatılır.
|
||||
.SH DOSYALAR
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor[.dil]
|
||||
.B Vimtutor
|
||||
metin dosyaları.
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor.vim
|
||||
.B Vimtutor
|
||||
metin dosyasını kopyalamak için kullanılan betik.
|
||||
.SH YAZAR
|
||||
.B Vimtutor
|
||||
ilk olarak Vi için Michael C. Pierce ve Robert K. Ware,
|
||||
Colorado School of Mines tarafından, Colorado State University'den Charles
|
||||
Smith'in verdiği fikirler kullanılarak yazıldı.
|
||||
E-posta: bware@mines.colorado.edu.
|
||||
.br
|
||||
.B Vim
|
||||
uyarlaması Bram Moolenaar tarafından yapıldı.
|
||||
Çevirmenlerin adları için eğitmen dosyalarına bakın.
|
||||
.SH AYRICA BAKINIz
|
||||
vim(1)
|
||||
50
runtime/doc/vimtutor-tr.UTF-8.1
Normal file
50
runtime/doc/vimtutor-tr.UTF-8.1
Normal file
@@ -0,0 +1,50 @@
|
||||
.TH VIMTUTOR 1 "2 Nisan 2001"
|
||||
.SH AD
|
||||
vimtutor \- Vim eğitmeni
|
||||
.SH ÖZET
|
||||
.br
|
||||
.B vimtutor [\-g] [dil]
|
||||
.SH TANIM
|
||||
.B Vimtutor,
|
||||
.B Vim
|
||||
eğitmenini başlatır.
|
||||
Önce orijinal eğitmen dosyasının bir kopyasını alır, böylece bir değişikliğe
|
||||
uğramadan değiştirilebilir.
|
||||
.PP
|
||||
.B Vimtutor
|
||||
ilk
|
||||
.B Vim
|
||||
komutlarını öğrenmek isteyen kişiler için yararlıdır.
|
||||
.PP
|
||||
İsteğe bağlı \-g değişkeni vimtutor'u vim yerine eğer yüklü ise gvim ile
|
||||
başlatır. Yüklü değilse açmak için Vim kullanılır.
|
||||
.PP
|
||||
İsteğe bağlı [dil] değişkeni iki harfli dil kodunu belirtir, örneğin "tr"
|
||||
veya "es". Eğer [dil] değişkeni verilmemişse mevcut yerelleştirme
|
||||
kullanılır.
|
||||
Eğer bu dilde bir eğitmen varsa kullanılır.
|
||||
Yoksa İngilizce sürüm kullanılacaktır.
|
||||
.PP
|
||||
.B Vim
|
||||
her zaman Vi uyumlu kipte başlatılır.
|
||||
.SH DOSYALAR
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor[.dil]
|
||||
.B Vimtutor
|
||||
metin dosyaları.
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor.vim
|
||||
.B Vimtutor
|
||||
metin dosyasını kopyalamak için kullanılan betik.
|
||||
.SH YAZAR
|
||||
.B Vimtutor
|
||||
ilk olarak Vi için Michael C. Pierce ve Robert K. Ware,
|
||||
Colorado School of Mines tarafından, Colorado State University'den Charles
|
||||
Smith'in verdiği fikirler kullanılarak yazıldı.
|
||||
E-posta: bware@mines.colorado.edu.
|
||||
.br
|
||||
.B Vim
|
||||
uyarlaması Bram Moolenaar tarafından yapıldı.
|
||||
Çevirmenlerin adları için eğitmen dosyalarına bakın.
|
||||
.SH AYRICA BAKINIz
|
||||
vim(1)
|
||||
@@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 8.2. Last change: 2020 Mar 19
|
||||
*windows.txt* For Vim version 8.2. Last change: 2020 May 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -291,9 +291,9 @@ CTRL-W q *CTRL-W_q*
|
||||
CTRL-W CTRL-Q *CTRL-W_CTRL-Q*
|
||||
Without {count}: Quit the current window. If {count} is
|
||||
given quit the {count} window.
|
||||
|
||||
When quitting the last window (not counting a help window),
|
||||
exit Vim.
|
||||
*edit-window*
|
||||
When quitting the last edit window (not counting help or
|
||||
preview windows), exit Vim.
|
||||
|
||||
When 'hidden' is set, and there is only one window for the
|
||||
current buffer, it becomes hidden. When 'hidden' is not set,
|
||||
@@ -312,8 +312,9 @@ CTRL-W CTRL-Q *CTRL-W_CTRL-Q*
|
||||
:+quit " quit the next window
|
||||
:+2quit " quit the second next window
|
||||
<
|
||||
When closing a help window, Vim will try to restore the
|
||||
previous window layout |:helpclose|.
|
||||
When closing a help window, and this is not the only window,
|
||||
Vim will try to restore the previous window layout, see
|
||||
|:helpclose|.
|
||||
|
||||
:q[uit]!
|
||||
:{count}q[uit]!
|
||||
@@ -335,9 +336,9 @@ CTRL-W c *CTRL-W_c* *:clo* *:close*
|
||||
changed and the [!] is used, the buffer becomes hidden (unless
|
||||
there is another window editing it).
|
||||
|
||||
When there is only one window in the current tab page and
|
||||
there is another tab page, this closes the current tab page.
|
||||
|tab-page|.
|
||||
When there is only one |edit-window| in the current tab page
|
||||
and there is another tab page, this closes the current tab
|
||||
page. |tab-page|.
|
||||
|
||||
This command fails when: *E444*
|
||||
- There is only one window on the screen.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2020 Mar 19
|
||||
" Last Change: 2020 May 07
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
@@ -234,13 +234,13 @@ au BufNewFile,BufRead *.bl setf blank
|
||||
au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
|
||||
|
||||
" BSDL
|
||||
au BufNewFile,BufRead *.bsdl setf bsdl
|
||||
au BufNewFile,BufRead *bsd,*.bsdl setf bsdl
|
||||
|
||||
" Bazel (http://bazel.io)
|
||||
autocmd BufRead,BufNewFile *.bzl,WORKSPACE,BUILD.bazel setf bzl
|
||||
if has("fname_case")
|
||||
" There is another check for BUILD further below.
|
||||
autocmd BufRead,BufNewFile BUILD setf bzl
|
||||
autocmd BufRead,BufNewFile BUILD setf bzl
|
||||
endif
|
||||
|
||||
" C or lpc
|
||||
@@ -547,6 +547,9 @@ au BufNewFile,BufRead */etc/elinks.conf,*/.elinks/elinks.conf setf elinks
|
||||
" ERicsson LANGuage; Yaws is erlang too
|
||||
au BufNewFile,BufRead *.erl,*.hrl,*.yaws setf erlang
|
||||
|
||||
" Elm
|
||||
au BufNewFile,BufRead *.elm setf elm
|
||||
|
||||
" Elm Filter Rules file
|
||||
au BufNewFile,BufRead filter-rules setf elmfilt
|
||||
|
||||
@@ -884,11 +887,12 @@ au BufNewFile,BufRead *.ll setf lifelines
|
||||
" Lilo: Linux loader
|
||||
au BufNewFile,BufRead lilo.conf setf lilo
|
||||
|
||||
" Lisp (*.el = ELisp, *.cl = Common Lisp, *.jl = librep Lisp)
|
||||
" Lisp (*.el = ELisp, *.cl = Common Lisp)
|
||||
" *.jl was removed, it's also used for Julia, better skip than guess wrong.
|
||||
if has("fname_case")
|
||||
au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,*.jl,*.L,.emacs,.sawfishrc setf lisp
|
||||
au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,*.L,.emacs,.sawfishrc setf lisp
|
||||
else
|
||||
au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,*.jl,.emacs,.sawfishrc setf lisp
|
||||
au BufNewFile,BufRead *.lsp,*.lisp,*.el,*.cl,.emacs,.sawfishrc setf lisp
|
||||
endif
|
||||
|
||||
" SBCL implementation of Common Lisp
|
||||
@@ -1133,6 +1137,9 @@ au BufNewFile,BufRead pf.conf setf pf
|
||||
" Pam conf
|
||||
au BufNewFile,BufRead */etc/pam.conf setf pamconf
|
||||
|
||||
" Pam environment
|
||||
au BufNewFile,BufRead pam_env.conf,.pam_environment setf pamenv
|
||||
|
||||
" PApp
|
||||
au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp
|
||||
|
||||
@@ -1646,9 +1653,13 @@ au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl
|
||||
" Systemd unit files
|
||||
au BufNewFile,BufRead */systemd/*.{automount,mount,path,service,socket,swap,target,timer} setf systemd
|
||||
" Systemd overrides
|
||||
au BufNewFile,BufRead /etc/systemd/system/*.d/*.conf setf systemd
|
||||
au BufNewFile,BufRead */etc/systemd/system/*.d/*.conf setf systemd
|
||||
au BufNewFile,BufRead */.config/systemd/user/*.d/*.conf setf systemd
|
||||
" Systemd temp files
|
||||
au BufNewFile,BufRead /etc/systemd/system/*.d/.#* setf systemd
|
||||
au BufNewFile,BufRead */etc/systemd/system/*.d/.#* setf systemd
|
||||
au BufNewFile,BufRead */etc/systemd/system/.#* setf systemd
|
||||
au BufNewFile,BufRead */.config/systemd/user/*.d/.#* setf systemd
|
||||
au BufNewFile,BufRead */.config/systemd/user/.#* setf systemd
|
||||
|
||||
" Synopsys Design Constraints
|
||||
au BufNewFile,BufRead *.sdc setf sdc
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: MS-DOS .bat files
|
||||
" Maintainer: Mike Williams <mrw@eandem.co.uk>
|
||||
" Last Change: 14th April 2019
|
||||
" Last Change: 7th May 2020
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@@ -19,12 +19,21 @@ setlocal comments=b:rem,b:@rem,b:REM,b:@REM,:::
|
||||
setlocal commentstring=::\ %s
|
||||
setlocal formatoptions-=t formatoptions+=rol
|
||||
|
||||
" Lookup DOS keywords using Windows command help.
|
||||
if executable('help.exe')
|
||||
if has('terminal')
|
||||
setlocal keywordprg=:term\ help.exe
|
||||
else
|
||||
setlocal keywordprg=help.exe
|
||||
endif
|
||||
endif
|
||||
|
||||
" Define patterns for the browse file filter
|
||||
if has("gui_win32") && !exists("b:browsefilter")
|
||||
let b:browsefilter = "DOS Batch Files (*.bat, *.cmd)\t*.bat;*.cmd\nAll Files (*.*)\t*.*\n"
|
||||
endif
|
||||
|
||||
let b:undo_ftplugin = "setlocal comments< formatoptions<"
|
||||
let b:undo_ftplugin = "setlocal comments< formatoptions< keywordprg<"
|
||||
\ . "| unlet! b:browsefiler"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim settings file
|
||||
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, 77, 66)
|
||||
" Version: 0.50
|
||||
" Last Change: 2015 Nov. 30
|
||||
" Last Change: 2020 Apr 20
|
||||
" Patched By: Eisuke Kawashima
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: For instructions, do :help fortran-plugin from Vim
|
||||
" Credits:
|
||||
@@ -31,10 +32,10 @@ if !exists("b:fortran_fixed_source")
|
||||
elseif exists("fortran_fixed_source")
|
||||
" User guarantees fixed source form
|
||||
let b:fortran_fixed_source = 1
|
||||
elseif expand("%:e") ==? "f\<90\|95\|03\|08\>"
|
||||
elseif expand("%:e") =~? '^f\%(90\|95\|03\|08\)$'
|
||||
" Free-form file extension defaults as in Intel ifort, gcc(gfortran), NAG, Pathscale, and Cray compilers
|
||||
let b:fortran_fixed_source = 0
|
||||
elseif expand("%:e") ==? "f\|f77\|for"
|
||||
elseif expand("%:e") =~? '^\%(f\|f77\|for\)$'
|
||||
" Fixed-form file extension defaults
|
||||
let b:fortran_fixed_source = 1
|
||||
else
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: man
|
||||
" Maintainer: Jason Franklin <vim@justemail.net>
|
||||
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
||||
" Last Change: 2020 Mar 25
|
||||
" (fix by Jason Franklin)
|
||||
" Last Change: 2020 May 07
|
||||
|
||||
" To make the ":Man" command available before editing a manual page, source
|
||||
" this script from your startup vimrc file.
|
||||
@@ -189,7 +189,7 @@ func <SID>GetPage(cmdmods, ...)
|
||||
setl buftype=nofile noswapfile
|
||||
|
||||
setl fdc=0 ma nofen nonu nornu
|
||||
silent exec "norm! 1GdG"
|
||||
%delete _
|
||||
let unsetwidth = 0
|
||||
if empty($MANWIDTH)
|
||||
let $MANWIDTH = winwidth(0)
|
||||
@@ -205,6 +205,7 @@ func <SID>GetPage(cmdmods, ...)
|
||||
let s:env_has_u = (v:shell_error == 0)
|
||||
endif
|
||||
let env_cmd = s:env_has_u ? 'env -u MANPAGER' : 'env MANPAGER=cat'
|
||||
let env_cmd .= ' GROFF_NO_SGR=1'
|
||||
let man_cmd = env_cmd . ' man ' . s:GetCmdArg(sect, page) . ' | col -b'
|
||||
silent exec "r !" . man_cmd
|
||||
|
||||
@@ -213,10 +214,10 @@ func <SID>GetPage(cmdmods, ...)
|
||||
endif
|
||||
" Remove blank lines from top and bottom.
|
||||
while line('$') > 1 && getline(1) =~ '^\s*$'
|
||||
silent keepj norm! ggdd
|
||||
1delete _
|
||||
endwhile
|
||||
while line('$') > 1 && getline('$') =~ '^\s*$'
|
||||
silent keepj norm! Gdd
|
||||
$delete _
|
||||
endwhile
|
||||
1
|
||||
setl ft=man nomod
|
||||
|
||||
19
runtime/ftplugin/masm.vim
Normal file
19
runtime/ftplugin/masm.vim
Normal file
@@ -0,0 +1,19 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Microsoft Macro Assembler (80x86)
|
||||
" Maintainer: Wu Yongwei <wuyongwei@gmail.com>
|
||||
" Last Change: 2020-05-09 23:02:05 +0800
|
||||
|
||||
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 iskeyword<"
|
||||
|
||||
setlocal iskeyword=@,48-57,_,36,60,62,63,@-@
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Perl
|
||||
" Maintainer: vim-perl <vim-perl@googlegroups.com>
|
||||
" Homepage: http://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: http://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2015-02-09
|
||||
" Homepage: https://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2020 Apr 15
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Perl 6
|
||||
" Maintainer: vim-perl <vim-perl@googlegroups.com>
|
||||
" Homepage: http://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: http://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2013-07-21
|
||||
" Homepage: https://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2020 Apr 15
|
||||
" Contributors: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
|
||||
"
|
||||
" Based on ftplugin/perl.vim by Dan Sharp <dwsharp at hotmail dot com>
|
||||
|
||||
@@ -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-12-29
|
||||
" Latest Revision: 2020-03-31
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@@ -34,7 +34,7 @@ if exists("g:rst_style") && g:rst_style != 0
|
||||
setlocal expandtab shiftwidth=3 softtabstop=3 tabstop=8
|
||||
endif
|
||||
|
||||
if has('patch-7.3.867') " Introduced the TextChanged event.
|
||||
if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged event.
|
||||
setlocal foldmethod=expr
|
||||
setlocal foldexpr=RstFold#GetRstFold()
|
||||
setlocal foldtext=RstFold#GetRstFoldText()
|
||||
|
||||
@@ -1,7 +1,41 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: systemd.unit(5)
|
||||
" Language: systemd.unit(5)
|
||||
" Keyword Lookup Support: Enno Nagel <enno.nagel+vim@gmail.com>
|
||||
|
||||
if !exists('b:did_ftplugin')
|
||||
" Looks a lot like dosini files.
|
||||
runtime! ftplugin/dosini.vim
|
||||
endif
|
||||
|
||||
if !has('unix')
|
||||
finish
|
||||
endif
|
||||
|
||||
if !has('gui_running')
|
||||
command! -buffer -nargs=1 Sman silent exe '!' . KeywordLookup_systemd(<q-args>) | redraw!
|
||||
elseif has('terminal')
|
||||
command! -buffer -nargs=1 Sman silent exe 'term ' . KeywordLookup_systemd(<q-args>)
|
||||
else
|
||||
finish
|
||||
endif
|
||||
|
||||
if !exists('*KeywordLookup_systemd')
|
||||
function KeywordLookup_systemd(keyword) abort
|
||||
let matches = matchlist(getline(search('\v^\s*\[\s*.+\s*\]\s*$', 'nbWz')), '\v^\s*\[\s*(\k+).*\]\s*$')
|
||||
if len(matches) > 1
|
||||
let section = matches[1]
|
||||
return 'LESS= MANPAGER="less --pattern=''(^|,)\s+' . a:keyword . '=$'' --hilite-search" man ' . 'systemd.' . section
|
||||
else
|
||||
return 'LESS= MANPAGER="less --pattern=''(^|,)\s+' . a:keyword . '=$'' --hilite-search" man ' . 'systemd'
|
||||
endif
|
||||
endfunction
|
||||
endif
|
||||
|
||||
setlocal iskeyword+=-
|
||||
setlocal keywordprg=:Sman
|
||||
|
||||
if !exists('b:undo_ftplugin') || empty(b:undo_ftplugin)
|
||||
let b:undo_ftplugin = 'setlocal keywordprg< iskeyword<'
|
||||
else
|
||||
let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword<'
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Vim
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2018 Aug 07
|
||||
" Last Change: 2020 May 17
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@@ -12,7 +12,7 @@ endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
set cpo&vim
|
||||
|
||||
if !exists('*VimFtpluginUndo')
|
||||
func VimFtpluginUndo()
|
||||
@@ -63,14 +63,14 @@ if !exists("no_plugin_maps") && !exists("no_vim_maps")
|
||||
let b:did_add_maps = 1
|
||||
|
||||
" Move around functions.
|
||||
nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR>
|
||||
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*\(fu\%[nction]\\|def\)\>', "bW")<CR>
|
||||
vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*\(fu\%[nction]\\|def\)\>', "bW")<CR>
|
||||
nnoremap <silent><buffer> ]] m':call search('^\s*\(fu\%[nction]\\|def\)\>', "W")<CR>
|
||||
vnoremap <silent><buffer> ]] m':<C-U>exe "normal! gv"<Bar>call search('^\s*\(fu\%[nction]\\|def\)\>', "W")<CR>
|
||||
nnoremap <silent><buffer> [] m':call search('^\s*end\(f\%[unction]\\|def\)\>', "bW")<CR>
|
||||
vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*end\(f\%[unction]\\|def\)\>', "bW")<CR>
|
||||
nnoremap <silent><buffer> ][ m':call search('^\s*end\(f\%[unction]\\|def\)\>', "W")<CR>
|
||||
vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*end\(f\%[unction]\\|def\)\>', "W")<CR>
|
||||
|
||||
" Move around comments
|
||||
nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim indent file
|
||||
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
|
||||
" Version: 47
|
||||
" Last Change: 2016 Oct. 29
|
||||
" Last Change: 2020 Apr 20
|
||||
" Patched By: Eisuke Kawashima
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: For instructions, do :help fortran-indent from Vim
|
||||
" Credits:
|
||||
@@ -39,10 +40,10 @@ if !exists("b:fortran_fixed_source")
|
||||
elseif exists("fortran_fixed_source")
|
||||
" User guarantees fixed source form
|
||||
let b:fortran_fixed_source = 1
|
||||
elseif expand("%:e") ==? "f\<90\|95\|03\|08\>"
|
||||
elseif expand("%:e") =~? '^f\%(90\|95\|03\|08\)$'
|
||||
" Free-form file extension defaults as in Intel ifort, gcc(gfortran), NAG, Pathscale, and Cray compilers
|
||||
let b:fortran_fixed_source = 0
|
||||
elseif expand("%:e") ==? "f\|f77\|for"
|
||||
elseif expand("%:e") =~? '^\%(f\|f77\|for\)$'
|
||||
" Fixed-form file extension defaults
|
||||
let b:fortran_fixed_source = 1
|
||||
else
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim indent file
|
||||
" Language: Perl 5
|
||||
" Maintainer: vim-perl <vim-perl@googlegroups.com>
|
||||
" Homepage: http://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: http://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2017-01-04
|
||||
" Homepage: https://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2020 Apr 15
|
||||
|
||||
" Suggestions and improvements by :
|
||||
" Aaron J. Sherman (use syntax for hints)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim indent file
|
||||
" Language: Perl 6
|
||||
" Maintainer: vim-perl <vim-perl@googlegroups.com>
|
||||
" Homepage: http://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: http://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2017 Jun 13
|
||||
" Homepage: https://github.com/vim-perl/vim-perl
|
||||
" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
|
||||
" Last Change: 2020 Apr 15
|
||||
" Contributors: Andy Lester <andy@petdance.com>
|
||||
" Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
|
||||
"
|
||||
|
||||
@@ -28,6 +28,11 @@ set cpo&vim
|
||||
|
||||
let s:maxoff = 50 " maximum number of lines to look backwards for ()
|
||||
|
||||
" See if the specified line is already user-dedented from the expected value.
|
||||
function s:Dedented(lnum, expected)
|
||||
return indent(a:lnum) <= a:expected - shiftwidth()
|
||||
endfunction
|
||||
|
||||
function GetPythonIndent(lnum)
|
||||
|
||||
" If this line is explicitly joined: If the previous line was also joined,
|
||||
@@ -158,12 +163,12 @@ function GetPythonIndent(lnum)
|
||||
" If the previous line was a stop-execution statement...
|
||||
if getline(plnum) =~ '^\s*\(break\|continue\|raise\|return\|pass\)\>'
|
||||
" See if the user has already dedented
|
||||
if indent(a:lnum) > indent(plnum) - shiftwidth()
|
||||
" If not, recommend one dedent
|
||||
return indent(plnum) - shiftwidth()
|
||||
if s:Dedented(a:lnum, indent(plnum))
|
||||
" If so, trust the user
|
||||
return -1
|
||||
endif
|
||||
" Otherwise, trust the user
|
||||
return -1
|
||||
" If not, recommend one dedent
|
||||
return indent(plnum) - shiftwidth()
|
||||
endif
|
||||
|
||||
" If the current line begins with a keyword that lines up with "try"
|
||||
@@ -191,7 +196,7 @@ function GetPythonIndent(lnum)
|
||||
endif
|
||||
|
||||
" Or the user has already dedented
|
||||
if indent(a:lnum) <= plindent - shiftwidth()
|
||||
if s:Dedented(a:lnum, plindent)
|
||||
return -1
|
||||
endif
|
||||
|
||||
@@ -203,7 +208,12 @@ function GetPythonIndent(lnum)
|
||||
" + c)
|
||||
" here
|
||||
if parlnum > 0
|
||||
return plindent
|
||||
" ...unless the user has already dedented
|
||||
if s:Dedented(a:lnum, plindent)
|
||||
return -1
|
||||
else
|
||||
return plindent
|
||||
endif
|
||||
endif
|
||||
|
||||
return -1
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
" Vim indent file
|
||||
" Language: reStructuredText Documentation Format
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2011-08-03
|
||||
" Vim reST indent file
|
||||
" Language: reStructuredText Documentation Format
|
||||
" Maintainer: Marshall Ward <marshall.ward@gmail.com>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2020-03-31
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -18,6 +20,12 @@ endif
|
||||
|
||||
let s:itemization_pattern = '^\s*[-*+]\s'
|
||||
let s:enumeration_pattern = '^\s*\%(\d\+\|#\)\.\s\+'
|
||||
let s:note_pattern = '^\.\. '
|
||||
|
||||
function! s:get_paragraph_start()
|
||||
let paragraph_mark_start = getpos("'{")[1]
|
||||
return getline(paragraph_mark_start) =~ '\S' ? paragraph_mark_start : paragraph_mark_start + 1
|
||||
endfunction
|
||||
|
||||
function GetRSTIndent()
|
||||
let lnum = prevnonblank(v:lnum - 1)
|
||||
@@ -28,6 +36,13 @@ function GetRSTIndent()
|
||||
let ind = indent(lnum)
|
||||
let line = getline(lnum)
|
||||
|
||||
let psnum = s:get_paragraph_start()
|
||||
if psnum != 0
|
||||
if getline(psnum) =~ s:note_pattern
|
||||
let ind = 3
|
||||
endif
|
||||
endif
|
||||
|
||||
if line =~ s:itemization_pattern
|
||||
let ind += 2
|
||||
elseif line =~ s:enumeration_pattern
|
||||
|
||||
34
runtime/indent/sshconfig.vim
Normal file
34
runtime/indent/sshconfig.vim
Normal file
@@ -0,0 +1,34 @@
|
||||
" Vim indent file
|
||||
" Language: ssh config file
|
||||
" Maintainer: JasonKim <git@jasonk.me>
|
||||
" Last Change: 2020 May 16
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
|
||||
setlocal autoindent
|
||||
setlocal indentexpr=GetSshconfigIndent(v:lnum)
|
||||
setlocal indentkeys=o,O,*<Return>,0=~host\ ,0=~match\ ,0#,!^F
|
||||
|
||||
let b:undo_indent = "setlocal autoindent< indentexpr< indentkeys<"
|
||||
|
||||
if exists("*GetSshconfigIndent")
|
||||
finish
|
||||
endif
|
||||
|
||||
function GetSshconfigIndent(lnum)
|
||||
let sw = shiftwidth()
|
||||
let prev_lnum = prevnonblank(a:lnum - 1)
|
||||
let curr_lnum = a:lnum
|
||||
let prev_line = getline(prev_lnum)
|
||||
let curr_line = getline(curr_lnum)
|
||||
if curr_line =~? '^\s*\(host\|match\)\s'
|
||||
return 0
|
||||
elseif prev_line =~? '^\s*\(host\|match\)\s'
|
||||
return sw
|
||||
else
|
||||
return indent(prev_lnum)
|
||||
endif
|
||||
endfunction
|
||||
@@ -10,6 +10,7 @@ filetype indent on
|
||||
syn on
|
||||
set nowrapscan
|
||||
set report=9999
|
||||
set modeline
|
||||
|
||||
au! SwapExists * call HandleSwapExists()
|
||||
func HandleSwapExists()
|
||||
|
||||
53
runtime/indent/testdir/sshconfig.in
Normal file
53
runtime/indent/testdir/sshconfig.in
Normal file
@@ -0,0 +1,53 @@
|
||||
# vim: set filetype=sshconfig shiftwidth=4 expandtab :
|
||||
|
||||
# START_INDENT
|
||||
Host myhost
|
||||
User myuser
|
||||
PasswordAuthentication no
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host aaa
|
||||
User bbb
|
||||
Host ccc
|
||||
Host ddd
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
host aaa
|
||||
HOST bbb
|
||||
hoSt ccc
|
||||
match ddd
|
||||
MATCH eee
|
||||
MatCH fff
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host aaa
|
||||
User host
|
||||
PasswordAuthentication no
|
||||
Host *
|
||||
User user
|
||||
PasswordAuthentication no
|
||||
Host match
|
||||
User bbb
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host tab
|
||||
User myuser
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host mix
|
||||
User myuser
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host aaa
|
||||
User bbb
|
||||
Match ccc
|
||||
User ddd
|
||||
HostKeyAlgorithms ssh-ed25519
|
||||
Match eee
|
||||
# END_INDENT
|
||||
53
runtime/indent/testdir/sshconfig.ok
Normal file
53
runtime/indent/testdir/sshconfig.ok
Normal file
@@ -0,0 +1,53 @@
|
||||
# vim: set filetype=sshconfig shiftwidth=4 expandtab :
|
||||
|
||||
# START_INDENT
|
||||
Host myhost
|
||||
User myuser
|
||||
PasswordAuthentication no
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host aaa
|
||||
User bbb
|
||||
Host ccc
|
||||
Host ddd
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
host aaa
|
||||
HOST bbb
|
||||
hoSt ccc
|
||||
match ddd
|
||||
MATCH eee
|
||||
MatCH fff
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host aaa
|
||||
User host
|
||||
PasswordAuthentication no
|
||||
Host *
|
||||
User user
|
||||
PasswordAuthentication no
|
||||
Host match
|
||||
User bbb
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host tab
|
||||
User myuser
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host mix
|
||||
User myuser
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
Host aaa
|
||||
User bbb
|
||||
Match ccc
|
||||
User ddd
|
||||
HostKeyAlgorithms ssh-ed25519
|
||||
Match eee
|
||||
# END_INDENT
|
||||
@@ -64,14 +64,17 @@
|
||||
" style) is supported. Thanks Miles Wheeler for reporting.
|
||||
" 2018/02/07 by Yichao Zhou <broken.zhou AT gmail.com>
|
||||
" (*) Make indentation more smart in the normal mode
|
||||
" 2020/04/26 by Yichao Zhou <broken.zhou AT gmail.com>
|
||||
" (*) Fix a bug related to \[ & \]. Thanks Manuel Boni for
|
||||
" reporting.
|
||||
"
|
||||
" }}}
|
||||
|
||||
" Document: {{{
|
||||
"
|
||||
" To set the following options (ok, currently it's just one), add a line like
|
||||
" let g:tex_indent_items = 1
|
||||
" to your ~/.vimrc.
|
||||
" For proper latex experience, please put
|
||||
" let g:tex_flavor = "latex"
|
||||
" into your vimrc.
|
||||
"
|
||||
" * g:tex_indent_brace
|
||||
"
|
||||
@@ -184,13 +187,18 @@ function! GetTeXIndent() " {{{
|
||||
let line = substitute(getline(lnum), '\s*%.*', '','g') " last line
|
||||
let cline = substitute(getline(v:lnum), '\s*%.*', '', 'g') " current line
|
||||
|
||||
let ccol = 1
|
||||
while cline[ccol] =~ '\s'
|
||||
let ccol += 1
|
||||
endwhile
|
||||
|
||||
" We are in verbatim, so do what our user what.
|
||||
if synIDattr(synID(v:lnum, indent(v:lnum), 1), "name") == "texZone"
|
||||
if synIDattr(synID(v:lnum, ccol, 1), "name") == "texZone"
|
||||
if empty(cline)
|
||||
return indent(lnum)
|
||||
else
|
||||
return indent(v:lnum)
|
||||
end
|
||||
endif
|
||||
endif
|
||||
|
||||
if lnum == 0
|
||||
@@ -253,13 +261,13 @@ function! GetTeXIndent() " {{{
|
||||
let stay = 0
|
||||
endif
|
||||
|
||||
if cline =~ '^\s*\\\?[\]}]' && s:CheckPairedIsLastCharacter(v:lnum, indent(v:lnum))
|
||||
if cline =~ '^\s*\\\?[\]}]' && s:CheckPairedIsLastCharacter(v:lnum, ccol)
|
||||
let ind -= shiftwidth()
|
||||
let stay = 0
|
||||
endif
|
||||
|
||||
if line !~ '^\s*\\\?[\]}]'
|
||||
for i in range(indent(lnum)+1, strlen(line)-1)
|
||||
for i in range(1, strlen(line)-1)
|
||||
let char = line[i]
|
||||
if char == ']' || char == '}'
|
||||
if s:CheckPairedIsLastCharacter(lnum, i)
|
||||
|
||||
@@ -79,7 +79,7 @@ menutrans &Global\ Settings Opcions\ &globals
|
||||
menutrans Never &Mai
|
||||
menutrans Block\ Selection &Selecció\ de\ blocs
|
||||
menutrans Insert\ mode Mode\ d'&inserció
|
||||
menutrans Block\ and\ Insert &Blocs i inserció
|
||||
menutrans Block\ and\ Insert &Blocs\ i\ inserció
|
||||
menutrans Always S&empre
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! Mode\ d'&inserció<Tab>:set\ im!
|
||||
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! Co&mpatible\ amb\ Vi<Tab>:set\ cp!
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Menu Translations: Simplified Chinese
|
||||
" Maintainer: Shun Bai <baishunde@gmail.com>
|
||||
" Previous Maintainer: Yuheng Xie <elephant@linux.net.cn>
|
||||
" Last Change: 2019-09-10
|
||||
" Last Change: 2020 Apr 23
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
@@ -122,7 +122,7 @@ menutrans Toggle\ &C-Style\ Indenting<Tab>:set\ cin!
|
||||
|
||||
" other options
|
||||
menutrans &Shiftwidth 缩进宽度(&S)
|
||||
menutrans Soft\ &Tabstop 软制表位宽度(Soft Tabstop)(&T)
|
||||
menutrans Soft\ &Tabstop 软制表位宽度(Soft\ Tabstop)(&T)
|
||||
menutrans Te&xt\ Width\.\.\. 文本宽度(&X)\.\.\.
|
||||
menutrans &File\ Format\.\.\. 文件格式(&F)\.\.\.
|
||||
|
||||
@@ -435,8 +435,8 @@ menutrans Set\ '&filetype'\ Too Ҳ
|
||||
menutrans Sorting\ Method 排序方式
|
||||
" Netrw.Style.Sorting Method menuitems {{{3
|
||||
menutrans Name<tab>s 文件名<tab>s
|
||||
menutrans Time<tab>s 修改时间<tab>s
|
||||
menutrans Size<tab>s 大小<tab>s
|
||||
menutrans Time<tab>s 修改时间<tab>s
|
||||
menutrans Size<tab>s 大小<tab>s
|
||||
menutrans Exten<tab>s 扩展名<tab>s
|
||||
" }}}
|
||||
" }}}
|
||||
|
||||
@@ -110,7 +110,7 @@ menutrans Build\ &Tags\ File &Vytvo
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout\ kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Dal¹í\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &Pøedchozí\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
|
||||
@@ -110,7 +110,7 @@ menutrans Build\ &Tags\ File &Vytvořit\ soubor\ tagů
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout\ kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Další\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &Předchozí\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
|
||||
@@ -110,7 +110,7 @@ menutrans Build\ &Tags\ File &Vytvo
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout\ kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Další\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &Pøedchozí\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
|
||||
@@ -110,7 +110,7 @@ menutrans Build\ &Tags\ File &Vytvorit\ soubor\ tagu
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout\ kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Dalsi\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &Predchozi\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" Menu Translations: Danish
|
||||
" Maintainer: scootergrisen
|
||||
" Last Change: 2018 Aug 17
|
||||
" Last Change: 2020 Apr 23
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
@@ -390,7 +390,7 @@ menut Preview<tab>p Forhåndsvis<tab>p
|
||||
menut Edit\ File\ Hiding\ List<tab><ctrl-h> Rediger\ liste\ til\ filskjulning
|
||||
menut Edit\ Sorting\ Sequence<tab>S Rediger\ sorteringssekvens<tab>S
|
||||
menut Quick\ Hide/Unhide\ Dot\ Files<tab>gh Hurtig\ skjul/vis\ punktum-filer<tab>gh
|
||||
menut Refresh\ Listing<tab><ctrl-l> Genopfrisk\ oplistning<tab>\<c-l> ikke sikker det med \ er korrekt
|
||||
menut Refresh\ Listing<tab><ctrl-l> Genopfrisk\ oplistning<tab>\<c-l>\ ikke\ sikker\ det\ med\ er\ korrekt
|
||||
menut Settings/Options<tab>:NetrwSettings Indstillinger/valgmuligheder<tab>
|
||||
|
||||
menut Delete\ File/Directory<tab>D Slet\ fil/mappe<tab>D
|
||||
@@ -406,10 +406,10 @@ menut In\ New\ Vertical\ Window<tab>v I\ nyt\ lodret\ vindue<tab>v
|
||||
|
||||
menut Explore Gennemse
|
||||
menut Directory\ Name Mappenavn<tab>:Explore
|
||||
menut Filenames\ Matching\ Pattern\ (curdir\ only)<tab>:Explore\ */ test29<tab>:Explore */
|
||||
menut Filenames\ Matching\ Pattern\ (+subdirs)<tab>:Explore\ **/ test30<tab>:Explore **/
|
||||
menut Files\ Containing\ String\ Pattern\ (curdir\ only)<tab>:Explore\ *// test31<tab>:Explore *//
|
||||
menut Files\ Containing\ String\ Pattern\ (+subdirs)<tab>:Explore\ **// test32<tab>:Explore **//
|
||||
menut Filenames\ Matching\ Pattern\ (curdir\ only)<tab>:Explore\ */ test29<tab>:Explore\ */
|
||||
menut Filenames\ Matching\ Pattern\ (+subdirs)<tab>:Explore\ **/ test30<tab>:Explore\ **/
|
||||
menut Files\ Containing\ String\ Pattern\ (curdir\ only)<tab>:Explore\ *// test31<tab>:Explore\ *//
|
||||
menut Files\ Containing\ String\ Pattern\ (+subdirs)<tab>:Explore\ **// test32<tab>:Explore\ **//
|
||||
menut Next\ Match<tab>:Nexplore Næste\ match<tab>:Nexplore<cr>
|
||||
menut Prev\ Match<tab>:Pexplore Forrige\ match<tab>:Pexplore<cr>
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ menutrans Set\ '&filetype'\ too Auch\ '&filetype'\ setzen
|
||||
menutrans &Off &Aus
|
||||
menutrans &Manual &Manuell
|
||||
menutrans A&utomatic A&utomatisch
|
||||
menutrans on/off\ for\ &This\ file An/Aus (diese\ &Datei)
|
||||
menutrans on/off\ for\ &This\ file An/Aus\ (diese\ &Datei)
|
||||
menutrans Co&lor\ test Test\ der\ Farben
|
||||
menutrans &Highlight\ test Test\ der\ Un&terstreichungen
|
||||
menutrans &Convert\ to\ HTML Konvertieren\ nach\ &HTML
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" Menu Translations: Finnish
|
||||
" Maintainer: Flammie Pirinen <flammie@iki.fi>
|
||||
" Last Change: 2012 May 01
|
||||
" Last Change: 2020 Apr 23
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
@@ -70,7 +70,7 @@ menutrans &Context\ lines &Huomioitavat\ kontekstirivit
|
||||
" Subsubmenu:
|
||||
" Accels: ELSOA
|
||||
menutrans &Virtual\ Edit &Virtuaalimuokkaus
|
||||
menutrans Never &Ei koskaan
|
||||
menutrans Never &Ei\ koskaan
|
||||
menutrans Block\ Selection &Lohkovalinta
|
||||
menutrans Insert\ mode &Syöttötila
|
||||
menutrans Block\ and\ Insert L&ohkosyöttötila
|
||||
@@ -95,7 +95,7 @@ menutrans F&ile\ Settings Tiedostoasetu&kset
|
||||
menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! Rivi&numerointi<Tab>:set\ nu!
|
||||
menutrans Toggle\ &List\ Mode<Tab>:set\ list! &Listaustila<Tab>:set\ list!
|
||||
menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! &Rivitys<Tab>:set\ wrap!
|
||||
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! &Sanoittainen rivitys<Tab>:set\ lbr!
|
||||
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! &Sanoittainen\ rivitys<Tab>:set\ lbr!
|
||||
menutrans Toggle\ &expand-tab<Tab>:set\ et! Muuta\ &tabit\ väleiksi<Tab>:set\ et!
|
||||
menutrans Toggle\ &auto-indent<Tab>:set\ ai! &Automaattinen\ sisennys<Tab>:set\ ai!
|
||||
menutrans Toggle\ &C-indenting<Tab>:set\ cin! &C-kielen\ sisennys<Tab>:set\ cin!
|
||||
@@ -111,7 +111,7 @@ let g:menutrans_fileformat_choices = " &Unix \n &Dos \n &Mac \n &Peru "
|
||||
|
||||
menutrans C&olor\ Scheme &Väriteema
|
||||
menutrans &Keymap &Näppäinkartta
|
||||
menutrans None Ei mikään
|
||||
menutrans None Ei\ mikään
|
||||
menutrans Select\ Fo&nt\.\.\. Valitse\ &fontti\.\.\.
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Menu Translations: Hungarian (Magyar)
|
||||
" Original Translation: Zoltán Árpádffy
|
||||
" Maintained By: Kontra Gergely <kgergely@mcl.hu>
|
||||
" Last Change: 2012 May 01
|
||||
" Last Change: 2020 Apr 23
|
||||
" I'm working on defining (unaccented) hotkeys for everything.
|
||||
" I want to remove y and z hotkeys, because on the hungarian keymap they're at
|
||||
" a differrent place.
|
||||
@@ -68,7 +68,7 @@ menutrans &Paste<Tab>"+gP &Beilleszt
|
||||
menutrans Put\ &Before<Tab>[p Berakás\ e&lé<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p Berakás\ &mögé<Tab>]p
|
||||
menutrans &Delete<Tab>x &Törlés<Tab>x
|
||||
menutrans &Select\ all<Tab>ggVG A&z\ összes kijelölése<Tab>ggvG
|
||||
menutrans &Select\ all<Tab>ggVG A&z\ összes\ kijelölése<Tab>ggvG
|
||||
menutrans &Find\.\.\. Ke&resés\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. Keresés\ és\ c&sere\.\.\.
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s Keresés\ és\ c&sere<Tab>:%s
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Menu Translations: Hungarian (Magyar)
|
||||
" Original Translation: Zoltán Árpádffy
|
||||
" Maintained By: Kontra Gergely <kgergely@mcl.hu>
|
||||
" Last Change: 2012 May 01
|
||||
" Last Change: 2020 Apr 23
|
||||
"
|
||||
" This file was converted from menu_hu_hu.iso_8859-2.vim. See there for
|
||||
" remarks.
|
||||
@@ -52,7 +52,7 @@ menutrans &Paste<Tab>"+gP &Beillesztés<Tab>"+gP
|
||||
menutrans Put\ &Before<Tab>[p Berakás\ e&lé<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p Berakás\ &mögé<Tab>]p
|
||||
menutrans &Delete<Tab>x &Törlés<Tab>x
|
||||
menutrans &Select\ all<Tab>ggVG A&z\ összes kijelölése<Tab>ggvG
|
||||
menutrans &Select\ all<Tab>ggVG A&z\ összes\ kijelölése<Tab>ggvG
|
||||
menutrans &Find\.\.\. Ke&resés\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. Keresés\ és\ c&sere\.\.\.
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s Keresés\ és\ c&sere<Tab>:%s
|
||||
|
||||
@@ -59,7 +59,7 @@ menutrans Startup\ &Settings R
|
||||
|
||||
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! Munsturauðkenning\ á\/af<Tab>:set\ hls!
|
||||
menutrans Toggle\ &Ignoring\ Case<Tab>:set\ ic! Hunsa\ há-lágstafi\ á\/af<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Showing\ Matched\ Pairs<Tab>:set\ sm! Sýna\ Pörun á\/af<Tab>:set\ sm!
|
||||
menutrans Toggle\ &Showing\ Matched\ Pairs<Tab>:set\ sm! Sýna\ Pörun\ á\/af<Tab>:set\ sm!
|
||||
|
||||
menutrans &Context\ lines Samhengislínur
|
||||
|
||||
@@ -70,7 +70,7 @@ menutrans Insert\ mode Innskotshamur
|
||||
menutrans Block\ and\ Insert Bálkval\ og\ Innskotshamur
|
||||
menutrans Always Alltaf
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! Innskotshamur\ á\/af<Tab>:set\ im!
|
||||
menutrans Toggle\ Vi\ C&ompatibility<Tab>:set\ cp! Vi\ Samhæfanleiki á\/af<Tab>:set\ cp!
|
||||
menutrans Toggle\ Vi\ C&ompatibility<Tab>:set\ cp! Vi\ Samhæfanleiki\ á\/af<Tab>:set\ cp!
|
||||
|
||||
menutrans Search\ &Path\.\.\. Leita\ í\ Slóð\.\.\.
|
||||
menutrans Ta&g\ Files\.\.\. Merkja\ Skrár\.\.\.
|
||||
@@ -90,7 +90,7 @@ menutrans Toggle\ &List\ Mode<Tab>:set\ list! Listahamur\
|
||||
menutrans Toggle\ Line\ &Wrapping<Tab>:set\ wrap! Línuhlaup\ á\/af<Tab>:set\ wrap!
|
||||
menutrans Toggle\ W&rapping\ at\ word<Tab>:set\ lbr! Línuhlaup\ á\ orði\ á\/af<Tab>:set\ lbr!
|
||||
menutrans Toggle\ Tab\ &Expanding<Tab>:set\ et! Tab-víkkun\ á\/af<Tab>:set\ et!
|
||||
menutrans Toggle\ &Auto Indenting<Tab>:set\ ai! Sjálfvirkur\ Inndráttur\ á\/af<Tab>:set\ ai!
|
||||
menutrans Toggle\ &Auto\ Indenting<Tab>:set\ ai! Sjálfvirkur\ Inndráttur\ á\/af<Tab>:set\ ai!
|
||||
menutrans Toggle\ &C-Style\ Indenting<Tab>:set\ cin! C-Inndráttur\ á\/af<Tab>:set\ cin!
|
||||
|
||||
" other options
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Maintainer: Antonio Colombo <azc100@gmail.com>
|
||||
" Vlad Sandrini <vlad.gently@gmail.com>
|
||||
" Luciano Montanaro <mikelima@cirulla.net>
|
||||
" Last Change: 2018 May 16
|
||||
" Last Change: 2020 Apr 23
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
@@ -116,8 +116,8 @@ menut Toggle\ &List\ Mode<Tab>:set\ list! Modo\ &List\ S
|
||||
menut Toggle\ Line\ &Wrapping<Tab>:set\ wrap! Linee\ &Continuate\ Sì/No<Tab>:set\ wrap!
|
||||
menut Toggle\ W&rapping\ at\ word<Tab>:set\ lbr! A\ capo\ alla\ &Parola\ Sì/No<Tab>:set\ lbr!
|
||||
menut Toggle\ Tab\ &expanding<Tab>:set\ et! &Espandi\ Tabulazione\ Sì/No<Tab>:set\ et!
|
||||
menut Toggle\ &Auto\ Indenting<Tab>:set\ ai! Indentazione\ &Automatica\ Sì/No<Tab>:set ai!
|
||||
menut Toggle\ &C-Style\ Indenting<Tab>:set\ cin! Indentazione\ stile\ &C\ Sì/No<Tab>:set cin!
|
||||
menut Toggle\ &Auto\ Indenting<Tab>:set\ ai! Indentazione\ &Automatica\ Sì/No<Tab>:set\ ai!
|
||||
menut Toggle\ &C-Style\ Indenting<Tab>:set\ cin! Indentazione\ stile\ &C\ Sì/No<Tab>:set\ cin!
|
||||
" -SEP2-
|
||||
menut &Shiftwidth &Spazi\ rientranza
|
||||
"menut &Shiftwidth.2<Tab>:set\ sw=2\ sw?<CR> &Spazi\ rientranza.2<Tab>:set\ sw=2\ sw?<CR>
|
||||
@@ -360,8 +360,8 @@ menut Copy Copia
|
||||
menut Paste Incolla
|
||||
" -sep3-
|
||||
menut Find Cerca
|
||||
menut FindNext Cerca Successivo
|
||||
menut FindPrev Cerca Precedente
|
||||
menut FindNext Cerca\ Successivo
|
||||
menut FindPrev Cerca\ Precedente
|
||||
menut Replace Sostituisci
|
||||
" -sep4-
|
||||
menut New Nuova\ finestra
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" Menu Translations: Norwegian / Norsk (Bokmål)
|
||||
" Maintainer: Øyvind A. Holm <sunny@sunbase.org>
|
||||
" Last Change: 2012 May 01
|
||||
" Last Change: 2020 Apr 23
|
||||
" menu_no_no.latin1.vim 289 2004-05-16 18:00:52Z sunny
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
@@ -46,7 +46,7 @@ menutrans &Edit &Rediger
|
||||
menutrans Settings\ &Window &Innstillinger
|
||||
menutrans &Global\ Settings Glo&bale\ innstillinger
|
||||
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &Utheving\ av\ søketekst\ av/på<Tab>:set\ hls!
|
||||
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! &Forskjell\ mellom\ store/små bokstaver\ av/på<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! &Forskjell\ mellom\ store/små\ bokstaver\ av/på<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Showmatch<Tab>:set\ sm! &Indikering\ av\ samsvarende\ parentes\ av/på<Tab>:set\ sm!
|
||||
menutrans &Context\ lines &Kontekstlinjer
|
||||
menutrans &Virtual\ Edit Vi&rtuell\ redigering
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user