mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
Compare commits
254 Commits
Author | SHA1 | Date | |
---|---|---|---|
87757c6b0a | |||
586294a041 | |||
3f9d2378bd | |||
d128889b30 | |||
0992f62fc1 | |||
9a667b4dba | |||
30df42557c | |||
690a42d54e | |||
5d552d652b | |||
8de753148f | |||
edce68912e | |||
3ab6941713 | |||
f10fa3928c | |||
a24f5be86d | |||
baa781a4c3 | |||
836e54f5de | |||
e85a66a4d4 | |||
d0bf380efa | |||
6865bdc914 | |||
ada6b27ff1 | |||
1341176e7b | |||
f6a308c65b | |||
fe1d3c8af7 | |||
ce1d1969f3 | |||
2ab4f907a2 | |||
59bd74ed4c | |||
6f85cec4fb | |||
68ee1cf7de | |||
7306e8fcdb | |||
41adebe572 | |||
87406c33c7 | |||
6ac2e4aa0a | |||
ea528a9482 | |||
48d7f5b5a3 | |||
b7b7fa04bf | |||
bda2e4eb16 | |||
6715b3510e | |||
3987eac572 | |||
a46e9e45a9 | |||
43855b7396 | |||
49b89bb172 | |||
41ee98c3c5 | |||
bda55df3b8 | |||
c4bca1de0b | |||
8331310c06 | |||
1adada0158 | |||
dbe45be625 | |||
f2ec8d4afc | |||
2ffd35fe8f | |||
32a1b26ef3 | |||
93c2d5bf7f | |||
b3eaae21b9 | |||
eb380b991c | |||
b0905e269d | |||
a4874d4d36 | |||
bcb06c92c4 | |||
0cd7f3536b | |||
af22007784 | |||
faed074ab7 | |||
57d6d00433 | |||
e2c0f81dd0 | |||
d6a5edd613 | |||
89cce31ebc | |||
f79695c2d8 | |||
244198f039 | |||
e9d331d173 | |||
48c823ca01 | |||
5bcc492649 | |||
08e5b128b8 | |||
21449ee49c | |||
b7b4bb36aa | |||
88be7a6c68 | |||
0ae9e19540 | |||
7a734b7148 | |||
5911ac5023 | |||
ba11e78f1d | |||
96076bf41e | |||
5e34eec6f8 | |||
96b3ef2389 | |||
a8b86605f3 | |||
f9d87fa6ba | |||
a494ce1c64 | |||
c233c2e6a5 | |||
a9b5e4af43 | |||
4ade668fb6 | |||
0d50d6089d | |||
29ebebd343 | |||
29b29c6b30 | |||
5d2354fc07 | |||
20eb68a8f2 | |||
b46e3aa0fa | |||
fdcdded4d5 | |||
b211916e0a | |||
5ecee30dcd | |||
651edf33eb | |||
b84ab0288f | |||
54585fd04c | |||
523f9f5898 | |||
ba479348d4 | |||
a5b744ef93 | |||
fa16c7ab3f | |||
e92989b07a | |||
66b72f48c3 | |||
2bfd1ee161 | |||
7a4cf4b256 | |||
1c0746829e | |||
73aa24ea72 | |||
d419fa2115 | |||
30dcd0e1fd | |||
5e35184241 | |||
7cf35bc1be | |||
44a2e3c5d4 | |||
bbeaa94e0e | |||
3b03b435a2 | |||
32f4febdc8 | |||
6b49fba8c8 | |||
1fa3f0c215 | |||
a899b27206 | |||
792379eedf | |||
b657310bd3 | |||
76866af3a5 | |||
73b9650519 | |||
d3d54f473f | |||
b90c2395b2 | |||
03125277e9 | |||
ef925556cb | |||
223189389a | |||
81f9815831 | |||
fe803c8c04 | |||
26ebe21caa | |||
5d14da3690 | |||
2249cc0a47 | |||
1c471ac548 | |||
037c32e428 | |||
42d2c5e803 | |||
fa0b069728 | |||
1c2c4ecb4c | |||
8fe9e55a7d | |||
468c62e4fd | |||
ca793e60db | |||
fc378a88d8 | |||
a931371694 | |||
74f0a77bb9 | |||
159d392427 | |||
1be5b375c4 | |||
5bbdd0b082 | |||
a9b95c3d33 | |||
cd68f21f60 | |||
1cbe3e89c9 | |||
c877057e81 | |||
46b02602d6 | |||
8d9d2b222d | |||
dcff497373 | |||
99b9847bd8 | |||
d75ab0cbf5 | |||
476b65ebac | |||
c50f4d07c4 | |||
5fbe72edda | |||
1c00af2a24 | |||
8b92af645c | |||
736cd18671 | |||
e4c157b9c1 | |||
8e83105798 | |||
9d065a4862 | |||
03e5ee25fd | |||
fff0132399 | |||
8311e7d6b4 | |||
48295111e5 | |||
acd04b2fd7 | |||
b7ebe610cc | |||
234c728c53 | |||
cb27992cda | |||
93318a9933 | |||
8ae8b304ee | |||
152a450d88 | |||
7841ca185d | |||
e5c96e344c | |||
e5297e39b3 | |||
f548ec46e4 | |||
6897f18ee6 | |||
f5aa269f2d | |||
631a50ceb9 | |||
7e47c1e735 | |||
aef2e53cf8 | |||
1ded411a41 | |||
d296af94d0 | |||
85f0711b4e | |||
91af4c4180 | |||
f5e3b5c04f | |||
2eb995b569 | |||
a9657c8952 | |||
532a5fb131 | |||
16e9b477ab | |||
ae31d7bfb4 | |||
51289207f8 | |||
6cc9bd4001 | |||
5923216f79 | |||
053aee01f7 | |||
600cd88cdf | |||
e965b7ac5f | |||
6701480c43 | |||
bfa16364f1 | |||
274efcc7e6 | |||
138fb951e0 | |||
a0316cd299 | |||
ecf8f15884 | |||
30b4ddf925 | |||
1319009d59 | |||
c413ac7068 | |||
572d46035f | |||
a304e49790 | |||
30cf017f2a | |||
ed4eb74f7a | |||
72c3ca9f8d | |||
3ca6776a57 | |||
91782b4aeb | |||
446a98f0b6 | |||
9e9fe66437 | |||
de535cfe77 | |||
df630970bf | |||
aa9fc8eb94 | |||
601cfa9a23 | |||
328332b0b0 | |||
de1c7ac432 | |||
82a96e3dc0 | |||
69565e3618 | |||
09a62e6f64 | |||
b8ee1cf56e | |||
80a7921a02 | |||
9cb27a57c8 | |||
3fa0d3514b | |||
c4eb1cb17b | |||
0174d8f386 | |||
8f7256a5ee | |||
834bb85172 | |||
6acca4bc59 | |||
ce2769b5fe | |||
2897a8d040 | |||
d1a975ae64 | |||
eb59129d2c | |||
002548b81e | |||
8cd42a58b4 | |||
738df3887f | |||
8f751d56f4 | |||
1cccdebc0f | |||
a2dd40c057 | |||
dfed077e06 | |||
08896dd330 | |||
d6c9ac97a0 | |||
0ca5966196 | |||
bb78ea23c6 | |||
862cb37544 | |||
c2c9132420 | |||
a1522f7c0d |
@ -5,9 +5,9 @@ env:
|
||||
freebsd_task:
|
||||
name: FreeBSD
|
||||
matrix:
|
||||
- name: FreeBSD 14.2
|
||||
- name: FreeBSD 14.3
|
||||
freebsd_instance:
|
||||
image_family: freebsd-14-2
|
||||
image_family: freebsd-14-3
|
||||
timeout_in: 20m
|
||||
install_script:
|
||||
- pkg install -y gettext
|
||||
|
5
.gitattributes
vendored
5
.gitattributes
vendored
@ -1 +1,6 @@
|
||||
src/testdir/test42.in diff
|
||||
|
||||
# ignore vim.pot creation date when diffing
|
||||
# set this up using:
|
||||
# git config diff.ignore_pot_date.textconv 'grep -v "^.POT-Creation-Date:.*"'
|
||||
src/po/vim.pot diff=ignore_pot_date
|
||||
|
1360
.github/MAINTAINERS
vendored
1360
.github/MAINTAINERS
vendored
File diff suppressed because it is too large
Load Diff
38
.github/workflows/ci.yml
vendored
38
.github/workflows/ci.yml
vendored
@ -29,7 +29,6 @@ jobs:
|
||||
LOG_DIR: ${{ github.workspace }}/logs
|
||||
TERM: xterm
|
||||
DISPLAY: ':99'
|
||||
WAYLAND_DISPLAY: 'wayland-1'
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
strategy:
|
||||
@ -125,6 +124,10 @@ jobs:
|
||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||
PKGS=( \
|
||||
gettext \
|
||||
x11-utils \
|
||||
labwc \
|
||||
wl-clipboard \
|
||||
wayland-utils \
|
||||
libgtk-3-dev:${{ matrix.architecture }} \
|
||||
libgtk-3-bin:${{ matrix.architecture }} \
|
||||
desktop-file-utils \
|
||||
@ -141,7 +144,6 @@ jobs:
|
||||
libwayland-cursor0:${{ matrix.architecture }} \
|
||||
locales-all \
|
||||
software-properties-common \
|
||||
sway \
|
||||
)
|
||||
if ${{ contains(matrix.extra, 'asan') }} && ${{ contains(matrix.architecture, 'native') }}; then
|
||||
PKGS+=( \
|
||||
@ -270,8 +272,6 @@ jobs:
|
||||
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0
|
||||
sudo usermod -a -G audio "${USER}"
|
||||
sudo bash ci/setup-xvfb.sh
|
||||
# Sway requires user session
|
||||
bash ci/setup-sway.sh
|
||||
|
||||
- name: Check autoconf
|
||||
if: contains(matrix.extra, 'unittests')
|
||||
@ -319,6 +319,13 @@ jobs:
|
||||
run: |
|
||||
make ${SHADOWOPT} ${TEST}
|
||||
|
||||
# Enable to debug failing tests live and ssh into the CI runners
|
||||
# - name: Setup tmate session
|
||||
# if: ${{ failure() }}
|
||||
# uses: mxschmitt/action-tmate@v3
|
||||
# with:
|
||||
# limit-access-to-actor: true
|
||||
|
||||
- if: ${{ !cancelled() }}
|
||||
uses: ./.github/actions/test_artifacts
|
||||
|
||||
@ -387,7 +394,7 @@ jobs:
|
||||
if: matrix.runner == 'macos-15'
|
||||
run: |
|
||||
# Xcode 16 has compiler bugs which are fixed in 16.2+
|
||||
sudo xcode-select -s /Applications/Xcode_16.3.app/Contents/Developer
|
||||
sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
|
||||
|
||||
- name: Set up environment
|
||||
run: |
|
||||
@ -729,16 +736,17 @@ jobs:
|
||||
# name: vim${{ matrix.bits }}-${{ matrix.toolchain }}
|
||||
# path: ./artifacts
|
||||
|
||||
- name: Install packages for testing
|
||||
shell: bash
|
||||
run: |
|
||||
if ${{ matrix.features != 'TINY' }}; then
|
||||
if ${{ matrix.arch == 'x64' }}; then
|
||||
choco install netbeans --no-progress
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
# disabled because of https://github.com/tunisiano187/Chocolatey-packages/issues/3916
|
||||
#- name: Install packages for testing
|
||||
# shell: bash
|
||||
# run: |
|
||||
# if ${{ matrix.features != 'TINY' }}; then
|
||||
# if ${{ matrix.arch == 'x64' }}; then
|
||||
# choco install netbeans --no-progress
|
||||
# else
|
||||
# exit 0
|
||||
# fi
|
||||
# fi
|
||||
|
||||
- name: Test and show the result of testing gVim
|
||||
if: matrix.GUI == 'yes' || matrix.VIMDLL == 'yes'
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -22,6 +22,8 @@ src/auto/osdef.h
|
||||
src/auto/link.log
|
||||
src/auto/link.sed
|
||||
src/auto/pathdef.c
|
||||
src/auto/wayland/*.c
|
||||
src/auto/wayland/*.h
|
||||
|
||||
# Windows
|
||||
*.exe
|
||||
@ -64,7 +66,6 @@ src/xxd/xxd.dSYM
|
||||
*~
|
||||
*.pyc
|
||||
*.log
|
||||
src/po/vim.pot
|
||||
src/tags
|
||||
/tags
|
||||
/GPATH
|
||||
|
@ -24,6 +24,8 @@ src/auto/osdef.h
|
||||
src/auto/link.log
|
||||
src/auto/link.sed
|
||||
src/auto/pathdef.c
|
||||
src/auto/wayland/*.c
|
||||
src/auto/wayland/*.h
|
||||
|
||||
# Windows
|
||||
*.exe
|
||||
@ -66,7 +68,6 @@ src/xxd/xxd.dSYM
|
||||
*~
|
||||
*.pyc
|
||||
*.log
|
||||
src/po/vim.pot
|
||||
src/tags
|
||||
/tags
|
||||
/GPATH
|
||||
|
@ -3,7 +3,7 @@
|
||||
Patches are welcome in whatever form.
|
||||
Discussions about patches happen on the [vim-dev][0] mailing list.
|
||||
If you create a pull request on GitHub it will be
|
||||
forwarded to the vim-dev mailing list. You can also send your patch there
|
||||
forwarded to the vim-dev mailing list. You can also send your patch there
|
||||
directly (but please note, the initial posting is subject to moderation).
|
||||
In that case an attachment with a unified diff format is preferred.
|
||||
Information about the mailing list can be found [on the Vim website][0]
|
||||
@ -12,14 +12,14 @@ A pull request has the advantage that it will trigger the Continuous
|
||||
Integration tests, you will be warned of problems (you can ignore the coverage
|
||||
warning, it's noisy).
|
||||
|
||||
Please consider adding a test. All new functionality should be tested and bug
|
||||
Please consider adding a test. All new functionality should be tested and bug
|
||||
fixes should be tested for regressions: the test should fail before the fix and
|
||||
pass after the fix. Look through recent patches for examples and find help
|
||||
with ":help testing". The tests are located under "src/testdir".
|
||||
pass after the fix. Look through recent patches for examples and find help
|
||||
with ":help testing". The tests are located under "src/testdir".
|
||||
|
||||
Contributions will be distributed with Vim under the Vim license. Providing a
|
||||
Contributions will be distributed with Vim under the Vim license. Providing a
|
||||
change to be included implies that you agree with this and your contribution
|
||||
does not cause us trouble with trademarks or patents. There is no CLA to sign.
|
||||
does not cause us trouble with trademarks or patents. There is no CLA to sign.
|
||||
|
||||
## Signing-off commits
|
||||
|
||||
@ -27,9 +27,9 @@ While not required, it's recommended to use **Signed-off commits** to ensure
|
||||
transparency, accountability, and compliance with open-source best practices.
|
||||
Signed-off commits follow the [Developer Certificate of Origin (DCO)][15],
|
||||
which confirms that contributors have the right to submit their changes under
|
||||
the project's license. This process adds a `Signed-off-by` line to commit
|
||||
the project's license. This process adds a `Signed-off-by` line to commit
|
||||
messages, verifying that the contributor agrees to the project's licensing
|
||||
terms. To sign off a commit, simply use the -s flag when committing:
|
||||
terms. To sign off a commit, simply use the -s flag when committing:
|
||||
|
||||
```sh
|
||||
git commit -s
|
||||
@ -37,7 +37,7 @@ git commit -s
|
||||
|
||||
This ensures that every contribution is properly documented and traceable,
|
||||
aligning with industry standards used in projects like the Linux Kernel or
|
||||
the git project. By making Signed-off commits a standard practice, we help
|
||||
the git project. By making Signed-off commits a standard practice, we help
|
||||
maintain a legally compliant and well-governed codebase while fostering trust
|
||||
within our contributor community.
|
||||
|
||||
@ -48,12 +48,12 @@ approvers are happy with that particular change.
|
||||
|
||||
# Reporting issues
|
||||
|
||||
We use GitHub issues, but that is not a requirement. Writing to the Vim
|
||||
We use GitHub issues, but that is not a requirement. Writing to the Vim
|
||||
mailing list is also fine.
|
||||
|
||||
Please use the GitHub issues only for actual issues. If you are not 100% sure
|
||||
that your problem is a Vim issue, please first discuss this on the Vim user
|
||||
mailing list. Try reproducing the problem without any of your plugins or settings:
|
||||
mailing list. Try reproducing the problem without any of your plugins or settings:
|
||||
|
||||
vim --clean
|
||||
|
||||
@ -77,7 +77,7 @@ or may not work with older Vim releases (since they may contain new features).
|
||||
If you find a problem with one of these files or have a suggestion for
|
||||
improvement, please first try to contact the maintainer directly.
|
||||
Look in the header of the file for the name, email address, github handle and/or
|
||||
upstream repository. You may also check the [MAINTAINERS][11] file.
|
||||
upstream repository. You may also check the [MAINTAINERS][11] file.
|
||||
|
||||
The maintainer will take care of issues and send updates to the Vim project for
|
||||
distribution with Vim.
|
||||
@ -88,23 +88,25 @@ If the maintainer does not respond, contact the [vim-dev][0] mailing list.
|
||||
|
||||
If you want to contribute new runtime files for Vim or Neovim, please create a
|
||||
PR with your changes against this repository here. For new filetypes, do not forget:
|
||||
* to add a new [filetype test][12] (keep it similar to the other filetype tests).
|
||||
* all configuration switches should be documented
|
||||
|
||||
- to add a new [filetype test][12] (keep it similar to the other filetype tests).
|
||||
- all configuration switches should be documented
|
||||
(check [filetype.txt][13] and/or [syntax.txt][14] for filetype and syntax plugins)
|
||||
* add yourself as Maintainer to the top of file (again, keep the header similar to
|
||||
- add yourself as Maintainer to the top of file (again, keep the header similar to
|
||||
other runtime files)
|
||||
* add yourself to the [MAINTAINERS][11] file.
|
||||
- add yourself to the [MAINTAINERS][11] file.
|
||||
|
||||
# Translations
|
||||
|
||||
Translating messages and runtime files is very much appreciated! These things
|
||||
Translating messages and runtime files is very much appreciated! These things
|
||||
can be translated:
|
||||
* Messages in Vim, see [src/po/README.txt][1]
|
||||
Also used for the desktop icons.
|
||||
* Menus, see [runtime/lang/README.txt][2]
|
||||
* Vim tutor, see [runtime/tutor/README.txt][3]
|
||||
* Manual pages, see [runtime/doc/\*.1][4] for examples
|
||||
* Installer, see [nsis/lang/README.txt][5]
|
||||
|
||||
- Messages in Vim, see [src/po/README.txt][1]
|
||||
Also used for the desktop icons.
|
||||
- Menus, see [runtime/lang/README.txt][2]
|
||||
- Vim tutor, see [runtime/tutor/README.txt][3]
|
||||
- Manual pages, see [runtime/doc/\*.1][4] for examples
|
||||
- Installer, see [nsis/lang/README.txt][5]
|
||||
|
||||
The help files can be translated and made available separately.
|
||||
See https://www.vim.org/translations.php for examples.
|
||||
@ -113,9 +115,11 @@ See https://www.vim.org/translations.php for examples.
|
||||
|
||||
Please have a look at the following [discussion][6], which should give you some
|
||||
ideas. Please also check the [develop.txt][7] helpfile for the recommended
|
||||
style. Often it's also beneficial to check the surrounding code for the style
|
||||
coding style. Often it's also beneficial to check the surrounding code for the style
|
||||
being used.
|
||||
|
||||
For the recommended documentation style, please check [helphelp.txt][16].
|
||||
|
||||
# I have a question
|
||||
|
||||
If you have some question on the style guide, please contact the [vim-dev][0]
|
||||
@ -139,3 +143,4 @@ mailing list. For other questions please use the [Vi Stack Exchange][8] website,
|
||||
[13]: https://github.com/vim/vim/blob/master/runtime/doc/filetype.txt
|
||||
[14]: https://github.com/vim/vim/blob/master/runtime/doc/syntax.txt
|
||||
[15]: https://en.wikipedia.org/wiki/Developer_Certificate_of_Origin
|
||||
[16]: https://github.com/vim/vim/blob/master/runtime/doc/helphelp.txt
|
||||
|
116
Filelist
116
Filelist
@ -184,63 +184,67 @@ SRC_ALL = \
|
||||
src/winclip.c \
|
||||
src/window.c \
|
||||
src/xxd/xxd.c \
|
||||
src/testdir/gen_opt_test.vim \
|
||||
src/testdir/README.txt \
|
||||
src/testdir/Make_all.mak \
|
||||
src/testdir/*.in \
|
||||
src/testdir/*.py \
|
||||
src/testdir/keycode_check.vim \
|
||||
src/testdir/keycode_check.json \
|
||||
src/testdir/lsan-suppress.txt \
|
||||
src/testdir/sautest/autoload/*.vim \
|
||||
src/testdir/testluaplugin/lua/testluaplugin/*.lua \
|
||||
src/testdir/check.vim \
|
||||
src/testdir/Make_all.mak \
|
||||
src/testdir/README.txt \
|
||||
src/testdir/commondumps.vim \
|
||||
src/testdir/gui_init.vim \
|
||||
src/testdir/gui_preinit.vim \
|
||||
src/testdir/mouse.vim \
|
||||
src/testdir/runtest.vim \
|
||||
src/testdir/screendump.vim \
|
||||
src/testdir/setup.vim \
|
||||
src/testdir/setup_gui.vim \
|
||||
src/testdir/shared.vim \
|
||||
src/testdir/vim9.vim \
|
||||
src/testdir/script_util.vim \
|
||||
src/testdir/summarize.vim \
|
||||
src/testdir/term_util.vim \
|
||||
src/testdir/view_util.vim \
|
||||
src/testdir/viewdumps.vim \
|
||||
src/testdir/test[0-9]*.ok \
|
||||
src/testdir/test77a.ok \
|
||||
src/testdir/test77a.com \
|
||||
src/testdir/test_*.vim \
|
||||
src/testdir/crash/* \
|
||||
src/testdir/dumps/*.dump \
|
||||
src/testdir/dumps/*.vim \
|
||||
src/testdir/keycode_check.json \
|
||||
src/testdir/keycode_check.vim \
|
||||
src/testdir/lsan-suppress.txt \
|
||||
src/testdir/python2/*.py \
|
||||
src/testdir/python3/*.py \
|
||||
src/testdir/python_after/*.py \
|
||||
src/testdir/python_before/*.py \
|
||||
src/testdir/pythonx/*.py \
|
||||
src/testdir/pythonx/topmodule/__init__.py \
|
||||
src/testdir/pythonx/topmodule/submodule/__init__.py \
|
||||
src/testdir/pythonx/topmodule/submodule/subsubmodule/__init__.py \
|
||||
src/testdir/pythonx/topmodule/submodule/subsubmodule/subsubsubmodule.py \
|
||||
src/testdir/python_after/*.py \
|
||||
src/testdir/python_before/*.py \
|
||||
src/testdir/pyxfile/*.py \
|
||||
src/testdir/dumps/*.dump \
|
||||
src/testdir/dumps/*.vim \
|
||||
src/testdir/ru_RU/LC_MESSAGES/Makefile \
|
||||
src/testdir/ru_RU/LC_MESSAGES/__PACKAGE__.mo \
|
||||
src/testdir/ru_RU/LC_MESSAGES/__PACKAGE__.po \
|
||||
src/testdir/runtest.vim \
|
||||
src/testdir/samples/*.html \
|
||||
src/testdir/samples/*.txt \
|
||||
src/testdir/samples/*.vim \
|
||||
src/testdir/samples/evil.zip \
|
||||
src/testdir/samples/evil.tar \
|
||||
src/testdir/samples/poc.zip \
|
||||
src/testdir/samples/test000 \
|
||||
src/testdir/samples/sample.tar \
|
||||
src/testdir/samples/test.zip \
|
||||
src/testdir/samples/test000 \
|
||||
src/testdir/samples/test_undo.txt.undo \
|
||||
src/testdir/samples/testa.zip \
|
||||
src/testdir/color_ramp.vim \
|
||||
src/testdir/sautest/autoload/*.vim \
|
||||
src/testdir/silent.wav \
|
||||
src/testdir/popupbounce.vim \
|
||||
src/testdir/crash/* \
|
||||
src/testdir/ru_RU/LC_MESSAGES/Makefile \
|
||||
src/testdir/ru_RU/LC_MESSAGES/__PACKAGE__.po \
|
||||
src/testdir/ru_RU/LC_MESSAGES/__PACKAGE__.mo \
|
||||
src/testdir/test77a.com \
|
||||
src/testdir/test77a.ok \
|
||||
src/testdir/test[0-9]*.ok \
|
||||
src/testdir/test_*.vim \
|
||||
src/testdir/testluaplugin/lua/testluaplugin/*.lua \
|
||||
src/testdir/util/check.vim \
|
||||
src/testdir/util/color_ramp.vim \
|
||||
src/testdir/util/gen_opt_test.vim \
|
||||
src/testdir/util/gui_init.vim \
|
||||
src/testdir/util/gui_preinit.vim \
|
||||
src/testdir/util/mouse.vim \
|
||||
src/testdir/util/popupbounce.vim \
|
||||
src/testdir/util/screendump.vim \
|
||||
src/testdir/util/script_util.vim \
|
||||
src/testdir/util/setup.vim \
|
||||
src/testdir/util/setup_gui.vim \
|
||||
src/testdir/util/shared.vim \
|
||||
src/testdir/util/summarize.vim \
|
||||
src/testdir/util/term_util.vim \
|
||||
src/testdir/util/view_util.vim \
|
||||
src/testdir/util/vim9.vim \
|
||||
src/testdir/util/window_manager.vim \
|
||||
src/testdir/viewdumps.vim \
|
||||
src/proto.h \
|
||||
src/protodef.h \
|
||||
src/proto/alloc.pro \
|
||||
@ -490,6 +494,12 @@ SRC_UNIX = \
|
||||
src/gui_xmebwp.h \
|
||||
src/gui_x11.c \
|
||||
src/gui_x11_pm.h \
|
||||
src/auto/wayland/README.txt \
|
||||
src/auto/wayland/Makefile \
|
||||
src/auto/wayland/protocols/ext-data-control-v1.xml \
|
||||
src/auto/wayland/protocols/wlr-data-control-unstable-v1.xml \
|
||||
src/auto/wayland/protocols/xdg-shell.xml \
|
||||
src/auto/wayland/protocols/primary-selection-unstable-v1.xml \
|
||||
src/if_xcmdsrv.c \
|
||||
src/link.sh \
|
||||
src/installman.sh \
|
||||
@ -508,18 +518,21 @@ SRC_UNIX = \
|
||||
src/proto/gui_motif.pro \
|
||||
src/proto/gui_xmdlg.pro \
|
||||
src/proto/gui_x11.pro \
|
||||
src/proto/wayland.pro \
|
||||
src/proto/if_xcmdsrv.pro \
|
||||
src/proto/os_unix.pro \
|
||||
src/proto/pty.pro \
|
||||
src/pty.c \
|
||||
src/testdir/Makefile \
|
||||
src/testdir/unix.vim \
|
||||
src/testdir/util/unix.vim \
|
||||
src/toolcheck \
|
||||
src/vim_icon.xbm \
|
||||
src/vim_mask.xbm \
|
||||
src/vimtutor \
|
||||
src/gvimtutor \
|
||||
src/wayland.c \
|
||||
src/which.sh \
|
||||
src/gen-wayland-protocols.sh \
|
||||
src/xxd/Makefile \
|
||||
|
||||
# Source files for both MS Windows and Unix-like.
|
||||
@ -605,7 +618,7 @@ SRC_DOS = \
|
||||
src/testdir/Make_dos.mak \
|
||||
src/testdir/Make_mvc.mak \
|
||||
src/testdir/Make_ming.mak \
|
||||
src/testdir/dos.vim \
|
||||
src/testdir/util/dos.vim \
|
||||
src/uninstall.c \
|
||||
src/vim.rc \
|
||||
src/vim.manifest \
|
||||
@ -658,7 +671,7 @@ SRC_AMI = \
|
||||
src/os_amiga.h \
|
||||
src/proto/os_amiga.pro \
|
||||
src/testdir/Make_amiga.mak \
|
||||
src/testdir/amiga.vim \
|
||||
src/testdir/util/amiga.vim \
|
||||
src/xxd/Make_amiga.mak \
|
||||
|
||||
# Source files for Haiku (also in the extra archive).
|
||||
@ -689,7 +702,7 @@ SRC_VMS = \
|
||||
src/os_vms_mms.c \
|
||||
src/proto/os_vms.pro \
|
||||
src/testdir/Make_vms.mms \
|
||||
src/testdir/vms.vim \
|
||||
src/testdir/util/vms.vim \
|
||||
src/xxd/Make_vms.mms \
|
||||
vimtutor.com \
|
||||
|
||||
@ -780,7 +793,6 @@ RT_ALL = \
|
||||
runtime/tools/[a-z]*[a-z0-9] \
|
||||
runtime/tutor/README.txt \
|
||||
runtime/tutor/tutor1 \
|
||||
runtime/tutor/tutor1.utf-8 \
|
||||
runtime/tutor/en/vim-01-beginner.tutor \
|
||||
runtime/tutor/en/vim-01-beginner.tutor.json \
|
||||
runtime/tutor/en/vim-02-beginner.tutor \
|
||||
@ -789,7 +801,6 @@ RT_ALL = \
|
||||
runtime/tutor/tutor.tutor.json \
|
||||
runtime/tutor/tutor.vim \
|
||||
runtime/tutor/tutor2 \
|
||||
runtime/tutor/tutor2.utf-8 \
|
||||
runtime/vimrc_example.vim \
|
||||
runtime/pack/dist/opt/cfilter/plugin/cfilter.vim \
|
||||
runtime/pack/dist/opt/comment/plugin/comment.vim \
|
||||
@ -831,7 +842,6 @@ RT_ALL = \
|
||||
runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim \
|
||||
runtime/pack/dist/opt/netrw/autoload/netrw/os.vim \
|
||||
runtime/pack/dist/opt/netrw/autoload/netrw/msg.vim \
|
||||
runtime/pack/dist/opt/netrw/autoload/netrwSettings.vim \
|
||||
runtime/pack/dist/opt/netrw/autoload/netrw_gitignore.vim \
|
||||
runtime/pack/dist/opt/netrw/doc/netrw.txt \
|
||||
runtime/pack/dist/opt/netrw/plugin/netrwPlugin.vim \
|
||||
@ -934,7 +944,6 @@ RT_DOS = \
|
||||
README_dos.txt \
|
||||
runtime/doc/Make_mvc.mak \
|
||||
runtime/indent/Make_mvc.mak \
|
||||
runtime/tutor/Make_mvc.mak \
|
||||
runtime/lang/Make_mvc.mak \
|
||||
vimtutor.bat \
|
||||
|
||||
@ -1088,8 +1097,6 @@ LANG_GEN = \
|
||||
runtime/keymap/README.txt \
|
||||
runtime/keymap/*.vim \
|
||||
runtime/tutor/README.*.txt \
|
||||
runtime/tutor/Makefile \
|
||||
runtime/tutor/Make_all.mak \
|
||||
runtime/tutor/it/vim-01-beginner.tutor \
|
||||
runtime/tutor/it/vim-01-beginner.tutor.json \
|
||||
runtime/tutor/ru/vim-01-beginner.tutor \
|
||||
@ -1101,19 +1108,9 @@ LANG_GEN = \
|
||||
runtime/tutor/sr/vim-02-beginner.tutor \
|
||||
runtime/tutor/sr/vim-02-beginner.tutor.json \
|
||||
runtime/tutor/tutor1.?? \
|
||||
runtime/tutor/tutor1.??.utf-8 \
|
||||
runtime/tutor/tutor1.??.euc \
|
||||
runtime/tutor/tutor1.??.sjis \
|
||||
runtime/tutor/tutor1.??.iso9 \
|
||||
runtime/tutor/tutor1.??.big5 \
|
||||
runtime/tutor/tutor1.??.cp1250 \
|
||||
runtime/tutor/tutor1.??.cp1251 \
|
||||
runtime/tutor/tutor1.??.cp737 \
|
||||
runtime/tutor/tutor1.??_??.utf-8 \
|
||||
runtime/tutor/tutor1.??_?? \
|
||||
runtime/tutor/tutor1.bar \
|
||||
runtime/tutor/tutor1.bar.utf-8 \
|
||||
runtime/tutor/tutor2.?? \
|
||||
runtime/tutor/tutor2.??.utf-8 \
|
||||
runtime/spell/README.txt \
|
||||
runtime/spell/??/*.diff \
|
||||
runtime/spell/??/main.aap \
|
||||
@ -1157,6 +1154,7 @@ LANG_SRC = \
|
||||
src/po/sjiscorr.c \
|
||||
src/po/big5corr.c \
|
||||
src/po/*.po \
|
||||
src/po/vim.pot \
|
||||
|
||||
# The language files for the Win32 lang archive.
|
||||
LANG_DOS = \
|
||||
|
1
Makefile
1
Makefile
@ -115,6 +115,7 @@ MINOR = 1
|
||||
# - With these features: "make depend" (works best with gcc).
|
||||
# - If you have a lint program: "make lint" and check the output (ignore GTK
|
||||
# warnings).
|
||||
# - compile release versions using -DNDEBUG to disable assert()s
|
||||
# - If you have valgrind, enable it in src/testdir/Makefile and run "make
|
||||
# test". Enable EXITFREE, disable GUI, scheme and tcl to avoid false alarms.
|
||||
# Check the valgrind output.
|
||||
|
@ -32,6 +32,10 @@ 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 also aims to provide a (mostly) POSIX-compatible vi implementation, when
|
||||
compiled with a minimal feature set (typically called vim.tiny), which is used
|
||||
by many Linux distributions as the default vi editor.
|
||||
|
||||
Vim runs under MS-Windows (7, 8, 10, 11), 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/XP/Vista,
|
||||
|
@ -15,6 +15,10 @@ 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 also aims to provide a (mostly) POSIX-compatible vi implementation, when
|
||||
compiled with a minimal feature set (typically called vim.tiny), which is used
|
||||
by many Linux distributions as the default vi editor.
|
||||
|
||||
Vim runs under MS-Windows (7, 8, 10, 11), 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/XP/Vista,
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Using a systemd user service doesn't work because it seems like github actions
|
||||
# doesn't support user sessions? Just run sway in the background and disown it.
|
||||
WLR_BACKENDS=headless sway &
|
||||
disown
|
@ -20,6 +20,11 @@ README.ru.txt для версии 9.1 программы Vim — Vi IMproved.
|
||||
функциональные клавиши клавиатуры необходимые команды, и использовать
|
||||
манипулятор «мышь».
|
||||
|
||||
В редакторе Vim также обеспечивается (насколько это возможно) совместимость
|
||||
с POSIX-реализацией редактора vi, если он скомпилирован с минимальным набором
|
||||
функционала (обычно называемый vim.tiny). Данная сборка чаще всего используется
|
||||
во многих дистрибутивах Linux в качестве предустановленного редактора vi.
|
||||
|
||||
Редактор Vim работает в ОС MS Windows (7, 8, 10, 11), macOS, Haiku, VMS и
|
||||
практически во всех UNIX-подобных системах. А перенос на другие платформы не
|
||||
должен представлять особой сложности.
|
||||
@ -36,7 +41,7 @@ MS Windows 95/98/Me/NT/2000/XP/Vista, AmigaDOS, Atari MiNT, BeOS и RISC OS.
|
||||
возможностей.
|
||||
|
||||
Существуют отдельные версии для Unix, PC, Amiga и некоторых других систем.
|
||||
Данный файл README.rux.txt поставляется вместе с архивом рабочих файлов
|
||||
Данный файл README.ru.txt поставляется вместе с архивом рабочих файлов
|
||||
программы. Этот архив включает в себя документацию, файлы подсветки синтаксиса
|
||||
и другие файлы, которые используются редактором во время работы. Чтобы
|
||||
запустить программу Vim, вы должны получить либо архив с исполняемыми файлами,
|
||||
@ -96,7 +101,7 @@ README_vms.txt VMS
|
||||
Редактор Vim является благотворительным программным обеспечением.
|
||||
Использование и копирование программы Vim не ограничено, однако рекомендуется
|
||||
сделать добровольное пожертвование для нуждающихся детей в Уганде. Чтобы узнать
|
||||
подробности, прочитайте, пожалуйста, файл "runtime/doc/uganda.rux" (введите
|
||||
подробности, прочитайте, пожалуйста, файл "runtime/doc/uganda.txt" (введите
|
||||
команду ":help uganda" в редакторе Vim).
|
||||
|
||||
Краткое описание лицензии.
|
||||
@ -116,7 +121,7 @@ README_vms.txt VMS
|
||||
над редактором Vim можно с помощью оказания финансовой поддержки.
|
||||
|
||||
Пожертвованные вами деньги будут в основном направлены на оказание помощи детям
|
||||
Уганды, см. "runtime/doc/uganda.rux". Однако в любом случае финансирование
|
||||
Уганды, см. "runtime/doc/uganda.txt". Однако в любом случае финансирование
|
||||
будет способствовать повышению заинтересованности команды разработчиков
|
||||
в продолжении работы над редактором Vim!
|
||||
|
||||
|
@ -46,6 +46,10 @@ MKNSISFLAGS = $(MKNSISFLAGS) /DHAVE_MULTI_LANG=$(HAVE_MULTI_LANG)
|
||||
MKNSISFLAGS = $(MKNSISFLAGS) /DWIN64=$(WIN64)
|
||||
!ENDIF
|
||||
|
||||
!IFDEF ARM64
|
||||
MKNSISFLAGS = $(MKNSISFLAGS) /DARM64=$(ARM64)
|
||||
!ENDIF
|
||||
|
||||
!IFDEF INCLUDE_LIBGCC
|
||||
MKNSISFLAGS = $(MKNSISFLAGS) /DINCLUDE_LIBGCC=$(INCLUDE_LIBGCC)
|
||||
!ENDIF
|
||||
|
@ -39,6 +39,10 @@ ifdef WIN64
|
||||
MKNSISFLAGS := $(MKNSISFLAGS) -DWIN64=$(WIN64)
|
||||
endif
|
||||
|
||||
ifdef ARM64
|
||||
MKNSISFLAGS := $(MKNSISFLAGS) -DARM64=$(ARM64)
|
||||
endif
|
||||
|
||||
ifdef INCLUDE_LIBGCC
|
||||
MKNSISFLAGS := $(MKNSISFLAGS) -DINCLUDE_LIBGCC=$(INCLUDE_LIBGCC)
|
||||
endif
|
||||
|
@ -101,6 +101,8 @@ Variables and their values available for building the installer (not mandatory):
|
||||
"HAVE_NLS=0" — do not add native language support.
|
||||
"HAVE_MULTI_LANG=0" — to create an English-only the installer.
|
||||
"WIN64=1" — to create a 64-bit the installer.
|
||||
"ARM64=1" — to create the installer for ARM64. The WIN64 variable
|
||||
must be set to 1.
|
||||
"X=<scriptcmd>" — executes scriptcmd in script. If multiple scriptcmd
|
||||
are specified, they are separated by a semicolon.
|
||||
Example "X=OutFile MyVim.exe;XPMode on"
|
||||
|
@ -53,6 +53,18 @@ Unicode true
|
||||
!define WIN64 0
|
||||
!endif
|
||||
|
||||
# if you want to create the installer for ARM64, use the /DARM64=1 on
|
||||
# the command line makensis.exe. This property will be set to 1.
|
||||
!ifndef ARM64
|
||||
!define ARM64 0
|
||||
!else
|
||||
!if ${ARM64} > 0
|
||||
!if ${WIN64} < 1
|
||||
!define /redef WIN64 1
|
||||
!endif
|
||||
!endif
|
||||
!endif
|
||||
|
||||
# if you don't want to include libgcc_s_sjlj-1.dll in the package, use the
|
||||
# switch /DINCLUDE_LIBGCC=0 on the command line makensis.exe.
|
||||
!ifndef INCLUDE_LIBGCC
|
||||
@ -113,9 +125,13 @@ ${StrRep}
|
||||
!define UNINST_REG_KEY_VIM "${UNINST_REG_KEY}\${PRODUCT}"
|
||||
|
||||
!if ${WIN64}
|
||||
Name "${PRODUCT} (x64)"
|
||||
!if ${ARM64}
|
||||
Name "${PRODUCT} (ARM64)"
|
||||
!else
|
||||
Name "${PRODUCT} (x64)"
|
||||
!endif
|
||||
!else
|
||||
Name "${PRODUCT}"
|
||||
Name "${PRODUCT}"
|
||||
!endif
|
||||
OutFile gvim${VER_MAJOR}${VER_MINOR}.exe
|
||||
CRCCheck force
|
||||
@ -498,7 +514,7 @@ Section "$(str_section_exe)" id_section_exe
|
||||
File ${VIMRT}\tools\*.*
|
||||
|
||||
SetOutPath $0\tutor
|
||||
File /x Makefile /x *.info ${VIMRT}\tutor\*.*
|
||||
File /r /x *.info ${VIMRT}\tutor\*.*
|
||||
SectionEnd
|
||||
|
||||
##########################################################
|
||||
|
46
runtime/autoload/dist/ft.vim
vendored
46
runtime/autoload/dist/ft.vim
vendored
@ -3,7 +3,7 @@ vim9script
|
||||
# Vim functions for file type detection
|
||||
#
|
||||
# Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||
# Last Change: 2025 Apr 21
|
||||
# Last Change: 2025 Jul 09
|
||||
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
|
||||
# These functions are moved here from runtime/filetype.vim to make startup
|
||||
@ -30,12 +30,8 @@ export def Check_inp()
|
||||
enddef
|
||||
|
||||
# This function checks for the kind of assembly that is wanted by the user, or
|
||||
# can be detected from the first five lines of the file.
|
||||
# can be detected from the beginning of the file.
|
||||
export def FTasm()
|
||||
# tiasm uses `* commment`
|
||||
if join(getline(1, 10), "\n") =~ '\%(\%(^\|\n\)\*\|Texas Instruments Incorporated\)'
|
||||
setf tiasm
|
||||
endif
|
||||
# make sure b:asmsyntax exists
|
||||
if !exists("b:asmsyntax")
|
||||
b:asmsyntax = ""
|
||||
@ -65,9 +61,30 @@ export def FTasmsyntax()
|
||||
var match = matchstr(head, '\sasmsyntax=\zs[a-zA-Z0-9]\+\ze\s')
|
||||
if match != ''
|
||||
b:asmsyntax = match
|
||||
elseif ((head =~? '\.title') || (head =~? '\.ident') || (head =~? '\.macro') || (head =~? '\.subtitle') || (head =~? '\.library'))
|
||||
b:asmsyntax = "vmasm"
|
||||
return
|
||||
endif
|
||||
# Use heuristics
|
||||
var is_slash_star_encountered = false
|
||||
var i = 1
|
||||
const n = min([50, line("$")])
|
||||
while i <= n
|
||||
const line = getline(i)
|
||||
if line =~ '^/\*'
|
||||
is_slash_star_encountered = true
|
||||
endif
|
||||
if line =~# '^; Listing generated by Microsoft' || line =~? '^\%(\%(CONST\|_BSS\|_DATA\|_TEXT\)\s\+SEGMENT\>\)\|\s*\.[2-6]86P\?\>\|\s*\.XMM\>'
|
||||
b:asmsyntax = "masm"
|
||||
return
|
||||
elseif line =~ 'Texas Instruments Incorporated' || (line =~ '^\*' && !is_slash_star_encountered)
|
||||
# tiasm uses `* commment`, but detection is unreliable if '/*' is seen
|
||||
b:asmsyntax = "tiasm"
|
||||
return
|
||||
elseif ((line =~? '\.title\>\|\.ident\>\|\.macro\>\|\.subtitle\>\|\.library\>'))
|
||||
b:asmsyntax = "vmasm"
|
||||
return
|
||||
endif
|
||||
i += 1
|
||||
endwhile
|
||||
enddef
|
||||
|
||||
var ft_visual_basic_content = '\c^\s*\%(Attribute\s\+VB_Name\|Begin\s\+\%(VB\.\|{\%(\x\+-\)\+\x\+}\)\)'
|
||||
@ -184,9 +201,18 @@ enddef
|
||||
export def FTll()
|
||||
if getline(1) =~ ';\|\<source_filename\>\|\<target\>'
|
||||
setf llvm
|
||||
else
|
||||
setf lifelines
|
||||
return
|
||||
endif
|
||||
var n = 1
|
||||
while n < 100 && n <= line("$")
|
||||
var line = getline(n)
|
||||
if line =~ '^\s*%'
|
||||
setf lex
|
||||
return
|
||||
endif
|
||||
n += 1
|
||||
endwhile
|
||||
setf lifelines
|
||||
enddef
|
||||
|
||||
export def FTlpc()
|
||||
|
@ -16,6 +16,7 @@
|
||||
" instead of shelling out to file(1)
|
||||
" 2025 Apr 16 by Vim Project: decouple from netrw by adding s:WinPath()
|
||||
" 2025 May 19 by Vim Project: restore working directory after read/write
|
||||
" 2025 Jul 13 by Vim Project: warn with path traversal attacks
|
||||
"
|
||||
" Contains many ideas from Michael Toren's <tar.vim>
|
||||
"
|
||||
@ -34,9 +35,9 @@ if &cp || exists("g:loaded_tar")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_tar= "v32b"
|
||||
if v:version < 702
|
||||
if v:version < 900
|
||||
echohl WarningMsg
|
||||
echo "***warning*** this version of tar needs vim 7.2"
|
||||
echo "***warning*** this version of tar needs vim 9.0"
|
||||
echohl Normal
|
||||
finish
|
||||
endif
|
||||
@ -46,10 +47,10 @@ set cpo&vim
|
||||
" ---------------------------------------------------------------------
|
||||
" Default Settings: {{{1
|
||||
if !exists("g:tar_browseoptions")
|
||||
let g:tar_browseoptions= "Ptf"
|
||||
let g:tar_browseoptions= "tf"
|
||||
endif
|
||||
if !exists("g:tar_readoptions")
|
||||
let g:tar_readoptions= "pPxf"
|
||||
let g:tar_readoptions= "pxf"
|
||||
endif
|
||||
if !exists("g:tar_cmd")
|
||||
let g:tar_cmd= "tar"
|
||||
@ -58,6 +59,7 @@ if !exists("g:tar_writeoptions")
|
||||
let g:tar_writeoptions= "uf"
|
||||
endif
|
||||
if !exists("g:tar_delfile")
|
||||
" Note: not supported on BSD
|
||||
let g:tar_delfile="--delete -f"
|
||||
endif
|
||||
if !exists("g:netrw_cygwin")
|
||||
@ -106,10 +108,26 @@ if !exists("g:tar_shq")
|
||||
endif
|
||||
endif
|
||||
|
||||
let g:tar_secure=' -- '
|
||||
let g:tar_leading_pat='^\%([.]\{,2\}/\)\+'
|
||||
|
||||
" ----------------
|
||||
" Functions: {{{1
|
||||
" ----------------
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" s:Msg: {{{2
|
||||
fun! s:Msg(func, severity, msg)
|
||||
redraw!
|
||||
if a:severity =~? 'error'
|
||||
echohl Error
|
||||
else
|
||||
echohl WarningMsg
|
||||
endif
|
||||
echo $"***{a:severity}*** ({a:func}) {a:msg}"
|
||||
echohl None
|
||||
endfunc
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" tar#Browse: {{{2
|
||||
fun! tar#Browse(tarfile)
|
||||
@ -118,16 +136,14 @@ fun! tar#Browse(tarfile)
|
||||
|
||||
" sanity checks
|
||||
if !executable(g:tar_cmd)
|
||||
redraw!
|
||||
echohl Error | echo '***error*** (tar#Browse) "'.g:tar_cmd.'" not available on your system'
|
||||
call s:Msg('tar#Browse', 'error', $"{g:tar_cmd} not available on your system")
|
||||
let &report= repkeep
|
||||
return
|
||||
endif
|
||||
if !filereadable(a:tarfile)
|
||||
if a:tarfile !~# '^\a\+://'
|
||||
" if it's an url, don't complain, let url-handlers such as vim do its thing
|
||||
redraw!
|
||||
echohl Error | echo "***error*** (tar#Browse) File not readable<".a:tarfile.">" | echohl None
|
||||
call s:Msg('tar#Browse', 'error', $"File not readable<{a:tarfile}>")
|
||||
endif
|
||||
let &report= repkeep
|
||||
return
|
||||
@ -203,28 +219,18 @@ fun! tar#Browse(tarfile)
|
||||
exe "sil! r! ".g:tar_cmd." -".g:tar_browseoptions." ".shellescape(tarfile,1)
|
||||
endif
|
||||
if v:shell_error != 0
|
||||
redraw!
|
||||
echohl WarningMsg | echo "***warning*** (tar#Browse) please check your g:tar_browseoptions<".g:tar_browseoptions.">"
|
||||
call s:Msg('tar#Browse', 'warning', $"please check your g:tar_browseoptions '<{g:tar_browseoptions}>'")
|
||||
return
|
||||
endif
|
||||
"
|
||||
" The following should not be neccessary, since in case of errors the
|
||||
" previous if statement should have caught the problem (because tar exited
|
||||
" with a non-zero exit code).
|
||||
" if line("$") == curlast || ( line("$") == (curlast + 1) &&
|
||||
" \ getline("$") =~# '\c\<\%(warning\|error\|inappropriate\|unrecognized\)\>' &&
|
||||
" \ getline("$") =~ '\s' )
|
||||
" redraw!
|
||||
" echohl WarningMsg | echo "***warning*** (tar#Browse) ".a:tarfile." doesn't appear to be a tar file" | echohl None
|
||||
" keepj sil! %d
|
||||
" let eikeep= &ei
|
||||
" set ei=BufReadCmd,FileReadCmd
|
||||
" exe "r ".fnameescape(a:tarfile)
|
||||
" let &ei= eikeep
|
||||
" keepj sil! 1d
|
||||
" call Dret("tar#Browse : a:tarfile<".a:tarfile.">")
|
||||
" return
|
||||
" endif
|
||||
|
||||
" remove tar: Removing leading '/' from member names
|
||||
" Note: the message could be localized
|
||||
if search('^tar: ') > 0 || search(g:tar_leading_pat) > 0
|
||||
call append(3,'" Note: Path Traversal Attack detected!')
|
||||
let b:leading_slash = 1
|
||||
" remove the message output
|
||||
sil g/^tar: /d
|
||||
endif
|
||||
|
||||
" set up maps supported for tar
|
||||
setlocal noma nomod ro
|
||||
@ -243,12 +249,7 @@ fun! s:TarBrowseSelect()
|
||||
let repkeep= &report
|
||||
set report=10
|
||||
let fname= getline(".")
|
||||
|
||||
if !exists("g:tar_secure") && fname =~ '^\s*-\|\s\+-'
|
||||
redraw!
|
||||
echohl WarningMsg | echo '***warning*** (tar#BrowseSelect) rejecting tarfile member<'.fname.'> because of embedded "-"'
|
||||
return
|
||||
endif
|
||||
let ls= get(b:, 'leading_slash', 0)
|
||||
|
||||
" sanity check
|
||||
if fname =~ '^"'
|
||||
@ -270,7 +271,8 @@ fun! s:TarBrowseSelect()
|
||||
wincmd _
|
||||
endif
|
||||
let s:tblfile_{winnr()}= curfile
|
||||
call tar#Read("tarfile:".tarfile.'::'.fname,1)
|
||||
let b:leading_slash= ls
|
||||
call tar#Read("tarfile:".tarfile.'::'.fname)
|
||||
filetype detect
|
||||
set nomod
|
||||
exe 'com! -buffer -nargs=? -complete=file TarDiff :call tar#Diff(<q-args>,"'.fnameescape(fname).'")'
|
||||
@ -280,26 +282,18 @@ endfun
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" tar#Read: {{{2
|
||||
fun! tar#Read(fname,mode)
|
||||
fun! tar#Read(fname)
|
||||
let repkeep= &report
|
||||
set report=10
|
||||
let tarfile = substitute(a:fname,'tarfile:\(.\{-}\)::.*$','\1','')
|
||||
let fname = substitute(a:fname,'tarfile:.\{-}::\(.*\)$','\1','')
|
||||
" be careful not to execute special crafted files
|
||||
let escape_file = fname->fnameescape()
|
||||
|
||||
" changing the directory to the temporary earlier to allow tar to extract the file with permissions intact
|
||||
if !exists("*mkdir")
|
||||
redraw!
|
||||
echohl Error | echo "***error*** (tar#Write) sorry, mkdir() doesn't work on your system" | echohl None
|
||||
let &report= repkeep
|
||||
return
|
||||
endif
|
||||
let escape_file = fname->substitute(g:tar_leading_pat, '', '')->fnameescape()
|
||||
|
||||
let curdir= getcwd()
|
||||
let b:curdir= curdir
|
||||
let tmpdir= tempname()
|
||||
let b:curdir= tmpdir
|
||||
let b:tmpdir= curdir
|
||||
let b:tmpdir= tmpdir
|
||||
if tmpdir =~ '\.'
|
||||
let tmpdir= substitute(tmpdir,'\.[^.]*$','','e')
|
||||
endif
|
||||
@ -309,8 +303,7 @@ fun! tar#Read(fname,mode)
|
||||
try
|
||||
exe "lcd ".fnameescape(tmpdir)
|
||||
catch /^Vim\%((\a\+)\)\=:E344/
|
||||
redraw!
|
||||
echohl Error | echo "***error*** (tar#Write) cannot lcd to temporary directory" | Echohl None
|
||||
call s:Msg('tar#Read', 'error', "cannot lcd to temporary directory")
|
||||
let &report= repkeep
|
||||
return
|
||||
endtry
|
||||
@ -333,7 +326,7 @@ fun! tar#Read(fname,mode)
|
||||
elseif fname =~ '\.bz3$' && executable("bz3cat")
|
||||
let decmp= "|bz3cat"
|
||||
let doro = 1
|
||||
elseif fname =~ '\.t\=gz$' && executable("zcat")
|
||||
elseif fname =~ '\.t\=gz$' && executable("zcat")
|
||||
let decmp= "|zcat"
|
||||
let doro = 1
|
||||
elseif fname =~ '\.lzma$' && executable("lzcat")
|
||||
@ -356,68 +349,66 @@ fun! tar#Read(fname,mode)
|
||||
endif
|
||||
endif
|
||||
|
||||
if exists("g:tar_secure")
|
||||
let tar_secure= " -- "
|
||||
else
|
||||
let tar_secure= " "
|
||||
endif
|
||||
|
||||
if tarfile =~# '\.bz2$'
|
||||
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif tarfile =~# '\.bz3$'
|
||||
exe "sil! r! bzip3 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! bzip3 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif tarfile =~# '\.\(gz\)$'
|
||||
exe "sil! r! gzip -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! gzip -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif tarfile =~# '\(\.tgz\|\.tbz\|\.txz\)'
|
||||
let filekind= s:Header(tarfile)
|
||||
if filekind =~? "bzip2"
|
||||
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif filekind =~ "bzip3"
|
||||
exe "sil! r! bzip3 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! bzip3 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif filekind =~? "xz"
|
||||
exe "sil! r! xz -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! xz -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif filekind =~? "zstd"
|
||||
exe "sil! r! zstd --decompress --stdout -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! zstd --decompress --stdout -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif filekind =~? "gzip"
|
||||
exe "sil! r! gzip -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! gzip -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
endif
|
||||
|
||||
elseif tarfile =~# '\.lrp$'
|
||||
exe "sil! r! cat -- ".shellescape(tarfile,1)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! cat -- ".shellescape(tarfile,1)." | gzip -d -c - | ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif tarfile =~# '\.lzma$'
|
||||
exe "sil! r! lzma -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! lzma -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif tarfile =~# '\.\(xz\|txz\)$'
|
||||
exe "sil! r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! xz --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
elseif tarfile =~# '\.\(lz4\|tlz4\)$'
|
||||
exe "sil! r! lz4 --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "sil! r! lz4 --decompress --stdout -- ".shellescape(tarfile,1)." | ".g:tar_cmd." -".g:tar_readoptions." - ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
else
|
||||
if tarfile =~ '^\s*-'
|
||||
" A file name starting with a dash is taken as an option. Prepend ./ to avoid that.
|
||||
let tarfile = substitute(tarfile, '-', './-', '')
|
||||
endif
|
||||
exe "silent r! ".g:tar_cmd." -".g:tar_readoptions.shellescape(tarfile,1)." ".tar_secure.shellescape(fname,1).decmp
|
||||
exe "silent r! ".g:tar_cmd." -".g:tar_readoptions.shellescape(tarfile,1)." ".g:tar_secure.shellescape(fname,1).decmp
|
||||
exe "read ".escape_file
|
||||
endif
|
||||
if get(b:, 'leading_slash', 0)
|
||||
sil g/^tar: /d
|
||||
endif
|
||||
|
||||
redraw!
|
||||
|
||||
if v:shell_error != 0
|
||||
if v:shell_error != 0
|
||||
lcd ..
|
||||
call s:Rmdir("_ZIPVIM_")
|
||||
exe "lcd ".fnameescape(curdir)
|
||||
echohl Error | echo "***error*** (tar#Read) sorry, unable to open or extract ".tarfile." with ".fname | echohl None
|
||||
call s:Msg('tar#Read', 'error', $"sorry, unable to open or extract {tarfile} with {fname}")
|
||||
endif
|
||||
|
||||
if doro
|
||||
@ -426,7 +417,6 @@ if v:shell_error != 0
|
||||
endif
|
||||
|
||||
let b:tarfile= a:fname
|
||||
exe "file tarfile::".fnameescape(fname)
|
||||
|
||||
" cleanup
|
||||
keepj sil! 0d
|
||||
@ -434,7 +424,7 @@ if v:shell_error != 0
|
||||
|
||||
let &report= repkeep
|
||||
exe "lcd ".fnameescape(curdir)
|
||||
silent exe "file tarfile::".escape_file
|
||||
silent exe "file tarfile::". fname->fnameescape()
|
||||
endfun
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
@ -446,22 +436,35 @@ fun! tar#Write(fname)
|
||||
let curdir= b:curdir
|
||||
let tmpdir= b:tmpdir
|
||||
|
||||
if !exists("g:tar_secure") && a:fname =~ '^\s*-\|\s\+-'
|
||||
redraw!
|
||||
echohl WarningMsg | echo '***warning*** (tar#Write) rejecting tarfile member<'.a:fname.'> because of embedded "-"'
|
||||
return
|
||||
endif
|
||||
|
||||
" sanity checks
|
||||
if !executable(g:tar_cmd)
|
||||
redraw!
|
||||
let &report= repkeep
|
||||
return
|
||||
endif
|
||||
|
||||
let tarfile = substitute(b:tarfile,'tarfile:\(.\{-}\)::.*$','\1','')
|
||||
let fname = substitute(b:tarfile,'tarfile:.\{-}::\(.*\)$','\1','')
|
||||
|
||||
if get(b:, 'leading_slash', 0)
|
||||
call s:Msg('tar#Write', 'error', $"sorry, not attempting to update {tarfile} with {fname}")
|
||||
let &report= repkeep
|
||||
return
|
||||
endif
|
||||
|
||||
if !isdirectory(fnameescape(tmpdir))
|
||||
call mkdir(fnameescape(tmpdir), 'p')
|
||||
endif
|
||||
exe $"lcd {fnameescape(tmpdir)}"
|
||||
if isdirectory("_ZIPVIM_")
|
||||
call s:Rmdir("_ZIPVIM_")
|
||||
endif
|
||||
call mkdir("_ZIPVIM_")
|
||||
lcd _ZIPVIM_
|
||||
let dir = fnamemodify(fname, ':p:h')
|
||||
if dir !~# '_ZIPVIM_$'
|
||||
call mkdir(dir)
|
||||
endif
|
||||
|
||||
" handle compressed archives
|
||||
if tarfile =~# '\.bz2'
|
||||
call system("bzip2 -d -- ".shellescape(tarfile,0))
|
||||
@ -500,8 +503,7 @@ fun! tar#Write(fname)
|
||||
" Note: no support for name.tar.tbz/.txz/.tgz/.tlz4/.tzst
|
||||
|
||||
if v:shell_error != 0
|
||||
redraw!
|
||||
echohl Error | echo "***error*** (tar#Write) sorry, unable to update ".tarfile." with ".fname | echohl None
|
||||
call s:Msg('tar#Write', 'error', $"sorry, unable to update {tarfile} with {fname}")
|
||||
else
|
||||
|
||||
if fname =~ '/'
|
||||
@ -519,28 +521,22 @@ fun! tar#Write(fname)
|
||||
let tarfile = substitute(tarfile, '-', './-', '')
|
||||
endif
|
||||
|
||||
if exists("g:tar_secure")
|
||||
let tar_secure= " -- "
|
||||
else
|
||||
let tar_secure= " "
|
||||
endif
|
||||
exe "w! ".fnameescape(fname)
|
||||
" don't overwrite a file forcefully
|
||||
exe "w ".fnameescape(fname)
|
||||
if has("win32unix") && executable("cygpath")
|
||||
let tarfile = substitute(system("cygpath ".shellescape(tarfile,0)),'\n','','e')
|
||||
endif
|
||||
|
||||
" delete old file from tarfile
|
||||
call system(g:tar_cmd." ".g:tar_delfile." ".shellescape(tarfile,0).tar_secure.shellescape(fname,0))
|
||||
" Note: BSD tar does not support --delete flag
|
||||
call system(g:tar_cmd." ".g:tar_delfile." ".shellescape(tarfile,0).g:tar_secure.shellescape(fname,0))
|
||||
if v:shell_error != 0
|
||||
redraw!
|
||||
echohl Error | echo "***error*** (tar#Write) sorry, unable to update ".fnameescape(tarfile)." with ".fnameescape(fname) | echohl None
|
||||
call s:Msg('tar#Write', 'error', $"sorry, unable to update {fnameescape(tarfile)} with {fnameescape(fname)} --delete not supported?")
|
||||
else
|
||||
|
||||
" update tarfile with new file
|
||||
call system(g:tar_cmd." -".g:tar_writeoptions." ".shellescape(tarfile,0).tar_secure.shellescape(fname,0))
|
||||
call system(g:tar_cmd." -".g:tar_writeoptions." ".shellescape(tarfile,0).g:tar_secure.shellescape(fname,0))
|
||||
if v:shell_error != 0
|
||||
redraw!
|
||||
echohl Error | echo "***error*** (tar#Write) sorry, unable to update ".fnameescape(tarfile)." with ".fnameescape(fname) | echohl None
|
||||
call s:Msg('tar#Write', 'error', $"sorry, unable to update {fnameescape(tarfile)} with {fnameescape(fname)}")
|
||||
elseif exists("compress")
|
||||
call system(compress)
|
||||
if exists("tgz")
|
||||
@ -581,6 +577,7 @@ fun! tar#Diff(userfname,fname)
|
||||
if a:userfname != ""
|
||||
let fname= a:userfname
|
||||
endif
|
||||
exe "lcd ".fnameescape(b:tmpdir). '/_ZIPVIM_'
|
||||
if filereadable(fname)
|
||||
" sets current file (from tarball) for diff'ing
|
||||
" splits window vertically
|
||||
@ -604,12 +601,6 @@ fun! tar#Extract()
|
||||
set report=10
|
||||
let fname= getline(".")
|
||||
|
||||
if !exists("g:tar_secure") && fname =~ '^\s*-\|\s\+-'
|
||||
redraw!
|
||||
echohl WarningMsg | echo '***warning*** (tar#BrowseSelect) rejecting tarfile member<'.fname.'> because of embedded "-"'
|
||||
return
|
||||
endif
|
||||
|
||||
" sanity check
|
||||
if fname =~ '^"'
|
||||
let &report= repkeep
|
||||
@ -623,16 +614,16 @@ fun! tar#Extract()
|
||||
if filereadable(tarbase.".tar")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tar ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tar ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tar {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
echo "***note*** successfully extracted ". fname
|
||||
endif
|
||||
|
||||
elseif filereadable(tarbase.".tgz")
|
||||
let extractcmd= substitute(extractcmd,"-","-z","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tgz ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tgz ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tgz {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -641,7 +632,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-z","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tar.gz ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tar.gz ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tar.gz {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -650,7 +641,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-j","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tbz ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd."j ".tarbase.".tbz ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tbz {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -659,7 +650,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-j","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tar.bz2 ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd."j ".tarbase.".tar.bz2 ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tar.bz2 {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -668,7 +659,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-j","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tar.bz3 ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd."j ".tarbase.".tar.bz3 ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tar.bz3 {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -677,7 +668,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-J","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".txz ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".txz ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.txz {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -686,7 +677,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-J","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tar.xz ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tar.xz ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tar.xz {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -695,7 +686,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","--zstd","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tzst ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tzst ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tzst {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -704,7 +695,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","--zstd","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tar.zst ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tar.zst ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tar.zst {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -713,7 +704,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-I lz4","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tlz4 ".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tlz4 ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tlz4 {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -722,7 +713,7 @@ fun! tar#Extract()
|
||||
let extractcmd= substitute(extractcmd,"-","-I lz4","")
|
||||
call system(extractcmd." ".shellescape(tarbase).".tar.lz4".shellescape(fname))
|
||||
if v:shell_error != 0
|
||||
echohl Error | echo "***error*** ".extractcmd." ".tarbase.".tar.lz4 ".fname.": failed!" | echohl NONE
|
||||
call s:Msg('tar#Extract', 'error', $"{extractcmd} {tarbase}.tar.lz4 {fname}: failed!")
|
||||
else
|
||||
echo "***note*** successfully extracted ".fname
|
||||
endif
|
||||
@ -735,15 +726,7 @@ endfun
|
||||
" ---------------------------------------------------------------------
|
||||
" s:Rmdir: {{{2
|
||||
fun! s:Rmdir(fname)
|
||||
if has("unix")
|
||||
call system("/bin/rm -rf -- ".shellescape(a:fname,0))
|
||||
elseif has("win32") || has("win95") || has("win64") || has("win16")
|
||||
if &shell =~? "sh$"
|
||||
call system("/bin/rm -rf -- ".shellescape(a:fname,0))
|
||||
else
|
||||
call system("del /S ".shellescape(a:fname,0))
|
||||
endif
|
||||
endif
|
||||
call delete(a:fname, 'rf')
|
||||
endfun
|
||||
|
||||
" s:FileHeader: {{{2
|
||||
|
@ -15,6 +15,7 @@
|
||||
" 2024 Aug 18 by Vim Project: correctly handle special globbing chars
|
||||
" 2024 Aug 21 by Vim Project: simplify condition to detect MS-Windows
|
||||
" 2025 Mar 11 by Vim Project: handle filenames with leading '-' correctly
|
||||
" 2025 Jul 12 by Vim Project: drop ../ on write to prevent path traversal attacks
|
||||
" License: Vim License (see vim's :help license)
|
||||
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
|
||||
" Permission is hereby granted to use and distribute this code,
|
||||
@ -236,59 +237,62 @@ endfun
|
||||
" zip#Write: {{{2
|
||||
fun! zip#Write(fname)
|
||||
let dict = s:SetSaneOpts()
|
||||
let need_rename = 0
|
||||
defer s:RestoreOpts(dict)
|
||||
|
||||
" sanity checks
|
||||
if !executable(substitute(g:zip_zipcmd,'\s\+.*$','',''))
|
||||
call s:Mess('Error', "***error*** (zip#Write) sorry, your system doesn't appear to have the ".g:zip_zipcmd." program")
|
||||
return
|
||||
endif
|
||||
if !exists("*mkdir")
|
||||
call s:Mess('Error', "***error*** (zip#Write) sorry, mkdir() doesn't work on your system")
|
||||
return
|
||||
call s:Mess('Error', "***error*** (zip#Write) sorry, your system doesn't appear to have the ".g:zip_zipcmd." program")
|
||||
return
|
||||
endif
|
||||
|
||||
let curdir= getcwd()
|
||||
let tmpdir= tempname()
|
||||
if tmpdir =~ '\.'
|
||||
let tmpdir= substitute(tmpdir,'\.[^.]*$','','e')
|
||||
let tmpdir= substitute(tmpdir,'\.[^.]*$','','e')
|
||||
endif
|
||||
call mkdir(tmpdir,"p")
|
||||
|
||||
" attempt to change to the indicated directory
|
||||
if s:ChgDir(tmpdir,s:ERROR,"(zip#Write) cannot cd to temporary directory")
|
||||
return
|
||||
return
|
||||
endif
|
||||
|
||||
" place temporary files under .../_ZIPVIM_/
|
||||
if isdirectory("_ZIPVIM_")
|
||||
call delete("_ZIPVIM_", "rf")
|
||||
call delete("_ZIPVIM_", "rf")
|
||||
endif
|
||||
call mkdir("_ZIPVIM_")
|
||||
cd _ZIPVIM_
|
||||
|
||||
if has("unix")
|
||||
let zipfile = substitute(a:fname,'zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||
let fname = substitute(a:fname,'zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||
let zipfile = substitute(a:fname,'zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||
let fname = substitute(a:fname,'zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||
else
|
||||
let zipfile = substitute(a:fname,'^.\{-}zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||
let fname = substitute(a:fname,'^.\{-}zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||
let zipfile = substitute(a:fname,'^.\{-}zipfile://\(.\{-}\)::[^\\].*$','\1','')
|
||||
let fname = substitute(a:fname,'^.\{-}zipfile://.\{-}::\([^\\].*\)$','\1','')
|
||||
endif
|
||||
if fname =~ '^[.]\{1,2}/'
|
||||
call system(g:zip_zipcmd." -d ".s:Escape(fnamemodify(zipfile,":p"),0)." ".s:Escape(fname,0))
|
||||
let fname = fname->substitute('^\([.]\{1,2}/\)\+', '', 'g')
|
||||
let need_rename = 1
|
||||
endif
|
||||
|
||||
if fname =~ '/'
|
||||
let dirpath = substitute(fname,'/[^/]\+$','','e')
|
||||
if has("win32unix") && executable("cygpath")
|
||||
let dirpath = substitute(fname,'/[^/]\+$','','e')
|
||||
if has("win32unix") && executable("cygpath")
|
||||
let dirpath = substitute(system("cygpath ".s:Escape(dirpath,0)),'\n','','e')
|
||||
endif
|
||||
call mkdir(dirpath,"p")
|
||||
endif
|
||||
call mkdir(dirpath,"p")
|
||||
endif
|
||||
if zipfile !~ '/'
|
||||
let zipfile= curdir.'/'.zipfile
|
||||
let zipfile= curdir.'/'.zipfile
|
||||
endif
|
||||
|
||||
exe "w! ".fnameescape(fname)
|
||||
" don't overwrite files forcefully
|
||||
exe "w ".fnameescape(fname)
|
||||
if has("win32unix") && executable("cygpath")
|
||||
let zipfile = substitute(system("cygpath ".s:Escape(zipfile,0)),'\n','','e')
|
||||
let zipfile = substitute(system("cygpath ".s:Escape(zipfile,0)),'\n','','e')
|
||||
endif
|
||||
|
||||
if (has("win32") || has("win95") || has("win64") || has("win16")) && &shell !~? 'sh$'
|
||||
@ -297,21 +301,24 @@ fun! zip#Write(fname)
|
||||
|
||||
call system(g:zip_zipcmd." -u ".s:Escape(fnamemodify(zipfile,":p"),0)." ".s:Escape(fname,0))
|
||||
if v:shell_error != 0
|
||||
call s:Mess('Error', "***error*** (zip#Write) sorry, unable to update ".zipfile." with ".fname)
|
||||
call s:Mess('Error', "***error*** (zip#Write) sorry, unable to update ".zipfile." with ".fname)
|
||||
|
||||
elseif s:zipfile_{winnr()} =~ '^\a\+://'
|
||||
" support writing zipfiles across a network
|
||||
let netzipfile= s:zipfile_{winnr()}
|
||||
1split|enew
|
||||
let binkeep= &binary
|
||||
let eikeep = &ei
|
||||
set binary ei=all
|
||||
exe "noswapfile e! ".fnameescape(zipfile)
|
||||
call netrw#NetWrite(netzipfile)
|
||||
let &ei = eikeep
|
||||
let &binary = binkeep
|
||||
q!
|
||||
unlet s:zipfile_{winnr()}
|
||||
" support writing zipfiles across a network
|
||||
let netzipfile= s:zipfile_{winnr()}
|
||||
1split|enew
|
||||
let binkeep= &binary
|
||||
let eikeep = &ei
|
||||
set binary ei=all
|
||||
exe "noswapfile e! ".fnameescape(zipfile)
|
||||
call netrw#NetWrite(netzipfile)
|
||||
let &ei = eikeep
|
||||
let &binary = binkeep
|
||||
q!
|
||||
unlet s:zipfile_{winnr()}
|
||||
elseif need_rename
|
||||
exe $"sil keepalt file {fnameescape($"zipfile://{zipfile}::{fname}")}"
|
||||
call s:Mess('Warning', "***error*** (zip#Browse) Path Traversal Attack detected, dropping relative path")
|
||||
endif
|
||||
|
||||
" cleanup and restore current directory
|
||||
@ -320,7 +327,6 @@ fun! zip#Write(fname)
|
||||
call s:ChgDir(curdir,s:WARNING,"(zip#Write) unable to return to ".curdir."!")
|
||||
call delete(tmpdir, "rf")
|
||||
setlocal nomod
|
||||
|
||||
endfun
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
@ -333,15 +339,18 @@ fun! zip#Extract()
|
||||
|
||||
" sanity check
|
||||
if fname =~ '^"'
|
||||
return
|
||||
return
|
||||
endif
|
||||
if fname =~ '/$'
|
||||
call s:Mess('Error', "***error*** (zip#Extract) Please specify a file, not a directory")
|
||||
return
|
||||
call s:Mess('Error', "***error*** (zip#Extract) Please specify a file, not a directory")
|
||||
return
|
||||
elseif fname =~ '^[.]\?[.]/'
|
||||
call s:Mess('Error', "***error*** (zip#Browse) Path Traversal Attack detected, not extracting!")
|
||||
return
|
||||
endif
|
||||
if filereadable(fname)
|
||||
call s:Mess('Error', "***error*** (zip#Extract) <" .. fname .."> already exists in directory, not overwriting!")
|
||||
return
|
||||
call s:Mess('Error', "***error*** (zip#Extract) <" .. fname .."> already exists in directory, not overwriting!")
|
||||
return
|
||||
endif
|
||||
let target = fname->substitute('\[', '[[]', 'g')
|
||||
" unzip 6.0 does not support -- to denote end-of-arguments
|
||||
@ -363,13 +372,12 @@ fun! zip#Extract()
|
||||
" extract the file mentioned under the cursor
|
||||
call system($"{g:zip_extractcmd} -o {shellescape(b:zipfile)} {target}")
|
||||
if v:shell_error != 0
|
||||
call s:Mess('Error', "***error*** ".g:zip_extractcmd." ".b:zipfile." ".fname.": failed!")
|
||||
call s:Mess('Error', "***error*** ".g:zip_extractcmd." ".b:zipfile." ".fname.": failed!")
|
||||
elseif !filereadable(fname)
|
||||
call s:Mess('Error', "***error*** attempted to extract ".fname." but it doesn't appear to be present!")
|
||||
call s:Mess('Error', "***error*** attempted to extract ".fname." but it doesn't appear to be present!")
|
||||
else
|
||||
echomsg "***note*** successfully extracted ".fname
|
||||
echomsg "***note*** successfully extracted ".fname
|
||||
endif
|
||||
|
||||
endfun
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
|
@ -1,7 +1,7 @@
|
||||
" The default vimrc file.
|
||||
"
|
||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||
" Last Change: 2024 Dec 01
|
||||
" Last Change: 2025 Jul 13
|
||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
"
|
||||
" This is loaded if no vimrc file was found.
|
||||
@ -34,7 +34,6 @@ silent! while 0
|
||||
silent! endwhile
|
||||
|
||||
set ruler " show the cursor position all the time
|
||||
set showcmd " display incomplete commands
|
||||
|
||||
set ttimeout " time out for key codes
|
||||
set ttimeoutlen=100 " wait up to 100ms after Esc for special key
|
||||
|
@ -153,6 +153,7 @@ DOCS = \
|
||||
vim9class.txt \
|
||||
visual.txt \
|
||||
vietnamese.txt \
|
||||
wayland.txt \
|
||||
windows.txt \
|
||||
workshop.txt
|
||||
|
||||
@ -309,6 +310,7 @@ HTMLS = \
|
||||
vim9.html \
|
||||
vim9class.html \
|
||||
visual.html \
|
||||
wayland.html \
|
||||
windows.html \
|
||||
workshop.html
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 21
|
||||
*autocmd.txt* For Vim version 9.1. Last change: 2025 Jun 19
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -130,6 +130,10 @@ exception is that "<sfile>" is expanded when the autocmd is defined. Example:
|
||||
:au BufNewFile,BufRead *.html so <sfile>:h/html.vim
|
||||
|
||||
Here Vim expands <sfile> to the name of the file containing this line.
|
||||
However, <sfile> works differently in a function, in which case it's better to
|
||||
use `:execute` with <script> to achieve the same purpose:
|
||||
>
|
||||
:exe $'au BufNewFile,BufRead *.html so {expand("<script>:h")}/html.vim'
|
||||
|
||||
`:autocmd` adds to the list of autocommands regardless of whether they are
|
||||
already present. When your .vimrc file is sourced twice, the autocommands
|
||||
|
@ -1,4 +1,4 @@
|
||||
*builtin.txt* For Vim version 9.1. Last change: 2025 Jun 02
|
||||
*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -249,6 +249,8 @@ getcmdtype() String return current command-line type
|
||||
getcmdwintype() String return current command-line window type
|
||||
getcompletion({pat}, {type} [, {filtered}])
|
||||
List list of cmdline completion matches
|
||||
getcompletiontype({pat}) String return the type of the command-line
|
||||
completion using {pat}
|
||||
getcurpos([{winnr}]) List position of the cursor
|
||||
getcursorcharpos([{winnr}]) List character position of the cursor
|
||||
getcwd([{winnr} [, {tabnr}]]) String get the current working directory
|
||||
@ -2047,8 +2049,8 @@ complete_match([{lnum}, {col}]) *complete_match()*
|
||||
or empty string if no match was found or when using the
|
||||
default 'iskeyword' pattern.
|
||||
|
||||
When 'isexpand' is empty, uses the 'iskeyword' pattern
|
||||
"\k\+$" to find the start of the current keyword.
|
||||
When 'isexpand' is empty, uses the 'iskeyword' pattern "\k\+$"
|
||||
to find the start of the current keyword.
|
||||
|
||||
Examples: >
|
||||
set isexpand=.,->,/,/*,abc
|
||||
@ -4210,6 +4212,9 @@ getcmdcompltype() *getcmdcompltype()*
|
||||
|getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|.
|
||||
Returns an empty string when completion is not defined.
|
||||
|
||||
To get the type of the command-line completion for a specified
|
||||
string, use |getcompletiontype()|.
|
||||
|
||||
Return type: |String|
|
||||
|
||||
|
||||
@ -4328,6 +4333,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
||||
messages |:messages| suboptions
|
||||
option options
|
||||
packadd optional package |pack-add| names
|
||||
retab |:retab| suboptions
|
||||
runtime |:runtime| completion
|
||||
scriptnames sourced script names |:scriptnames|
|
||||
shellcmd Shell command
|
||||
@ -4368,6 +4374,15 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
|
||||
<
|
||||
Return type: list<string>
|
||||
|
||||
getcompletiontype({pat}) *getcompletiontype()*
|
||||
Return the type of the command-line completion using {pat}.
|
||||
When no corresponding completion type is found, an empty
|
||||
string is returned.
|
||||
To get the current command-line completion type, use
|
||||
|getcmdcompltype()|.
|
||||
|
||||
Return type: |String|
|
||||
|
||||
*getcurpos()*
|
||||
getcurpos([{winid}])
|
||||
Get the position of the cursor. This is like getpos('.'), but
|
||||
@ -9364,11 +9379,12 @@ searchcount([{options}]) *searchcount()*
|
||||
|
||||
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`: >
|
||||
wrong information because of 'maxsearchcount'.
|
||||
If the count exceeded 'maxsearchcount', the result must be
|
||||
'maxsearchcount' + 1. If you want to get correct information,
|
||||
specify `recompute: 1`: >
|
||||
|
||||
" result == maxcount + 1 (100) when many matches
|
||||
" result == 'maxsearchcount' + 1 when many matches
|
||||
let result = searchcount(#{recompute: 0})
|
||||
|
||||
" Below returns correct result (recompute defaults
|
||||
@ -9455,7 +9471,7 @@ searchcount([{options}]) *searchcount()*
|
||||
result. if search exceeded
|
||||
total count, "total" value
|
||||
becomes `maxcount + 1`
|
||||
(default: 99)
|
||||
(default: 'maxsearchcount')
|
||||
pos |List| `[lnum, col, off]` value
|
||||
when recomputing the result.
|
||||
this changes "current" result
|
||||
@ -12143,6 +12159,7 @@ uniq({list} [, {func} [, {dict}]]) *uniq()* *E882*
|
||||
:let newlist = uniq(copy(mylist))
|
||||
< The default compare function uses the string representation of
|
||||
each item. For the use of {func} and {dict} see |sort()|.
|
||||
For deduplicating text in the current buffer see |:uniq|.
|
||||
|
||||
Returns zero if {list} is not a |List|.
|
||||
|
||||
@ -13037,6 +13054,8 @@ vms VMS version of Vim.
|
||||
vreplace Compiled with |gR| and |gr| commands. (always true)
|
||||
vtp Compiled for vcon support |+vtp| (check vcon to find
|
||||
out if it works in the current console).
|
||||
wayland Compiled with Wayland protocol support.
|
||||
wayland_clipboard Compiled with support for Wayland selections/clipboard
|
||||
wildignore Compiled with 'wildignore' option.
|
||||
wildmenu Compiled with 'wildmenu' option.
|
||||
win16 old version for MS-Windows 3.1 (always false)
|
||||
|
@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 9.1. Last change: 2025 May 28
|
||||
*change.txt* For Vim version 9.1. Last change: 2025 Jul 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -20,6 +20,7 @@ commands with the "." command.
|
||||
5. Copying and moving text |copy-move|
|
||||
6. Formatting text |formatting|
|
||||
7. Sorting text |sorting|
|
||||
8. Deduplicating text |deduplicating|
|
||||
|
||||
For inserting text see |insert.txt|.
|
||||
|
||||
@ -990,22 +991,26 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
|
||||
|
||||
4.4 Changing tabs *change-tabs*
|
||||
*:ret* *:retab* *:retab!*
|
||||
:[range]ret[ab][!] [new_tabstop]
|
||||
:[range]ret[ab][!] [-indentonly] [{new-tabstop}]
|
||||
Replace all sequences of white-space containing a
|
||||
<Tab> with new strings of white-space using the new
|
||||
tabstop value given. If you do not specify a new
|
||||
tabstop size or it is zero, Vim uses the current value
|
||||
of 'tabstop'.
|
||||
<Tab> with new strings of white-space using
|
||||
{new-tabstop}. If you do not specify {new-tabstop} or
|
||||
it is zero, Vim uses the current value of 'tabstop'.
|
||||
The current value of 'tabstop' is always used to
|
||||
compute the width of existing tabs.
|
||||
With !, Vim also replaces strings of only normal
|
||||
spaces with tabs where appropriate.
|
||||
With 'expandtab' on, Vim replaces all tabs with the
|
||||
appropriate number of spaces.
|
||||
This command sets 'tabstop' to the new value given,
|
||||
and if performed on the whole file, which is default,
|
||||
should not make any visible change.
|
||||
Careful: This command modifies any <Tab> characters
|
||||
This command sets 'tabstop' to {new-tabstop} and if
|
||||
performed on the whole file, which is default, should
|
||||
not make any visible change.
|
||||
|
||||
When [-indentonly] is specified, only the leading
|
||||
white-space will be targeted. Any other consecutive
|
||||
white-space will not be changed.
|
||||
|
||||
Warning: This command modifies any <Tab> characters
|
||||
inside of strings in a C program. Use "\t" to avoid
|
||||
this (that's a good habit anyway).
|
||||
`:retab!` may also change a sequence of spaces by
|
||||
@ -1895,6 +1900,7 @@ And a few warnings:
|
||||
|
||||
Vim has a sorting function and a sorting command. The sorting function can be
|
||||
found here: |sort()|, |uniq()|.
|
||||
Also see |:uniq|.
|
||||
|
||||
*:sor* *:sort*
|
||||
:[range]sor[t][!] [b][f][i][l][n][o][r][u][x] [/{pattern}/]
|
||||
@ -1904,7 +1910,7 @@ found here: |sort()|, |uniq()|.
|
||||
With [!] the order is reversed.
|
||||
|
||||
With [i] case is ignored.
|
||||
|
||||
*:sort-l*
|
||||
With [l] sort uses the current collation locale.
|
||||
Implementation details: strcoll() is used to compare
|
||||
strings. See |:language| to check or set the collation
|
||||
@ -1937,13 +1943,14 @@ found here: |sort()|, |uniq()|.
|
||||
|
||||
With [b] sorting is done on the first binary number in
|
||||
the line (after or inside a {pattern} match).
|
||||
|
||||
*:sort-u* *:sort-uniq*
|
||||
With [u] (u stands for unique) only keep the first of
|
||||
a sequence of identical lines (ignoring case when [i]
|
||||
is used). Without this flag, a sequence of identical
|
||||
lines will be kept in their original order.
|
||||
Note that leading and trailing white space may cause
|
||||
lines to be different.
|
||||
When you just want to make things unique, use |:uniq|.
|
||||
|
||||
When /{pattern}/ is specified and there is no [r] flag
|
||||
the text matched with {pattern} is skipped, so that
|
||||
@ -1990,4 +1997,55 @@ The sorting can be interrupted, but if you interrupt it too late in the
|
||||
process you may end up with duplicated lines. This also depends on the system
|
||||
library function used.
|
||||
|
||||
==============================================================================
|
||||
8. Deduplicating text *deduplicating* *unique*
|
||||
|
||||
Vim has a deduplicating function and a deduplicating command. The
|
||||
deduplicating function can be found here: |uniq()|.
|
||||
Also see |:sort-uniq|.
|
||||
|
||||
*:uni* *:uniq*
|
||||
:[range]uni[q][!] [i][l][r][u] [/{pattern}/]
|
||||
Remove duplicate lines that are adjacent to each other
|
||||
in [range]. When no range is given, all lines are
|
||||
processed.
|
||||
|
||||
With [i] case is ignored when comparing lines.
|
||||
|
||||
With [l] comparison uses the current collation locale.
|
||||
See |:sort-l| for more details.
|
||||
|
||||
With [r] comparison is done on the text that matches
|
||||
/{pattern}/ instead of the full line.
|
||||
|
||||
With [u] only keep lines that do not repeat (i.e., are
|
||||
not immediately followed by the same line).
|
||||
|
||||
With [!] only keep lines that are immediately followed
|
||||
by a duplicate.
|
||||
|
||||
If both [!] and [u] are given, [u] is ignored and [!]
|
||||
takes effect.
|
||||
|
||||
When /{pattern}/ is specified and [r] is not used, the
|
||||
text matched with {pattern} is skipped and comparison
|
||||
is done on what comes after the match.
|
||||
'ignorecase' applies to the pattern, but 'smartcase'
|
||||
is not used.
|
||||
Instead of the slash any non-letter can be used.
|
||||
|
||||
For example, to remove adjacent duplicate lines based
|
||||
on the second comma-separated field: >
|
||||
:uniq /[^,]*,/
|
||||
< Or to keep only unique lines ignoring the first 5
|
||||
characters: >
|
||||
:uniq u /.\{5}/
|
||||
< If {pattern} is empty (e.g. // is used), the last
|
||||
search pattern is used.
|
||||
|
||||
Note that leading and trailing white space may cause
|
||||
lines to be considered different.
|
||||
To remove all duplicates regardless of position, use
|
||||
|:sort-u| or external tools.
|
||||
|
||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
|
@ -1,4 +1,4 @@
|
||||
*cmdline.txt* For Vim version 9.1. Last change: 2025 Mar 08
|
||||
*cmdline.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -415,7 +415,7 @@ CTRL-D List names that match the pattern in front of the cursor.
|
||||
to the end.
|
||||
The 'wildoptions' option can be set to "tagfile" to list the
|
||||
file of matching tags.
|
||||
*c_CTRL-I* *c_wildchar* *c_<Tab>*
|
||||
*c_CTRL-I* *c_wildchar* *c_<Tab>* */_<Tab>*
|
||||
'wildchar' option
|
||||
A match is done on the pattern in front of the cursor. The
|
||||
match (if there are several, the first match) is inserted
|
||||
@ -425,6 +425,10 @@ CTRL-D List names that match the pattern in front of the cursor.
|
||||
again and there were multiple matches, the next
|
||||
match is inserted. After the last match, the first is used
|
||||
again (wrap around).
|
||||
|
||||
In search context use <CTRL-V><Tab> or "\t" to search for a
|
||||
literal <Tab> instead of triggering completion.
|
||||
|
||||
The behavior can be changed with the 'wildmode' option.
|
||||
*c_<S-Tab>*
|
||||
<S-Tab> Like 'wildchar' or <Tab>, but begin with the last match and
|
||||
@ -458,7 +462,7 @@ CTRL-G When 'incsearch' is set, entering a search pattern for "/" or
|
||||
"?" and the current match is displayed then CTRL-G will move
|
||||
to the next match (does not take |search-offset| into account)
|
||||
Use CTRL-T to move to the previous match. Hint: on a regular
|
||||
keyboard T is above G.
|
||||
keyboard G is below T.
|
||||
*c_CTRL-T* */_CTRL-T*
|
||||
CTRL-T When 'incsearch' is set, entering a search pattern for "/" or
|
||||
"?" and the current match is displayed then CTRL-T will move
|
||||
|
@ -1,4 +1,4 @@
|
||||
*diff.txt* For Vim version 9.1. Last change: 2025 Mar 28
|
||||
*diff.txt* For Vim version 9.1. Last change: 2025 Jun 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -304,18 +304,20 @@ that the buffers will be equal within the specified range.
|
||||
|
||||
|
||||
When no [range] is given, the diff at the cursor position or just above it is
|
||||
affected. When [range] is used, Vim tries to only put or get the specified
|
||||
lines. When there are deleted lines, this may not always be possible.
|
||||
affected. There can be deleted lines below the last line of the buffer. When
|
||||
the cursor is on the last line in the buffer and there is no diff above this
|
||||
line, and no [range] is given, the diff below the cursor position will be used
|
||||
instead.
|
||||
|
||||
There can be deleted lines below the last line of the buffer. When the cursor
|
||||
is on the last line in the buffer and there is no diff above this line, the
|
||||
":diffget" and "do" commands will obtain lines from the other buffer.
|
||||
When [range] is used, Vim tries to only put or get the specified lines. When
|
||||
there are deleted lines, they will be used if they are between the lines
|
||||
specified by [range].
|
||||
|
||||
To be able to get those lines from another buffer in a [range] it's allowed to
|
||||
use the last line number plus one. This command gets all diffs from the other
|
||||
buffer: >
|
||||
To be able to put or get those lines to/from another buffer in a [range] it's
|
||||
allowed to use 0 and the last line number plus one. This command gets all
|
||||
diffs from the other buffer: >
|
||||
|
||||
:1,$+1diffget
|
||||
:0,$+1diffget
|
||||
|
||||
Note that deleted lines are displayed, but not counted as text lines. You
|
||||
can't move the cursor into them. To fill the deleted lines with the lines
|
||||
|
@ -1,4 +1,4 @@
|
||||
*editing.txt* For Vim version 9.1. Last change: 2025 Jun 03
|
||||
*editing.txt* For Vim version 9.1. Last change: 2025 Jun 25
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1342,15 +1342,15 @@ b:browsefilter variable. You would most likely set b:browsefilter in a
|
||||
filetype plugin, so that the browse dialog would contain entries related to
|
||||
the type of file you are currently editing. Disadvantage: This makes it
|
||||
difficult to start editing a file of a different type. To overcome this, you
|
||||
may want to add >
|
||||
can add the following as the final filter on Windows: >
|
||||
|
||||
All Files\t(*.*)\t*\n
|
||||
<
|
||||
as the final filter on Windows or >
|
||||
Or the following on other platforms, so that the user can still access any
|
||||
desired file: >
|
||||
|
||||
All Files\t(*)\t*\n"
|
||||
All Files\t(*)\t*\n
|
||||
<
|
||||
on other platforms, so that the user can still access any desired file.
|
||||
|
||||
To avoid setting browsefilter when Vim does not actually support it, you can
|
||||
use has("browsefilter"): >
|
||||
|
@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 9.1. Last change: 2025 Apr 02
|
||||
*eval.txt* For Vim version 9.1. Last change: 2025 Jul 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -2240,6 +2240,15 @@ v:charconvert_to
|
||||
The name of the character encoding of a file after conversion.
|
||||
Only valid while evaluating the 'charconvert' option.
|
||||
|
||||
*v:clipmethod*
|
||||
v:clipmethod The current method of accessing the clipboard that is being
|
||||
used. Can either have the value of:
|
||||
wayland The Wayland protocol is being used.
|
||||
x11 X11 selections are being used.
|
||||
none The above methods are unavailable or
|
||||
cannot be used.
|
||||
See 'clipmethod' for more details.
|
||||
|
||||
*v:cmdarg* *cmdarg-variable*
|
||||
v:cmdarg This variable is used for two purposes:
|
||||
1. The extra arguments given to a file read/write command.
|
||||
@ -2969,6 +2978,12 @@ v:vim_did_enter Zero until most of startup is done. It is set to one just
|
||||
*v:warningmsg* *warningmsg-variable*
|
||||
v:warningmsg Last given warning message. It's allowed to set this variable.
|
||||
|
||||
*v:wayland_display*
|
||||
v:wayland_display
|
||||
The name of the Wayland display that Vim is connected to.
|
||||
Equivalent to the $WAYLAND_DISPLAY environment variable.
|
||||
If this is empty, then Vim is not connected to any display.
|
||||
|
||||
*v:windowid* *windowid-variable*
|
||||
v:windowid When any X11/Wayland based GUI is running or when running in a
|
||||
terminal and Vim connects to the X server (|-X|) this will be
|
||||
@ -5149,6 +5164,10 @@ executable. It takes the following arguments:
|
||||
filetype string
|
||||
executable string
|
||||
|
||||
*package-open*
|
||||
The |:Open| and |:Launch| command are provided by the included plugin
|
||||
$VIMRUNTIME/plugin/openPlugin.vim
|
||||
|
||||
*dist#vim9#Open()* *:Open* *:URLOpen*
|
||||
*g:Openprg* *gx*
|
||||
dist#vim9#Open(file: string) ~
|
||||
@ -5159,6 +5178,9 @@ string specified in the variable is used instead.
|
||||
|
||||
The |:Open| user command uses file completion for its argument.
|
||||
|
||||
The |:URLOpen| user command works the same but does not perform file
|
||||
completion and therefore does not expand special characters |cmdline-special|.
|
||||
|
||||
This function is by default called using the gx mapping. In visual mode
|
||||
tries to open the visually selected text.
|
||||
|
||||
@ -5176,11 +5198,8 @@ NOTE: Escaping of the path is automatically applied.
|
||||
Usage: >vim
|
||||
:call dist#vim9#Open(<path>)
|
||||
:Open <path>
|
||||
:URLOpen <path>
|
||||
<
|
||||
*package-open*
|
||||
The |:Open| and |:Launch| command are provided by the included plugin
|
||||
$VIMRUNTIME/plugin/openPlugin.vim
|
||||
|
||||
*dist#vim9#Launch()* *:Launch*
|
||||
dist#vim9#Launch(file: string) ~
|
||||
|
||||
@ -5191,7 +5210,7 @@ The |:Launch| user command uses shell completion for its first argument.
|
||||
|
||||
NOTE: escaping of <args> is left to the user
|
||||
|
||||
Examples: >vim
|
||||
Examples: >
|
||||
vim9script
|
||||
|
||||
import autoload 'dist/vim9.vim'
|
||||
|
@ -1,4 +1,4 @@
|
||||
*fold.txt* For Vim version 9.1. Last change: 2024 Dec 17
|
||||
*fold.txt* For Vim version 9.1. Last change: 2025 Jul 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -164,7 +164,7 @@ level is found.
|
||||
If this proves difficult, the next best thing could be to cache all fold
|
||||
levels in a buffer-local variable (b:foldlevels) that is only updated on
|
||||
|b:changedtick|:
|
||||
>vim
|
||||
>
|
||||
vim9script
|
||||
def MyFoldFunc(): number
|
||||
if b:lasttick == b:changedtick
|
||||
@ -642,14 +642,17 @@ what you type!
|
||||
When using an operator, a closed fold is included as a whole. Thus "dl"
|
||||
deletes the whole closed fold under the cursor.
|
||||
|
||||
For Ex commands that work on buffer lines the range is adjusted to always
|
||||
For Ex commands that operate on buffer lines, the range is adjusted to always
|
||||
start at the first line of a closed fold and end at the last line of a closed
|
||||
fold. Thus this command: >
|
||||
fold. Thus, this command: >
|
||||
:s/foo/bar/g
|
||||
when used with the cursor on a closed fold, will replace "foo" with "bar" in
|
||||
all lines of the fold.
|
||||
This does not happen for |:folddoopen| and |:folddoclosed|.
|
||||
|
||||
Note that for some Ex commands like |:source| the range is only adjusted when
|
||||
using a two line specifiers [range].
|
||||
|
||||
When editing a buffer that has been edited before, the last used folding
|
||||
settings are used again. For manual folding the defined folds are restored.
|
||||
For all folding methods the manually opened and closed folds are restored.
|
||||
|
@ -1,4 +1,4 @@
|
||||
*help.txt* For Vim version 9.1. Last change: 2024 Dec 06
|
||||
*help.txt* For Vim version 9.1. Last change: 2025 Jun 27
|
||||
|
||||
VIM - main help file
|
||||
k
|
||||
@ -187,6 +187,9 @@ GUI ~
|
||||
|gui_w32.txt| Win32 GUI
|
||||
|gui_x11.txt| X11 GUI
|
||||
|
||||
System Integration ~
|
||||
|wayland.txt| Wayland protocol support
|
||||
|
||||
Interfaces ~
|
||||
|if_cscop.txt| using Cscope with Vim
|
||||
|if_lua.txt| Lua interface
|
||||
|
@ -1,4 +1,4 @@
|
||||
*helphelp.txt* For Vim version 9.1. Last change: 2025 Jun 03
|
||||
*helphelp.txt* For Vim version 9.1. Last change: 2025 Jul 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -410,6 +410,24 @@ and 'tabstop' options and the 'filetype' to "help". Never set a global option
|
||||
in such a modeline, that can have undesired consequences.
|
||||
|
||||
|
||||
STYLE
|
||||
|
||||
If your Vim has 'modeline' enabled, Vim should follow the preferred style
|
||||
automatically when editing built-in help files.
|
||||
|
||||
Vim help files should be formatted for a 'textwidth' of 78 characters, so they
|
||||
look good in a typical 80 x 24 terminal window.
|
||||
|
||||
Use two spaces between the final dot of a sentence of the first letter of the
|
||||
next sentence. Like this.
|
||||
|
||||
Use tab characters for aligning content, with a 'tabstop' setting of 8.
|
||||
This also helps reduce the file size.
|
||||
|
||||
Always use |:retab| after you have finished editing. Don't blindly use
|
||||
|:retab!|, always review what will be changed to avoid unwanted changes.
|
||||
|
||||
|
||||
TAGS
|
||||
|
||||
To define a help tag, place the name between asterisks ("*tag-name*"). The
|
||||
|
@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 9.1. Last change: 2025 Jun 02
|
||||
*index.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1264,6 +1264,7 @@ tag command action ~
|
||||
|:class| :class start of a class declaration
|
||||
|:clast| :cla[st] go to the specified error, default last one
|
||||
|:clearjumps| :cle[arjumps] clear the jump list
|
||||
|:clipreset| :clip[reset] reset 'clipmethod'
|
||||
|:clist| :cl[ist] list all errors
|
||||
|:close| :clo[se] close current window
|
||||
|:cmap| :cm[ap] like ":map" but for Command-line mode
|
||||
@ -1740,6 +1741,7 @@ tag command action ~
|
||||
|:unabbreviate| :una[bbreviate] remove abbreviation
|
||||
|:unhide| :unh[ide] open a window for each loaded file in the
|
||||
buffer list
|
||||
|:uniq| :uni[q] uniq lines
|
||||
|:unlet| :unl[et] delete variable
|
||||
|:unlockvar| :unlo[ckvar] unlock variables
|
||||
|:unmap| :unm[ap] remove mapping
|
||||
@ -1776,6 +1778,7 @@ tag command action ~
|
||||
|:winsize| :wi[nsize] get or set window size (obsolete)
|
||||
|:wincmd| :winc[md] execute a Window (CTRL-W) command
|
||||
|:winpos| :winp[os] get or set window position
|
||||
|:wlrestore| :wl[restore] restore the Wayland compositor connection
|
||||
|:wnext| :wn[ext] write to a file and go to next file in
|
||||
argument list
|
||||
|:wprevious| :wp[revious] write to a file and go to previous file in
|
||||
|
@ -1,4 +1,4 @@
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Jun 02
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Jul 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -529,7 +529,7 @@ paragraph, no matter where the cursor currently is. Or you can use Visual
|
||||
mode: hit "v", move to the end of the block, and type "gq". See also |gq|.
|
||||
|
||||
==============================================================================
|
||||
4. 'expandtab', 'smarttab' and 'softtabstop' options *ins-expandtab*
|
||||
4. 'expandtab', 'softtabstop' and 'smarttab' options *ins-expandtab*
|
||||
|
||||
If the 'expandtab' option is on, spaces will be used to fill the amount of
|
||||
whitespace of the tab. If you want to enter a real <Tab>, type CTRL-V first
|
||||
@ -540,13 +540,6 @@ number of characters in the line increases. Backspacing will delete one
|
||||
space at a time. The original character will be put back for only one space
|
||||
that you backspace over (the last one).
|
||||
|
||||
*ins-smarttab*
|
||||
When the 'smarttab' option is on, a <Tab> inserts 'shiftwidth' positions at
|
||||
the beginning of a line and 'tabstop' positions in other places. This means
|
||||
that often spaces instead of a <Tab> character are inserted. When 'smarttab'
|
||||
is off, a <Tab> always inserts 'tabstop' positions, and 'shiftwidth' is only
|
||||
used for ">>" and the like.
|
||||
|
||||
*ins-softtabstop*
|
||||
When the 'softtabstop' option is non-zero, a <Tab> inserts 'softtabstop'
|
||||
positions, and a <BS> used to delete white space, will delete 'softtabstop'
|
||||
@ -561,6 +554,13 @@ the cursor. Otherwise you cannot always delete a single character before the
|
||||
cursor. You will have to delete 'softtabstop' characters first, and then type
|
||||
extra spaces to get where you want to be.
|
||||
|
||||
*ins-smarttab*
|
||||
When the 'smarttab' option is on, the <Tab> key indents by 'shiftwidth' if the
|
||||
cursor is in leading whitespace. The <BS> key has the opposite effect. This
|
||||
behaves as if 'softtabstop' were set to the value of 'shiftwidth'. This option
|
||||
allows the user to set 'softtabstop' to a value other than 'shiftwidth' and
|
||||
still use the <Tab> key for indentation.
|
||||
|
||||
==============================================================================
|
||||
5. Replace mode *Replace* *Replace-mode* *mode-replace*
|
||||
|
||||
@ -648,7 +648,7 @@ Completion can be done for:
|
||||
10. User defined completion |i_CTRL-X_CTRL-U|
|
||||
11. omni completion |i_CTRL-X_CTRL-O|
|
||||
12. Spelling suggestions |i_CTRL-X_s|
|
||||
13. keywords in 'complete' |i_CTRL-N| |i_CTRL-P|
|
||||
13. completions from 'complete' |i_CTRL-N| |i_CTRL-P|
|
||||
14. contents from registers |i_CTRL-X_CTRL-R|
|
||||
|
||||
Additionally, |i_CTRL-X_CTRL-Z| stops completion without changing the text.
|
||||
@ -659,6 +659,9 @@ and one of the CTRL-X commands. You exit CTRL-X mode by typing a key that is
|
||||
not a valid CTRL-X mode command. Valid keys are the CTRL-X command itself,
|
||||
CTRL-N (next), and CTRL-P (previous).
|
||||
|
||||
By default, the possible completions are showed in a menu and the first
|
||||
completion is inserted into the text. This can be adjusted with 'completeopt'.
|
||||
|
||||
To get the current completion information, |complete_info()| can be used.
|
||||
Also see the 'infercase' option if you want to adjust the case of the match.
|
||||
|
||||
@ -1100,25 +1103,23 @@ CTRL-X s Locate the word in front of the cursor and find the
|
||||
previous one.
|
||||
|
||||
|
||||
Completing keywords from different sources *compl-generic*
|
||||
Completing from different sources *compl-generic*
|
||||
|
||||
*i_CTRL-N*
|
||||
CTRL-N Find next match for words that start with the
|
||||
keyword in front of the cursor, looking in places
|
||||
specified with the 'complete' option. The found
|
||||
keyword is inserted in front of the cursor.
|
||||
CTRL-N Find the next match for a word ending at the cursor,
|
||||
using the sources specified in the 'complete' option.
|
||||
All sources complete from keywords, except functions,
|
||||
which may complete from non-keyword. The matched
|
||||
text is inserted before the cursor.
|
||||
|
||||
*i_CTRL-P*
|
||||
CTRL-P Find previous match for words that start with the
|
||||
keyword in front of the cursor, looking in places
|
||||
specified with the 'complete' option. The found
|
||||
keyword is inserted in front of the cursor.
|
||||
CTRL-P Same as CTRL-N, but find the previous match.
|
||||
|
||||
CTRL-N Search forward for next matching keyword. This
|
||||
keyword replaces the previous matching keyword.
|
||||
CTRL-N Search forward through the matches and insert the
|
||||
next one.
|
||||
|
||||
CTRL-P Search backwards for next matching keyword. This
|
||||
keyword replaces the previous matching keyword.
|
||||
CTRL-P Search backward through the matches and insert the
|
||||
previous one.
|
||||
|
||||
CTRL-X CTRL-N or
|
||||
CTRL-X CTRL-P Further use of CTRL-X CTRL-N or CTRL-X CTRL-P will
|
||||
|
@ -1,4 +1,4 @@
|
||||
*map.txt* For Vim version 9.1. Last change: 2024 Oct 08
|
||||
*map.txt* For Vim version 9.1. Last change: 2025 Jul 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1654,6 +1654,7 @@ completion can be enabled:
|
||||
-complete=messages |:messages| suboptions
|
||||
-complete=option options
|
||||
-complete=packadd optional package |pack-add| names
|
||||
-complete=retab |:retab| suboptions
|
||||
-complete=runtime file and directory names in |'runtimepath'|
|
||||
-complete=scriptnames sourced script names
|
||||
-complete=shellcmd Shell command
|
||||
|
@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 9.1. Last change: 2025 Jun 02
|
||||
*options.txt* For Vim version 9.1. Last change: 2025 Jul 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1785,7 +1785,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
for X-windows, "" otherwise)
|
||||
global
|
||||
{only in GUI versions or when the |+xterm_clipboard|
|
||||
feature is included}
|
||||
or |+wayland_clipboard| features are included}
|
||||
This option is a list of comma-separated names.
|
||||
Note: if one of the items is "exclude:", then you can't add an item
|
||||
after that. Therefore do not append an item with += but use ^= to
|
||||
@ -1810,12 +1810,14 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
register '*' for all yank, delete, change and put
|
||||
operations which would normally go to the unnamed
|
||||
register. When "unnamed" is also included to the
|
||||
option, yank operations (but not delete, change or
|
||||
put) will additionally copy the text into register
|
||||
'*'.
|
||||
Only available with the |+X11| feature.
|
||||
Availability can be checked with: >
|
||||
if has('unnamedplus')
|
||||
option, yank operations (but not delete, change or put)
|
||||
will additionally copy the text into register '*'. If
|
||||
Wayland is being used and the compositor does not
|
||||
support the primary-selection-unstable-v1 protocol,
|
||||
then the regular selection is used in its place. Only
|
||||
available with the |+X11| or |+wayland_clipboard|
|
||||
feature. Availability can be checked with: >
|
||||
if has('unnamedplus')
|
||||
<
|
||||
*clipboard-autoselect*
|
||||
autoselect Works like the 'a' flag in 'guioptions': If present,
|
||||
@ -1852,24 +1854,54 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
exclude:{pattern}
|
||||
Defines a pattern that is matched against the name of
|
||||
the terminal 'term'. If there is a match, no
|
||||
connection will be made to the X server. This is
|
||||
useful in this situation:
|
||||
connection will be made to the X server or Wayland
|
||||
compositor. This is useful in this situation:
|
||||
- Running Vim in a console.
|
||||
- $DISPLAY is set to start applications on another
|
||||
display.
|
||||
- You do not want to connect to the X server in the
|
||||
console, but do want this in a terminal emulator.
|
||||
To never connect to the X server use: >
|
||||
- $DISPLAY/$WAYLAND_DISPLAY is set to start
|
||||
applications on another display.
|
||||
- You do not want to connect to the X server/Wayland
|
||||
compositor in the console, but do want this in a
|
||||
terminal emulator.
|
||||
To never connect to the X server/Wayland compositor
|
||||
use: >
|
||||
exclude:.*
|
||||
< This has the same effect as using the |-X| argument.
|
||||
< This has the same effect as using the |-X| or |-Y|
|
||||
argument.
|
||||
Note that when there is no connection to the X server
|
||||
the window title won't be restored and the clipboard
|
||||
cannot be accessed.
|
||||
cannot be accessed. This is the same for Wayland,
|
||||
except there is no title restoring.
|
||||
The value of 'magic' is ignored, {pattern} is
|
||||
interpreted as if 'magic' was on.
|
||||
The rest of the option value will be used for
|
||||
{pattern}, this must be the last entry.
|
||||
|
||||
*'clipmethod'* *'cpm'*
|
||||
'clipmethod' 'cpm' string (default for Unix: "wayland,x11",
|
||||
for VMS: "x11",
|
||||
otherwise: "")
|
||||
global
|
||||
{only when the |+xterm_clipboard| or
|
||||
|+wayland_clipboard| features are included}
|
||||
Specifies which method of accessing the system clipboard is used,
|
||||
depending on which method works first or is available. Supported
|
||||
methods are:
|
||||
wayland Wayland selections
|
||||
x11 X11 selections
|
||||
|
||||
Note: This option is ignored when either the GUI is running or if Vim
|
||||
is run on a system without Wayland or X11 support, such as Windows or
|
||||
macOS. The GUI or system way of accessing the clipboard is always
|
||||
used instead.
|
||||
|
||||
The option value is a list of comma separated items. The list is
|
||||
parsed left to right in order, and the first method that Vim
|
||||
determines is available or is working is used as the actual method for
|
||||
accessing the clipboard.
|
||||
|
||||
The current method that is being used can be found in the |v:clipmethod|
|
||||
variable.
|
||||
|
||||
*'cmdheight'* *'ch'*
|
||||
'cmdheight' 'ch' number (default 1)
|
||||
global or local to tab page
|
||||
@ -2043,7 +2075,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'smartcase' + off no automatic ignore case switch
|
||||
'smartindent' + off no smart indentation
|
||||
'smarttab' + off no smart tab size
|
||||
'softtabstop' + 0 tabs are always 'tabstop' positions
|
||||
'softtabstop' + 0 no soft tab stops
|
||||
'startofline' + on goto startofline with some commands
|
||||
'tagcase' & "followic" 'ignorecase' when searching tags file
|
||||
'tagrelative' & off tag file names are not relative
|
||||
@ -2091,15 +2123,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
name of a function or a |Funcref|. For |Funcref| values,
|
||||
spaces must be escaped with a backslash ('\'), and commas with
|
||||
double backslashes ('\\') (see |option-backslash|).
|
||||
Unlike other sources, functions can provide completions starting
|
||||
from a non-keyword character before the cursor, and their
|
||||
start position for replacing text may differ from other sources.
|
||||
If the Dict returned by the {func} includes {"refresh": "always"},
|
||||
the function will be invoked again whenever the leading text
|
||||
changes.
|
||||
Completion matches are always inserted at the keyword
|
||||
boundary, regardless of the column returned by {func} when
|
||||
a:findstart is 1. This ensures compatibility with other
|
||||
completion sources.
|
||||
To make further modifications to the inserted text, {func}
|
||||
can make use of |CompleteDonePre|.
|
||||
If generating matches is potentially slow, |complete_check()|
|
||||
should be used to avoid blocking and preserve editor
|
||||
responsiveness.
|
||||
@ -2249,6 +2278,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
completion in the preview window. Only works in
|
||||
combination with "menu" or "menuone".
|
||||
|
||||
This option does not apply to |cmdline-completion|. See 'wildoptions'
|
||||
for that.
|
||||
|
||||
*'completepopup'* *'cpp'*
|
||||
'completepopup' 'cpp' string (default empty)
|
||||
global
|
||||
@ -2355,7 +2387,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
*'cpoptions'* *'cpo'* *cpo*
|
||||
'cpoptions' 'cpo' string (Vim default: "aABceFsz",
|
||||
Vi default: all flags, except "#{|&/\."
|
||||
Vi default: all flags, except "#{|&/\.~"
|
||||
|$VIM_POSIX|: all flags)
|
||||
global
|
||||
A sequence of single character flags. When a character is present
|
||||
@ -2645,6 +2677,13 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
character, the cursor won't move. When not included,
|
||||
the cursor would skip over it and jump to the
|
||||
following occurrence.
|
||||
*cpo-~*
|
||||
~ When included, don't resolve symbolic links when
|
||||
changing directory with |:cd|, |:lcd|, or |:tcd|.
|
||||
This preserves the symbolic link path in buffer names
|
||||
and when displaying the current directory. When
|
||||
excluded (default), symbolic links are resolved to
|
||||
their target paths.
|
||||
|
||||
POSIX flags. These are not included in the Vi default value, except
|
||||
when $VIM_POSIX was set on startup. |posix|
|
||||
@ -3387,6 +3426,73 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
buffers, for which window and buffer related autocommands can be
|
||||
ignored indefinitely without affecting the global 'eventignore'.
|
||||
|
||||
Note: The following events are considered to happen outside of a
|
||||
window context and thus cannot be ignored by 'eventignorewin':
|
||||
|
||||
|CmdlineChanged|,
|
||||
|CmdlineEnter|,
|
||||
|CmdlineLeave|,
|
||||
|CmdlineLeavePre|,
|
||||
|CmdUndefined|,
|
||||
|CmdwinEnter|,
|
||||
|CmdwinLeave|,
|
||||
|ColorScheme|,
|
||||
|ColorSchemePre|,
|
||||
|CompleteChanged|,
|
||||
|CompleteDone|,
|
||||
|CompleteDonePre|,
|
||||
|DiffUpdated|,
|
||||
|DirChanged|,
|
||||
|DirChangedPre|,
|
||||
|EncodingChanged|,
|
||||
|ExitPre|,
|
||||
|FocusGained|,
|
||||
|FocusLost|,
|
||||
|FuncUndefined|,
|
||||
|GUIEnter|,
|
||||
|GUIFailed|,
|
||||
|KeyInputPre|,
|
||||
|MenuPopup|,
|
||||
|ModeChanged|,
|
||||
|OptionSet|,
|
||||
|QuickFixCmdPost|,
|
||||
|QuickFixCmdPre|,
|
||||
|QuitPre|,
|
||||
|RemoteReply|,
|
||||
|SafeState|,
|
||||
|SafeStateAgain|,
|
||||
|SessionLoadPost|,
|
||||
|SessionWritePost|,
|
||||
|ShellCmdPost|,
|
||||
|SigUSR1|,
|
||||
|SourceCmd|,
|
||||
|SourcePost|,
|
||||
|SourcePre|,
|
||||
|SpellFileMissing|,
|
||||
|StdinReadPost|,
|
||||
|StdinReadPre|,
|
||||
|SwapExists|,
|
||||
|Syntax|,
|
||||
|TabClosed|,
|
||||
|TabClosedPre|,
|
||||
|TabEnter|,
|
||||
|TabLeave|,
|
||||
|TabNew|,
|
||||
|TermChanged|,
|
||||
|TerminalOpen|,
|
||||
|TerminalWinOpen|,
|
||||
|TermResponse|,
|
||||
|TermResponseAll|,
|
||||
|User|,
|
||||
|VimEnter|,
|
||||
|VimLeave|,
|
||||
|VimLeavePre|,
|
||||
|VimResized|,
|
||||
|VimResume|,
|
||||
|VimSuspend|,
|
||||
|WinNew|,
|
||||
|WinNewPre|
|
||||
|
||||
*'expandtab'* *'et'* *'noexpandtab'* *'noet'*
|
||||
'expandtab' 'et' boolean (default off)
|
||||
local to buffer
|
||||
@ -4495,7 +4601,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|hl-Directory| d directories in CTRL-D listing and other special
|
||||
things in listings
|
||||
|hl-ErrorMsg| e error messages
|
||||
h (obsolete, ignored)
|
||||
|hl-IncSearch| i 'incsearch' highlighting
|
||||
|hl-CurSearch| y current instance of last search pattern
|
||||
|hl-Search| l last search pattern highlighting (see 'hlsearch')
|
||||
@ -4517,9 +4622,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|hl-Title| t Titles for output from ":set all", ":autocmd" etc.
|
||||
|hl-VertSplit| c column used to separate vertically split windows
|
||||
|hl-Visual| v Visual mode
|
||||
|hl-VisualNOS| V Visual mode when Vim does is "Not Owning the
|
||||
Selection" Only X11 Gui's |gui-x11| and
|
||||
|xterm-clipboard|.
|
||||
|hl-VisualNOS| V Visual mode when Vim is "Not Owning the
|
||||
Selection" Only X11 Gui's |gui-x11|,
|
||||
|xterm-clipboard| and |wayland-selections|
|
||||
|hl-WarningMsg| w warning messages
|
||||
|hl-WildMenu| W wildcard matches displayed for 'wildmenu'
|
||||
|hl-Folded| f line used for closed folds
|
||||
@ -5793,6 +5898,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
used.
|
||||
Also see 'maxmem'.
|
||||
|
||||
*'maxsearchcount'* *'msc'*
|
||||
'maxsearchcount' 'msc' number (default 99)
|
||||
global
|
||||
Maximum number of matches shown for the search count status |shm-S|
|
||||
When the number of matches exceeds this value, Vim shows ">" instead
|
||||
of the exact count to keep searching fast.
|
||||
Note: larger values may impact performance.
|
||||
The value must be between 1 and 9999.
|
||||
|
||||
*'menuitems'* *'mis'*
|
||||
'menuitems' 'mis' number (default 25)
|
||||
global
|
||||
@ -7564,7 +7678,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
is shown), the "search hit BOTTOM, continuing at TOP" and
|
||||
"search hit TOP, continuing at BOTTOM" messages are only
|
||||
indicated by a "W" (Mnemonic: Wrapped) letter before the
|
||||
search count statistics.
|
||||
search count statistics. The maximum limit can be set with
|
||||
the 'maxsearchcount' option.
|
||||
|
||||
This gives you the opportunity to avoid that a change between buffers
|
||||
requires you to hit <Enter>, but still gives as useful a message as
|
||||
@ -7612,8 +7727,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
:setlocal showbreak=NONE
|
||||
<
|
||||
*'showcmd'* *'sc'* *'noshowcmd'* *'nosc'*
|
||||
'showcmd' 'sc' boolean (Vim default: on, off for Unix,
|
||||
Vi default: off, set in |defaults.vim|)
|
||||
'showcmd' 'sc' boolean (Vim default: on, Vi default: off)
|
||||
global
|
||||
Show (partial) command in the last line of the screen. Set this
|
||||
option off if your terminal is slow.
|
||||
@ -7704,7 +7818,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'showtabpanel'* *'stpl'*
|
||||
'showtabpanel' 'stpl' number (default 0)
|
||||
global
|
||||
{not in Vi}
|
||||
{not available when compiled without the |+tabpanel|
|
||||
feature}
|
||||
The value of this option specifies when the |tabpanel| with tab page
|
||||
@ -7712,7 +7825,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
0: never
|
||||
1: only if there are at least two tab pages
|
||||
2: always
|
||||
This is for the non-GUI implementation of the tabpanel only.
|
||||
See |tab-page| for more information about tab page labels.
|
||||
|
||||
*'sidescroll'* *'ss'*
|
||||
@ -7803,19 +7915,16 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'smarttab'* *'sta'* *'nosmarttab'* *'nosta'*
|
||||
'smarttab' 'sta' boolean (default off)
|
||||
global
|
||||
When on, a <Tab> in front of a line inserts blanks according to
|
||||
'shiftwidth'. 'tabstop' or 'softtabstop' is used in other places. A
|
||||
<BS> will delete a 'shiftwidth' worth of space at the start of the
|
||||
line.
|
||||
When off, a <Tab> always inserts blanks according to 'tabstop' or
|
||||
'softtabstop'. 'shiftwidth' is only used for shifting text left or
|
||||
right |shift-left-right|.
|
||||
What gets inserted (a <Tab> or spaces) depends on the 'expandtab'
|
||||
option. Also see |ins-expandtab|. When 'expandtab' is not set, the
|
||||
number of spaces is minimized by using <Tab>s.
|
||||
This option is reset when 'paste' is set and restored when 'paste' is
|
||||
reset.
|
||||
NOTE: This option is reset when 'compatible' is set.
|
||||
When enabled, the <Tab> key will indent by 'shiftwidth' if the cursor
|
||||
is in leading whitespace. The <BS> key has the opposite effect.
|
||||
In leading whitespace, this has the same effect as setting
|
||||
'softtabstop' to the value of 'shiftwidth'.
|
||||
This option is reset when 'compatible' is set; it is temporarily
|
||||
disabled when 'paste' is enabled, and restored when 'paste' is turned
|
||||
off.
|
||||
NOTE: in most cases, using 'softtabstop' is a better option. Have a
|
||||
look at section |30.5| of the user guide for detailed
|
||||
explanations on how Vim works with tabs and spaces.
|
||||
|
||||
*'smoothscroll'* *'sms'* *'nosmoothscroll'* *'nosms'*
|
||||
'smoothscroll' 'sms' boolean (default off)
|
||||
@ -7831,21 +7940,24 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'softtabstop'* *'sts'*
|
||||
'softtabstop' 'sts' number (default 0)
|
||||
local to buffer
|
||||
Number of spaces that a <Tab> counts for while performing editing
|
||||
operations, like inserting a <Tab> or using <BS>. It "feels" like
|
||||
<Tab>s are being inserted, while in fact a mix of spaces and <Tab>s is
|
||||
used. This is useful to keep the 'ts' setting at its standard value
|
||||
of 8, while being able to edit like it is set to 'sts'. However,
|
||||
commands like "x" still work on the actual characters.
|
||||
When 'sts' is zero, this feature is off.
|
||||
When 'sts' is negative, the value of 'shiftwidth' is used.
|
||||
'softtabstop' is set to 0 when the 'paste' option is set and restored
|
||||
when 'paste' is reset.
|
||||
See also |ins-expandtab|. When 'expandtab' is not set, the number of
|
||||
spaces is minimized by using <Tab>s.
|
||||
The 'L' flag in 'cpoptions' changes how tabs are used when 'list' is
|
||||
set.
|
||||
NOTE: This option is set to 0 when 'compatible' is set.
|
||||
Create soft tab stops, separated by 'softtabstop' number of columns.
|
||||
In Insert mode, pressing the <Tab> key will move the cursor to the
|
||||
next soft tab stop, instead of inserting a literal tab. <BS> behaves
|
||||
similarly in reverse. Vim inserts a minimal mix of tab and space
|
||||
characters to produce the visual effect.
|
||||
|
||||
This setting does not affect the display of existing tab characters.
|
||||
|
||||
A value of 0 disables this behaviour. A negative value makes Vim use
|
||||
'shiftwidth'. If you plan to use 'sts' and 'shiftwidth' with
|
||||
different values, you might consider setting 'smarttab'.
|
||||
|
||||
'softtabstop' is temporarily set to 0 when 'paste' is on and reset
|
||||
when it is turned off. It is also reset when 'compatible' is set.
|
||||
|
||||
The 'L' flag in 'cpoptions' alters tab behavior when 'list' is
|
||||
enabled. See also |ins-expandtab| ans user manual section |30.5| for
|
||||
in-depth explanations.
|
||||
|
||||
If Vim is compiled with the |+vartabs| feature then the value of
|
||||
'softtabstop' will be ignored if |'varsofttabstop'| is set to
|
||||
@ -8435,9 +8547,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
argument or the ":tab all" command. |tabpage|
|
||||
|
||||
*'tabpanel'* *'tpl'* *g:actual_curtabpage*
|
||||
'tabpanel' 'tpl' string (default empty)
|
||||
'tabpanel' 'tpl' string (default empty)
|
||||
global
|
||||
{not in Vi}
|
||||
When non-empty, this option determines the content of the |tabpanel|.
|
||||
The option consists of printf style '%' items interspersed with
|
||||
normal text, similar to the 'statusline' or 'tabline'.
|
||||
@ -8448,12 +8559,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
You can use |g:actual_curtabpage| within a function assigned to
|
||||
tabpanel. |g:actual_curtabpage| represents current tab's label number.
|
||||
This option can contain line breaks:
|
||||
>
|
||||
set tabpanel=%!TabPanel()
|
||||
function! TabPanel() abort
|
||||
return printf("(%2d)\n %%f", g:actual_curtabpage)
|
||||
endfunction
|
||||
The option value can contain line breaks: >
|
||||
|
||||
set tabpanel=%!TabPanel()
|
||||
function! TabPanel() abort
|
||||
return printf("(%2d)\n %%f", g:actual_curtabpage)
|
||||
endfunction
|
||||
<
|
||||
The result is:
|
||||
>
|
||||
@ -8466,30 +8577,28 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
| |
|
||||
| |
|
||||
<
|
||||
|
||||
*'tabpanelopt'* *'tplo'*
|
||||
'tabpanelopt' 'tplo' string (default "")
|
||||
'tabpanelopt' 'tplo' string (default "")
|
||||
global
|
||||
{not in Vi}
|
||||
Optional settings for the |tabpanel|, It can consist of the following
|
||||
items. Items must be separated by a comma.
|
||||
|
||||
align:{text} Specifies the position of the tabpanel.
|
||||
Currently supported positions are:
|
||||
|
||||
left left-aligned
|
||||
right right-aligned
|
||||
left left-side
|
||||
right right-side
|
||||
|
||||
(default "left")
|
||||
|
||||
columns:{n} Use the size (in characters) of the tabpanel.
|
||||
The tabpanel is never shown when using zero
|
||||
or less than the size of Vim window.
|
||||
columns:{n} Number of columns of the tabpanel.
|
||||
If this value is 0 or less than 'columns', the
|
||||
tab panel will not be displayed.
|
||||
(default 20)
|
||||
|
||||
vert Use a vertical separator for tabpanel.
|
||||
This vertical separator used is "tpl_vert" of
|
||||
'fillchars'.
|
||||
The vertical separator character is taken from
|
||||
"tpl_vert" in 'fillchars'.
|
||||
(default off)
|
||||
|
||||
Examples: >
|
||||
@ -8498,16 +8607,15 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
:set tabpanelopt=vert,align:right
|
||||
:set tabpanelopt=columns:16
|
||||
<
|
||||
|
||||
*'tabstop'* *'ts'*
|
||||
'tabstop' 'ts' number (default 8)
|
||||
local to buffer
|
||||
Defines the column multiple used to display the Horizontal Tab
|
||||
character (ASCII 9); a Horizontal Tab always advances to the next
|
||||
tab stop.
|
||||
character (ASCII 9); a Horizontal Tab always advances to the next tab
|
||||
stop.
|
||||
The value must be at least 1 and at most 9999.
|
||||
If Vim was compiled with |+vartabs| and |'vartabstop'| is set, this option
|
||||
is ignored.
|
||||
If Vim was compiled with |+vartabs| and |'vartabstop'| is set, this
|
||||
option is ignored.
|
||||
Leave it at 8 unless you have a strong reason (see usr |30.5|).
|
||||
|
||||
|
||||
@ -9293,36 +9401,40 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
local to buffer
|
||||
{only available when compiled with the |+vartabs|
|
||||
feature}
|
||||
A list of the number of spaces that a <Tab> counts for while editing,
|
||||
such as inserting a <Tab> or using <BS>. It "feels" like variable-
|
||||
width <Tab>s are being inserted, while in fact a mixture of spaces
|
||||
and <Tab>s is used. Tab widths are separated with commas, with the
|
||||
final value applying to all subsequent tabs.
|
||||
Defines variable-width soft tab stops. The value is a comma-separated
|
||||
list of widths in columns. Each width defines the number of columns
|
||||
before the next soft tab stop. The last value repeats indefinitely.
|
||||
|
||||
For example, when editing assembly language files where statements
|
||||
start in the 9th column and comments in the 41st, it may be useful
|
||||
to use the following: >
|
||||
:set varsofttabstop=8,32,8
|
||||
< This will set soft tabstops with 8 and 8 + 32 spaces, and 8 more
|
||||
for every column thereafter.
|
||||
< This sets soft tab stops at column 8, then at column 40 (8 + 32), and
|
||||
every 8 columns thereafter.
|
||||
|
||||
Note that the value of |'softtabstop'| will be ignored while
|
||||
'varsofttabstop' is set.
|
||||
Note: this setting overrides 'softtabstop'.
|
||||
See section |30.5| of the user manual for detailed explanations on how
|
||||
Vim works with tabs and spaces.
|
||||
|
||||
*'vartabstop'* *'vts'*
|
||||
'vartabstop' 'vts' string (default "")
|
||||
local to buffer
|
||||
{only available when compiled with the |+vartabs|
|
||||
feature}
|
||||
A list of the number of spaces that a <Tab> in the file counts for,
|
||||
separated by commas. Each value corresponds to one tab, with the
|
||||
final value applying to all subsequent tabs. For example: >
|
||||
:set vartabstop=4,20,10,8
|
||||
< This will make the first tab 4 spaces wide, the second 20 spaces,
|
||||
the third 10 spaces, and all following tabs 8 spaces.
|
||||
Defines variable-width tab stops. The value is a comma-separated list
|
||||
of widths in columns. Each width defines the number of columns
|
||||
before the next tab stop; the last value repeats indefinitely.
|
||||
|
||||
Note that the value of |'tabstop'| will be ignored while 'vartabstop'
|
||||
is set.
|
||||
For example: >
|
||||
:set vartabstop=4,8
|
||||
< This places the first tab stop 4 columns from the start of the line
|
||||
and each subsequent tab stop 8 columns apart.
|
||||
|
||||
Note: this setting overrides 'tabstop'.
|
||||
On UNIX, it is recommended to keep the default tabstop value of 8.
|
||||
Consider setting 'varsofttabstop' instead.
|
||||
See section |30.5| of the user manual for detailed explanations on how
|
||||
Vim works with tabs and spaces.
|
||||
|
||||
*'verbose'* *'vbs'*
|
||||
'verbose' 'vbs' number (default 0)
|
||||
@ -9653,7 +9765,11 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
:set wc=X
|
||||
:set wc=^I
|
||||
:set wc=<Tab>
|
||||
< NOTE: This option is set to the Vi default value when 'compatible' is
|
||||
< 'wildchar' also enables completion in search pattern contexts such as
|
||||
|/|, |?|, |:s|, |:g|, |:v|, and |:vim|. To insert a literal <Tab>
|
||||
instead of triggering completion, type <C-V><Tab> or "\t".
|
||||
See also |'wildoptions'|.
|
||||
NOTE: This option is set to the Vi default value when 'compatible' is
|
||||
set and to the Vim default value when 'compatible' is reset.
|
||||
|
||||
*'wildcharm'* *'wcm'*
|
||||
@ -9818,7 +9934,22 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'wildoptions' 'wop' string (default "")
|
||||
global
|
||||
A list of words that change how |cmdline-completion| is done.
|
||||
|
||||
The following values are supported:
|
||||
exacttext When this flag is present, search pattern completion
|
||||
(e.g., in |/|, |?|, |:s|, |:g|, |:v|, and |:vim|)
|
||||
shows exact buffer text as menu items, without
|
||||
preserving regex artifacts like position
|
||||
anchors (e.g., |/\<|). This provides more intuitive
|
||||
menu items that match the actual buffer text.
|
||||
However, searches may be less accurate since the
|
||||
pattern is not preserved exactly.
|
||||
By default, Vim preserves the typed pattern (with
|
||||
anchors) and appends the matched word. This preserves
|
||||
search correctness, especially when using regular
|
||||
expressions or with 'smartcase' enabled. However, the
|
||||
case of the appended matched word may not exactly
|
||||
match the case of the word in the buffer.
|
||||
fuzzy Use |fuzzy-matching| to find completion matches. When
|
||||
this value is specified, wildcard expansion will not
|
||||
be used for completion. The matches will be sorted by
|
||||
@ -9835,6 +9966,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
d #define
|
||||
f function
|
||||
|
||||
This option does not apply to |ins-completion|. See 'completeopt' for
|
||||
that.
|
||||
|
||||
*'winaltkeys'* *'wak'*
|
||||
'winaltkeys' 'wak' string (default "menu")
|
||||
global
|
||||
@ -9875,7 +10009,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
Note: Do not confuse this with the height of the Vim window, use
|
||||
'lines' for that.
|
||||
|
||||
*'winfixbuf'*
|
||||
*'winfixbuf'* *'wfb'*
|
||||
'winfixbuf' 'wfb' boolean (default off)
|
||||
local to window
|
||||
If enabled, the window and the buffer it is displaying are paired.
|
||||
@ -9972,6 +10106,39 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
'winwidth' applies to the current window. Use 'winminwidth' to set
|
||||
the minimal width for other windows.
|
||||
|
||||
*'wlseat'* *'wse'*
|
||||
'wlseat' 'wse' string (default "")
|
||||
global
|
||||
{only when the |+wayland| feature is included}
|
||||
Specifies the Wayland seat to use for Wayland functionality,
|
||||
specifically the clipboard. If the seat does not exist, then the
|
||||
option will still be set to the new value, with the Wayland clipboard
|
||||
being unavailable as a result. If an empty value is passed then Vim
|
||||
will attempt to use the first seat found available. Updating this
|
||||
option will also update |v:clipmethod|.
|
||||
|
||||
*'wlsteal'* *'wst'* *'nowlsteal'* *'nowst'*
|
||||
'wlsteal' 'wst' boolean (default off)
|
||||
global
|
||||
{only when the |+wayland_clipboard| feature is included}
|
||||
When enabled, then allow Vim to steal focus by creating a temporary
|
||||
surface, in order to access the clipboard. For more information see
|
||||
|wayland-focus-steal|.
|
||||
|
||||
*'wltimeoutlen'* *'wtm'*
|
||||
'wltimeoutlen' 'wtm' number (default 500)
|
||||
global
|
||||
{only when the |+wayland| feature is included}
|
||||
The timeout in milliseconds before Vim gives up on waiting for the
|
||||
Wayland compositor. While Vim waits on the compositor, it is
|
||||
unresponsive to input and does not update the screen. Therefore
|
||||
setting this to a lower value may make Vim feel more responsive in
|
||||
some cases. On the other hand, it may also mean you receive errors
|
||||
when the compositor takes more time to respond than usual.
|
||||
|
||||
Additionally, this option is also used as the maximum timeout when
|
||||
waiting for a surface to gain focus, see |wayland-focus-steal|.
|
||||
|
||||
*'wrap'* *'nowrap'*
|
||||
'wrap' boolean (default on)
|
||||
local to window
|
||||
|
@ -1,4 +1,4 @@
|
||||
*pattern.txt* For Vim version 9.1. Last change: 2025 Mar 28
|
||||
*pattern.txt* For Vim version 9.1. Last change: 2025 Jul 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -183,6 +183,17 @@ matches in every line with `:vglobal`.
|
||||
For the |:s| command the "e" flag can be used to avoid the error message
|
||||
|:s_flags|.
|
||||
|
||||
*search-options*
|
||||
The following options affect how a search is performed in Vim:
|
||||
'hlsearch' highlight matches
|
||||
'ignorecase' ignore case when searching
|
||||
'imsearch' use |IME| when entering the search pattern
|
||||
'incsearch' show matches incrementally as the pattern is typed
|
||||
'maxsearchcount' maximum number for the search count |shm-S|
|
||||
'shortmess' suppress messages |shm-s|; show search count |shm-S|
|
||||
'smartcase' override 'ignorecase' if pattern contains uppercase
|
||||
'wrapscan' continue searching from the start of the file
|
||||
|
||||
*search-offset* *{offset}*
|
||||
These commands search for the specified pattern. With "/" and "?" an
|
||||
additional offset may be given. There are two types of offsets: line offsets
|
||||
|
@ -339,10 +339,8 @@ NETRW VARIABLES AND SETTINGS *netrw-variables* {{{2
|
||||
)
|
||||
|
||||
Netrw provides a lot of variables which allow you to customize netrw to your
|
||||
preferences. One way to look at them is via the command :NetrwSettings (see
|
||||
|netrw-settings|) which will display your current netrw settings. Most such
|
||||
settings are described below, in |netrw-browser-options|, and in
|
||||
|netrw-externapp|:
|
||||
preferences. Most such settings are described below, in
|
||||
|netrw-browser-options|, and in |netrw-externapp|:
|
||||
|
||||
*b:netrw_lastfile* last file Network-read/written retained on a
|
||||
per-buffer basis (supports plain :Nw )
|
||||
@ -765,9 +763,6 @@ below, a {netfile} is a URL to a remote file.
|
||||
strings (ie. "").
|
||||
(related: |netrw-userpass|)
|
||||
|
||||
:NetrwSettings This command is described in |netrw-settings| -- used to
|
||||
display netrw settings and change netrw behavior.
|
||||
|
||||
|
||||
==============================================================================
|
||||
8. Variables and Options *netrw-var* *netrw-settings* {{{1
|
||||
@ -1125,7 +1120,6 @@ QUICK REFERENCE: MAPS *netrw-browse-maps* {{{2
|
||||
|
||||
*netrw-quickcom* *netrw-quickcoms*
|
||||
QUICK REFERENCE: COMMANDS *netrw-explore-cmds* *netrw-browse-cmds* {{{2
|
||||
:NetrwSettings............................................|netrw-settings|
|
||||
:Ntree....................................................|netrw-ntree|
|
||||
:Explore[!] [dir] Explore directory of current file......|netrw-explore|
|
||||
:Hexplore[!] [dir] Horizontal Split & Explore.............|netrw-explore|
|
||||
@ -2557,12 +2551,6 @@ your browsing preferences. (see also: |netrw-settings|)
|
||||
|g:netrw_maxfilenamelen|, which affects
|
||||
local file long listing.
|
||||
|
||||
*g:netrw_errorlvl* =0: error levels greater than or equal to
|
||||
this are permitted to be displayed
|
||||
0: notes
|
||||
1: warnings
|
||||
2: errors
|
||||
|
||||
*g:netrw_fastbrowse* =0: slow speed directory browsing;
|
||||
never re-uses directory listings;
|
||||
always obtains directory listings.
|
||||
@ -2741,11 +2729,6 @@ your browsing preferences. (see also: |netrw-settings|)
|
||||
rightmouse : remove file/directory
|
||||
=0: disables mouse maps
|
||||
|
||||
*g:netrw_nobeval* doesn't exist (default)
|
||||
If this variable exists, then balloon
|
||||
evaluation will be suppressed
|
||||
(see |'ballooneval'|)
|
||||
|
||||
*g:netrw_sizestyle* not defined: actual bytes (default)
|
||||
="b" : actual bytes (default)
|
||||
="h" : human-readable (ex. 5k, 4m, 3g)
|
||||
@ -2961,17 +2944,6 @@ file you edit; this apparently also applies to directories. In other words,
|
||||
autochdir sets the current directory to that containing the "file" (even if
|
||||
that "file" is itself a directory).
|
||||
|
||||
NETRW SETTINGS WINDOW *netrw-settings-window* {{{2
|
||||
|
||||
With the NetrwSettings.vim plugin, >
|
||||
:NetrwSettings
|
||||
will bring up a window with the many variables that netrw uses for its
|
||||
settings. You may change any of their values; when you save the file, the
|
||||
settings therein will be used. One may also press "?" on any of the lines for
|
||||
help on what each of the variables do.
|
||||
|
||||
(also see: |netrw-browser-var| |netrw-protocol| |netrw-variables|)
|
||||
|
||||
|
||||
==============================================================================
|
||||
OBTAINING A FILE *netrw-obtain* *netrw-O* {{{2
|
||||
|
@ -1,11 +1,10 @@
|
||||
*pi_tar.txt* For Vim version 9.1. Last change: 2025 Mar 16
|
||||
*pi_tar.txt* For Vim version 9.1. Last change: 2025 Jul 15
|
||||
|
||||
+====================+
|
||||
| Tar File Interface |
|
||||
+====================+
|
||||
|
||||
Author: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
|
||||
(remove NOSPAM from Campbell's email first)
|
||||
Original Author: Charles E. Campbell
|
||||
Copyright 2005-2017: *tar-copyright*
|
||||
The VIM LICENSE (see |copyright|) applies to the files in this
|
||||
package, including tarPlugin.vim, tar.vim, and pi_tar.txt. Like
|
||||
@ -61,7 +60,7 @@ Copyright 2005-2017: *tar-copyright*
|
||||
the file mentioned in the tarball. If the current directory is not
|
||||
correct for that path, :TarDiff will fail to find the associated file.
|
||||
|
||||
If the [filename] is given, that that filename (and path) will be used
|
||||
If the [filename] is given, that filename (and path) will be used
|
||||
to specify the associated file.
|
||||
|
||||
|
||||
@ -95,24 +94,25 @@ Copyright 2005-2017: *tar-copyright*
|
||||
*g:tar_readoptions* "OPxf" used to extract a file from a tarball
|
||||
*g:tar_cmd* "tar" the name of the tar program
|
||||
*g:tar_nomax* 0 if true, file window will not be maximized
|
||||
*g:tar_secure* undef if exists:
|
||||
"--"s will be used to prevent unwanted
|
||||
option expansion in tar commands.
|
||||
Please be sure that your tar command
|
||||
accepts "--"; Posix compliant tar
|
||||
utilities do accept them.
|
||||
if not exists:
|
||||
The tar plugin will reject any tar
|
||||
files or member files that begin with
|
||||
"-"
|
||||
Not all tar's support the "--" which is why
|
||||
it isn't default.
|
||||
*g:tar_writeoptions* "uf" used to update/replace a file
|
||||
|
||||
|
||||
==============================================================================
|
||||
4. History *tar-history*
|
||||
|
||||
unreleased:
|
||||
Jul 13, 2025 * drop leading /
|
||||
May 19, 2025 * restore working directory after read/write
|
||||
Apr 16, 2025 * decouple from netrw by adding s:WinPath()
|
||||
instead of shelling out to file(1)
|
||||
Mar 02, 2025 * determine the compression using readblob()
|
||||
Mar 02, 2025 * escape the filename before using :read
|
||||
Mar 01, 2025 * fix syntax error in tar#Read()
|
||||
Feb 28, 2025 * add support for bzip3 (#16755)
|
||||
Feb 06, 2025 * add support for lz4 (#16591)
|
||||
Nov 11, 2024 * support permissions (#7379)
|
||||
Feb 19, 2024 * announce adoption
|
||||
Jan 08, 2024 * fix a few problems (#138331, #12637, #8109)
|
||||
v31 Apr 02, 2017 * (klartext) reported that browsing encrypted
|
||||
files in a zip archive created unencrypted
|
||||
swap files. I am applying a similar fix
|
||||
|
@ -1,4 +1,4 @@
|
||||
*pi_zip.txt* For Vim version 9.1. Last change: 2025 Apr 02
|
||||
*pi_zip.txt* For Vim version 9.1. Last change: 2025 Jul 15
|
||||
|
||||
+====================+
|
||||
| Zip File Interface |
|
||||
@ -111,6 +111,18 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
|
||||
|
||||
==============================================================================
|
||||
4. History *zip-history* {{{1
|
||||
unreleased:
|
||||
Jul 12, 2025 * drop ../ on write to prevent path traversal attacks
|
||||
Mar 11, 2025 * handle filenames with leading '-' correctly
|
||||
Aug 21, 2024 * simplify condition to detect MS-Windows
|
||||
Aug 18, 2024 * correctly handle special globbing chars
|
||||
Aug 05, 2024 * clean-up and make it work with shellslash on Windows
|
||||
Aug 05, 2024 * workaround for the FreeBSD's unzip
|
||||
Aug 04, 2024 * escape '[' in name of file to be extracted
|
||||
Jul 30, 2024 * fix opening remote zipfile
|
||||
Jul 24, 2024 * use delete() function
|
||||
Jul 23, 2024 * fix 'x' command
|
||||
Jun 16, 2024 * handle whitespace on Windows properly (#14998)
|
||||
v33 Dec 07, 2021 * *.xlam mentioned twice in zipPlugin
|
||||
v32 Oct 22, 2021 * to avoid an issue with a vim 8.2 patch, zipfile: has
|
||||
been changed to zipfile:// . This often shows up
|
||||
|
@ -1,4 +1,4 @@
|
||||
*quickref.txt* For Vim version 9.1. Last change: 2025 Apr 06
|
||||
*quickref.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -646,6 +646,7 @@ Short explanation of each option: *option-list*
|
||||
'cinscopedecls' 'cinsd' words that are recognized by 'cino-g'
|
||||
'cinwords' 'cinw' words where 'si' and 'cin' add an indent
|
||||
'clipboard' 'cb' use the clipboard as the unnamed register
|
||||
'clipmethod' 'cpm' specify order of what clipboard methods to use
|
||||
'cmdheight' 'ch' number of lines to use for the command-line
|
||||
'cmdwinheight' 'cwh' height of the command-line window
|
||||
'colorcolumn' 'cc' columns to highlight
|
||||
@ -918,9 +919,9 @@ Short explanation of each option: *option-list*
|
||||
'signcolumn' 'scl' when to display the sign column
|
||||
'smartcase' 'scs' no ignore case when pattern has uppercase
|
||||
'smartindent' 'si' smart autoindenting for C programs
|
||||
'smarttab' 'sta' use 'shiftwidth' when inserting <Tab>
|
||||
'smarttab' 'sta' <Tab> in leading whitespace indents by 'shiftwidth'
|
||||
'smoothscroll' 'sms' scroll by screen lines when 'wrap' is set
|
||||
'softtabstop' 'sts' number of spaces that <Tab> uses while editing
|
||||
'softtabstop' 'sts' number of columns between two soft tab stops
|
||||
'spell' enable spell checking
|
||||
'spellcapcheck' 'spc' pattern to locate end of a sentence
|
||||
'spellfile' 'spf' files where |zg| and |zw| store words
|
||||
@ -942,7 +943,7 @@ Short explanation of each option: *option-list*
|
||||
'tabclose' 'tcl' which tab page to focus when closing a tab
|
||||
'tabline' 'tal' custom format for the console tab pages line
|
||||
'tabpagemax' 'tpm' maximum number of tab pages for |-p| and "tab all"
|
||||
'tabstop' 'ts' number of spaces that <Tab> in file uses
|
||||
'tabstop' 'ts' number of columns between two tab stops
|
||||
'tagbsearch' 'tbs' use binary searching in tags files
|
||||
'tagcase' 'tc' how to handle case when searching in tags files
|
||||
'tagfunc' 'tfu' function to get list of tag matches
|
||||
@ -987,8 +988,8 @@ Short explanation of each option: *option-list*
|
||||
'undoreload' 'ur' max nr of lines to save for undo on a buffer reload
|
||||
'updatecount' 'uc' after this many characters flush swap file
|
||||
'updatetime' 'ut' after this many milliseconds flush swap file
|
||||
'varsofttabstop' 'vsts' a list of number of spaces when typing <Tab>
|
||||
'vartabstop' 'vts' a list of number of spaces for <Tab>s
|
||||
'varsofttabstop' 'vsts' a list of number of columns between soft tab stops
|
||||
'vartabstop' 'vts' a list of number of columns between tab stops
|
||||
'verbose' 'vbs' give informative messages
|
||||
'verbosefile' 'vfile' file to write messages in
|
||||
'viewdir' 'vdir' directory where to store files with :mkview
|
||||
@ -1018,6 +1019,9 @@ Short explanation of each option: *option-list*
|
||||
'winminwidth' 'wmw' minimal number of columns for any window
|
||||
'winptydll' name of the winpty dynamic library
|
||||
'winwidth' 'wiw' minimal number of columns for current window
|
||||
'wlseat' 'wse' the Wayland seat to use
|
||||
'wlsteal' 'wst' allow focus stealing functionality for Wayland
|
||||
'wltimeoutlen' 'wtm' timeout to use when polling in Wayland
|
||||
'wrap' long lines wrap and continue on the next line
|
||||
'wrapmargin' 'wm' chars from the right where wrapping starts
|
||||
'wrapscan' 'ws' searches wrap around the end of the file
|
||||
|
@ -1,4 +1,4 @@
|
||||
*repeat.txt* For Vim version 9.1. Last change: 2024 Oct 16
|
||||
*repeat.txt* For Vim version 9.1. Last change: 2025 Jul 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -233,7 +233,12 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
||||
Examples: >
|
||||
:4,5source
|
||||
:10,18source ++clear
|
||||
<
|
||||
|
||||
< Implementation detail: When sourcing a [range] of
|
||||
lines that falls inside a folded region, the range
|
||||
will be adjusted to the start and end of the fold,
|
||||
but only if a two line specifiers range was used.
|
||||
|
||||
*:source!*
|
||||
:so[urce]! {file} Read Vim commands from {file}. These are commands
|
||||
that are executed from Normal mode, like you type
|
||||
|
@ -1,4 +1,4 @@
|
||||
*starting.txt* For Vim version 9.1. Last change: 2025 Feb 27
|
||||
*starting.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -559,6 +559,12 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
|
||||
client-server messages), call the |serverlist()| function.
|
||||
This does not enable the XSMP handler though.
|
||||
|
||||
*-Y*
|
||||
-Y Do not try connecting to the Wayland compositor. Is only
|
||||
relevant for Unix when compiled with the |+wayland| feature,
|
||||
otherwise it's ignored. Note that this will make any feature
|
||||
that uses Wayland unavailable, such as the clipboard.
|
||||
|
||||
*-s*
|
||||
-s {scriptin} The script file "scriptin" is read. The characters in the
|
||||
file are interpreted as if you had typed them. The same can
|
||||
|
@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 9.1. Last change: 2025 Jun 03
|
||||
*syntax.txt* For Vim version 9.1. Last change: 2025 Jul 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1573,15 +1573,47 @@ ERLANG *erlang.vim* *ft-erlang-syntax*
|
||||
Erlang is a functional programming language developed by Ericsson. Files with
|
||||
the following extensions are recognized as Erlang files: erl, hrl, yaws.
|
||||
|
||||
The BIFs (built-in functions) are highlighted by default. To disable this,
|
||||
put the following line in your vimrc: >
|
||||
Vim highlights triple-quoted docstrings as comments by default.
|
||||
|
||||
:let g:erlang_highlight_bifs = 0
|
||||
If you want triple-quoted docstrings highlighted as Markdown, add the
|
||||
following line to your |.vimrc|: >
|
||||
|
||||
To enable highlighting some special atoms, put this in your vimrc: >
|
||||
:let g:erlang_use_markdown_for_docs = 1
|
||||
|
||||
:let g:erlang_highlight_special_atoms = 1
|
||||
The plain text inside the docstrings (that is, the characters that are not
|
||||
highlighted by the Markdown syntax) is still highlighted as a comment.
|
||||
|
||||
If you want to highlight the plain text inside the docstrings using a
|
||||
different highlight group, add the following line to your |.vimrc| (the
|
||||
example highlights plain text using the String highlight group): >
|
||||
|
||||
:let g:erlang_docstring_default_highlight = 'String'
|
||||
|
||||
If you don't enable Markdown, this line highlights the full docstrings
|
||||
according to the specified highlight group.
|
||||
|
||||
Use the following line to disable highlighting for the plain text: >
|
||||
|
||||
:let g:erlang_docstring_default_highlight = ''
|
||||
|
||||
Configuration examples: >
|
||||
|
||||
" Highlight docstrings as Markdown.
|
||||
:let g:erlang_use_markdown_for_docs = 1
|
||||
|
||||
" 1. Highlight Markdown elements in docstrings as Markdown.
|
||||
" 2. Highlight the plain text in docstrings as String.
|
||||
:let g:erlang_use_markdown_for_docs = 1
|
||||
:let g:erlang_docstring_default_highlight = 'String'
|
||||
|
||||
" Highlight docstrings as strings (no Markdown).
|
||||
:let g:erlang_docstring_default_highlight = 'String'
|
||||
|
||||
" 1. Highlight Markdown elements in docstrings as Markdown.
|
||||
" 2. Don't highlight the plain text in docstrings.
|
||||
:let g:erlang_use_markdown_for_docs = 1
|
||||
:let g:erlang_docstring_default_highlight = ''
|
||||
<
|
||||
|
||||
ELIXIR *elixir.vim* *ft-elixir-syntax*
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*tabpage.txt* For Vim version 9.1. Last change: 2025 May 30
|
||||
*tabpage.txt* For Vim version 9.1. Last change: 2025 Jul 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -19,6 +19,8 @@ when used in combination with more than one tab page.
|
||||
|
||||
{not able to use multiple tab pages when the |+windows| feature was disabled
|
||||
at compile time}
|
||||
{not able to use |tabpanel| feature when the |+tabpanel| feature was disabled
|
||||
at compile time}
|
||||
|
||||
==============================================================================
|
||||
1. Introduction *tab-page-intro*
|
||||
@ -438,49 +440,41 @@ side of the window. It looks like this:
|
||||
<
|
||||
To configure the tabpanel, use the following options: 'tabpanel',
|
||||
'showtabpanel' and 'tabpanelopt'.
|
||||
The 'tabpanel' and 'showtabpanel' options function similar to
|
||||
'statusline' or 'tabline'.
|
||||
The 'tabpanel' option functions similar to 'statusline' or 'tabline', and the
|
||||
'showtabpanel' option functions similar to 'laststatus' or 'showtabline'.
|
||||
|
||||
The "columns:" of 'tabpanelopt' option specifies the width of the tabpanel:
|
||||
The "columns:" item of 'tabpanelopt' option specifies the width of the
|
||||
tabpanel:
|
||||
>
|
||||
+------ This width
|
||||
|
|
||||
<----+----->
|
||||
+------ This width
|
||||
|
|
||||
<----+----->
|
||||
+-----------+----------------------------------
|
||||
|(1) |text text text text text text text
|
||||
| ~/aaa.txt|text text text text text text text
|
||||
|(2) |text text text text text text text
|
||||
<
|
||||
The "align:" of 'tabpanelopt' option determines whether the tabpanel is
|
||||
displayed on the right side of the window:
|
||||
The "align:" item of the 'tabpanelopt' option determines whether the tabpanel
|
||||
will be displayed on the left or right side of the window:
|
||||
>
|
||||
+----------------------------------+-----------
|
||||
|text text text text text text text|(1)
|
||||
|text text text text text text text| ~/aaa.txt
|
||||
|text text text text text text text|(2)
|
||||
<
|
||||
The "wrap" of 'tabpanelopt' option controls whether lines in tabpanel are
|
||||
wraped:
|
||||
The "vert" item of the 'tabpanelopt' option specifies whether a vertical
|
||||
separator should be displayed between the tabpanel and the display part of the
|
||||
window:
|
||||
>
|
||||
+-----------+----------------------------------
|
||||
|(1) |text text text text text text text
|
||||
| ~/long_lo|text text text text text text text
|
||||
|ng_file_nam|text text text text text text text
|
||||
|e.txt |text text text text text text text
|
||||
|(2) |text text text text text text text
|
||||
|
||||
The "vert" of 'tabpanelopt' option defines whether a vertical separator is
|
||||
displayed between the tabpanel and the main window:
|
||||
>
|
||||
+------ This is
|
||||
|
|
||||
v
|
||||
+------ This is
|
||||
|
|
||||
v
|
||||
+-----------+----------------------------------
|
||||
|(1) |text text text text text text text
|
||||
| ~/aaa.txt|text text text text text text text
|
||||
|(2) |text text text text text text text
|
||||
<
|
||||
The vertical separator used is "tpl_vert" of 'fillchars'.
|
||||
The vertical separator character is taken from "tpl_vert" in 'fillchars'.
|
||||
|
||||
You can customize the appearance of the tab page labels using the highlight
|
||||
groups: |hl-TabPanel| |hl-TabPanelSel| |hl-TabPanelFill|
|
||||
|
@ -149,6 +149,7 @@ $quote eval.txt /*$quote*
|
||||
'cinw' options.txt /*'cinw'*
|
||||
'cinwords' options.txt /*'cinwords'*
|
||||
'clipboard' options.txt /*'clipboard'*
|
||||
'clipmethod' options.txt /*'clipmethod'*
|
||||
'cm' options.txt /*'cm'*
|
||||
'cmdheight' options.txt /*'cmdheight'*
|
||||
'cmdwinheight' options.txt /*'cmdwinheight'*
|
||||
@ -178,6 +179,7 @@ $quote eval.txt /*$quote*
|
||||
'copyindent' options.txt /*'copyindent'*
|
||||
'cot' options.txt /*'cot'*
|
||||
'cp' options.txt /*'cp'*
|
||||
'cpm' options.txt /*'cpm'*
|
||||
'cpo' options.txt /*'cpo'*
|
||||
'cpoptions' options.txt /*'cpoptions'*
|
||||
'cpp' options.txt /*'cpp'*
|
||||
@ -504,6 +506,7 @@ $quote eval.txt /*$quote*
|
||||
'maxmem' options.txt /*'maxmem'*
|
||||
'maxmempattern' options.txt /*'maxmempattern'*
|
||||
'maxmemtot' options.txt /*'maxmemtot'*
|
||||
'maxsearchcount' options.txt /*'maxsearchcount'*
|
||||
'mco' options.txt /*'mco'*
|
||||
'mef' options.txt /*'mef'*
|
||||
'menc' options.txt /*'menc'*
|
||||
@ -543,6 +546,7 @@ $quote eval.txt /*$quote*
|
||||
'mousetime' options.txt /*'mousetime'*
|
||||
'mp' options.txt /*'mp'*
|
||||
'mps' options.txt /*'mps'*
|
||||
'msc' options.txt /*'msc'*
|
||||
'msm' options.txt /*'msm'*
|
||||
'mzq' options.txt /*'mzq'*
|
||||
'mzquantum' options.txt /*'mzquantum'*
|
||||
@ -803,6 +807,7 @@ $quote eval.txt /*$quote*
|
||||
'nowinfixheight' options.txt /*'nowinfixheight'*
|
||||
'nowinfixwidth' options.txt /*'nowinfixwidth'*
|
||||
'nowiv' options.txt /*'nowiv'*
|
||||
'nowlsteal' options.txt /*'nowlsteal'*
|
||||
'nowmnu' options.txt /*'nowmnu'*
|
||||
'nowrap' options.txt /*'nowrap'*
|
||||
'nowrapscan' options.txt /*'nowrapscan'*
|
||||
@ -810,6 +815,7 @@ $quote eval.txt /*$quote*
|
||||
'nowriteany' options.txt /*'nowriteany'*
|
||||
'nowritebackup' options.txt /*'nowritebackup'*
|
||||
'nows' options.txt /*'nows'*
|
||||
'nowst' options.txt /*'nowst'*
|
||||
'noxtermcodes' options.txt /*'noxtermcodes'*
|
||||
'nrformats' options.txt /*'nrformats'*
|
||||
'nu' options.txt /*'nu'*
|
||||
@ -1305,6 +1311,7 @@ $quote eval.txt /*$quote*
|
||||
'wcr' options.txt /*'wcr'*
|
||||
'wd' options.txt /*'wd'*
|
||||
'weirdinvert' options.txt /*'weirdinvert'*
|
||||
'wfb' options.txt /*'wfb'*
|
||||
'wfh' options.txt /*'wfh'*
|
||||
'wfw' options.txt /*'wfw'*
|
||||
'wh' options.txt /*'wh'*
|
||||
@ -1333,6 +1340,9 @@ $quote eval.txt /*$quote*
|
||||
'winwidth' options.txt /*'winwidth'*
|
||||
'wiv' options.txt /*'wiv'*
|
||||
'wiw' options.txt /*'wiw'*
|
||||
'wlseat' options.txt /*'wlseat'*
|
||||
'wlsteal' options.txt /*'wlsteal'*
|
||||
'wltimeoutlen' options.txt /*'wltimeoutlen'*
|
||||
'wm' options.txt /*'wm'*
|
||||
'wmh' options.txt /*'wmh'*
|
||||
'wmnu' options.txt /*'wmnu'*
|
||||
@ -1346,6 +1356,9 @@ $quote eval.txt /*$quote*
|
||||
'writebackup' options.txt /*'writebackup'*
|
||||
'writedelay' options.txt /*'writedelay'*
|
||||
'ws' options.txt /*'ws'*
|
||||
'wse' options.txt /*'wse'*
|
||||
'wst' options.txt /*'wst'*
|
||||
'wtm' options.txt /*'wtm'*
|
||||
'ww' options.txt /*'ww'*
|
||||
'xtermcodes' options.txt /*'xtermcodes'*
|
||||
'{ motion.txt /*'{*
|
||||
@ -1511,6 +1524,8 @@ $quote eval.txt /*$quote*
|
||||
+visualextra various.txt /*+visualextra*
|
||||
+vreplace various.txt /*+vreplace*
|
||||
+vtp various.txt /*+vtp*
|
||||
+wayland various.txt /*+wayland*
|
||||
+wayland_clipboard various.txt /*+wayland_clipboard*
|
||||
+wildignore various.txt /*+wildignore*
|
||||
+wildmenu various.txt /*+wildmenu*
|
||||
+windows various.txt /*+windows*
|
||||
@ -1581,6 +1596,7 @@ $quote eval.txt /*$quote*
|
||||
-V starting.txt /*-V*
|
||||
-W starting.txt /*-W*
|
||||
-X starting.txt /*-X*
|
||||
-Y starting.txt /*-Y*
|
||||
-Z starting.txt /*-Z*
|
||||
-b starting.txt /*-b*
|
||||
-background gui_x11.txt /*-background*
|
||||
@ -1801,6 +1817,7 @@ $quote eval.txt /*$quote*
|
||||
/\{- pattern.txt /*\/\\{-*
|
||||
/\~ pattern.txt /*\/\\~*
|
||||
/^ pattern.txt /*\/^*
|
||||
/_<Tab> cmdline.txt /*\/_<Tab>*
|
||||
/_CTRL-G cmdline.txt /*\/_CTRL-G*
|
||||
/_CTRL-L cmdline.txt /*\/_CTRL-L*
|
||||
/_CTRL-T cmdline.txt /*\/_CTRL-T*
|
||||
@ -2403,6 +2420,8 @@ $quote eval.txt /*$quote*
|
||||
:clast quickfix.txt /*:clast*
|
||||
:cle motion.txt /*:cle*
|
||||
:clearjumps motion.txt /*:clearjumps*
|
||||
:clip various.txt /*:clip*
|
||||
:clipreset various.txt /*:clipreset*
|
||||
:clist quickfix.txt /*:clist*
|
||||
:clo windows.txt /*:clo*
|
||||
:close windows.txt /*:close*
|
||||
@ -3330,6 +3349,9 @@ $quote eval.txt /*$quote*
|
||||
:so repeat.txt /*:so*
|
||||
:sor change.txt /*:sor*
|
||||
:sort change.txt /*:sort*
|
||||
:sort-l change.txt /*:sort-l*
|
||||
:sort-u change.txt /*:sort-u*
|
||||
:sort-uniq change.txt /*:sort-uniq*
|
||||
:source repeat.txt /*:source*
|
||||
:source! repeat.txt /*:source!*
|
||||
:source-range repeat.txt /*:source-range*
|
||||
@ -3564,6 +3586,8 @@ $quote eval.txt /*$quote*
|
||||
:undolist undo.txt /*:undolist*
|
||||
:unh windows.txt /*:unh*
|
||||
:unhide windows.txt /*:unhide*
|
||||
:uni change.txt /*:uni*
|
||||
:uniq change.txt /*:uniq*
|
||||
:unl eval.txt /*:unl*
|
||||
:unlet eval.txt /*:unlet*
|
||||
:unlet-$ eval.txt /*:unlet-$*
|
||||
@ -3646,6 +3670,8 @@ $quote eval.txt /*$quote*
|
||||
:winp gui.txt /*:winp*
|
||||
:winpos gui.txt /*:winpos*
|
||||
:winsize gui.txt /*:winsize*
|
||||
:wl wayland.txt /*:wl*
|
||||
:wlrestore wayland.txt /*:wlrestore*
|
||||
:wn editing.txt /*:wn*
|
||||
:wnext editing.txt /*:wnext*
|
||||
:wp editing.txt /*:wp*
|
||||
@ -4640,6 +4666,7 @@ E154 helphelp.txt /*E154*
|
||||
E1540 eval.txt /*E1540*
|
||||
E1541 vi_diff.txt /*E1541*
|
||||
E1547 various.txt /*E1547*
|
||||
E1548 wayland.txt /*E1548*
|
||||
E155 sign.txt /*E155*
|
||||
E156 sign.txt /*E156*
|
||||
E157 sign.txt /*E157*
|
||||
@ -6770,6 +6797,7 @@ cpo-x options.txt /*cpo-x*
|
||||
cpo-y options.txt /*cpo-y*
|
||||
cpo-z options.txt /*cpo-z*
|
||||
cpo-{ options.txt /*cpo-{*
|
||||
cpo-~ options.txt /*cpo-~*
|
||||
cpp.vim syntax.txt /*cpp.vim*
|
||||
crash-recovery recover.txt /*crash-recovery*
|
||||
creating-menus gui.txt /*creating-menus*
|
||||
@ -6863,6 +6891,7 @@ debugger-support debugger.txt /*debugger-support*
|
||||
debugger.txt debugger.txt /*debugger.txt*
|
||||
dec-mouse options.txt /*dec-mouse*
|
||||
decada_members ft_ada.txt /*decada_members*
|
||||
deduplicating change.txt /*deduplicating*
|
||||
deepcopy() builtin.txt /*deepcopy()*
|
||||
default-constructor vim9class.txt /*default-constructor*
|
||||
defaults.vim starting.txt /*defaults.vim*
|
||||
@ -7719,7 +7748,6 @@ g:netrw_dav_cmd pi_netrw.txt /*g:netrw_dav_cmd*
|
||||
g:netrw_decompress pi_netrw.txt /*g:netrw_decompress*
|
||||
g:netrw_dirhistmax pi_netrw.txt /*g:netrw_dirhistmax*
|
||||
g:netrw_dynamic_maxfilenamelen pi_netrw.txt /*g:netrw_dynamic_maxfilenamelen*
|
||||
g:netrw_errorlvl pi_netrw.txt /*g:netrw_errorlvl*
|
||||
g:netrw_fastbrowse pi_netrw.txt /*g:netrw_fastbrowse*
|
||||
g:netrw_fetch_cmd pi_netrw.txt /*g:netrw_fetch_cmd*
|
||||
g:netrw_ffkeep pi_netrw.txt /*g:netrw_ffkeep*
|
||||
@ -7759,7 +7787,6 @@ g:netrw_maxfilenamelen pi_netrw.txt /*g:netrw_maxfilenamelen*
|
||||
g:netrw_menu pi_netrw.txt /*g:netrw_menu*
|
||||
g:netrw_mkdir_cmd pi_netrw.txt /*g:netrw_mkdir_cmd*
|
||||
g:netrw_mousemaps pi_netrw.txt /*g:netrw_mousemaps*
|
||||
g:netrw_nobeval pi_netrw.txt /*g:netrw_nobeval*
|
||||
g:netrw_preview pi_netrw.txt /*g:netrw_preview*
|
||||
g:netrw_rcp_cmd pi_netrw.txt /*g:netrw_rcp_cmd*
|
||||
g:netrw_remote_mkdir pi_netrw.txt /*g:netrw_remote_mkdir*
|
||||
@ -7830,7 +7857,6 @@ g:tar_copycmd pi_tar.txt /*g:tar_copycmd*
|
||||
g:tar_extractcmd pi_tar.txt /*g:tar_extractcmd*
|
||||
g:tar_nomax pi_tar.txt /*g:tar_nomax*
|
||||
g:tar_readoptions pi_tar.txt /*g:tar_readoptions*
|
||||
g:tar_secure pi_tar.txt /*g:tar_secure*
|
||||
g:tar_writeoptions pi_tar.txt /*g:tar_writeoptions*
|
||||
g:termdebug_config terminal.txt /*g:termdebug_config*
|
||||
g:termdebugger terminal.txt /*g:termdebugger*
|
||||
@ -7951,6 +7977,7 @@ getcmdscreenpos() builtin.txt /*getcmdscreenpos()*
|
||||
getcmdtype() builtin.txt /*getcmdtype()*
|
||||
getcmdwintype() builtin.txt /*getcmdwintype()*
|
||||
getcompletion() builtin.txt /*getcompletion()*
|
||||
getcompletiontype() builtin.txt /*getcompletiontype()*
|
||||
getcurpos() builtin.txt /*getcurpos()*
|
||||
getcursorcharpos() builtin.txt /*getcursorcharpos()*
|
||||
getcwd() builtin.txt /*getcwd()*
|
||||
@ -8489,7 +8516,6 @@ improvements-6 version6.txt /*improvements-6*
|
||||
improvements-7 version7.txt /*improvements-7*
|
||||
improvements-8 version8.txt /*improvements-8*
|
||||
improvements-9 version9.txt /*improvements-9*
|
||||
improvements-9.2 version9.txt /*improvements-9.2*
|
||||
in_bot channel.txt /*in_bot*
|
||||
in_buf channel.txt /*in_buf*
|
||||
in_io-buffer channel.txt /*in_io-buffer*
|
||||
@ -9212,7 +9238,6 @@ netrw-rightmouse pi_netrw.txt /*netrw-rightmouse*
|
||||
netrw-s pi_netrw.txt /*netrw-s*
|
||||
netrw-s-cr pi_netrw.txt /*netrw-s-cr*
|
||||
netrw-settings pi_netrw.txt /*netrw-settings*
|
||||
netrw-settings-window pi_netrw.txt /*netrw-settings-window*
|
||||
netrw-sexplore pi_netrw.txt /*netrw-sexplore*
|
||||
netrw-sort pi_netrw.txt /*netrw-sort*
|
||||
netrw-sort-sequence pi_netrw.txt /*netrw-sort-sequence*
|
||||
@ -10032,6 +10057,7 @@ search() builtin.txt /*search()*
|
||||
search()-sub-match builtin.txt /*search()-sub-match*
|
||||
search-commands pattern.txt /*search-commands*
|
||||
search-offset pattern.txt /*search-offset*
|
||||
search-options pattern.txt /*search-options*
|
||||
search-pattern pattern.txt /*search-pattern*
|
||||
search-range pattern.txt /*search-range*
|
||||
search-replace change.txt /*search-replace*
|
||||
@ -11015,6 +11041,7 @@ undofile() builtin.txt /*undofile()*
|
||||
undotree() builtin.txt /*undotree()*
|
||||
unicode mbyte.txt /*unicode*
|
||||
uniq() builtin.txt /*uniq()*
|
||||
unique change.txt /*unique*
|
||||
unix os_unix.txt /*unix*
|
||||
unlisted-buffer windows.txt /*unlisted-buffer*
|
||||
up-down-motions motion.txt /*up-down-motions*
|
||||
@ -11088,6 +11115,7 @@ v:beval_winnr eval.txt /*v:beval_winnr*
|
||||
v:char eval.txt /*v:char*
|
||||
v:charconvert_from eval.txt /*v:charconvert_from*
|
||||
v:charconvert_to eval.txt /*v:charconvert_to*
|
||||
v:clipmethod eval.txt /*v:clipmethod*
|
||||
v:cmdarg eval.txt /*v:cmdarg*
|
||||
v:cmdbang eval.txt /*v:cmdbang*
|
||||
v:collate eval.txt /*v:collate*
|
||||
@ -11191,6 +11219,7 @@ v:version eval.txt /*v:version*
|
||||
v:versionlong eval.txt /*v:versionlong*
|
||||
v:vim_did_enter eval.txt /*v:vim_did_enter*
|
||||
v:warningmsg eval.txt /*v:warningmsg*
|
||||
v:wayland_display eval.txt /*v:wayland_display*
|
||||
v:windowid eval.txt /*v:windowid*
|
||||
v_! change.txt /*v_!*
|
||||
v_$ visual.txt /*v_$*
|
||||
@ -11549,6 +11578,17 @@ w:quickfix_title quickfix.txt /*w:quickfix_title*
|
||||
w:var eval.txt /*w:var*
|
||||
waittime channel.txt /*waittime*
|
||||
warningmsg-variable eval.txt /*warningmsg-variable*
|
||||
wayland wayland.txt /*wayland*
|
||||
wayland-and-x11 wayland.txt /*wayland-and-x11*
|
||||
wayland-focus-steal wayland.txt /*wayland-focus-steal*
|
||||
wayland-gnome wayland.txt /*wayland-gnome*
|
||||
wayland-gui wayland.txt /*wayland-gui*
|
||||
wayland-persist wayland.txt /*wayland-persist*
|
||||
wayland-primary-selection wayland.txt /*wayland-primary-selection*
|
||||
wayland-seat wayland.txt /*wayland-seat*
|
||||
wayland-selections wayland.txt /*wayland-selections*
|
||||
wayland-useful wayland.txt /*wayland-useful*
|
||||
wayland.txt wayland.txt /*wayland.txt*
|
||||
wdl-syntax syntax.txt /*wdl-syntax*
|
||||
wdl.vim syntax.txt /*wdl.vim*
|
||||
white-space pattern.txt /*white-space*
|
||||
|
@ -1,4 +1,4 @@
|
||||
*terminal.txt* For Vim version 9.1. Last change: 2025 Feb 22
|
||||
*terminal.txt* For Vim version 9.1. Last change: 2025 Jul 08
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1711,6 +1711,9 @@ than 99 will be displayed as "9+".
|
||||
|
||||
If you want to customize the breakpoint signs to show `>>` in the signcolumn: >
|
||||
let g:termdebug_config['sign'] = '>>'
|
||||
You can also specify individual signs for the first several breakpoints: >
|
||||
let g:termdebug_config['signs'] = ['>1', '>2', '>3', '>4', '>5', '>6', '>7', '>8', '>9']
|
||||
let g:termdebug_config['sign'] = '>>'
|
||||
If you would like to use decimal (base 10) breakpoint signs: >
|
||||
let g:termdebug_config['sign_decimal'] = 1
|
||||
If the variable g:termdebug_config does not yet exist, you can use: >
|
||||
|
@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 9.1. Last change: 2025 May 30
|
||||
*todo.txt* For Vim version 9.1. Last change: 2025 Jun 12
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -2202,8 +2202,6 @@ displayed in a window should return the value that's stored for that buffer.
|
||||
|
||||
":he ctrl_u" can be auto-corrected to ":he ctrl-u".
|
||||
|
||||
Diff mode out of sync. (Gary Johnson, 2010 Aug 4)
|
||||
|
||||
Win32: completion of file name ":e c:\!test" results in ":e c:\\!test", which
|
||||
does not work. (Nieko Maatjes, 2009 Jan 8, Ingo Karkat, 2009 Jan 22)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*uganda.txt* For Vim version 9.1. Last change: 2025 May 25
|
||||
*uganda.txt* For Vim version 9.1. Last change: 2025 Jul 08
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -21,6 +21,13 @@ Uganda anyway.
|
||||
The Open Publication License applies to the Vim documentation, see
|
||||
|manual-copyright|.
|
||||
|
||||
The icons used for the toolbar in the Win32 GUI are from the "Farm-Fresh Web
|
||||
Icons" set. These icons are licensed under the Creative Commons Attribution
|
||||
3.0 License and were created by FatCow Web Hosting. They were previously
|
||||
available at http://www.fatcow.com/free-icons and are still available at:
|
||||
https://www.iconarchive.com/show/farm-fresh-icons-by-fatcow.1.html
|
||||
|
||||
|
||||
=== begin of license ===
|
||||
|
||||
VIM LICENSE
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_22.txt* For Vim version 9.1. Last change: 2025 Jun 03
|
||||
*usr_22.txt* For Vim version 9.1. Last change: 2025 Jun 04
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -27,13 +27,15 @@ Vim has a plugin that makes it possible to edit a directory. Try this: >
|
||||
:edit .
|
||||
|
||||
Through the magic of autocommands and Vim scripts, the window will be filled
|
||||
with the contents of the directory. It looks like this: >
|
||||
with the contents of the directory. It looks like this (slightly cleaned up
|
||||
so that it fits within 80 chars): >
|
||||
|
||||
" ===========================================================================
|
||||
" Netrw Directory Listing (netrw v109)
|
||||
" Netrw Directory Listing (netrw v180)
|
||||
" /path/to/vim/runtime/doc
|
||||
" Sorted by name
|
||||
" Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.info$,\.swp$,\.o$\.obj$,\.bak$
|
||||
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
|
||||
" Sort sequence: [\/]$,*,\(\.bak\|\~\|\.o\|\.h\|\.info\|\.swp\)[*@]\=$
|
||||
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special
|
||||
" ===========================================================================
|
||||
../
|
||||
./
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_24.txt* For Vim version 9.1. Last change: 2025 Jun 02
|
||||
*usr_24.txt* For Vim version 9.1. Last change: 2025 Jun 22
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -568,14 +568,13 @@ that combination. Thus CTRL-K dP also works. Since there is no digraph for
|
||||
using. Always use ":digraphs" to find out which digraphs are currently
|
||||
available.
|
||||
|
||||
You can define your own digraphs. Example: >
|
||||
You can define your own digraphs by specifying the target character with a
|
||||
decimal number. Example: >
|
||||
|
||||
:digraph a" ä
|
||||
:digraph a\" 228
|
||||
|
||||
This defines that CTRL-K a" inserts an ä character. You can also specify the
|
||||
character with a decimal number. This defines the same digraph: >
|
||||
|
||||
:digraph a" 228
|
||||
This defines that CTRL-K a" inserts an ä character. Note: we had to escape
|
||||
the " character since otherwise it would act as a comment character.
|
||||
|
||||
More information about digraphs here: |digraphs|
|
||||
Another way to insert special characters is with a keymap. More about that
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_25.txt* For Vim version 9.1. Last change: 2025 Feb 01
|
||||
*usr_25.txt* For Vim version 9.1. Last change: 2025 Jun 13
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -200,7 +200,7 @@ command: >vim
|
||||
|
||||
Or put this line in your |vimrc|: >vim
|
||||
|
||||
packadd! justify
|
||||
:packadd! justify
|
||||
|
||||
This Vim script file defines a new visual command "_j". To justify a block of
|
||||
text, highlight the text in Visual mode and then execute "_j".
|
||||
@ -215,27 +215,28 @@ An alternative is to filter the text through an external program. Example: >
|
||||
*25.3* Indents and tabs
|
||||
|
||||
Indents can be used to make text stand out from the rest. The example texts
|
||||
in this manual, for example, are indented by eight spaces or a tab. You would
|
||||
normally enter this by typing a tab at the start of each line. Take this
|
||||
in this manual, for example, are indented by eight columns. You would
|
||||
normally enter this by typing <Tab> at the start of each line. Take this
|
||||
text:
|
||||
the first line ~
|
||||
the second line ~
|
||||
|
||||
This is entered by typing a tab, some text, <Enter>, tab and more text.
|
||||
This is entered by typing <Tab>, some text, <Enter>, <Tab> and more text.
|
||||
The 'autoindent' option inserts indents automatically: >
|
||||
|
||||
:set autoindent
|
||||
|
||||
When a new line is started it gets the same indent as the previous line. In
|
||||
the above example, the tab after the <Enter> is not needed anymore.
|
||||
the above example, pressing the <Tab> key after <Enter> is not needed anymore.
|
||||
|
||||
|
||||
INCREASING INDENT
|
||||
|
||||
To increase the amount of indent in a line, use the ">" operator. Often this
|
||||
is used as ">>", which adds indent to the current line.
|
||||
To increase the amount of indent in a line, use the ">" operator, in Normal
|
||||
mode. Often this is used as ">>", which adds indent to the current line.
|
||||
In Insert mode, use <C-t>.
|
||||
The amount of indent added is specified with the 'shiftwidth' option. The
|
||||
default value is 8. To make ">>" insert four spaces worth of indent, for
|
||||
default value is 8. To make ">>" insert four columns worth of indent, for
|
||||
example, type this: >
|
||||
|
||||
:set shiftwidth=4
|
||||
@ -248,46 +249,27 @@ When used on the second line of the example text, this is what you get:
|
||||
"4>>" will increase the indent of four lines.
|
||||
|
||||
|
||||
TABSTOP
|
||||
SOFT TAB STOPS
|
||||
|
||||
If you want to make indents a multiple of 4, you set 'shiftwidth' to 4. But
|
||||
when pressing a <Tab> you still get 8 spaces worth of indent. To change this,
|
||||
set the 'softtabstop' option: >
|
||||
when pressing a <Tab> you still get 8 columns worth of indent. To change
|
||||
this, set the 'softtabstop' option: >
|
||||
|
||||
:set softtabstop=4
|
||||
|
||||
This will make the <Tab> key insert 4 spaces worth of indent. If there are
|
||||
already four spaces, a <Tab> character is used (saving seven characters in the
|
||||
file). (If you always want spaces and no tab characters, set the 'expandtab'
|
||||
option.)
|
||||
Vim now creates invisible tab stops for your cursor every 4 columns; hitting
|
||||
<Tab> jumps to the next stop and inserts the exact mix of spaces or tabs
|
||||
needed.
|
||||
|
||||
Note:
|
||||
You could set the 'tabstop' option to 4. However, if you edit the
|
||||
file another time, with 'tabstop' set to the default value of 8, it
|
||||
will look wrong. In other programs and when printing the indent will
|
||||
also be wrong. Therefore it is recommended to keep 'tabstop' at eight
|
||||
all the time. That's the standard value everywhere.
|
||||
all the time. That's the standard value everywhere on UNIX-like
|
||||
systems.
|
||||
|
||||
|
||||
CHANGING TABS
|
||||
|
||||
You edit a file which was written with a tabstop of 3. In Vim it looks ugly,
|
||||
because it uses the normal tabstop value of 8. You can fix this by setting
|
||||
'tabstop' to 3. But you have to do this every time you edit this file.
|
||||
Vim can change the use of tabstops in your file. First, set 'tabstop' to
|
||||
make the indents look good, then use the ":retab" command: >
|
||||
|
||||
:set tabstop=3
|
||||
:retab 8
|
||||
|
||||
The ":retab" command will change 'tabstop' to 8, while changing the text such
|
||||
that it looks the same. It changes spans of white space into tabs and spaces
|
||||
for this. You can now write the file. Next time you edit it the indents will
|
||||
be right without setting an option.
|
||||
Warning: When using ":retab" on a program, it may change white space inside
|
||||
a string constant. Therefore it's a good habit to use "\t" instead of a
|
||||
real tab.
|
||||
|
||||
==============================================================================
|
||||
*25.4* Dealing with long lines
|
||||
|
||||
@ -576,6 +558,32 @@ The "gR" command uses Virtual Replace mode. This preserves the layout:
|
||||
|
||||
inp 0.786 0.534 0.693 ~
|
||||
|
||||
|
||||
REFORMATTING TABS IN TABLES
|
||||
|
||||
You edit a file that contains tabular data and the original author of the file
|
||||
decided to align the tabular data using tab characters (instead of spaces).
|
||||
Alas, they were using tab stops separated by 4 columns and Vim's default
|
||||
is 8 columns; the table looks wrong! What can be done?
|
||||
To fix the appearance without modifying the file, adjust the setting
|
||||
temporarily: >
|
||||
|
||||
:set tabstop=4
|
||||
|
||||
This updates the visual layout, but the file itself remains unchanged.
|
||||
Another possibility is to permanently reformat the file. For this Vim
|
||||
provides the |:retab| command. First, set 'tabstop' to match original layout
|
||||
(as above), then run: >
|
||||
|
||||
:retab 8
|
||||
|
||||
The ":retab" command will change 'tabstop' to 8, while changing the text such
|
||||
that it looks the same. It changes spans of white space into tabs and spaces
|
||||
for this. You can now write the file.
|
||||
Warning: When using ":retab" on a program, it may change white space inside
|
||||
a string constant. Therefore it's a good habit to use "\t" instead of a
|
||||
real tab.
|
||||
|
||||
==============================================================================
|
||||
|
||||
Next chapter: |usr_26.txt| Repeating
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_27.txt* For Vim version 9.1. Last change: 2019 Jul 14
|
||||
*usr_27.txt* For Vim version 9.1. Last change: 2025 Jul 06
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
In chapter 3 a few simple search patterns were mentioned |03.9|. Vim can do
|
||||
much more complex searches. This chapter explains the most often used ones.
|
||||
A detailed specification can be found here: |pattern|
|
||||
Options affecting how search is done can be found here: |search-options|
|
||||
|
||||
|27.1| Ignoring case
|
||||
|27.2| Wrapping around the file end
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_30.txt* For Vim version 9.1. Last change: 2025 May 30
|
||||
*usr_30.txt* For Vim version 9.1. Last change: 2025 Jun 10
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -547,8 +547,8 @@ tab stops.
|
||||
|
||||
If you prefer to have different values for 'shiftwidth' and 'softtabstop',
|
||||
you can still do so and use <C-t> to indent with 'shiftwidth'. Or you can
|
||||
use the 'smarttab' option introduced in Vim 5.6, allowing for a unified
|
||||
<Tab> key that knows what to do in the different situations.
|
||||
use the 'smarttab' option, allowing for a unified <Tab> key that knows what to
|
||||
do in the different situations.
|
||||
|
||||
|
||||
VARIABLE TAB STOPS
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 9.1. Last change: 2025 Apr 27
|
||||
*usr_41.txt* For Vim version 9.1. Last change: 2025 Jul 05
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -1112,6 +1112,8 @@ Command line: *command-line-functions*
|
||||
getcmdtype() return the current command-line type
|
||||
getcmdwintype() return the current command-line window type
|
||||
getcompletion() list of command-line completion matches
|
||||
getcompletiontype() get the type of the command-line completion
|
||||
for specified string
|
||||
fullcommand() get full command name
|
||||
cmdcomplete_info() get command-line completion information
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 9.1. Last change: 2025 May 15
|
||||
*various.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -41,7 +41,6 @@ CTRL-L Clear and redraw the screen. The redraw may happen
|
||||
when 'tabpanel' includes an item that doesn't trigger
|
||||
automatic updating.
|
||||
|
||||
|
||||
*N<Del>*
|
||||
<Del> When entering a number: Remove the last digit.
|
||||
Note: if you like to use <BS> for this, add this
|
||||
@ -515,7 +514,7 @@ T *+title* Setting the window 'title' and 'icon'; Always enabled
|
||||
N *+toolbar* |gui-toolbar|
|
||||
T *+user_commands* User-defined commands. |user-commands|
|
||||
Always enabled since 8.1.1210.
|
||||
H *+vartabs* Variable-width tabstops. |'vartabstop'|
|
||||
H *+vartabs* Variable-width tab stops. |'vartabstop'|
|
||||
T *+vertsplit* Vertically split windows |:vsplit|; Always enabled
|
||||
since 8.0.1118.
|
||||
T *+vim9script* |Vim9| script
|
||||
@ -525,6 +524,8 @@ T *+visual* Visual mode |Visual-mode| Always enabled since 7.4.200.
|
||||
T *+visualextra* extra Visual mode commands |blockwise-operators|
|
||||
T *+vreplace* |gR| and |gr|
|
||||
*+vtp* on MS-Windows console: support for 'termguicolors'
|
||||
N *+wayland* Unix only: support for the Wayland protocol.
|
||||
N *+wayland_clipboard* Unix only: support for Wayland selections/clipboard.
|
||||
T *+wildignore* |'wildignore'| Always enabled since 9.0.0278
|
||||
T *+wildmenu* |'wildmenu'| Always enabled since 9.0.0279
|
||||
T *+windows* more than one window; Always enabled since 8.0.1118.
|
||||
@ -792,7 +793,15 @@ K Run a program to lookup the keyword under the
|
||||
was used for the previous execution of this command.
|
||||
If the value was never specified, then it uses the
|
||||
value of $DISPLAY environment variable as it was when
|
||||
Vim was started.
|
||||
Vim was started. This will also update |v:clipmethod|.
|
||||
{only available when compiled with the
|
||||
|+xterm_clipboard| feature}
|
||||
|
||||
*:clipreset* *:clip*
|
||||
:clip[reset] Attempts to choose a new method for accessing the
|
||||
clipboard, using the 'clipmethod' option. This is
|
||||
useful when the current method has become unavailable,
|
||||
and you want to try using another method.
|
||||
{only available when compiled with the |+clipboard|
|
||||
feature}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*version9.txt* For Vim version 9.1. Last change: 2025 May 28
|
||||
*version9.txt* For Vim version 9.1. Last change: 2025 Jul 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -41553,8 +41553,12 @@ Enum support for Vim9 script |:enum|
|
||||
|
||||
Support for protected _new() method
|
||||
|
||||
Support for compiling all the methods in a Vim9 class using |:defcompile|.
|
||||
|
||||
Add support for object<{type}> as variable data type |vim9-types|
|
||||
|
||||
Support for the |Tuple| data type in Vim script and Vim9 script.
|
||||
|
||||
Diff mode ~
|
||||
---------
|
||||
Include the "linematch" algorithm for the 'diffopt' setting. This aligns
|
||||
@ -41565,29 +41569,70 @@ Improve the diff highlighting for changes within a line. Configurable using
|
||||
the "inline" sub option value for the 'diffopt' setting, with "inline:simple"
|
||||
being added to the default "diffopt" value (but this does not change how diff
|
||||
mode works).
|
||||
|
||||
Completion~
|
||||
----------
|
||||
- New Insert-mode completion: |i_CTRL-X_CTRL-R| to complete words from
|
||||
registers.
|
||||
- Completion in search contexts using |/|, |?|, |:g|, |:v| and |:vimgrep|
|
||||
commands using 'wildchar'
|
||||
- ":filetype" command completion and the "filetypecmd" completion type for
|
||||
|getcompletion()| have been included.
|
||||
- Support for command-line completion of 'keymap' option values.
|
||||
- Support for |fuzzy-matching| during |ins-completion| with the "fuzzy"
|
||||
values of the 'completeopt' setting.
|
||||
- allow to complete shell commands and files using the new shellcmdline
|
||||
completion type using |:command-complete| and |getcmdcomplpat()|
|
||||
- New option value for 'wildmode':
|
||||
"noselect" - do not auto select an entry in the wildmenu
|
||||
"exacttext" - show exact matches in wildmenu with search
|
||||
completion
|
||||
- New flags for 'complete':
|
||||
"F{func}" - complete using given function
|
||||
"F" - complete using 'completefunc'
|
||||
"o" - complete using 'omnifunc'
|
||||
- New option value for 'completeopt':
|
||||
"nosort" - do not sort completion results
|
||||
"preinsert" - highlight to be inserted values
|
||||
"nearest" - sort completion results by distance to cursor
|
||||
|
||||
Platform specific~
|
||||
-----------------
|
||||
- Support for Wayland UI and support for the Wayland clipboard has been added.
|
||||
|
||||
- Support for the XDG Desktop Specification |xdg-base-dir| has been added and
|
||||
the environment variable |$MYVIMDIR| is set to the users personal runtime
|
||||
directory ($HOME/.vim or $HOME/.config/vim on Linux, $HOME/vimfiles on
|
||||
Windows).
|
||||
|
||||
- Python3 support in OpenVMS is now available.
|
||||
|
||||
- The Win32 GUI comes with better toolbar icons.
|
||||
*new-other-9.2*
|
||||
Other new features ~
|
||||
------------------
|
||||
The new packages |package-comment|, |package-nohlsearch| and |package-hlyank|
|
||||
are included.
|
||||
- Support for Super key mappings in GTK using <D-Key>.
|
||||
|
||||
Support for Wayland UI.
|
||||
- The new packages |package-comment|, |package-nohlsearch|, |package-hlyank| and
|
||||
|help-TOC| are included.
|
||||
|
||||
Support for the XDG Desktop Specification |xdg-base-dir|
|
||||
- An interactive tutor plugin has been included |vim-tutor-mode| and can be
|
||||
started via |:Tutor|.
|
||||
|
||||
Support for translating messages in Vim script plugins using the |gettext()|
|
||||
and |bindtextdomain()| functions.
|
||||
- Support for translating messages in Vim script plugins using the |gettext()|
|
||||
and |bindtextdomain()| functions was included.
|
||||
|
||||
Support highlighting the matched text and the completion kind for insert-mode
|
||||
completion and command-line completion in |ins-completion-menu|, see
|
||||
|complete-items|
|
||||
- Support highlighting the matched text and the completion kind for
|
||||
insert-mode completion and command-line completion in |ins-completion-menu|,
|
||||
see |complete-items|.
|
||||
|
||||
Support for the |Tuple| data type in Vim script and Vim9 script.
|
||||
- A new vertical |tabpanel| window has been included which is a vertical
|
||||
'tabline'.
|
||||
|
||||
Support for a vertical |tabpanel| window similar to the 'tabline'.
|
||||
- The |dist#vim9#Launch()| and |dist#vim9#Open()| functions have been added to
|
||||
the |vim-script-library| and decoupled from |netrw|.
|
||||
|
||||
New Insert-mode completion: |i_CTRL-X_CTRL-R| to complete words from
|
||||
registers.
|
||||
- The new digraph "APPROACHES THE LIMIT" using ".=" has been added.
|
||||
|
||||
*changed-9.2*
|
||||
Changed~
|
||||
@ -41602,35 +41647,25 @@ Default values: ~
|
||||
increased to 12pt to accommodate modern high-dpi monitors
|
||||
- the default value of the 'keyprotocol' option has been updated and support
|
||||
for the ghostty terminal emulator (using kitty protocol) has been added
|
||||
- Improved visual highlighting |hl-Visual|
|
||||
- the default value for 'showcmd' is always enabled when using non-compatible
|
||||
mode (previously, it was off on UNIX systems) and consequently removed from
|
||||
|defaults.vim|
|
||||
|
||||
Completion: ~
|
||||
- allow to complete directories from 'cdpath' for |:cd| and similar commands,
|
||||
add the "cd_in_path" completion type for e.g. |:command-complete| and
|
||||
|getcompletion()|
|
||||
- allow to complete shell commands and files using the new shellcmdline
|
||||
completion type using |:command-complete| and |getcmdcomplpat()|
|
||||
- allow to specify additional attributes in the completion menu (allows to
|
||||
mark deprecated attributes from LSP server) |complete-items|
|
||||
- the completed word and completion type are provided when handling the
|
||||
|CompleteDone| autocommand in the |v:event| dictionary
|
||||
- |complete_info()| returns the list of matches shown in the poppu menu via
|
||||
the "matches" key
|
||||
- New option value for 'completeopt':
|
||||
"nosort" - do not sort completion results
|
||||
"preinsert" - highlight to be inserted values
|
||||
"nearest" - sort completion results by distance to cursor
|
||||
- handle multi-line completion items as expected
|
||||
- improved commandline completion for the |:hi| command
|
||||
- New option value for 'wildmode':
|
||||
"noselect" - do not auto select an entry in the wildmenu
|
||||
- New flags for 'complete':
|
||||
"F{func}" - complete using given function
|
||||
"F" - complete using 'completefunc'
|
||||
"o" - complete using 'omnifunc'
|
||||
- allow to limit matches for the 'complete' sources by using the
|
||||
"{flag}^<limit>" notation
|
||||
- add ":filetype" command completion
|
||||
- add "filetypecmd" completion type for |getcompletion()|
|
||||
- 'smartcase' applies to completion filtering
|
||||
|
||||
Options: ~
|
||||
@ -41639,6 +41674,8 @@ Options: ~
|
||||
- 'completeopt' is now a |global-local| option.
|
||||
- add 'cpoptions' flag "z" |cpo-z|, to disable some (traditional) vi
|
||||
behaviour/inconsistency (see |d-special| and |cw|).
|
||||
- add 'cpoptions' flag "~" |cpo-~| to disable resolving symlinks on |:cd|
|
||||
commands
|
||||
- new option values for 'fillchars':
|
||||
"trunc" - configure truncation indicator, 'pummaxwidth'
|
||||
"truncrl" - like "trunc" but in 'rl' mode, 'pummaxwidth'
|
||||
@ -41658,6 +41695,8 @@ Ex commands: ~
|
||||
documented and skips help buffers (if not run from a help buffer, else
|
||||
moves to the next/previous help buffer).
|
||||
- |:keeppatterns| preserves the last substitute pattern when used with |:s|
|
||||
- |:retab| accepts the new optional parameter -indentonly to only change
|
||||
whitespace in indented lines.
|
||||
|
||||
Functions: ~
|
||||
- provide information about function arguments using the get(func, "arity")
|
||||
@ -41676,16 +41715,11 @@ Others: ~
|
||||
(and apply proper case folding)
|
||||
- the putty terminal is detected using an |TermResponse| autocommand in
|
||||
|defaults.vim| and Vim switches to a dark background
|
||||
- the |help-TOC| package is included to ease navigating the documentation.
|
||||
- an interactive tutor plugin has been included |vim-tutor-mode|, can be
|
||||
started via |:Tutor|
|
||||
- improve the |vimtutor| and add a second chapter for more advanced tips
|
||||
- add |dist#vim9#Launch()| and |dist#vim9#Open()| to the |vim-script-library|
|
||||
and decouple it from |netrw|
|
||||
- new digraph "APPROACHES THE LIMIT" using ".="
|
||||
- |CTRL-C| always closes the active |popup-window|.
|
||||
- the configure script will favor using GTK3 over GTK2 when auto-detecting the
|
||||
gui toolkit
|
||||
- |gv| works in operator pending mode and does not abort
|
||||
|
||||
*added-9.2*
|
||||
Added ~
|
||||
@ -41706,6 +41740,7 @@ Functions: ~
|
||||
|getcellpixels()| get List of terminal cell pixel size
|
||||
|getcmdcomplpat()| Shell command line completion
|
||||
|getcmdprompt()| get prompt for input()/confirm()
|
||||
|getcompletiontype()| get command-line completion type
|
||||
|getregion()| get a region of text from a buffer
|
||||
|getregionpos()| get a list of positions for a region
|
||||
|getstacktrace()| get current stack trace of Vim scripts
|
||||
@ -41755,6 +41790,7 @@ Ex-Commands: ~
|
||||
|:pbuffer| Edit buffer [N] from the buffer list in the preview
|
||||
window
|
||||
|:redrawtabpanel| Force updating the 'tabpanel'.
|
||||
|:uniq| Deduplicate text in the current buffer.
|
||||
|
||||
Options: ~
|
||||
|
||||
@ -41767,7 +41803,8 @@ Options: ~
|
||||
'findfunc' Vim function to obtain the results for a |:find|
|
||||
command
|
||||
'isexpand' defines triggers for completion
|
||||
'lhistory' Size of the location list stack |quickfix-stack|.
|
||||
'lhistory' Size of the location list stack |quickfix-stack|
|
||||
'maxsearchcount' Set the maximum number for search-stat |shm-S|
|
||||
'messagesopt' configure |:messages| and |hit-enter| prompt
|
||||
'pummaxwidth' maximum width for the completion popup menu
|
||||
'showtabpanel' When to show the |tabpanel|
|
||||
@ -41779,32 +41816,16 @@ Options: ~
|
||||
't_CF' Support for alternate font highlighting terminal code
|
||||
'winfixbuf' Keep buffer focused in a window
|
||||
|
||||
Vim Arguments: ~
|
||||
|-Y| Do not connect to the Wayland compositor.
|
||||
|
||||
|
||||
==============================================================================
|
||||
INCOMPATIBLE CHANGES *incompatible-9.2*
|
||||
|
||||
Improved/Different MS-Windows mapping support
|
||||
|w32-experimental-keycode-trans-strategy|
|
||||
|
||||
==============================================================================
|
||||
IMPROVEMENTS *improvements-9.2*
|
||||
|
||||
Support for command-line completion of 'keymap' option values.
|
||||
|
||||
Support for compiling all the methods in a Vim9 class using |:defcompile|.
|
||||
|
||||
Support for Super key mappings in GTK using <D-Key>.
|
||||
|
||||
Improved visual highlighting.
|
||||
|
||||
Python3 support in OpenVMS.
|
||||
|
||||
Support for |fuzzy-matching| during |ins-completion| with the "fuzzy"
|
||||
values of the 'completeopt' setting
|
||||
|
||||
The environment variable |$MYVIMDIR| is set to the users personal runtime
|
||||
directory ($HOME/.vim or $HOME/.config/vim on Linux, $HOME/vimfiles
|
||||
on Windows)
|
||||
|
||||
==============================================================================
|
||||
COMPILE TIME CHANGES *compile-changes-9.2*
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*vi_diff.txt* For Vim version 9.1. Last change: 2025 Jun 02
|
||||
*vi_diff.txt* For Vim version 9.1. Last change: 2025 Jun 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1102,7 +1102,7 @@ The following options are supported by Vi: ~
|
||||
'shiftwidth' 'sw' number of spaces to use for (auto)indent step
|
||||
'showmatch' 'sm' briefly jump to matching bracket if insert one
|
||||
'showmode' 'smd' message on status line to show current mode
|
||||
'tabstop' 'ts' number of spaces that <Tab> in file uses
|
||||
'tabstop' 'ts' number of columns between two tab stops
|
||||
'taglength' 'tl' number of significant characters for a tag
|
||||
'tags' 'tag' list of file names used by the tag command
|
||||
{Vi: default is "tags /usr/lib/tags"}
|
||||
|
@ -1,4 +1,4 @@
|
||||
.TH VIM 1 "12 agosto 2024"
|
||||
.TH VIM 1 "27 giugno 2025"
|
||||
.SH NOME
|
||||
vim \- VI Migliorato, un editor di testi per programmatori
|
||||
.SH SINTASSI
|
||||
@ -404,6 +404,9 @@ nella scrittura dei file. Verr
|
||||
Non connettersi al server X. Vim parte pi<70> rapidamente,
|
||||
ma il titolo della finestra e la clipboard non sono usati.
|
||||
.TP
|
||||
\-Y
|
||||
Non connettersi al compositore Wayland.
|
||||
.TP
|
||||
\-y
|
||||
Eseguire
|
||||
.B Vim
|
||||
@ -564,7 +567,7 @@ Inizializzazioni personali di
|
||||
.B gVim
|
||||
(viene utilizzata la prima trovata).
|
||||
.TP
|
||||
/usr/local/share/vim/optwin.vim
|
||||
/usr/local/share/vim/vim??/optwin.vim
|
||||
Script Vim usato dal comando ":options", maniera elegante per visualizzare e impostare opzioni.
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/menu.vim
|
||||
|
@ -1,4 +1,4 @@
|
||||
.TH VIM 1 "12 agosto 2024"
|
||||
.TH VIM 1 "27 giugno 2025"
|
||||
.SH NOME
|
||||
vim \- VI Migliorato, un editor di testi per programmatori
|
||||
.SH SINTASSI
|
||||
@ -404,6 +404,9 @@ nella scrittura dei file. Verrà chiesta una chiave di cifratura.
|
||||
Non connettersi al server X. Vim parte più rapidamente,
|
||||
ma il titolo della finestra e la clipboard non sono usati.
|
||||
.TP
|
||||
\-Y
|
||||
Non connettersi al compositore Wayland.
|
||||
.TP
|
||||
\-y
|
||||
Eseguire
|
||||
.B Vim
|
||||
@ -564,7 +567,7 @@ Inizializzazioni personali di
|
||||
.B gVim
|
||||
(viene utilizzata la prima trovata).
|
||||
.TP
|
||||
/usr/local/share/vim/optwin.vim
|
||||
/usr/local/share/vim/vim??/optwin.vim
|
||||
Script Vim usato dal comando ":options", maniera elegante per visualizzare e impostare opzioni.
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/menu.vim
|
||||
|
@ -1,4 +1,4 @@
|
||||
.TH VIM 1 "12 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2024"
|
||||
.TH VIM 1 "27 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2025"
|
||||
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim \[em] <20><><EFBFBD> Vi IMproved (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vi), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
@ -300,7 +300,7 @@ vim "+set si" main.c
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>).
|
||||
<EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":set uc=0". <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \[em]
|
||||
<EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":set uc=0". <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \[em]
|
||||
":set uc=200".
|
||||
.TP
|
||||
\-N
|
||||
@ -316,7 +316,7 @@ vim "+set si" main.c
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
.TP
|
||||
\-o[N]
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> N <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> N <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> N <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
.TP
|
||||
\-O[N]
|
||||
@ -329,7 +329,7 @@ vim "+set si" main.c
|
||||
.TP
|
||||
\-P {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>}
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD> <20> MS Windows. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD> <20> MS Windows. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>}.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>} <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
@ -367,7 +367,7 @@ vim "+set si" main.c
|
||||
\-s {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>}
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>}.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":source! {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>}".
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>} <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
@ -433,7 +433,7 @@ vim "+set si" main.c
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> {<7B><><EFBFBD><EFBFBD>}.
|
||||
<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> {<7B><><EFBFBD><EFBFBD>}.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "vim \-s" <20><><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":source!".
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> {<7B><><EFBFBD><EFBFBD>} <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.
|
||||
.TP
|
||||
@ -453,12 +453,15 @@ vim "+set si" main.c
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
.TP
|
||||
\-Y
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> Wayland Compositor.
|
||||
.TP
|
||||
\-y
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
"evim" <20><><EFBFBD> "eview".
|
||||
"evim" <20><><EFBFBD> "eview".
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
@ -542,7 +545,7 @@ vim "+set si" main.c
|
||||
.TP
|
||||
\-\-remote\-expr {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> Vim-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>} <20><><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (stdout).
|
||||
.TP
|
||||
\-\-remote\-send {<7B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}
|
||||
@ -562,8 +565,8 @@ vim "+set si" main.c
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
.TP
|
||||
\-\-servername {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>} <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
"\-\-remote" <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>} <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim,
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>} <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
"\-\-remote" <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> {<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>} <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim,
|
||||
<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
.TP
|
||||
\-\-socketid {id}
|
||||
@ -591,8 +594,8 @@ vim "+set si" main.c
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":help ZZ" <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "ZZ".
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <TAB> <20> CTRL+D <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
(<28><>. ":help cmdline\-completion").
|
||||
<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD>-<2D><>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>. ":help"). <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD>-<2D><>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>. ":help"). <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, ":help syntax.txt".
|
||||
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.TP 15
|
||||
@ -635,7 +638,7 @@ vim "+set si" main.c
|
||||
(<28><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>).
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/optwin.vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":options".
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":options".
|
||||
<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/menu.vim
|
||||
@ -664,20 +667,20 @@ vimtutor(1)
|
||||
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Bram Moolenaar), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Bram Moolenaar), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>. <20><>. ":help credits" <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim.
|
||||
.br
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Stevie, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Tim Thompson),
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Tony Andrews) <20> <20>. <20>. (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (G.R. (Fred) Walter).
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Tony Andrews) <20> <20>. <20>. (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (G.R. (Fred) Walter).
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
.br
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
.B Vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22><><EFBFBD><EFBFBD><EFBFBD>",
|
||||
<EFBFBD><EFBFBD>. <URL:https://github.com/restorerz/ruvim/>.
|
||||
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
@ -685,7 +688,7 @@ vimtutor(1)
|
||||
.PP
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vi.
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD>-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>
|
||||
"Vi <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> vi_diff.txt
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD>-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>
|
||||
"Vi <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> vi_diff.txt
|
||||
(<28><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ":help vi_diff.txt" <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim) <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'compatible' <20> 'cpoptions'.
|
||||
|
@ -1,4 +1,4 @@
|
||||
.TH VIM 1 "12 августа 2024"
|
||||
.TH VIM 1 "27 июня 2025"
|
||||
.SH НАЗНАЧЕНИЕ
|
||||
Программа Vim \[em] это Vi IMproved (Улучшенный Vi), текстовый редактор для
|
||||
программистов.
|
||||
@ -300,7 +300,7 @@ vim "+set si" main.c
|
||||
Работа без создания файла подкачки.
|
||||
В этом случае восстановление при сбое в работе редактора будет невозможно.
|
||||
Удобно для правки файла на очень медленном носителе (например, гибком диске).
|
||||
То же самое можно сделать командой ":set uc=0". Включение файла подкачки \[em]
|
||||
То же самое можно сделать командой ":set uc=0". Включение файла подкачки \[em]
|
||||
":set uc=200".
|
||||
.TP
|
||||
\-N
|
||||
@ -316,7 +316,7 @@ vim "+set si" main.c
|
||||
смотрите в документации.
|
||||
.TP
|
||||
\-o[N]
|
||||
Создать для N файлов отдельные окна, расположенные по горизонтали.
|
||||
Создать для N файлов отдельные окна, расположенные по горизонтали.
|
||||
Если N не указано, то создаётся по одному окну на каждый файл.
|
||||
.TP
|
||||
\-O[N]
|
||||
@ -329,7 +329,7 @@ vim "+set si" main.c
|
||||
.TP
|
||||
\-P {заголовок окна}
|
||||
Открыть программу в многодокументном приложении.
|
||||
Только для ГИП в MS Windows. Задаёт заголовок окна родительского приложения.
|
||||
Только для ГИП в MS Windows. Задаёт заголовок окна родительского приложения.
|
||||
Если возможно, то программа Vim будет запущена внутри окна многодокументного
|
||||
приложения. Многодокументное приложение должно иметь указанный {заголовок окна}.
|
||||
Убедитесь, что этот {заголовок окна} уникален для приложения. Обращаем внимание,
|
||||
@ -367,7 +367,7 @@ vim "+set si" main.c
|
||||
\-s {командный файл}
|
||||
Считывание команд режима команд из {командного файла}.
|
||||
Содержимое файла воспринимается в виде команд, как если бы они были набраны
|
||||
непосредственно в редакторе.
|
||||
непосредственно в редакторе.
|
||||
То же самое достигается командой ":source! {командный файл}".
|
||||
Если после исполнения всех команд из {командного файла} работа редактора
|
||||
продолжается, то дальнейший ввод команд и текста ожидается с клавиатуры.
|
||||
@ -433,7 +433,7 @@ vim "+set si" main.c
|
||||
Добавление всех введённых команд в {файл}.
|
||||
Все символы, введённые с клавиатуры вплоть до момента завершения работы
|
||||
редактора, записываются в {файл}.
|
||||
Удобно в том случае, когда вы хотите создать командный файл для последующего
|
||||
Удобно в том случае, когда вы хотите создать командный файл для последующего
|
||||
его использования в командной строке "vim \-s" или в команде ":source!".
|
||||
Если {файл} уже существует, то набранный текст будет добавляются в конец файла.
|
||||
.TP
|
||||
@ -453,12 +453,15 @@ vim "+set si" main.c
|
||||
Ускоряет загрузку в консоли, но делает невозможным использование заголовка окна
|
||||
и буфера обмена.
|
||||
.TP
|
||||
\-Y
|
||||
Запуск программы без подключения к Wayland Compositor.
|
||||
.TP
|
||||
\-y
|
||||
Работа в упрощённом варианте.
|
||||
Редактор
|
||||
.B Vim
|
||||
будет работать в упрощённом варианте, как будто исполняемый файл имеет название
|
||||
"evim" или "eview".
|
||||
"evim" или "eview".
|
||||
Поведение редактора
|
||||
.B Vim
|
||||
будет походить на редакторы, созданные по безрежимному принципу работы.
|
||||
@ -542,7 +545,7 @@ vim "+set si" main.c
|
||||
.TP
|
||||
\-\-remote\-expr {выражение}
|
||||
Будет выполнено подключение к Vim-серверу и передача указанного {выражение} для
|
||||
вычисления.
|
||||
вычисления.
|
||||
Результат вычисления будет выведен в поток стандартного вывода (stdout).
|
||||
.TP
|
||||
\-\-remote\-send {код клавиши}
|
||||
@ -562,8 +565,8 @@ vim "+set si" main.c
|
||||
Будет выведен перечень всех доступных Vim-серверов.
|
||||
.TP
|
||||
\-\-servername {название}
|
||||
Использовать указанное {название} в качестве наименования сервера. Если аргумент
|
||||
"\-\-remote" не указан, то {название} присваивается данной копии редактора Vim,
|
||||
Использовать указанное {название} в качестве наименования сервера. Если аргумент
|
||||
"\-\-remote" не указан, то {название} присваивается данной копии редактора Vim,
|
||||
в противном случае указывает на сервер, к которому следует подключиться.
|
||||
.TP
|
||||
\-\-socketid {id}
|
||||
@ -591,8 +594,8 @@ vim "+set si" main.c
|
||||
Например, по команде ":help ZZ" будет выведена информация о команде "ZZ".
|
||||
Используйте клавиши <TAB> и CTRL+D для подстановки нужного названия темы
|
||||
(см. ":help cmdline\-completion").
|
||||
Для быстрого перемещения по документации используются индексы (что-то
|
||||
вроде гипертекстовых ссылок, см. ":help"). Таким образом можно
|
||||
Для быстрого перемещения по документации используются индексы (что-то
|
||||
вроде гипертекстовых ссылок, см. ":help"). Таким образом можно
|
||||
переходить от одного файла документации к другому, например, ":help syntax.txt".
|
||||
.SH ФАЙЛЫ
|
||||
.TP 15
|
||||
@ -635,7 +638,7 @@ vim "+set si" main.c
|
||||
(будет использован первый найденный файл из указанных).
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/optwin.vim
|
||||
Командный файл, используемый при выполнении команды ":options".
|
||||
Командный файл, используемый при выполнении команды ":options".
|
||||
По этой команде предоставляется удобный способ просмотра и изменения настроек.
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/menu.vim
|
||||
@ -664,20 +667,20 @@ vimtutor(1)
|
||||
.SH АВТОРЫ
|
||||
Большая часть редактора
|
||||
.B Vim
|
||||
была создана Брамом Моленаром (Bram Moolenaar), которому помогало огромное
|
||||
была создана Брамом Моленаром (Bram Moolenaar), которому помогало огромное
|
||||
количество людей. См. ":help credits" в редакторе
|
||||
.B Vim.
|
||||
.br
|
||||
Редактор
|
||||
.B Vim
|
||||
базируется на коде редактора Stevie, написанного Тимом Томпсоном (Tim Thompson),
|
||||
Тони Эндрюсом (Tony Andrews) и Г. Р. (Фредом) Уолтером (G.R. (Fred) Walter).
|
||||
Тони Эндрюсом (Tony Andrews) и Г. Р. (Фредом) Уолтером (G.R. (Fred) Walter).
|
||||
Однако, в настоящее время в программе Vim почти ничего не осталось
|
||||
от исторического кода его предшественника.
|
||||
.br
|
||||
Русская локализация редактора
|
||||
.B Vim
|
||||
выполняется в рамках проекта "РуВим",
|
||||
.B Vim
|
||||
выполняется в рамках проекта "РуВим",
|
||||
см. <URL:https://github.com/restorerz/ruvim/>.
|
||||
.SH ОШИБКИ
|
||||
Скорее всего есть.
|
||||
@ -685,7 +688,7 @@ vimtutor(1)
|
||||
.PP
|
||||
Заметим, что многие вещи, которые считаются ошибками, на самом деле
|
||||
являются результатом слишком полного воспроизведения поведения редактора Vi.
|
||||
Если вы думаете, что что-то является ошибкой только потому, что
|
||||
"Vi делает это по-другому", внимательно прочитайте файл vi_diff.txt
|
||||
Если вы думаете, что что-то является ошибкой только потому, что
|
||||
"Vi делает это по-другому", внимательно прочитайте файл vi_diff.txt
|
||||
(или наберите ":help vi_diff.txt" в редакторе Vim) и посмотрите параметры
|
||||
'compatible' и 'cpoptions'.
|
||||
|
@ -1,4 +1,4 @@
|
||||
.TH VIM 1 "2024 Aug 12"
|
||||
.TH VIM 1 "2025 Jun 27"
|
||||
.SH NAME
|
||||
vim \- Vi IMproved, a programmer's text editor
|
||||
.SH SYNOPSIS
|
||||
@ -404,6 +404,9 @@ Will prompt for a crypt key.
|
||||
Don't connect to the X server. Shortens startup time in a terminal, but the
|
||||
window title and clipboard will not be used.
|
||||
.TP
|
||||
\-Y
|
||||
Don't connect to the wayland compositor
|
||||
.TP
|
||||
\-y
|
||||
Start
|
||||
.B Vim
|
||||
@ -559,7 +562,7 @@ initializations (first one found is used).
|
||||
System wide gvim initializations.
|
||||
.TP
|
||||
~/.gvimrc, ~/.vim/gvimrc, $XDG_CONFIG_HOME/vim/gvimrc
|
||||
Your personal
|
||||
Your personal
|
||||
.B gVim
|
||||
initializations (first one found is used).
|
||||
.TP
|
||||
@ -567,7 +570,7 @@ initializations (first one found is used).
|
||||
Script used for the ":options" command, a nice way to view and set options.
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/menu.vim
|
||||
System wide menu initializations for
|
||||
System wide menu initializations for
|
||||
.B gVim.
|
||||
.TP
|
||||
/usr/local/share/vim/vim??/bugreport.vim
|
||||
|
@ -36,11 +36,11 @@ DESCRIPTION
|
||||
vim [options] [filelist]
|
||||
|
||||
If the filelist is missing, the editor will start with an empty buffer.
|
||||
Otherwise exactly one out of the following four may be used to choose
|
||||
Otherwise exactly one out of the following four may be used to choose
|
||||
one or more files to be edited.
|
||||
|
||||
file .. A list of filenames. The first one will be the current
|
||||
file and read into the buffer. The cursor will be posi‐
|
||||
file .. A list of filenames. The first one will be the current
|
||||
file and read into the buffer. The cursor will be posi‐
|
||||
tioned on the first line of the buffer. You can get to the
|
||||
other files with the ":next" command. To edit a file that
|
||||
starts with a dash, precede the filelist with "--".
|
||||
@ -49,18 +49,18 @@ DESCRIPTION
|
||||
from stderr, which should be a tty.
|
||||
|
||||
-t {tag} The file to edit and the initial cursor position depends on
|
||||
a "tag", a sort of goto label. {tag} is looked up in the
|
||||
a "tag", a sort of goto label. {tag} is looked up in the
|
||||
tags file, the associated file becomes the current file and
|
||||
the associated command is executed. Mostly this is used
|
||||
for C programs, in which case {tag} could be a function
|
||||
name. The effect is that the file containing that function
|
||||
becomes the current file and the cursor is positioned on
|
||||
becomes the current file and the cursor is positioned on
|
||||
the start of the function. See ":help tag-commands".
|
||||
|
||||
-q [errorfile]
|
||||
Start in quickFix mode. The file [errorfile] is read and
|
||||
the first error is displayed. If [errorfile] is omitted,
|
||||
the filename is obtained from the 'errorfile' option (de‐
|
||||
Start in quickFix mode. The file [errorfile] is read and
|
||||
the first error is displayed. If [errorfile] is omitted,
|
||||
the filename is obtained from the 'errorfile' option (de‐
|
||||
faults to "AztecC.Err" for the Amiga, "errors.err" on other
|
||||
systems). Further errors can be jumped to with the ":cn"
|
||||
command. See ":help quickfix".
|
||||
@ -70,10 +70,10 @@ DESCRIPTION
|
||||
|
||||
vim The "normal" way, everything is default.
|
||||
|
||||
ex Start in Ex mode. Go to Normal mode with the ":vi" command.
|
||||
ex Start in Ex mode. Go to Normal mode with the ":vi" command.
|
||||
Can also be done with the "-e" argument.
|
||||
|
||||
view Start in read-only mode. You will be protected from writing
|
||||
view Start in read-only mode. You will be protected from writing
|
||||
the files. Can also be done with the "-R" argument.
|
||||
|
||||
gvim gview
|
||||
@ -124,72 +124,72 @@ OPTIONS
|
||||
ists.
|
||||
|
||||
-d Start in diff mode. There should between two to eight file
|
||||
name arguments. Vim will open all the files and show dif‐
|
||||
name arguments. Vim will open all the files and show dif‐
|
||||
ferences between them. Works like vimdiff(1).
|
||||
|
||||
-d {device}, -dev {device}
|
||||
Open {device} for use as a terminal. Only on the Amiga.
|
||||
Open {device} for use as a terminal. Only on the Amiga.
|
||||
Example: "-d con:20/30/600/150".
|
||||
|
||||
-D Debugging. Go to debugging mode when executing the first
|
||||
-D Debugging. Go to debugging mode when executing the first
|
||||
command from a script.
|
||||
|
||||
-e Start Vim in Ex mode, just like the executable was called
|
||||
-e Start Vim in Ex mode, just like the executable was called
|
||||
"ex".
|
||||
|
||||
-E Start Vim in improved Ex mode, just like the executable was
|
||||
called "exim".
|
||||
|
||||
-f Foreground. For the GUI version, Vim will not fork and de‐
|
||||
tach from the shell it was started in. On the Amiga, Vim
|
||||
is not restarted to open a new window. This option should
|
||||
be used when Vim is executed by a program that will wait
|
||||
for the edit session to finish (e.g. mail). On the Amiga
|
||||
tach from the shell it was started in. On the Amiga, Vim
|
||||
is not restarted to open a new window. This option should
|
||||
be used when Vim is executed by a program that will wait
|
||||
for the edit session to finish (e.g. mail). On the Amiga
|
||||
the ":sh" and ":!" commands will not work.
|
||||
|
||||
-F If Vim has been compiled with FKMAP support for editing
|
||||
right-to-left oriented files and Farsi keyboard mapping,
|
||||
this option starts Vim in Farsi mode, i.e. 'fkmap' and
|
||||
'rightleft' are set. Otherwise an error message is given
|
||||
-F If Vim has been compiled with FKMAP support for editing
|
||||
right-to-left oriented files and Farsi keyboard mapping,
|
||||
this option starts Vim in Farsi mode, i.e. 'fkmap' and
|
||||
'rightleft' are set. Otherwise an error message is given
|
||||
and Vim aborts.
|
||||
Note: Farsi support has been removed in patch 8.1.0932.
|
||||
|
||||
-g If Vim has been compiled with GUI support, this option en‐
|
||||
-g If Vim has been compiled with GUI support, this option en‐
|
||||
ables the GUI. If no GUI support was compiled in, an error
|
||||
message is given and Vim aborts.
|
||||
|
||||
-H If Vim has been compiled with RIGHTLEFT support for editing
|
||||
right-to-left oriented files and Hebrew keyboard mapping,
|
||||
this option starts Vim in Hebrew mode, i.e. 'hkmap' and
|
||||
'rightleft' are set. Otherwise an error message is given
|
||||
right-to-left oriented files and Hebrew keyboard mapping,
|
||||
this option starts Vim in Hebrew mode, i.e. 'hkmap' and
|
||||
'rightleft' are set. Otherwise an error message is given
|
||||
and Vim aborts.
|
||||
|
||||
-i {viminfo}
|
||||
Specifies the filename to use when reading or writing the
|
||||
viminfo file, instead of the default "~/.viminfo". This
|
||||
can also be used to skip the use of the .viminfo file, by
|
||||
Specifies the filename to use when reading or writing the
|
||||
viminfo file, instead of the default "~/.viminfo". This
|
||||
can also be used to skip the use of the .viminfo file, by
|
||||
giving the name "NONE".
|
||||
|
||||
-l Lisp mode. Sets the 'lisp' and 'showmatch' options on.
|
||||
|
||||
-L Same as -r.
|
||||
|
||||
-m Modifying files is disabled. Resets the 'write' option.
|
||||
You can still modify the buffer, but writing a file is not
|
||||
-m Modifying files is disabled. Resets the 'write' option.
|
||||
You can still modify the buffer, but writing a file is not
|
||||
possible.
|
||||
|
||||
-M Modifications not allowed. The 'modifiable' and 'write'
|
||||
options will be unset, so that changes are not allowed and
|
||||
files can not be written. Note that these options can be
|
||||
-M Modifications not allowed. The 'modifiable' and 'write'
|
||||
options will be unset, so that changes are not allowed and
|
||||
files can not be written. Note that these options can be
|
||||
set to enable making modifications.
|
||||
|
||||
-n No swap file will be used. Recovery after a crash will be
|
||||
impossible. Handy if you want to edit a file on a very
|
||||
slow medium (e.g. floppy). Can also be done with ":set
|
||||
-n No swap file will be used. Recovery after a crash will be
|
||||
impossible. Handy if you want to edit a file on a very
|
||||
slow medium (e.g. floppy). Can also be done with ":set
|
||||
uc=0". Can be undone with ":set uc=200".
|
||||
|
||||
-N No-compatible mode. Resets the 'compatible' option. This
|
||||
will make Vim behave a bit better, but less Vi compatible,
|
||||
-N No-compatible mode. Resets the 'compatible' option. This
|
||||
will make Vim behave a bit better, but less Vi compatible,
|
||||
even though a .vimrc file does not exist.
|
||||
|
||||
-nb Become an editor server for NetBeans. See the docs for de‐
|
||||
@ -198,7 +198,7 @@ OPTIONS
|
||||
-o[N] Open N windows stacked. When N is omitted, open one window
|
||||
for each file.
|
||||
|
||||
-O[N] Open N windows side by side. When N is omitted, open one
|
||||
-O[N] Open N windows side by side. When N is omitted, open one
|
||||
window for each file.
|
||||
|
||||
-p[N] Open N tab pages. When N is omitted, open one tab page for
|
||||
@ -209,15 +209,15 @@ OPTIONS
|
||||
tion. When possible, Vim will run in an MDI window inside
|
||||
the application. {parent-title} must appear in the window
|
||||
title of the parent application. Make sure that it is spe‐
|
||||
cific enough. Note that the implementation is still primi‐
|
||||
tive. It won't work with all applications and the menu
|
||||
cific enough. Note that the implementation is still primi‐
|
||||
tive. It won't work with all applications and the menu
|
||||
doesn't work.
|
||||
|
||||
-r List swap files, with information about using them for re‐
|
||||
-r List swap files, with information about using them for re‐
|
||||
covery.
|
||||
|
||||
-r {file} Recovery mode. The swap file is used to recover a crashed
|
||||
editing session. The swap file is a file with the same
|
||||
-r {file} Recovery mode. The swap file is used to recover a crashed
|
||||
editing session. The swap file is a file with the same
|
||||
filename as the text file with ".swp" appended. See ":help
|
||||
recovery".
|
||||
|
||||
@ -272,15 +272,15 @@ OPTIONS
|
||||
|
||||
-V[N]{filename}
|
||||
Like -V and set 'verbosefile' to {filename}. The result is
|
||||
that messages are not displayed but written to the file
|
||||
that messages are not displayed but written to the file
|
||||
{filename}. {filename} must not start with a digit.
|
||||
|
||||
-w{number} Set the 'window' option to {number}.
|
||||
|
||||
-w {scriptout}
|
||||
All the characters that you type are recorded in the file
|
||||
{scriptout}, until you exit Vim. This is useful if you
|
||||
want to create a script file to be used with "vim -s" or
|
||||
All the characters that you type are recorded in the file
|
||||
{scriptout}, until you exit Vim. This is useful if you
|
||||
want to create a script file to be used with "vim -s" or
|
||||
":source!". If the {scriptout} file exists, characters are
|
||||
appended.
|
||||
|
||||
@ -294,33 +294,35 @@ OPTIONS
|
||||
terminal, but the window title and clipboard will not be
|
||||
used.
|
||||
|
||||
-Y Don't connect to the wayland compositor
|
||||
|
||||
-y Start Vim in easy mode, just like the executable was called
|
||||
"evim" or "eview". Makes Vim behave like a click-and-type
|
||||
"evim" or "eview". Makes Vim behave like a click-and-type
|
||||
editor.
|
||||
|
||||
-Z Restricted mode. Works like the executable starts with
|
||||
-Z Restricted mode. Works like the executable starts with
|
||||
"r".
|
||||
|
||||
-- Denotes the end of the options. Arguments after this will
|
||||
be handled as a file name. This can be used to edit a
|
||||
-- Denotes the end of the options. Arguments after this will
|
||||
be handled as a file name. This can be used to edit a
|
||||
filename that starts with a '-'.
|
||||
|
||||
--clean Do not use any personal configuration (vimrc, plugins,
|
||||
etc.). Useful to see if a problem reproduces with a clean
|
||||
--clean Do not use any personal configuration (vimrc, plugins,
|
||||
etc.). Useful to see if a problem reproduces with a clean
|
||||
Vim setup.
|
||||
|
||||
--cmd {command}
|
||||
Like using "-c", but the command is executed just before
|
||||
processing any vimrc file. You can use up to 10 of these
|
||||
Like using "-c", but the command is executed just before
|
||||
processing any vimrc file. You can use up to 10 of these
|
||||
commands, independently from "-c" commands.
|
||||
|
||||
--echo-wid GTK GUI only: Echo the Window ID on stdout.
|
||||
|
||||
--gui-dialog-file {name}
|
||||
When using the GUI, instead of showing a dialog, write the
|
||||
title and message of the dialog to file {name}. The file
|
||||
is created or appended to. Only useful for testing, to
|
||||
avoid that the test gets stuck on a dialog that can't be
|
||||
When using the GUI, instead of showing a dialog, write the
|
||||
title and message of the dialog to file {name}. The file
|
||||
is created or appended to. Only useful for testing, to
|
||||
avoid that the test gets stuck on a dialog that can't be
|
||||
seen. Without the GUI the argument is ignored.
|
||||
|
||||
--help, -h, -?
|
||||
@ -374,7 +376,7 @@ OPTIONS
|
||||
List the names of all Vim servers that can be found.
|
||||
|
||||
--servername {name}
|
||||
Use {name} as the server name. Used for the current Vim,
|
||||
Use {name} as the server name. Used for the current Vim,
|
||||
unless used with a --remote argument, then it's the name of
|
||||
the server to connect to.
|
||||
|
||||
@ -404,12 +406,12 @@ ON-LINE HELP
|
||||
|
||||
FILES
|
||||
/usr/local/share/vim/vim??/doc/*.txt
|
||||
The Vim documentation files. Use ":help doc-file-list"
|
||||
The Vim documentation files. Use ":help doc-file-list"
|
||||
to get the complete list.
|
||||
vim?? is short version number, like vim91 for Vim 9.1
|
||||
|
||||
/usr/local/share/vim/vim??/doc/tags
|
||||
The tags file used for finding information in the docu‐
|
||||
The tags file used for finding information in the docu‐
|
||||
mentation files.
|
||||
|
||||
/usr/local/share/vim/vim??/syntax/syntax.vim
|
||||
@ -422,18 +424,18 @@ FILES
|
||||
System wide Vim initializations.
|
||||
|
||||
~/.vimrc, ~/.vim/vimrc, $XDG_CONFIG_HOME/vim/vimrc
|
||||
Your personal Vim initializations (first one found is
|
||||
Your personal Vim initializations (first one found is
|
||||
used).
|
||||
|
||||
/usr/local/share/vim/gvimrc
|
||||
System wide gvim initializations.
|
||||
|
||||
~/.gvimrc, ~/.vim/gvimrc, $XDG_CONFIG_HOME/vim/gvimrc
|
||||
Your personal gVim initializations (first one found is
|
||||
Your personal gVim initializations (first one found is
|
||||
used).
|
||||
|
||||
/usr/local/share/vim/vim??/optwin.vim
|
||||
Script used for the ":options" command, a nice way to
|
||||
Script used for the ":options" command, a nice way to
|
||||
view and set options.
|
||||
|
||||
/usr/local/share/vim/vim??/menu.vim
|
||||
@ -443,11 +445,11 @@ FILES
|
||||
Script to generate a bug report. See ":help bugs".
|
||||
|
||||
/usr/local/share/vim/vim??/filetype.vim
|
||||
Script to detect the type of a file by its name. See
|
||||
Script to detect the type of a file by its name. See
|
||||
":help 'filetype'".
|
||||
|
||||
/usr/local/share/vim/vim??/scripts.vim
|
||||
Script to detect the type of a file by its contents.
|
||||
Script to detect the type of a file by its contents.
|
||||
See ":help 'filetype'".
|
||||
|
||||
/usr/local/share/vim/vim??/print/*.ps
|
||||
@ -475,4 +477,4 @@ BUGS
|
||||
vi_diff.txt when in Vim). Also have a look at the 'compatible' and
|
||||
'cpoptions' options.
|
||||
|
||||
2024 Aug 12 VIM(1)
|
||||
2025 Jun 27 VIM(1)
|
||||
|
@ -1,60 +1,119 @@
|
||||
.TH VIMTUTOR 1 "2 avril 2001"
|
||||
.TH VIMTUTOR 1 "3 d<>cembre 2024"
|
||||
.SH NAME
|
||||
vimtutor \- tutoriel Vim
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.B vimtutor [\-g] [langue]
|
||||
.B vimtutor [\-l | \-\-language ISO639] [\-c | \-\-chapter NUM<EFBFBD>RO] [\-g | \-\-gui] [ISO639]
|
||||
.br
|
||||
.B vimtutor [\-h | \-\-help]
|
||||
.br
|
||||
.B vimtutor [\-\-list]
|
||||
.SH DESCRIPTION
|
||||
.B Vimtutor
|
||||
.B vimtutor
|
||||
lance le tutoriel
|
||||
.B Vim
|
||||
\.
|
||||
Il copie d'abord le fichier du tutoriel, afin que vous puissiez le modifier
|
||||
sans alt<6C>rer le fichier original.
|
||||
.BR "Vim" "."
|
||||
.PP
|
||||
.B Vimtutor
|
||||
est utile pour les personnes souhaitant apprendre leurs premi<6D>res commandes
|
||||
.B Vim
|
||||
\.
|
||||
.B vimtutor
|
||||
est utile pour les personnes souhaitant apprendre leurs premi<6D>res
|
||||
commandes
|
||||
.BR "Vim" "."
|
||||
.PP
|
||||
L'argument optionnel \-g lance vimtutor avec gvim plut<75>t qu'avec vim, si l'IHM
|
||||
graphique de vim est disponible, ou le lance avec vim si gvim n'est pas
|
||||
disponible.
|
||||
L'argument optionel [ISO639] correspond aux deux ou trois lettres qui identifient
|
||||
une langue, comme par exemple "it" ou "es".
|
||||
.PP
|
||||
L'argument optionnel [langue] est le nom d'une langue, sp<73>cifi<66>e par son
|
||||
symbole <20> deux lettres, tels que "it" ou "es". Si l'argument [langue] est omis,
|
||||
la langue de la r<>gion linguistique actuelle sera retenue. Si le tutoriel est
|
||||
disponible dans cette langue, il est propos<6F>. Sinon, c'est la version anglaise
|
||||
qui est propos<6F>e.
|
||||
.B vimtutor
|
||||
ne fait qu'ouvrir une copie temporaire des fichiers du tutoriel, il n'y
|
||||
a donc aucun risque d'<27>craser les le<6C>ons.
|
||||
.PP
|
||||
.B Vim
|
||||
est toujours lanc<6E> en mode Compatible Vi.
|
||||
est toujours lanc<6E> en mode
|
||||
.B Vi
|
||||
compatible.
|
||||
.PP
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-l ", " \-\-language\ \fIISO639\fR
|
||||
Les deux ou trois lettres qui d<>terminent la langue, comme
|
||||
par exemple 'it', 'es' ou 'bar'.
|
||||
Par d<>faut, la langue locale du syst<73>me est utilis<69>e,
|
||||
ou l'anglais sinon.
|
||||
.TP
|
||||
.BR \-c ", " \-\-chapter\ \fINUM<EFBFBD>RO\fR
|
||||
S<EFBFBD>lectionne le chapitre d<>sir<69>. Par d<>faut, c'est le premier chapitre.
|
||||
.TP
|
||||
.BR \-g ", " \-\-gui
|
||||
Lance
|
||||
.B vimtutor
|
||||
avec une interface graphique de
|
||||
.B Vim
|
||||
si possible; sinon, revient <20> la version console.
|
||||
.TP
|
||||
.BR \-h ", " \-\-help
|
||||
Affiche les informations d'usage.
|
||||
.TP
|
||||
.BR \-\-list
|
||||
Affiche la liste des chapitres et des langues.
|
||||
.SH EXEMPLES
|
||||
Pour d<>marrer
|
||||
.B vimtutor
|
||||
en fran<61>ais au premier chapitre:
|
||||
.PP
|
||||
.nf
|
||||
.RS
|
||||
vimtutor fr
|
||||
.RE
|
||||
.fi
|
||||
.PP
|
||||
En anglais au chapitre deux:
|
||||
.PP
|
||||
.nf
|
||||
.RS
|
||||
vimtutor -c2
|
||||
.RE
|
||||
.fi
|
||||
.PP
|
||||
Pour lancer (avec les commandes en format long) l'interface graphique,
|
||||
pour le bavarois, au premier chapitre:
|
||||
.PP
|
||||
.nf
|
||||
.RS
|
||||
vimtutor --language bar --chapter 1 --gui
|
||||
.RE
|
||||
.fi
|
||||
.SH FICHIERS
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor[.langue]
|
||||
Les fichiers textes de
|
||||
.B Vimtutor
|
||||
/usr/local/share/vim/vim??/tutor/tutor1[.language]
|
||||
Les fichiers du premier chapitre du
|
||||
.B vimtutor
|
||||
\.
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor.vim
|
||||
Le script Vim utilis<69> pour copier les fichiers texte de
|
||||
.B Vimtutor
|
||||
/usr/local/share/vim/vim??/tutor/tutor2[.language]
|
||||
Les fichiers du deuxi<78>me chapitre du
|
||||
.B vimtutor
|
||||
\.
|
||||
.TP 15
|
||||
/usr/local/share/vim/vim??/tutor/tutor.vim
|
||||
Le script
|
||||
.B Vim
|
||||
utilis<EFBFBD> pour copier les fichier du
|
||||
.B vimtutor
|
||||
\.
|
||||
.SH AUTEUR
|
||||
.B Vimtutor
|
||||
a <20>t<EFBFBD> <20>crit <20> l'origine pour Vi par Michael C. Pierce et Robert K. Ware, de la
|
||||
Colorado School of Mines, en reprenant des id<69>es <20>mises par Charles Smith, de
|
||||
la Colorado State University.
|
||||
E-mail : bware@mines.colorado.edu.
|
||||
Courriel: bware@mines.colorado.edu (ne fonctionne plus).
|
||||
.br
|
||||
Il a <20>t<EFBFBD> modifi<66> pour
|
||||
.B Vim
|
||||
par Bram Moolenaar.
|
||||
Pour conna<EFBFBD>tre le nom des traducteurs, consultez les fichiers textes du
|
||||
Pour connaitre le nom des traducteurs, consultez les fichiers textes du
|
||||
tutoriel.
|
||||
.SH VOIR AUSSI
|
||||
vim(1)
|
||||
.SH TRADUCTION
|
||||
Cette page de manuel a <20>t<EFBFBD> traduite par David Blanchet
|
||||
<david.blanchet@free.fr> 2004-12-27.
|
||||
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>
|
||||
Mise <20> jour 2012-05-06, Dominique Pell<6C> <dominique.pelle@gmail.com>.
|
||||
Mise <20> jour 2025-06-16, Damien Lejay <damien@lejay.be>.
|
||||
|
@ -1,60 +1,119 @@
|
||||
.TH VIMTUTOR 1 "2 avril 2001"
|
||||
.TH VIMTUTOR 1 "3 décembre 2024"
|
||||
.SH NAME
|
||||
vimtutor \- tutoriel Vim
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.B vimtutor [\-g] [langue]
|
||||
.B vimtutor [\-l | \-\-language ISO639] [\-c | \-\-chapter NUMÉRO] [\-g | \-\-gui] [ISO639]
|
||||
.br
|
||||
.B vimtutor [\-h | \-\-help]
|
||||
.br
|
||||
.B vimtutor [\-\-list]
|
||||
.SH DESCRIPTION
|
||||
.B Vimtutor
|
||||
.B vimtutor
|
||||
lance le tutoriel
|
||||
.B Vim
|
||||
\.
|
||||
Il copie d'abord le fichier du tutoriel, afin que vous puissiez le modifier
|
||||
sans altérer le fichier original.
|
||||
.BR "Vim" "."
|
||||
.PP
|
||||
.B Vimtutor
|
||||
est utile pour les personnes souhaitant apprendre leurs premières commandes
|
||||
.B Vim
|
||||
\.
|
||||
.B vimtutor
|
||||
est utile pour les personnes souhaitant apprendre leurs premières
|
||||
commandes
|
||||
.BR "Vim" "."
|
||||
.PP
|
||||
L'argument optionnel \-g lance vimtutor avec gvim plutôt qu'avec vim, si l'IHM
|
||||
graphique de vim est disponible, ou le lance avec vim si gvim n'est pas
|
||||
disponible.
|
||||
L'argument optionel [ISO639] correspond aux deux ou trois lettres qui identifient
|
||||
une langue, comme par exemple "it" ou "es".
|
||||
.PP
|
||||
L'argument optionnel [langue] est le nom d'une langue, spécifiée par son
|
||||
symbole à deux lettres, tels que "it" ou "es". Si l'argument [langue] est omis,
|
||||
la langue de la région linguistique actuelle sera retenue. Si le tutoriel est
|
||||
disponible dans cette langue, il est proposé. Sinon, c'est la version anglaise
|
||||
qui est proposée.
|
||||
.B vimtutor
|
||||
ne fait qu'ouvrir une copie temporaire des fichiers du tutoriel, il n'y
|
||||
a donc aucun risque d'écraser les leçons.
|
||||
.PP
|
||||
.B Vim
|
||||
est toujours lancé en mode Compatible Vi.
|
||||
est toujours lancé en mode
|
||||
.B Vi
|
||||
compatible.
|
||||
.PP
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-l ", " \-\-language\ \fIISO639\fR
|
||||
Les deux ou trois lettres qui déterminent la langue, comme
|
||||
par exemple 'it', 'es' ou 'bar'.
|
||||
Par défaut, la langue locale du système est utilisée,
|
||||
ou l'anglais sinon.
|
||||
.TP
|
||||
.BR \-c ", " \-\-chapter\ \fINUMÉRO\fR
|
||||
Sélectionne le chapitre désiré. Par défaut, c'est le premier chapitre.
|
||||
.TP
|
||||
.BR \-g ", " \-\-gui
|
||||
Lance
|
||||
.B vimtutor
|
||||
avec une interface graphique de
|
||||
.B Vim
|
||||
si possible; sinon, revient à la version console.
|
||||
.TP
|
||||
.BR \-h ", " \-\-help
|
||||
Affiche les informations d'usage.
|
||||
.TP
|
||||
.BR \-\-list
|
||||
Affiche la liste des chapitres et des langues.
|
||||
.SH EXEMPLES
|
||||
Pour démarrer
|
||||
.B vimtutor
|
||||
en français au premier chapitre:
|
||||
.PP
|
||||
.nf
|
||||
.RS
|
||||
vimtutor fr
|
||||
.RE
|
||||
.fi
|
||||
.PP
|
||||
En anglais au chapitre deux:
|
||||
.PP
|
||||
.nf
|
||||
.RS
|
||||
vimtutor -c2
|
||||
.RE
|
||||
.fi
|
||||
.PP
|
||||
Pour lancer (avec les commandes en format long) l'interface graphique,
|
||||
pour le bavarois, au premier chapitre:
|
||||
.PP
|
||||
.nf
|
||||
.RS
|
||||
vimtutor --language bar --chapter 1 --gui
|
||||
.RE
|
||||
.fi
|
||||
.SH FICHIERS
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor[.langue]
|
||||
Les fichiers textes de
|
||||
.B Vimtutor
|
||||
/usr/local/share/vim/vim??/tutor/tutor1[.language]
|
||||
Les fichiers du premier chapitre du
|
||||
.B vimtutor
|
||||
\.
|
||||
.TP 15
|
||||
/usr/local/lib/vim/tutor/tutor.vim
|
||||
Le script Vim utilisé pour copier les fichiers texte de
|
||||
.B Vimtutor
|
||||
/usr/local/share/vim/vim??/tutor/tutor2[.language]
|
||||
Les fichiers du deuxième chapitre du
|
||||
.B vimtutor
|
||||
\.
|
||||
.TP 15
|
||||
/usr/local/share/vim/vim??/tutor/tutor.vim
|
||||
Le script
|
||||
.B Vim
|
||||
utilisé pour copier les fichier du
|
||||
.B vimtutor
|
||||
\.
|
||||
.SH AUTEUR
|
||||
.B Vimtutor
|
||||
a été écrit à l'origine pour Vi par Michael C. Pierce et Robert K. Ware, de la
|
||||
Colorado School of Mines, en reprenant des idées émises par Charles Smith, de
|
||||
la Colorado State University.
|
||||
E-mail : bware@mines.colorado.edu.
|
||||
Courriel: bware@mines.colorado.edu (ne fonctionne plus).
|
||||
.br
|
||||
Il a été modifié pour
|
||||
.B Vim
|
||||
par Bram Moolenaar.
|
||||
Pour connaître le nom des traducteurs, consultez les fichiers textes du
|
||||
Pour connaitre le nom des traducteurs, consultez les fichiers textes du
|
||||
tutoriel.
|
||||
.SH VOIR AUSSI
|
||||
vim(1)
|
||||
.SH TRADUCTION
|
||||
Cette page de manuel a été traduite par David Blanchet
|
||||
<david.blanchet@free.fr> 2004-12-27.
|
||||
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>
|
||||
Mise à jour 2012-05-06, Dominique Pellé <dominique.pelle@gmail.com>.
|
||||
Mise à jour 2025-06-16, Damien Lejay <damien@lejay.be>.
|
||||
|
@ -26,7 +26,8 @@ utilizza delle copie dei file originali, non c'
|
||||
i file stessi.
|
||||
.PP
|
||||
.B Vim
|
||||
<EFBFBD> sempre iniziato in Modo compatibile con Vi.
|
||||
<EFBFBD> sempre iniziato in Modo non compatibile con
|
||||
.B Vi.
|
||||
.SH OPZIONI
|
||||
.TP
|
||||
.BR \-l ", " \-\-language\ \fIISO639\fR
|
||||
|
@ -26,7 +26,8 @@ utilizza delle copie dei file originali, non c'è pericolo di danneggiare
|
||||
i file stessi.
|
||||
.PP
|
||||
.B Vim
|
||||
è sempre iniziato in Modo compatibile con Vi.
|
||||
è sempre iniziato in Modo non compatibile con
|
||||
.B Vi.
|
||||
.SH OPZIONI
|
||||
.TP
|
||||
.BR \-l ", " \-\-language\ \fIISO639\fR
|
||||
|
@ -17,7 +17,7 @@
|
||||
.PP
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B vimtutor
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim.
|
||||
.PP
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [ISO639] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>- <20><><EFBFBD> <20>ң<EFBFBD><D2A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,
|
||||
@ -30,7 +30,7 @@
|
||||
.PP
|
||||
<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vim
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.B Vi.
|
||||
.SH <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.TP
|
||||
|
@ -17,7 +17,7 @@
|
||||
.PP
|
||||
Практический курс, который будет открыт по команде
|
||||
.B vimtutor
|
||||
полезен для новичков, желающих научиться самым основным командам редактора
|
||||
, полезен для новичков, желающих научиться самым основным командам редактора
|
||||
.B Vim.
|
||||
.PP
|
||||
Необязательный аргумент [ISO639] задаётся как двух- или трёхсимвольный код языка,
|
||||
@ -30,7 +30,7 @@
|
||||
.PP
|
||||
При работе с учебником, редактор
|
||||
.B Vim
|
||||
всегда запускается в режиме совместимости с редактором
|
||||
всегда запускается в варианте неполной совместимости с редактором
|
||||
.B Vi.
|
||||
.SH АРГУМЕНТЫ КОМАНДНОЙ СТРОКИ
|
||||
.TP
|
||||
|
@ -29,7 +29,7 @@ of overwriting the lessons.
|
||||
.B Vim
|
||||
is always started in
|
||||
.B Vi
|
||||
compatible mode.
|
||||
nocompatible mode.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BR \-l ", " \-\-language\ \fIISO639\fR
|
||||
|
@ -19,7 +19,7 @@ DESCRIPTION
|
||||
Vimtutor only opens temporary copies of the original tutor files, there
|
||||
is no danger of overwriting the lessons.
|
||||
|
||||
Vim is always started in Vi compatible mode.
|
||||
Vim is always started in Vi nocompatible mode.
|
||||
|
||||
OPTIONS
|
||||
-l, --language ISO639
|
||||
|
@ -1,4 +1,4 @@
|
||||
*visual.txt* For Vim version 9.1. Last change: 2023 Sep 19
|
||||
*visual.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -392,7 +392,7 @@ want only part of the line to be replaced you will have to make a mapping for
|
||||
it. In a future release ":" may work on partial lines.
|
||||
|
||||
Here is an example, to replace the selected text with the output of "date": >
|
||||
:vmap _a <Esc>`>a<CR><Esc>`<i<CR><Esc>!!date<CR>kJJ
|
||||
:vmap _a <Esc>`>a<CR><Esc>`<i<CR><Esc>!!date<CR>kgJgJ
|
||||
|
||||
(In the <> notation |<>|, when typing it you should type it literally; you
|
||||
need to remove the 'B' and '<' flags from 'cpoptions')
|
||||
|
118
runtime/doc/wayland.txt
Normal file
118
runtime/doc/wayland.txt
Normal file
@ -0,0 +1,118 @@
|
||||
*wayland.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
|
||||
Wayland Protocol Support *wayland*
|
||||
|
||||
1. Useful Wayland information |wayland-useful|
|
||||
2. Wayland selections |wayland-selections|
|
||||
|
||||
==============================================================================
|
||||
1. Useful Wayland information *wayland-useful*
|
||||
|
||||
*wayland-seat*
|
||||
Functionality such as the clipboard for Wayland requires a seat to use. A
|
||||
Wayland seat can consist of a keyboard, pointer, and touch device(s). The
|
||||
seat to use can be set with the 'wlseat' option. Only useful if you use
|
||||
multiple Wayland seats in the same Wayland session.
|
||||
|
||||
*wayland-gui*
|
||||
See |gui-wayland|. Please note that when using the GUI, Vim uses the toolkit
|
||||
such as GTK for accessing the clipboard, and does not access the clipboard
|
||||
though Wayland. You can check this though the |v:clipmethod| variable, which
|
||||
should equal to "none" when running the GUI.
|
||||
|
||||
Wayland commands:
|
||||
*:wlrestore* *:wl*
|
||||
:wl[restore] [display] Reinitializes the connection to the Wayland compositor.
|
||||
Useful when running Vim in a screen/tmux session that
|
||||
continues running after the Wayland compositor
|
||||
restarts.
|
||||
|
||||
[display] should be in the format of the
|
||||
$WAYLAND_DISPLAY environment variable (e.g.
|
||||
"wayland-0"). If [display] is omitted, then it
|
||||
reinitializes the connection using the same value as
|
||||
was used for the previous execution of this command.
|
||||
If the value was never specified, then it uses the
|
||||
value of $WAYLAND_DISPLAY environment variable. This
|
||||
will also update |v:clipmethod|.
|
||||
{only available when compiled with the |+wayland|
|
||||
feature}
|
||||
|
||||
Wayland errors:
|
||||
*E1548*
|
||||
Vim failed communicating with the Wayland compositor. This is likely due to
|
||||
the Wayland compositor process being killed. Try the `:wlrestore` command to
|
||||
try connecting again.
|
||||
|
||||
==============================================================================
|
||||
2. Wayland Selections *wayland-selections*
|
||||
|
||||
Vim supports the wlr-data-control-unstable-v1 and ext-data-control-v1
|
||||
protocols, for accessing the current Wayland selection. These are the best
|
||||
case scenario protocols, see |wayland-focus-steal|. Selection in this case
|
||||
essentially means the "clipboard." You can check if your Wayland compositor
|
||||
supports either of these protocols by running the wayland-info command, which
|
||||
should be bunded with libwayland on your system: >
|
||||
wayland-info | grep -E '(ext_data_control|zwlr_data_control)'
|
||||
<If grep finds a match, then you have either or both protocols on your system.
|
||||
If you don't get any match, then please see |wayland-focus-steal| for more
|
||||
information.
|
||||
|
||||
If you come from X11, then the regular Wayland selection is equivalent to the
|
||||
CLIPBOARD selection in X11, and the primary Wayland selection equates to the
|
||||
X11 primary selection. Accessing these selections is the same as X11 in Vim,
|
||||
in which the + register is the regular selection, and the * register is the
|
||||
primary selection, note that your compositor may not support primary
|
||||
selections, see |wayland-primary-selection| for more details.
|
||||
|
||||
*wayland-persist*
|
||||
If you use X11 cut buffers, no such things exist on Wayland. Instead to
|
||||
emulate such functionality, a separate clipboard manager must be used in order
|
||||
to persist selection data when a Wayland client exists.
|
||||
|
||||
*wayland-and-x11*
|
||||
If your version of Vim comes compiled with both X11 and Wayland support, then
|
||||
Vim determines which one to use when accessing the clipboard using the
|
||||
'clipmethod' option.
|
||||
|
||||
*wayland-primary-selection*
|
||||
If you find X11 style primary selections useful, Wayland also implements this
|
||||
behaviour in its own protocols:
|
||||
|
||||
- The primary selection protocol is the most widely supported, but requires
|
||||
focus in order to be used, see |wayland-focus-steal|.
|
||||
|
||||
- Data control protocol available on your system, such as the ext or wlr
|
||||
protocols, then primary selection is also supported. This is unless you are
|
||||
using version 1 (not the same as the 'v1' in the protocol name), of the
|
||||
wlr-data-control protocol. Then the primary selection protocol will be used
|
||||
as a fallback.
|
||||
|
||||
*wayland-focus-steal* *wayland-gnome*
|
||||
If you are using the GNOME desktop environment on Wayland, as of this writing,
|
||||
there is no method of accessing/modifying the clipboard for external clients
|
||||
such as Vim without being focused. Focused in this case means the client has
|
||||
received some sort of input event, such as a window being focused. This is
|
||||
what the wlr-data-control-unstable-v1 and ext-data-control-v1 protocols solve.
|
||||
If your Wayland compositor does not support the above protocols, then the
|
||||
above explanation applies.
|
||||
|
||||
To solve this problem, Vim implements a way of gaining focus in order to
|
||||
access the clipboard, by creating a temporary transparent top-level surface.
|
||||
This is by default disabled and can be enabled via the 'wlsteal' option.
|
||||
Moreover, a seat that has a keyboard is also required, see 'wlseat', and the
|
||||
xdg-shell protocol must be available.
|
||||
|
||||
Note that this method can have several side effects from the result of focus
|
||||
stealing. For example, if you have a taskbar that shows currently opened apps
|
||||
in your desktop environment, then when Vim attempts to steal focus, it may
|
||||
"flicker," as if a window was opened then immediately closed after.
|
||||
Additionally, if you are in fullscreen mode, this focus stealing won't work,
|
||||
because the created surface won't ever gain focus. If this happens, Vim will
|
||||
seem to freeze temporarily, see 'wltimeoutlen' for more information.
|
||||
|
||||
vim:tw=78:ts=8:noet:ft=help:norl
|
@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||
" Last Change: 2025 May 02
|
||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||
" Last Change: 2025 Jun 18
|
||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
@ -309,6 +309,12 @@ au BufNewFile,BufRead *.bb,*.bbappend,*.bbclass,*/build/conf/*.conf,*/meta{-*,}/
|
||||
" Blkid cache file
|
||||
au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
|
||||
|
||||
" Brighterscript
|
||||
au BufNewFile,BufRead *.bs setf brighterscript
|
||||
|
||||
" Brightscript
|
||||
au BufNewFile,BufRead *.brs setf brightscript
|
||||
|
||||
" BSDL
|
||||
au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl
|
||||
|
||||
@ -600,7 +606,6 @@ endif
|
||||
|
||||
" Execline (s6) scripts
|
||||
au BufNewFile,BufRead *s6*/\(up\|down\|run\|finish\) setf execline
|
||||
au BufNewFile,BufRead s6-* setf execline
|
||||
|
||||
" Fontconfig config files
|
||||
au BufNewFile,BufRead fonts.conf setf xml
|
||||
@ -685,11 +690,16 @@ au BufNewFile,BufRead *.dfy setf dafny
|
||||
" Dart
|
||||
au BufRead,BufNewfile *.dart,*.drt setf dart
|
||||
|
||||
" Debian autopkgtest
|
||||
au BufNewFile,BufRead */debian/tests/control setf autopkgtest
|
||||
|
||||
" Debian Control
|
||||
au BufNewFile,BufRead */{debian,DEBIAN}/control setf debcontrol
|
||||
au BufNewFile,BufRead control
|
||||
\ if getline(1) =~ '^Source:\|^Package:'
|
||||
\| setf debcontrol
|
||||
\| elseif getline(1) =~ '^Tests:\|^Test-Command:'
|
||||
\| setf autopkgtest
|
||||
\| endif
|
||||
|
||||
" Debian Copyright
|
||||
@ -879,6 +889,9 @@ autocmd BufRead,BufNewFile *.fnl,{,.}fennelrc setf fennel
|
||||
" Fetchmail RC file
|
||||
au BufNewFile,BufRead .fetchmailrc setf fetchmail
|
||||
|
||||
" FGA
|
||||
au BufNewFile,BufRead *.fga setf fga
|
||||
|
||||
" FIRRTL - Flexible Internal Representation for RTL
|
||||
au BufNewFile,BufRead *.fir setf firrtl
|
||||
|
||||
@ -888,6 +901,9 @@ au BufNewFile,BufRead *.fish setf fish
|
||||
" Flatpak config
|
||||
au BufNewFile,BufRead */flatpak/repo/config setf dosini
|
||||
|
||||
" Flix
|
||||
au BufNewFile,BufRead *.flix setf flix
|
||||
|
||||
" Focus Executable
|
||||
au BufNewFile,BufRead *.fex,*.focexec setf focexec
|
||||
|
||||
@ -932,7 +948,7 @@ au BufNewFile,BufRead *.fsh setf fsh
|
||||
au BufNewFile,BufRead *.fsi,*.fsx setf fsharp
|
||||
|
||||
" GDB command files
|
||||
au BufNewFile,BufRead .gdbinit,gdbinit,.gdbearlyinit,gdbearlyinit,*.gdb setf gdb
|
||||
au BufNewFile,BufRead .gdbinit,gdbinit,.cuda-gdbinit,cuda-gdbinit,.gdbearlyinit,gdbearlyinit,*.gdb setf gdb
|
||||
|
||||
" GDMO
|
||||
au BufNewFile,BufRead *.mo,*.gdmo setf gdmo
|
||||
@ -1092,6 +1108,9 @@ au BufNewFile,BufRead *.persistentmodels setf haskellpersistent
|
||||
au BufNewFile,BufRead *.ht setf haste
|
||||
au BufNewFile,BufRead *.htpp setf hastepreproc
|
||||
|
||||
" Haxe
|
||||
au BufNewFile,BufRead *.hx setf haxe
|
||||
|
||||
" HCL
|
||||
au BufRead,BufNewFile *.hcl setf hcl
|
||||
|
||||
@ -1421,7 +1440,7 @@ au BufNewFile,BufRead */etc/sensors.conf,*/etc/sensors3.conf setf sensors
|
||||
" LFTP
|
||||
au BufNewFile,BufRead lftp.conf,.lftprc,*lftp/rc setf lftp
|
||||
|
||||
" Lifelines (or Lex for C++!)
|
||||
" Lifelines, LLVM, or Lex for C++
|
||||
au BufNewFile,BufRead *.ll call dist#ft#FTll()
|
||||
|
||||
" Lilo: Linux loader
|
||||
@ -1585,9 +1604,6 @@ au BufNewFile,BufRead *.mmd,*.mmdc,*.mermaid setf mermaid
|
||||
au BufNewFile,BufRead meson.build,meson.options,meson_options.txt setf meson
|
||||
au BufNewFile,BufRead *.wrap setf dosini
|
||||
|
||||
" Messages (logs mostly)
|
||||
au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*} setf messages
|
||||
|
||||
" Metafont
|
||||
au BufNewFile,BufRead *.mf setf mf
|
||||
|
||||
@ -1710,7 +1726,7 @@ au BufNewFile,BufRead .netrc setf netrc
|
||||
au BufNewFile,BufRead */neofetch/config.conf setf sh
|
||||
|
||||
" Nginx
|
||||
au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/etc/nginx/*,*/usr/local/nginx/conf/*,*/nginx/*.conf setf nginx
|
||||
au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/nginx/*.conf setf nginx
|
||||
|
||||
" Nim file
|
||||
au BufNewFile,BufRead *.nim,*.nims,*.nimble setf nim
|
||||
@ -1763,6 +1779,9 @@ au BufNewFile,BufRead *.nt setf ntriples
|
||||
" Nu
|
||||
au BufNewFile,BufRead *.nu setf nu
|
||||
|
||||
" Numbat
|
||||
au BufNewFile,BufRead *.nbt setf numbat
|
||||
|
||||
" Oblivion Language and Oblivion Script Extender
|
||||
au BufNewFile,BufRead *.obl,*.obse,*.oblivion,*.obscript setf obse
|
||||
|
||||
@ -1794,7 +1813,7 @@ au BufNewFile,BufRead opam,*.opam,*.opam.template,opam.locked,*.opam.locked setf
|
||||
au BufNewFile,BufRead .alsoftrc,alsoft.conf,alsoft.ini,alsoftrc.sample setf dosini
|
||||
|
||||
" OpenFOAM
|
||||
au BufNewFile,BufRead [a-zA-Z0-9]*Dict\(.*\)\=,[a-zA-Z]*Properties\(.*\)\=,*Transport\(.*\),fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g,*/0\(\.orig\)\=/* call dist#ft#FTfoam()
|
||||
au BufNewFile,BufRead fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g call dist#ft#FTfoam()
|
||||
|
||||
" OpenROAD
|
||||
au BufNewFile,BufRead *.or setf openroad
|
||||
@ -1909,9 +1928,6 @@ au BufNewFile,BufRead *.pod setf pod
|
||||
" Also .theme for Drupal theme files.
|
||||
au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt,*.theme setf php
|
||||
|
||||
" PHP config
|
||||
au BufNewFile,BufRead php.ini-*,php-fpm.conf*,www.conf* setf dosini
|
||||
|
||||
" Pike and Cmod
|
||||
au BufNewFile,BufRead *.pike,*.pmod setf pike
|
||||
au BufNewFile,BufRead *.cmod setf cmod
|
||||
@ -1941,6 +1957,9 @@ au BufNewFile,BufRead Pipfile.lock setf json
|
||||
" Pixi lock
|
||||
au BufNewFile,BufRead pixi.lock setf yaml
|
||||
|
||||
" Pkl
|
||||
au BufNewFile,BufRead *.pkl setf pkl
|
||||
|
||||
" PL/1, PL/I
|
||||
au BufNewFile,BufRead *.pli,*.pl1 setf pli
|
||||
|
||||
@ -2087,6 +2106,9 @@ au BufRead,BufNewFile qmldir setf qmldir
|
||||
" Quarto
|
||||
au BufRead,BufNewFile *.qmd setf quarto
|
||||
|
||||
" QuickBms
|
||||
au BufRead,BufNewFile *.bms setf quickbms
|
||||
|
||||
" Racket (formerly detected as "scheme")
|
||||
au BufNewFile,BufRead *.rkt,*.rktd,*.rktl setf racket
|
||||
|
||||
@ -3153,6 +3175,9 @@ au BufNewFile,BufRead Dockerfile.*,Containerfile.* call s:StarSetf('dockerfile')
|
||||
" Dracula
|
||||
au BufNewFile,BufRead drac.* call s:StarSetf('dracula')
|
||||
|
||||
" Execline (s6) scripts
|
||||
au BufNewFile,BufRead s6-* call s:StarSetf('execline')
|
||||
|
||||
" Fvwm
|
||||
au BufNewFile,BufRead */.fvwm/* call s:StarSetf('fvwm')
|
||||
au BufNewFile,BufRead *fvwmrc*,*fvwm95*.hook
|
||||
@ -3211,6 +3236,10 @@ au BufNewFile,BufRead {neo,}mutt[[:alnum:]._-]\\\{6\} setf mail
|
||||
|
||||
au BufNewFile,BufRead reportbug-* call s:StarSetf('mail')
|
||||
|
||||
" Messages (logs mostly)
|
||||
au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*}
|
||||
\ call s:StarSetf('messages')
|
||||
|
||||
" Modconf
|
||||
au BufNewFile,BufRead */etc/modutils/*
|
||||
\ if executable(expand("<afile>")) != 1
|
||||
@ -3232,18 +3261,30 @@ au BufNewFile,BufRead neomuttrc*,Neomuttrc* call s:StarSetf('neomuttrc')
|
||||
" Nfs
|
||||
au BufNewFile,BufRead nfs.conf,nfsmount.conf setf dosini
|
||||
|
||||
" Nginx
|
||||
au BufNewFile,BufRead */etc/nginx/*,*/usr/local/nginx/conf/* call s:StarSetf('nginx')
|
||||
|
||||
" Nroff macros
|
||||
au BufNewFile,BufRead tmac.* call s:StarSetf('nroff')
|
||||
|
||||
" OpenBSD hostname.if
|
||||
au BufNewFile,BufRead */etc/hostname.* call s:StarSetf('config')
|
||||
|
||||
" OpenFOAM
|
||||
au BufNewFile,BufRead [a-zA-Z0-9]*Dict{,.*},[a-zA-Z]*Properties{,.*},*Transport.*,*/0{,.orig}/*
|
||||
\ if expand("<amatch>") !~ g:ft_ignore_pat
|
||||
\| call dist#ft#FTfoam()
|
||||
\|endif
|
||||
|
||||
" Pam conf
|
||||
au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf')
|
||||
|
||||
" Pandoc
|
||||
au BufNewFile,BufRead,BufFilePost *.pandoc,*.pdk,*.pd,*.pdc setf pandoc
|
||||
|
||||
" PHP config
|
||||
au BufNewFile,BufRead php.ini-*,php-fpm.conf*,www.conf* call s:StarSetf('dosini')
|
||||
|
||||
" Printcap and Termcap
|
||||
au BufNewFile,BufRead *printcap*
|
||||
\ if !did_filetype()
|
||||
@ -3285,7 +3326,7 @@ au BufNewFile,BufRead .tcshrc* call dist#ft#SetFileTypeShell("tcsh")
|
||||
au BufNewFile,BufRead .login*,.cshrc* call dist#ft#CSH()
|
||||
|
||||
" tmux configuration with arbitrary extension
|
||||
au BufNewFile,BufRead {.,}tmux*.conf* setf tmux
|
||||
au BufNewFile,BufRead {.,}tmux*.conf* call s:StarSetf('tmux')
|
||||
|
||||
" Universal Scene Description
|
||||
au BufNewFile,BufRead *.usda,*.usd setf usd
|
||||
|
@ -5,6 +5,7 @@
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
" Last Change: 2023 Aug 28 by Vim Project (undo_ftplugin)
|
||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||
" 2025 Jun 08 by Riley Bruins <ribru17@gmail.com> ('comments', 'commentstring')
|
||||
" --------------------------------------------------------------------------
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
@ -18,8 +19,10 @@ set cpo&vim
|
||||
|
||||
setlocal softtabstop=2 shiftwidth=2
|
||||
setlocal suffixesadd=.abap
|
||||
setlocal commentstring=\"\ %s
|
||||
setlocal comments=:\",:*
|
||||
|
||||
let b:undo_ftplugin = "setl sts< sua< sw<"
|
||||
let b:undo_ftplugin = "setl sts< sua< sw< com< cms<"
|
||||
|
||||
" Windows allows you to filter the open file dialog
|
||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||
|
17
runtime/ftplugin/autopkgtest.vim
Normal file
17
runtime/ftplugin/autopkgtest.vim
Normal file
@ -0,0 +1,17 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Debian autopkgtest control files
|
||||
" Maintainer: Debian Vim Maintainers
|
||||
" Last Change: 2025 Jul 05
|
||||
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/ftplugin/autopkgtest.vim
|
||||
|
||||
" Do these settings once per buffer
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin=1
|
||||
|
||||
setlocal comments=:#
|
||||
setlocal commentstring=#\ %s
|
||||
|
||||
" Clean unloading
|
||||
let b:undo_ftplugin = 'setlocal comments< commentstring<'
|
11
runtime/ftplugin/brighterscript.vim
Normal file
11
runtime/ftplugin/brighterscript.vim
Normal file
@ -0,0 +1,11 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Brighterscript
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2025 Jun 17
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
runtime! ftplugin/brightscript.vim
|
13
runtime/ftplugin/brightscript.vim
Normal file
13
runtime/ftplugin/brightscript.vim
Normal file
@ -0,0 +1,13 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Brightscript
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2025 Jun 17
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setl comments=:' commentstring='\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
13
runtime/ftplugin/fga.vim
Normal file
13
runtime/ftplugin/fga.vim
Normal file
@ -0,0 +1,13 @@
|
||||
" Vim filetype plugin
|
||||
" Language: FGA
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2025 Jul 14
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setl comments=:# commentstring=#\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
@ -4,10 +4,13 @@ vim9script
|
||||
# Language: Godot shading language
|
||||
# Maintainer: Maxim Kim <habamax@gmail.com>
|
||||
# Website: https://github.com/habamax/vim-gdscript
|
||||
# Last Update: 2025-06-09
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
b:did_ftplugin = 1
|
||||
|
||||
b:undo_ftplugin = 'setlocal suffixesadd<'
|
||||
b:undo_ftplugin = 'setlocal suffixesadd< comments< commentstring<'
|
||||
|
||||
setlocal suffixesadd=.gdshader
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||
setlocal commentstring=//\ %s
|
||||
|
@ -6,6 +6,8 @@
|
||||
" 2025 Mar 07 by Vim Project (add formatprg and keywordprg option #16804)
|
||||
" 2025 Mar 18 by Vim Project (use :term for 'keywordprg' #16911)
|
||||
" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121)
|
||||
" 2025 Jul 02 by Vim Project (add section movement mappings #17641)
|
||||
" 2025 Jul 05 by Vim Project (update b:undo_ftplugin #17664)
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
@ -29,10 +31,10 @@ let b:undo_ftplugin = 'setl fo< com< cms< fp< kp<'
|
||||
|
||||
if get(g:, 'go_recommended_style', 1)
|
||||
setlocal noexpandtab softtabstop=0 shiftwidth=0
|
||||
let b:undo_ftplugin ..= ' | setl et< sts< sw<'
|
||||
let b:undo_ftplugin .= ' | setl et< sts< sw<'
|
||||
endif
|
||||
|
||||
if !exists('*' .. expand('<SID>') .. 'GoKeywordPrg')
|
||||
if !exists('*' . expand('<SID>') . 'GoKeywordPrg')
|
||||
func! s:GoKeywordPrg()
|
||||
let temp_isk = &l:iskeyword
|
||||
setl iskeyword+=.
|
||||
@ -49,6 +51,35 @@ if !exists('*' .. expand('<SID>') .. 'GoKeywordPrg')
|
||||
endfunc
|
||||
endif
|
||||
|
||||
if !exists("no_plugin_maps") && !exists("no_go_maps")
|
||||
noremap <silent> <buffer> ]] <Cmd>call <SID>GoFindSection('next_start', v:count1)<CR>
|
||||
noremap <silent> <buffer> ][ <Cmd>call <SID>GoFindSection('next_end', v:count1)<CR>
|
||||
noremap <silent> <buffer> [[ <Cmd>call <SID>GoFindSection('prev_start', v:count1)<CR>
|
||||
noremap <silent> <buffer> [] <Cmd>call <SID>GoFindSection('prev_end', v:count1)<CR>
|
||||
let b:undo_ftplugin .= ''
|
||||
\ . "| silent! exe 'unmap <buffer> ]]'"
|
||||
\ . "| silent! exe 'unmap <buffer> ]['"
|
||||
\ . "| silent! exe 'unmap <buffer> [['"
|
||||
\ . "| silent! exe 'unmap <buffer> []'"
|
||||
endif
|
||||
|
||||
function! <SID>GoFindSection(dir, count)
|
||||
mark '
|
||||
let c = a:count
|
||||
while c > 0
|
||||
if a:dir == 'next_start'
|
||||
keepjumps call search('^\(type\|func\)\>', 'W')
|
||||
elseif a:dir == 'next_end'
|
||||
keepjumps call search('^}', 'W')
|
||||
elseif a:dir == 'prev_start'
|
||||
keepjumps call search('^\(type\|func\)\>', 'bW')
|
||||
elseif a:dir == 'prev_end'
|
||||
keepjumps call search('^}', 'bW')
|
||||
endif
|
||||
let c -= 1
|
||||
endwhile
|
||||
endfunction
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
" Language: groff(7)
|
||||
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
|
||||
" Last Change: 2025 Apr 24
|
||||
" 2025 Jun 18 by Vim Project: update commentstring option (#17516)
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
@ -11,5 +12,8 @@ let b:nroff_is_groff = 1
|
||||
|
||||
runtime! ftplugin/nroff.vim
|
||||
|
||||
setlocal commentstring=\\#\ %s
|
||||
setlocal comments=:\\#,:.\\\",:\\\",:'\\\",:'''
|
||||
|
||||
let b:undo_ftplugin .= '| unlet! b:nroff_is_groff'
|
||||
let b:did_ftplugin = 1
|
||||
|
@ -3,6 +3,7 @@
|
||||
" Maintainer: Daniel Campoverde <alx@sillybytes.net>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2018-08-27
|
||||
" 2025 Jul 09 by Vim Project revert setting iskeyword #8191
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@ -17,7 +18,6 @@ let b:undo_ftplugin = "setl com< cms< fo<"
|
||||
setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s
|
||||
setlocal formatoptions-=t formatoptions+=croql
|
||||
setlocal omnifunc=haskellcomplete#Complete
|
||||
setlocal iskeyword+='
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
@ -1,10 +1,11 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: hg (Mercurial) commit file
|
||||
" Maintainer: Ken Takata <kentkt at csc dot jp>
|
||||
" Last Change: 2016 Jan 6
|
||||
" Last Change: 2025 Jun 8
|
||||
" Filenames: hg-editor-*.txt
|
||||
" License: VIM License
|
||||
" URL: https://github.com/k-takata/hg-vim
|
||||
" 2025 Jun 18 by Vim Project: update commentstring option (#17480)
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@ -13,4 +14,7 @@ let b:did_ftplugin = 1
|
||||
|
||||
setlocal nomodeline
|
||||
|
||||
let b:undo_ftplugin = 'setl modeline<'
|
||||
setlocal comments=:HG\:
|
||||
setlocal commentstring=HG:\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl modeline< com< cms<'
|
||||
|
@ -2,7 +2,8 @@
|
||||
" Language: InstallShield (ft=ishd)
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: 2024 Jan 14
|
||||
" Last Change: 2025 Jun 18
|
||||
" 2025 Jun 18 by Vim Project: set comments and commentstring option (#17490)
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
let b:did_ftplugin = 1
|
||||
@ -12,8 +13,10 @@ let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
|
||||
setlocal foldmethod=syntax
|
||||
setlocal commentstring=//\ %s
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||
|
||||
let b:undo_ftplugin = "setl fdm<"
|
||||
let b:undo_ftplugin = "setl fdm< com< cms"
|
||||
|
||||
" matchit support
|
||||
if exists("loaded_matchit")
|
||||
|
@ -2,7 +2,7 @@
|
||||
" Language: LambdaProlog (Teyjus)
|
||||
" Maintainer: Markus Mottl <markus.mottl@gmail.com>
|
||||
" URL: http://www.ocaml.info/vim/ftplugin/lprolog.vim
|
||||
" Last Change: 2025 Apr 16
|
||||
" Last Change: 2025 Jun 08 - set 'comments', 'commentstring'
|
||||
" 2025 Apr 16 - set 'cpoptions' for line continuation
|
||||
" 2023 Aug 28 - added undo_ftplugin (Vim Project)
|
||||
" 2006 Feb 05
|
||||
@ -26,7 +26,9 @@ setlocal efm=%+A./%f:%l.%c:\ %m
|
||||
" Formatting of comments
|
||||
setlocal formatprg=fmt\ -w75\ -p\\%
|
||||
|
||||
let b:undo_ftplugin = "setlocal efm< fp<"
|
||||
setlocal comments=s1:/*,mb:*,ex:*/,:% commentstring=%\ %s
|
||||
|
||||
let b:undo_ftplugin = "setlocal efm< fp< com< cms<"
|
||||
|
||||
" Add mappings, unless the user didn't want this.
|
||||
if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
|
||||
|
@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Microsoft Macro Assembler (80x86)
|
||||
" Maintainer: Wu Yongwei <wuyongwei@gmail.com>
|
||||
" Last Change: 2022-04-24 21:24:52 +0800
|
||||
" Last Change: 2025-06-09 04:40:00 +0800
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@ -11,9 +11,11 @@ let b:did_ftplugin = 1
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let b:undo_ftplugin = "setl iskeyword<"
|
||||
let b:undo_ftplugin = "setl iskeyword< comments< commentstring<"
|
||||
|
||||
setlocal iskeyword=@,48-57,_,36,60,62,63,@-@
|
||||
setlocal comments=:;
|
||||
setlocal commentstring=;\ %s
|
||||
|
||||
" Matchit support
|
||||
if !exists('b:match_words')
|
||||
|
@ -9,6 +9,7 @@
|
||||
" 2025 Feb 12 by Wu, Zhenyu <wuzhenyu@ustc.edu> (matchit configuration #16619)
|
||||
" 2025 Apr 16 by Eisuke Kawashima (cpoptions #17121)
|
||||
" 2025 Apr 24 by Eisuke Kawashima (move options from syntax to ftplugin #17174)
|
||||
" 2025 Jun 18 by Vim Project: update commentstring option (#17516)
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@ -19,7 +20,7 @@ let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
setlocal commentstring=.\\\"\ %s
|
||||
setlocal comments=:.\\\"
|
||||
setlocal comments=:.\\\",:\\\",:'\\\",:'''
|
||||
setlocal sections+=Sh
|
||||
setlocal define=.\s*de
|
||||
|
||||
|
@ -3,7 +3,8 @@
|
||||
" Copyright: Christian Jacobsen <clj3@kent.ac.uk>, Mario Schweigler <ms44@kent.ac.uk>
|
||||
" Maintainer: Mario Schweigler <ms44@kent.ac.uk>
|
||||
" Last Change: 23 April 2003
|
||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||
" 2025 Jun 08 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@ -26,6 +27,7 @@ setlocal expandtab
|
||||
" Break comment lines and insert comment leader in this case
|
||||
setlocal formatoptions-=t formatoptions+=cql
|
||||
setlocal comments+=:--
|
||||
setlocal commentstring=--\ %s
|
||||
" Maximum length of comments is 78
|
||||
setlocal textwidth=78
|
||||
"}}}
|
||||
@ -46,7 +48,7 @@ endif
|
||||
|
||||
"{{{ Undo settings
|
||||
let b:undo_ftplugin = "setlocal shiftwidth< softtabstop< expandtab<"
|
||||
\ . " formatoptions< comments< textwidth<"
|
||||
\ . " formatoptions< comments< commentstring< textwidth<"
|
||||
\ . "| unlet! b:browsefilter"
|
||||
"}}}
|
||||
|
||||
|
14
runtime/ftplugin/pkl.vim
Normal file
14
runtime/ftplugin/pkl.vim
Normal file
@ -0,0 +1,14 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Pkl
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2025 Jul 14
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||
setlocal commentstring=//\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
@ -3,6 +3,7 @@
|
||||
" Maintainer: Mike Williams <mrw@eandem.co.uk>
|
||||
" Last Change: 24th April 2012
|
||||
" 2024 Jan 14 by Vim Project (browsefilter)
|
||||
" 2025 Jun 08 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@ -17,6 +18,7 @@ set cpo&vim
|
||||
|
||||
" PS comment formatting
|
||||
setlocal comments=b:%
|
||||
setlocal commentstring=%\ %s
|
||||
setlocal formatoptions-=t formatoptions+=rol
|
||||
|
||||
" Define patterns for the matchit macro
|
||||
@ -36,7 +38,7 @@ if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||
endif
|
||||
endif
|
||||
|
||||
let b:undo_ftplugin = "setlocal comments< formatoptions<"
|
||||
let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions<"
|
||||
\ . "| unlet! b:browsefilter b:match_ignorecase b:match_words"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
|
@ -1,9 +1,9 @@
|
||||
" Vim ftplugin file
|
||||
" Language: Reva Forth
|
||||
" Version: 7.1
|
||||
" Last Change: 2022 Apr 27
|
||||
" Last Change: 2025 Jun 08
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" URL: http://ronware.org/reva/
|
||||
" URL: https://github.com/ronaaron/reva
|
||||
" Filetypes: *.rf *.frt
|
||||
" NOTE: Forth allows any non-whitespace in a name, so you need to do:
|
||||
" setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
|
||||
@ -20,8 +20,9 @@ let b:did_ftplugin = 1
|
||||
|
||||
setlocal sts=4 sw=4
|
||||
setlocal com=s1:/*,mb:*,ex:*/,:\|,:\\
|
||||
setlocal cms=//\ %s
|
||||
setlocal fo=tcrqol
|
||||
setlocal matchpairs+=\::;
|
||||
setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
|
||||
|
||||
let b:undo_ftplugin = "setlocal sts< sw< com< fo< mps< isk<"
|
||||
let b:undo_ftplugin = "setlocal sts< sw< com< cms< fo< mps< isk<"
|
||||
|
@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: RPL/2
|
||||
" Maintainer: Joël BERTRAND <rpl2@free.fr>
|
||||
" Last Change: 2012 Mar 07
|
||||
" Last Change: 2025 Jun 08
|
||||
" Version: 0.1
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
@ -18,5 +18,6 @@ setlocal fo-=t fo+=croql
|
||||
|
||||
" Set 'comments' to format dashed lists in comments.
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||
setlocal commentstring=//\ %s
|
||||
|
||||
let b:undo_ftplugin = "setlocal fo< comments<"
|
||||
let b:undo_ftplugin = "setlocal fo< comments< commentstring<"
|
||||
|
@ -2,6 +2,7 @@
|
||||
" Language: SWIG
|
||||
" Maintainer: Julien Marrec <julien.marrec 'at' gmail com>
|
||||
" Last Change: 2023 November 23
|
||||
" 2025 July 14 by Vim project: set 'comment'/'commentstring' options
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@ -9,5 +10,7 @@ if exists("b:did_ftplugin")
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let b:undo_ftplugin = "setlocal iskeyword<"
|
||||
let b:undo_ftplugin = "setlocal iskeyword< comments< commentstring<"
|
||||
setlocal iskeyword+=%
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||
setlocal commentstring=//\ %s
|
||||
|
14
runtime/ftplugin/twig.vim
Normal file
14
runtime/ftplugin/twig.vim
Normal file
@ -0,0 +1,14 @@
|
||||
" Vim filetype plugin
|
||||
" Language: twig
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2025 Jul 14
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=s:{#,e:#}
|
||||
setlocal commentstring={#\ %s\ #}
|
||||
|
||||
let b:undo_ftplugin = 'setl comments< commentstring<'
|
@ -1,5 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: vue
|
||||
" Last Change:
|
||||
" 2025 Jun 09 by Vim project set comment options #17479
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
let b:did_ftplugin = 1
|
||||
@ -9,6 +11,11 @@ let b:did_ftplugin = 1
|
||||
let s:save_cpo = &cpo
|
||||
set cpo-=C
|
||||
|
||||
setlocal commentstring=<!--\ %s\ -->
|
||||
setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
|
||||
|
||||
let b:undo_ftplugin = "setlocal comments< commentstring<"
|
||||
|
||||
" Copied from ftplugin/html.vim
|
||||
" Original thanks to Johannes Zellner and Benji Fisher.
|
||||
if exists("loaded_matchit")
|
||||
@ -17,6 +24,7 @@ if exists("loaded_matchit")
|
||||
\ .. '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,'
|
||||
\ .. '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,'
|
||||
\ .. '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
|
||||
let b:undo_ftplugin .= ' | unlet! b:match_words b:match_ignorecase'
|
||||
endif
|
||||
|
||||
" Restore the saved compatibility options.
|
||||
|
@ -1,8 +1,10 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Zimbu
|
||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||
" Last Change: 2023 Aug 10
|
||||
" Last Change: 2025 Jun 08
|
||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Note: Zimbu was the programming language invented by Bram,
|
||||
" but it seems to be lost by now
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@ -16,7 +18,7 @@ let b:did_ftplugin = 1
|
||||
let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
|
||||
let b:undo_ftplugin = "setl fo< com< ofu< efm< tw< et< sts< sw< | if has('vms') | setl isk< | endif"
|
||||
let b:undo_ftplugin = "setl fo< com< cms< ofu< efm< tw< et< sts< sw< | if has('vms') | setl isk< | endif"
|
||||
|
||||
" Set 'formatoptions' to break comment lines but not other lines,
|
||||
" and insert the comment leader when hitting <CR> or using "o".
|
||||
@ -30,6 +32,7 @@ endif
|
||||
" Set 'comments' to format dashed lists in comments.
|
||||
" And to keep Zudocu comment characters.
|
||||
setlocal comments=sO:#\ -,mO:#\ \ ,exO:#/,s:/*,m:\ ,ex:*/,:#=,:#-,:#%,:#
|
||||
setlocal commentstring=#\ %s
|
||||
|
||||
setlocal errorformat^=%f\ line\ %l\ col\ %c:\ %m,ERROR:\ %m
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
" Maintainer: See https://github.com/HerringtonDarkholme/yats.vim
|
||||
" Last Change: 2019 Oct 18
|
||||
" 2023 Aug 28 by Vim Project (undo_indent)
|
||||
" 2025 Jun 05 by Vim Project (remove Fixedgq() formatexp, #17452)
|
||||
" Acknowledgement: Based off of vim-ruby maintained by Nikolai Weibull http://vim-ruby.rubyforge.org
|
||||
|
||||
" 0. Initialization {{{1
|
||||
@ -18,10 +19,9 @@ setlocal nosmartindent
|
||||
|
||||
" Now, set up our indentation expression and keys that trigger it.
|
||||
setlocal indentexpr=GetTypescriptIndent()
|
||||
setlocal formatexpr=Fixedgq(v:lnum,v:count)
|
||||
setlocal indentkeys=0{,0},0),0],0\,,!^F,o,O,e
|
||||
|
||||
let b:undo_indent = "setlocal formatexpr< indentexpr< indentkeys< smartindent<"
|
||||
let b:undo_indent = "setlocal indentexpr< indentkeys< smartindent<"
|
||||
|
||||
" Only define the function once.
|
||||
if exists("*GetTypescriptIndent")
|
||||
@ -443,64 +443,3 @@ endfunction
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
function! Fixedgq(lnum, count)
|
||||
let l:tw = &tw ? &tw : 80
|
||||
|
||||
let l:count = a:count
|
||||
let l:first_char = indent(a:lnum) + 1
|
||||
|
||||
if mode() == 'i' " gq was not pressed, but tw was set
|
||||
return 1
|
||||
endif
|
||||
|
||||
" This gq is only meant to do code with strings, not comments
|
||||
if s:IsLineComment(a:lnum, l:first_char) || s:IsInMultilineComment(a:lnum, l:first_char)
|
||||
return 1
|
||||
endif
|
||||
|
||||
if len(getline(a:lnum)) < l:tw && l:count == 1 " No need for gq
|
||||
return 1
|
||||
endif
|
||||
|
||||
" Put all the lines on one line and do normal splitting after that
|
||||
if l:count > 1
|
||||
while l:count > 1
|
||||
let l:count -= 1
|
||||
normal J
|
||||
endwhile
|
||||
endif
|
||||
|
||||
let l:winview = winsaveview()
|
||||
|
||||
call cursor(a:lnum, l:tw + 1)
|
||||
let orig_breakpoint = searchpairpos(' ', '', '\.', 'bcW', '', a:lnum)
|
||||
call cursor(a:lnum, l:tw + 1)
|
||||
let breakpoint = searchpairpos(' ', '', '\.', 'bcW', s:skip_expr, a:lnum)
|
||||
|
||||
" No need for special treatment, normal gq handles edgecases better
|
||||
if breakpoint[1] == orig_breakpoint[1]
|
||||
call winrestview(l:winview)
|
||||
return 1
|
||||
endif
|
||||
|
||||
" Try breaking after string
|
||||
if breakpoint[1] <= indent(a:lnum)
|
||||
call cursor(a:lnum, l:tw + 1)
|
||||
let breakpoint = searchpairpos('\.', '', ' ', 'cW', s:skip_expr, a:lnum)
|
||||
endif
|
||||
|
||||
|
||||
if breakpoint[1] != 0
|
||||
call feedkeys("r\<CR>")
|
||||
else
|
||||
let l:count = l:count - 1
|
||||
endif
|
||||
|
||||
" run gq on new lines
|
||||
if l:count == 1
|
||||
call feedkeys("gqq")
|
||||
endif
|
||||
|
||||
return 0
|
||||
endfunction
|
||||
|
28
runtime/keymap/azerbaijani.vim
Normal file
28
runtime/keymap/azerbaijani.vim
Normal file
@ -0,0 +1,28 @@
|
||||
" Vim keymap file for Azerbaijani language
|
||||
" Maintainer: Rasul Samadzade <rasul.samadzade@protonmail.com>
|
||||
" Last changed: 2025-06-13
|
||||
|
||||
let b:keymap_name = "az"
|
||||
|
||||
loadkeymap
|
||||
w ü
|
||||
W Ü
|
||||
[ ö
|
||||
{ Ö
|
||||
] ğ
|
||||
} Ğ
|
||||
; ı
|
||||
: I
|
||||
' ə
|
||||
\" Ə
|
||||
, ç
|
||||
< Ç
|
||||
. ş
|
||||
> Ş
|
||||
\/ .
|
||||
? ,
|
||||
@ "
|
||||
# Ⅶ
|
||||
$ ;
|
||||
^ :
|
||||
& ?
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user